-
-
Notifications
You must be signed in to change notification settings - Fork 66
Closed
Labels
C-upstream-bugCategory: This is a bug of compiler or dependencies (the fix may require action in the upstream)Category: This is a bug of compiler or dependencies (the fix may require action in the upstream)
Description
Rusts assert macros have a custom message you can add which show up as missed lines in the coverage.
(I searched through issues and didn't find any previous mention, if I missed it feel free to close this.)
Now I don't think they should show up in the coverage at all and the entire test module should be ignored for coverage? Perhaps there are other views on this?
The docs talk about ignoring code via the [#[coverage(off)]
attribute][rust-lang/rust#84605] attribute. I would have to include this for every test block. Perhaps tests should be ignored by default?

Metadata
Metadata
Assignees
Labels
C-upstream-bugCategory: This is a bug of compiler or dependencies (the fix may require action in the upstream)Category: This is a bug of compiler or dependencies (the fix may require action in the upstream)