Closed
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.