diff options
Diffstat (limited to 'gemini/gemtext/fuzz_test.go')
-rw-r--r-- | gemini/gemtext/fuzz_test.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gemini/gemtext/fuzz_test.go b/gemini/gemtext/fuzz_test.go new file mode 100644 index 0000000..f5435c1 --- /dev/null +++ b/gemini/gemtext/fuzz_test.go @@ -0,0 +1,16 @@ +package gemtext_test + +import ( + "bytes" + "testing" + + "tildegit.org/tjp/gus/gemini/gemtext" +) + +func FuzzParse(f *testing.F) { + f.Fuzz(func(t *testing.T, input []byte) { + if _, err := gemtext.Parse(bytes.NewBuffer(input)); err != nil { + t.Errorf("Parse error: %s", err.Error()) + } + }) +} |