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?
to your account
The code coverage tool marks whole basic blocks as being covered when a statement in the middle panics. This can be quite confusing when the panics are converted to errors elsewhere with recover.
somecode // This is marked as covered.
A whole example example repo can be found in https://github.com/taruti/coverpanicbug and be triggered with "go test -cover" which falsely claims 100% coverage.
Go version 1.4.1 linux/amd64 and tools repo revision 2206711.
The text was updated successfully, but these errors were encountered:
Fixed by https://go-review.googlesource.com/8140
Sorry, something went wrong.
No branches or pull requests