cmd/cover: misleading coverage indicators for channel operations in 'select' statements #27015
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?go version go1.10.3 windows/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?set GOHOSTARCH=amd64
set GOHOSTOS=windows
What did you do?
main.go:
main_test.go:
Then run:
What did you expect to see?
Coverage report with green and black, with only red in main, similar to this:
Note, remove the follow code from main to get coverage report to be "correct"
What did you see instead?
Coverage report with red marks in comments, function, and case:
Note:
This is similar to #22545 but that one is only comments.
The text was updated successfully, but these errors were encountered: