Bump solidity-coverage from 0.7.21 to 0.8.2
Bumps solidity-coverage from 0.7.21 to 0.8.2.
Release notes
Sourced from solidity-coverage's releases.
0.8.2
What's Changed
- Set web3-utils dep to ^1.3.6 by
@MarkuSchickin sc-forks/solidity-coverage#744New Contributors
@MarkuSchickmade their first contribution in sc-forks/solidity-coverage#744Full Changelog: https://github.com/sc-forks/solidity-coverage/compare/v0.8.1...v0.8.2
0.8.1
What's Changed
- Bug fix: restore missing web3-utils dependency by
@cgeweckein sc-forks/solidity-coverage#743Full Changelog: https://github.com/sc-forks/solidity-coverage/compare/v0.8.0...v0.8.1
0.8.0
Hi!
⚠️ This version requires Hardhat >= 2.11.0 (Ethereum Merge)
New Features
A central focus of the 0.8.0 release is improving the coverage tool's branch detection.
Beginning with this version the following syntax is measured as a branch:
OR conditions
When a logical expression is composed with the
||operator, both sides can be considered branches. To test the entire expressionif (a == 1 || a == 2)...
amust equal 1, 2 and neither of those values. (Thanks to Gnosis engineer@rmeissnerfor proposing this in #175)
Ternary Conditionals
Long ago, when Solidity was 0.4, solidity-coverage treated ternary conditionals like regular if/else statements. Some language improvements v0.5 subsequently made this impossible. Now it's back...
Modifier Invocations
Solidity-coverage already covers the code within modifier definitions. However, each modifier invocation at the function level should really be considered its own branch. Some of the most critical logic in Solidity contracts is handled this way (ex:
onlyOwner). Testing the pass/fail cases for each occurrence of these gates protects you from accidentally removing them during a refactor.Because it's possible to write a modifier which performs a preparatory task and never reverts, there's a new option (
modifierWhitelist) which allows you to exclude specific modifiers from branch measurement.
... (truncated)
Changelog
Sourced from solidity-coverage's changelog.
Changelog
0.8.1 / 2022-09-06
- Restore web3-utils (sc-forks/solidity-coverage#743)
0.8.0 / 2022-09-05
- See release notes at: https://github.com/sc-forks/solidity-coverage/releases/tag/v0.8.0
Commits
- See full diff in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

