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

Add configures to exclude certain lines or functions in contracts #767

Closed
gusye1234 opened this issue Nov 6, 2022 · 3 comments
Closed

Comments

@gusye1234
Copy link

Hi,
I'm wondering if solidity-coverage supports to exclude the code in solidity, like this feature supported in coverage for Python. So that I can do something like below:

// @skip coverage
function _beforeAddEventMinter(uint256 eventId, address account)
        internal
        virtual
    {}

to skip the coverage test for function _beforeAddEventMinter.

I didn't found the answer on the docs of solidity-coverage

@dileepfrog
Copy link

dileepfrog commented Mar 15, 2023

Looks like there is already a ticket for this

@luiztools
Copy link

It would be great, I'm struggling with this.

@cgewecke
Copy link
Member

Will track this feature at #729

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

4 participants