improve fuzz tests (#571)

This commit is contained in:
Alessandro Ros
2024-05-17 19:19:15 +02:00
committed by GitHub
parent f283abc2e7
commit ef60c8c755
20 changed files with 250 additions and 234 deletions

View File

@@ -126,6 +126,10 @@ func TestHeaderWrite(t *testing.T) {
}
func FuzzHeaderUnmarshal(f *testing.F) {
for _, ca := range cases {
f.Add(ca.enc)
}
str := ""
for i := 0; i < 300; i++ {
str += "Key: val\r\n"