-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
cannon: Clean up fuzz test todos #12009
cannon: Clean up fuzz test todos #12009
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #12009 +/- ##
===========================================
- Coverage 79.20% 78.87% -0.33%
===========================================
Files 41 41
Lines 3414 3437 +23
===========================================
+ Hits 2704 2711 +7
- Misses 541 557 +16
Partials 169 169
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
LGTM. The hint expectations is a bit tricky to setup. But honestly couldn't figure out a better a way to simplify it.
Yeah, that test is kind of gnarly, but at least now we're testing some more varied behavior. Before we were just processing random data, so we would mostly never process any hints because the hint length prefix was some huge random number. |
29dd98b
* cannon: Add memory assertions to FuzzStatePreimageRead * cannon: Rework hint write fuzz test to assert hint expectations * cannon: Update FuzzStatePreimageWrite to assert on expected preimageKey * cannon: Remove validation skipping logic from test util * cannon: Cleanup - simplify code * cannon: Cleanup - dedupe code
Description
Clean-up some deferred todos from
fuzz_evm_common_test.go
. Remove special cases that skip a few types of validation and add assertions for all fields.Also includes some small changes to test helpers:
Metadata
Fixes #11651