2022-07-15 15:32:10 +02:00
|
|
|
//golangcitest:args -Ethelper
|
|
|
|
//golangcitest:config_path testdata/configs/thelper.yml
|
2022-05-16 21:16:25 +02:00
|
|
|
package testdata
|
|
|
|
|
|
|
|
import "testing"
|
|
|
|
|
2022-08-20 18:53:45 +02:00
|
|
|
func thelperWithHelperAfterAssignmentWO(t *testing.T) { // want "test helper function should start from t.Helper()"
|
2022-05-16 21:16:25 +02:00
|
|
|
_ = 0
|
|
|
|
t.Helper()
|
|
|
|
}
|
|
|
|
|
2022-08-20 18:53:45 +02:00
|
|
|
func thelperWithNotFirstWO(s string, t *testing.T, i int) { // want `parameter \*testing.T should be the first`
|
2022-05-16 21:16:25 +02:00
|
|
|
t.Helper()
|
|
|
|
}
|
|
|
|
|
|
|
|
func thelperWithIncorrectNameWO(o *testing.T) {
|
|
|
|
o.Helper()
|
|
|
|
}
|