github.com/nozzle/golangci-lint@v1.49.0-nz3/test/testdata/thelper_with_options.go (about)

     1  //golangcitest:args -Ethelper
     2  //golangcitest:config_path testdata/configs/thelper.yml
     3  package testdata
     4  
     5  import "testing"
     6  
     7  func thelperWithHelperAfterAssignmentWO(t *testing.T) { // want "test helper function should start from t.Helper()"
     8  	_ = 0
     9  	t.Helper()
    10  }
    11  
    12  func thelperWithNotFirstWO(s string, t *testing.T, i int) { // want `parameter \*testing.T should be the first`
    13  	t.Helper()
    14  }
    15  
    16  func thelperWithIncorrectNameWO(o *testing.T) {
    17  	o.Helper()
    18  }