You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After I change from -coverpkg all to -coverpkg $(go list ./... | sed 's/\n/,/g'), it works.
The test cases run, and cover profile 1.out is generated, and go tool cover -html 1.out works, too.
But the coverage totally wrong, it displays only func init() is covered.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I have a project, I want to do a coverage test, so I run:
And, I have
gofmt
the code ( reference to the suggestion from #30746)What did you expect to see?
I want to see the result of testing coverage.
What did you see instead?
see the error:
The text was updated successfully, but these errors were encountered: