From: Mathias Gibbens Description: Don't run fuzz tests -- saves some buildd cycles and simplifies the package dependencies Forwarded: not-needed diff --git a/fuzz_test.go b/fuzz_test.go deleted file mode 100644 index 1506ce0..0000000 --- a/fuzz_test.go +++ /dev/null @@ -1,32 +0,0 @@ -package archive - -import ( - "bytes" - "testing" - - fuzz "github.com/AdaLogics/go-fuzz-headers" -) - -func FuzzUntar(f *testing.F) { - f.Fuzz(func(t *testing.T, data []byte) { - ff := fuzz.NewConsumer(data) - tarBytes, err := ff.TarBytes() - if err != nil { - return - } - options := &TarOptions{} - err = ff.GenerateStruct(options) - if err != nil { - return - } - tmpDir := t.TempDir() - _ = Untar(bytes.NewReader(tarBytes), tmpDir, options) - }) -} - -func FuzzApplyLayer(f *testing.F) { - f.Fuzz(func(t *testing.T, data []byte) { - tmpDir := t.TempDir() - _, _ = ApplyLayer(tmpDir, bytes.NewReader(data)) - }) -}