summaryrefslogtreecommitdiff
path: root/gemtext/fuzz_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'gemtext/fuzz_test.go')
-rw-r--r--gemtext/fuzz_test.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/gemtext/fuzz_test.go b/gemtext/fuzz_test.go
new file mode 100644
index 0000000..dce0587
--- /dev/null
+++ b/gemtext/fuzz_test.go
@@ -0,0 +1,16 @@
+package gemtext_test
+
+import (
+ "bytes"
+ "testing"
+
+ "tildegit.org/tjp/gus/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())
+ }
+ })
+}