Yes, go test runs go vet by default. But it only runs it with a limited set of vet tests, ones that are considered to be very reliable when it comes to showing problems. Perhaps we should add this check to that list.
I'll change this issue into a proposal to do that.
What version of Go are you using (
What did you do?
I resturctured my test TestXXX as an example ExampleXXX. But forgot to remove the argument.
What did you expect to see?
ExampleXXX(t *testing.T) is wrong signature for an example (has *testing.T as an argument),
so it should raise error on
What did you see instead?
It didn't run. Made me assumes the test has successfully finished.
The text was updated successfully, but these errors were encountered: