You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
With 0.8.7:
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.
However, I have logged the results of the following require statement and both of the results are being checked.