about summary refs log tree commit diff
path: root/src/test/run-make-fulldeps/coverage/async2.rs
AgeCommit message (Collapse)AuthorLines
2022-07-28Move coverage tests from run-make-fulldeps to run-makeTomasz Miąsko-69/+0
2021-05-06Removes unneeded check of `#[no_coverage]` in mapgenRich Kadel-6/+6
And adds tests to validate it still works. There is an anticipated feature request to support a compiler flag that only adds coverage for specific files (or perhaps mods). As I thought about where that change would need to be supported, I realized that checking the attribute in mapgen (for unused functions) was unnecessary. The unused functions are only synthesized if they have MIR coverage, and functions with the `no_coverage` attribute will not have been instrumented with MIR coverage statements in the first place. New tests confirm this. Also, while adding tests, I updated resolved comments and FIXMEs in other tests.
2021-04-18Fixes the issue with uncovered source in async function bodiesRich Kadel-9/+0
The body_span was assumed to be in the Span root context, but this was not the case for async function bodies.
2021-04-18DRAFT: coverage of async function bodies should match non-asyncRich Kadel-0/+78
The initial commit demonstrates the issue, but the fix is not yet implemented. Once corrected... Fixes: #83985