summaryrefslogtreecommitdiff
path: root/gemtext/fuzz_test.go
blob: dce0587c387cd9099f0646f3406a0845e50513ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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())
		}
	})
}