An open API service indexing awesome lists of open source software.

https://github.com/gostaticanalysis/testhelper

Analyzer: testhelper finds a package function which is not a test function and receives a value of *testing.T as a parameter but it does not call (*testing.T).Helper
https://github.com/gostaticanalysis/testhelper

golang staticanalysis

Last synced: 25 days ago
JSON representation

Analyzer: testhelper finds a package function which is not a test function and receives a value of *testing.T as a parameter but it does not call (*testing.T).Helper

Awesome Lists containing this project

README

          

# testhelper

[![pkg.go.dev][gopkg-badge]][gopkg]

`testhelper` finds a package function which is not a test function and receives a value of `*testing.T` as a parameter but it does not call `(*testing.T).Helper`.

```go
// OK
func helper1(t *testing.T) {
t.Helper()
}

// NG
func helper2(t *testing.T) {
// without t.Helper
}
```

[gopkg]: https://pkg.go.dev/github.com/gostaticanalysis/testhelper
[gopkg-badge]: https://pkg.go.dev/badge/github.com/gostaticanalysis/testhelper?status.svg