Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 792 Bytes

README.md

File metadata and controls

37 lines (28 loc) · 792 Bytes

AT006

The AT006 analyzer reports acceptance test functions that contain multiple resource.Test() invocations. Acceptance tests should be split by invocation.

Flagged Code

func TestAccExampleThing_basic(t *testing.T) {
  resource.Test(/* ... */)
  resource.Test(/* ... */)
}

Passing Code

func TestAccExampleThing_first(t *testing.T) {
  resource.Test(/* ... */)
}

func TestAccExampleThing_second(t *testing.T) {
  resource.Test(/* ... */)
}

Ignoring Reports

Singular reports can be ignored by adding the a //lintignore:AT006 Go code comment at the end of the offending line or on the line immediately proceding, e.g.

//lintignore:AT006
func TestAccExampleThing_basic(t *testing.T) {
  resource.Test(/* ... */)
  resource.Test(/* ... */)
}