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

@@ -44,6 +44,10 @@ func TestLPCMDecEncoder(t *testing.T) {
func FuzzUnmarshalLPCM(f *testing.F) {
f.Fuzz(func(_ *testing.T, a string) {
Unmarshal("audio", 96, "L16/"+a, nil) //nolint:errcheck
fo, err := Unmarshal("audio", 96, "L16/"+a, nil)
if err == nil {
fo.RTPMap()
fo.FMTP()
}
})
}