paralleltest
paralleltest copied to clipboard
False positive `Test` method inside a non test file
Hi there,
I have a function func Test(t *testing.T) *MyStruct inside a normal .go file and not a _test.go file.
The linter returns with Function Test missing the call to method parallel (paralleltest)
In my opinion this is a false positive, as the function is not part of the test package. In my specific case, I offer this method as a helper for my library and it's compiled inside the actual package for other developers to use in their code.
Would you please be able to open a PR for a fix for this?
This PR - fixed it - https://github.com/kunwardeep/paralleltest/pull/46