Skip to content

Latest commit

 

History

History

AT006

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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(/* ... */)
}