Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The coverage task should allow excludes (line and start/end) that grcov allows #7

Open
markeel opened this issue Jul 31, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@markeel
Copy link

markeel commented Jul 31, 2024

Suggestion / Feature Request

The coverage task can be enhanced to specify exclude expressions as arguments to the grcov command.

Include this as a feature so that people using the crate do not have the functionality change, unless they specifically enable it.

This would allow having markers to mark lines as never intending to have test code

pub fn do_something(data : SomeData) {
   if let Some(x) = data.x {
       // Normal code
   } else {
       panic!("This should never happen");  // GRCOV_EXCL_LINE
   }
}

Currently there is no --excl-line, --excl-start, or --excl-stop arguments to the grcov command line. This feature would add those arguments when doing coverage if the new feature is enabled.

@markeel markeel added the enhancement New feature or request label Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant