Skip to content

Commit

Permalink
Added generated seeds for FuzzRangeNodes (#35)
Browse files Browse the repository at this point in the history
Reading and extrapolating from https://go.dev/doc/fuzz/, the Fuzz test will only be fully exercized when a single Fuzz test is run explicitly with the -fuzz parameter to go test. When running go test without this, the Fuzz test will be invoked, but only on the seed corpus. As FuzzRangeNodes did not have a seed corpus, then this test is effectively skipped in our presubmits and CI pipeline.

This change adds the generated corpus from running the fuzz test as the seed corpus. This shouldn't change how well the test is covered when the -fuzz parameter is provided, but does mean that the test will be exercised as part of CI. This seems like a win, but maybe it's bonkers to be submitting generated files?
  • Loading branch information
mhutchinson authored Jul 25, 2022
1 parent 30e96ff commit 52891d8
Show file tree
Hide file tree
Showing 19 changed files with 57 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
go test fuzz v1
uint64(1)
uint64(6)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
go test fuzz v1
uint64(60)
uint64(68)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
go test fuzz v1
uint64(97)
uint64(511)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
go test fuzz v1
uint64(0)
uint64(75)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
go test fuzz v1
uint64(63)
uint64(110)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
go test fuzz v1
uint64(34)
uint64(221)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
go test fuzz v1
uint64(0)
uint64(52)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
go test fuzz v1
uint64(3)
uint64(3)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
go test fuzz v1
uint64(5)
uint64(507)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
go test fuzz v1
uint64(71)
uint64(0)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
go test fuzz v1
uint64(81)
uint64(82)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
go test fuzz v1
uint64(179)
uint64(255)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
go test fuzz v1
uint64(1)
uint64(767)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
go test fuzz v1
uint64(1)
uint64(511)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
go test fuzz v1
uint64(1)
uint64(311)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
go test fuzz v1
uint64(71)
uint64(95)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
go test fuzz v1
uint64(0)
uint64(3)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
go test fuzz v1
uint64(13)
uint64(79)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
go test fuzz v1
uint64(13)
uint64(351)

0 comments on commit 52891d8

Please sign in to comment.