diff --git a/internal/analyze_test.go b/internal/analyze_test.go new file mode 100644 index 0000000000..aa5c27b1f5 --- /dev/null +++ b/internal/analyze_test.go @@ -0,0 +1,19 @@ +package internal + +import ( + "bytes" + "github.com/stretchr/testify/require" + "testing" +) + +func FuzzAnalyze(f *testing.F) { + f.Fuzz(func(t *testing.T, name string, data []byte) { + require.NotPanics(t, func() { + reader := bytes.NewReader(data) + _, err := Analyze(name, reader, uint64(len(data)), Options{}) + if err != nil { + t.Logf("Error: %v", err) + } + }) + }) +}