improve fuzz tests (#592)

This commit is contained in:
Alessandro Ros
2024-08-01 16:33:04 +02:00
committed by GitHub
parent e2d1e6dab4
commit 92cf812d01
30 changed files with 144 additions and 41 deletions

View File

@@ -130,7 +130,10 @@ func FuzzAuthorizationUnmarshal(f *testing.F) {
f.Fuzz(func(_ *testing.T, b string) {
var h Authorization
h.Unmarshal(base.HeaderValue{b}) //nolint:errcheck
err := h.Unmarshal(base.HeaderValue{b})
if err == nil {
h.Marshal()
}
})
}