From 6586db782ea6dcb5f2eb191a690ec7e7df51161f Mon Sep 17 00:00:00 2001 From: tjpcc Date: Tue, 17 Jan 2023 16:41:04 -0700 Subject: Updates * update README * move "gemtext" to within "gemini" --- gemini/gemtext/fuzz_test.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 gemini/gemtext/fuzz_test.go (limited to 'gemini/gemtext/fuzz_test.go') 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()) + } + }) +} -- cgit v1.2.3