Skip to content

Branch coverage decreases after upgrading to 0.8.7 #863

Closed
@mariogutval

Description

@mariogutval

After upgrading solidity-coverage dependency from 0.8.6 to 0.8.7, my branch coverage percentage decreased from 100% to 91.67%.

With 0.8.6:
image

With 0.8.7:
image

Apparently, the issue is related to the onlyOwner modifier from OpenZeppelin's Ownable.sol contract. According to the coverage report, the else branch is not being covered.

image

However, I have logged the results of the following require statement and both of the results are being checked.

image

image

The smart contract code has not been modified.

Any thoughts on this?

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