Skip to content

Commit

Permalink
tests: simplify fuzzing code
Browse files Browse the repository at this point in the history
  • Loading branch information
SaveTheRbtz committed Mar 17, 2022
1 parent 7246c4e commit bc7536a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions reader_fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@ func FuzzReader(f *testing.F) {
return
}

if l > 1<<6 {
l = 1 << 6
}
buf1 := make([]byte, l)

n, err := r.Read(buf1)
if err != nil && err != io.EOF {
return
Expand Down Expand Up @@ -69,11 +65,7 @@ func FuzzReaderConst(f *testing.F) {
return
}

if l > 1<<6 {
l = 1 << 6
}
buf1 := make([]byte, l)

n, err := r.Read(buf1)
if err != nil && err != io.EOF {
return
Expand Down

0 comments on commit bc7536a

Please sign in to comment.