github.com/rawahars/moby@v24.0.4+incompatible/volume/mounts/fuzz_test.go (about)

     1  package mounts
     2  
     3  import (
     4  	"testing"
     5  )
     6  
     7  func FuzzParseLinux(f *testing.F) {
     8  	f.Fuzz(func(t *testing.T, data []byte) {
     9  		parser := NewLinuxParser()
    10  		if p, ok := parser.(*linuxParser); ok {
    11  			p.fi = mockFiProvider{}
    12  		}
    13  		_, _ = parser.ParseMountRaw(string(data), "local")
    14  	})
    15  }