Skip to content

Skip assertions #269

@nventuro

Description

@nventuro

In OpenZeppelin, we're considering dropping some of our asserts and changing them to require (see here for some relevant discussion), changing the semantics of assert to 'shouldn't ever fail unless the code is buggy'. Because of that, solidity-coverage will report a line with partial coverage on each assert.

Could the requirement of assert failure being covered be dropped, or an option added to disable it (maybe with a huge error flag if the assertion ended up failing)? We'd hate to have our coverage figure drop because of a semantics difference.

Thank you for your time and awesome work!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions