Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/cover: branching to a labeled for misses some coverage #28319
See below for a simple program that reports statements as uncovered when they are covered.
What version of Go are you using (
There is a comment in the code about this case:
The problem is that
The only way to fix this that I can see is difficult: We need to change the code to
Then we can insert the counter after
Ugly corner case. I'm not sure it's worth the trouble to fix.