-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Closed
Copy link
Labels
A-code-coverageArea: Source-based code coverage (-Cinstrument-coverage)Area: Source-based code coverage (-Cinstrument-coverage)C-bugCategory: This is a bug.Category: This is a bug.
Description
As I mentioned in rust-lang/compiler-team#278 (comment), I've implemented support for source-based code coverage in grcov, and started using it to collect coverage for grcov itself.
There is a file that is definitely covered, but doesn't appear to be in the report. It is in the report when using gcov-based coverage.
STR:
- Clone https://github.com/mozilla/grcov;
- Run
LLVM_PROFILE_FILE="grcov-%p-%m.profraw" cargo test
; - Run
grcov `find . \( -name "grcov-*.profraw" \) -print\` --binary-path ./target/debug/grcov -s . -t html --branch --ignore-not-existing --ignore "/*" -o coverage
to generate a HTML report (or you can also generate a textual one using the llvm tools); - See that src/llvm_tools.rs appears to be totally uncovered, while it should be covered.
Metadata
Metadata
Assignees
Labels
A-code-coverageArea: Source-based code coverage (-Cinstrument-coverage)Area: Source-based code coverage (-Cinstrument-coverage)C-bugCategory: This is a bug.Category: This is a bug.