The AT006 analyzer reports acceptance test functions that contain multiple
resource.Test()
invocations. Acceptance tests should be split by invocation.
func TestAccExampleThing_basic(t *testing.T) {
resource.Test(/* ... */)
resource.Test(/* ... */)
}
func TestAccExampleThing_first(t *testing.T) {
resource.Test(/* ... */)
}
func TestAccExampleThing_second(t *testing.T) {
resource.Test(/* ... */)
}
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(/* ... */)
}