Skip to content
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

tests/fuzzers: move fuzzers into native packages #28467

Merged
merged 16 commits into from
Nov 14, 2023
Merged
Prev Previous commit
trie: lint nitpicks
  • Loading branch information
holiman committed Nov 9, 2023
commit 042f093410ba3ac199bb4a2b243ee01e419c95c1
1 change: 0 additions & 1 deletion trie/stacktrie_fuzzer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,5 +152,4 @@ func fuzz(data []byte, debugging bool) {
if checked != len(nodeset) {
panic("node number is not matched")
}
return
}
5 changes: 1 addition & 4 deletions trie/trie_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,10 +477,7 @@ func verifyAccessList(old *Trie, new *Trie, set *trienode.NodeSet) error {

// runRandTestBool coerces error to boolean, for use in quick.Check
func runRandTestBool(rt randTest) bool {
if runRandTest(rt) != nil {
return false
}
return true
return runRandTest(rt) == nil
}

func runRandTest(rt randTest) error {
Expand Down