Closed elinorbgr closed 2 years ago
So I tried this in an example project and added the example snippet you added to the source_analysis tests to see if it failed but it showed all the lines as marked to ignore. Do you have a public project I can check against?
Sure, this is triggered on my calloop
project, for example all those implementations are reported as uncovered on the codecov report :
Well just ran tarpaulin on it with --ignore-tests --all-features
like in your CI and they weren't marked as covered. Potentially this is something already fixed but I forgot doing or maybe you're on an outdated tarpaulin version?
Below image is a screenshot from the Html report showing the lines marked as uncoverable
Ah, indeed, that report was generated using tarpaulin 0.18.5, I suppose this has been fixed since then. Sorry for the noise!
Consider this code extracted from one of my projects:
In the coverage report, the
fmt
method is marked as uncovered, which is not expected given the#[cfg(not(tarpaulin_include))]
annotation.