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

Possible to exclude functions matching a pattern for name #1184

Open
andrewdavidmackenzie opened this issue Jun 14, 2024 · 2 comments
Open

Comments

@andrewdavidmackenzie
Copy link

I would like to exclude all the rust implementations of Default trait (default() function) from my coverage.

I notice that lcov has a --erase-functions option, and I wondered if there was any way to achieve the same with grcov.

thanks

@marco-c
Copy link
Collaborator

marco-c commented Sep 24, 2024

@andrewdavidmackenzie we have a few options such as --excl-br-line, --excl-br-start and --excl-br-stop which should allow you to achieve the same.

@andrewdavidmackenzie
Copy link
Author

I'm not sure what combination of those I could use to achieve the same effect?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants