moby/volume/mounts/fuzz_test.go
AdamKorcz 93fa093122
testing: move fuzzers over from OSS-Fuzz
Signed-off-by: AdamKorcz <adam@adalogics.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-11-30 17:31:03 +01:00

15 lines
278 B
Go

package mounts
import (
"testing"
)
func FuzzParseLinux(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
parser := NewLinuxParser()
if p, ok := parser.(*linuxParser); ok {
p.fi = mockFiProvider{}
}
_, _ = parser.ParseMountRaw(string(data), "local")
})
}