summaryrefslogtreecommitdiff
path: root/gemini/gemtext/fuzz_test.go
blob: f8d7e2871931ed8156aa45fad9e299cf16c4c56a (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/sliderule/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())
		}
	})
}