-
Notifications
You must be signed in to change notification settings - Fork 149
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
Test coverage results don't seem to be right #715
Comments
Are you using source-based coverage or gcov-based coverage? |
This is based on the coverage of the source.Will the results of the two be different? |
The reason I reopened is that I want to know what is the difference between these two test methods, and why is there such a big gap in the results of branch coverage? |
+1. I tried to run it against my small project (with code based coverage) and I can see quite a lot of unexpected things:
|
This is because the source-based approach does not currently support branch coverage. I agree to other situations. In addition, you can continue the discussion here.rust-lang/rust#91661 |
gcov-based coverage is using DebugInfo. There is some information on https://clang.llvm.org/docs/SourceBasedCodeCoverage.html. It's about Clang, but should apply similarly to Rust. |
I tested the
rand
project and found that it had zero branch coverage.Is this normal?
The text was updated successfully, but these errors were encountered: