tarpaulin icon indicating copy to clipboard operation
tarpaulin copied to clipboard

Function declaration marked as uncovered where body is covered

Open kemitix opened this issue 10 months ago • 1 comments

Coverage for the line with the function declaration is not included while the body is: image

Function is an implementation from a Trait:

impl<N: NetworkEnv> TasynRepository<N> for TrelloRepository {

This is only happening on one function. All others show full coverage as expected.

  • uname -a: Linux dagon 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.38-2 (2023-07-27) x86_64 GNU/Linux
  • rustc --version rustc 1.73.0 (cc66ad468 2023-10-03)
cargo tarpaulin --tests --line --workspace --engine LLvm --out HTML \
  --output-dir ./target/coverage --skip-clean --fail-under 89

Expected behavior

I would expect the line with the function name, parameters and return type to be recorded as covered where the function body is covered.

kemitix avatar Oct 21 '23 13:10 kemitix

possible duplicate of #1192?

thetayloredman avatar Dec 06 '23 22:12 thetayloredman