Skip to content

Commit

Permalink
turn on debugFuzz on debugfuzz build tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusz834 committed Jul 30, 2023
1 parent a381d6f commit 249883e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 0 additions & 2 deletions builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -570,8 +570,6 @@ func testRemoveLastlyCompressedName(msg []byte, compression map[string]uint16, h
}
}

const debugFuzz = false

func FuzzAppendName(f *testing.F) {
f.Fuzz(func(t *testing.T, rand []byte) {
names := randStringNames(rand)
Expand Down
5 changes: 5 additions & 0 deletions debugfuzz.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//go:build debugfuzz

package dnsmsg

const debugFuzz = true
5 changes: 5 additions & 0 deletions nodebugfuzz.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//go:build !debugfuzz

package dnsmsg

const debugFuzz = false

0 comments on commit 249883e

Please sign in to comment.