testing: error message is wrong when a typo error exists in TestMain. #22388
Labels
Comments
Change https://golang.org/cl/72591 mentions this issue: |
I believe the error message is correct. The special name |
Oh, sorry, I completely misread this report. Please ignore my comment. |
Could you take a look at the cl? |
Any chance for this to be considered for 1.10? |
It's in now. Thanks. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Go are you using (
go version
)?go version devel +006bc57095
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?What did you do?
If I have a typo about argument of TestMain, the displayed message seems wrong.
https://play.golang.org/p/Fe6F7R8qKi
What did you expect to see?
wrong signature for TestMain, must be: func TestMain(m *testing.M)
What did you see instead?
wrong signature for TestMain, must be: func TestMain(t *testing.T)
The text was updated successfully, but these errors were encountered: