Coverage including comments with no prior newline #1308
Unanswered
kierankasha
asked this question in
Q&A
Replies: 2 comments
-
The best way to fix it is in tarpaulin, so I'll have a look at doing this as soon as I'm able (it'll be in the |
Beta Was this translation helpful? Give feedback.
0 replies
-
So I've got a PR open for this that looks like it solves it in my test case #1318 you can try this if you have time. But single line comment filtering was definitely an issue and is now resolved in this so I'm fairly confident it will be solved as a result. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed a little bug in a small crate (~100 lines) I'm working on. Comments without a newline before them are getting counted towards coverage. Adding a newline gave me +2.88% coverage. This is the command used:
cargo tarpaulin -v --release --engine ptrace --all-features --out html
This is an excerpt from the html report showing with and without the newline:


Any ideas for how to resolve this without having to add newlines everywhere?
Mentioned in #351
Beta Was this translation helpful? Give feedback.
All reactions