Fixes to Rust coverage by richkadel · Pull Request #79818 · rust-lang/rust · Git...
source link: https://github.com/rust-lang/rust/pull/79818
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Contributor
richkadel commented 12 days ago
Fixes: #79725
Some macros can create a situation where fn_sig_span
and body_span
map to different files.
New documentation on coverage tests incorrectly assumed multiple test
binaries could just be listed at the end of the llvm-cov
command,
but it turns out each binary needs a --object
prefix.
This PR fixes the bug and updates the documentation to correct that
issue. It also fixes a few other minor issues in internal implementation
comments, and adds documentation on getting coverage results for doc
tests.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK