1
0
mirror of https://github.com/jstemmer/go-junit-report.git synced 2025-04-10 07:38:08 -05:00

19 lines
339 B
Go

//go:build go1.18
// +build go1.18
package gotest
import "testing"
func FuzzParseLine(f *testing.F) {
for _, test := range parseLineTests {
f.Add(test.input)
}
f.Fuzz(func(t *testing.T, in string) {
events := NewParser().parseLine(in)
if len(events) == 0 {
t.Fatalf("parseLine(%q) did not return any results", in)
}
})
}