-
Notifications
You must be signed in to change notification settings - Fork 377
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
Fuzz tests for StorePacking #1296
base: main
Are you sure you want to change the base?
Conversation
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! I just left a question
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.
Instead of having a separate file for these, what do you think about just moving the proposal core test into proposal_core/tests
and then make a local tests
mod in the multisig/storage_utils
file?
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.
Looking good! Left a small suggestion.
@@ -0,0 +1,38 @@ | |||
use crate::governor::ProposalCore; |
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.
We already have this file now in main, so we need to merge these tests into that.
proposer_val: felt252, | ||
vote_start: u64, | ||
vote_duration: u64, | ||
executed_val: u8, |
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.
We can implement Fuzzable for bool as described here with 0.38.0. Let's use that for our fuzz tests types (applies for other PRs as well)
Adds fuzz test cases for StorePacking logic of various structs:
TxInfo
andProposalCore
in governance package, andSecp256k1Point
andSecp256r1Point
in account package.