AT008

Acceptance testsStandard

check for acceptance test function declaration *testing.T parameter naming

The AT008 analyzer reports where the *testing.T parameter of an acceptance test declaration is not named t, which is a standard convention.

Examples

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

Ignoring reports

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

//lintignore:AT008
func TestAccExampleThing_basic(invalid *testing.T) { /* ... */}

This page is generated from passes/AT008/README.md, which lives beside the analyzer.