-
Notifications
You must be signed in to change notification settings - Fork 325
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
chore(ckbtc): property tests for event serialization and deserialization #3277
chore(ckbtc): property tests for event serialization and deserialization #3277
Conversation
8dc3152
to
28c7082
Compare
28c7082
to
d57b093
Compare
d57b093
to
73a2e65
Compare
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.
Just had the time for a brief review, but LGTM!
} | ||
|
||
fn txid() -> impl Strategy<Value = Txid> { | ||
pvec(any::<u8>(), 32).prop_map(|bytes| { |
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: Withuniform32(any::<u8>())
you directly obtain an array of the right size.
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.
Good point, thanks for the suggestion!
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! Thanks
(XC-238) Add property tests for the ckBTC event serialization/deserialization logic where events (both legacy and new) are arbitrarily generated from all possible event types. See this comment.