golangci-lint/test/testdata/thelper_with_options.go

19 lines
449 B
Go

//golangcitest:args -Ethelper
//golangcitest:config_path testdata/configs/thelper.yml
package testdata
import "testing"
func thelperWithHelperAfterAssignmentWO(t *testing.T) { // want "test helper function should start from t.Helper()"
_ = 0
t.Helper()
}
func thelperWithNotFirstWO(s string, t *testing.T, i int) { // want `parameter \*testing.T should be the first`
t.Helper()
}
func thelperWithIncorrectNameWO(o *testing.T) {
o.Helper()
}