-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
testing: error message is wrong when a typo error exists in TestMain. #22388
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. |
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: