-
Notifications
You must be signed in to change notification settings - Fork 3.9k
feat: add OPCMv2 tests for existing behaviors #18389
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
base: develop
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #18389 +/- ##
===========================================
+ Coverage 75.31% 80.24% +4.93%
===========================================
Files 187 132 -55
Lines 11199 7168 -4031
===========================================
- Hits 8434 5752 -2682
+ Misses 2621 1416 -1205
+ Partials 144 0 -144
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
|
||
| /// @notice Tests that the constructor succeeds on mainnet when the test env flag is set. | ||
| /// @param _devFeatureBitmap The dev feature bitmap to use. | ||
| function testFuzz_constructor_devBitmapOnMainnetButTestEnv_succeeds(bytes32 _devFeatureBitmap) public { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: should we have this test for non-mainnet chains?
|
|
||
| /// @title OPContractsManagerContainer_IsDevFeatureEnabled_Test | ||
| /// @notice Tests the isDevFeatureEnabled() function. | ||
| contract OPContractsManagerContainer_IsDevFeatureEnabled_Test is OPContractsManagerContainer_TestInit { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a sanity check, this should always hold:
assertFalse(container.isDevFeatureEnabled(bytes32(0)));
|
|
||
| assertFalse(container.isDevFeatureEnabled(_feature)); | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe test for when multiple bits are set?
Description
This PR adds tests for AddGameType and UpdatePrestate behaviors in OPCMv2. It also adds tests for OPContractsManagerContainer (the new version).