aboutsummaryrefslogtreecommitdiffstats
path: root/internal/revision/parser_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/revision/parser_test.go')
-rw-r--r--internal/revision/parser_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/revision/parser_test.go b/internal/revision/parser_test.go
index 3a77b2f..1eb3861 100644
--- a/internal/revision/parser_test.go
+++ b/internal/revision/parser_test.go
@@ -3,6 +3,7 @@ package revision
import (
"bytes"
"regexp"
+ "testing"
"time"
. "gopkg.in/check.v1"
@@ -397,3 +398,11 @@ func (s *ParserSuite) TestParseRefWithInvalidName(c *C) {
c.Assert(err, DeepEquals, e)
}
}
+
+func FuzzParser(f *testing.F) {
+
+ f.Fuzz(func(t *testing.T, input string) {
+ parser := NewParser(bytes.NewBufferString(input))
+ parser.Parse()
+ })
+}