-
Notifications
You must be signed in to change notification settings - Fork 6
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 test for compact.RangeNodes #32
Conversation
Requires https://pkg.go.dev/testing#F "added in go1.18", so would need to adjust CI |
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.
Nice one, thanks!
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.
This with the changes @AlCutter has done to put the new features behind a build flag so that we're still compatible with 1.17 looks very tasty to me. Good work, team.
I've added a couple of commits for discussion:
@hickford What do you think? |
Codecov Report
@@ Coverage Diff @@
## main #32 +/- ##
=======================================
Coverage 88.93% 88.93%
=======================================
Files 7 7
Lines 497 497
=======================================
Hits 442 442
Misses 50 50
Partials 5 5 Continue to review full report at Codecov.
|
@AlCutter LGTM |
Reading https://github.com/transparency-dev/merkle/blob/main/docs/compact_ranges.md I was inspired to write a simple fuzz test for compact.RangeNodes that checks the property "a compact range is the minimal set of perfect nodes that cover these, and only these, leaves"