MCPcopy
hub / github.com/go-git/go-git / FuzzParser

Function FuzzParser

internal/revision/parser_test.go:402–416  ·  view source on GitHub ↗
(f *testing.F)

Source from the content-addressed store, hash-verified

400}
401
402func FuzzParser(f *testing.F) {
403 f.Add("@{2016-12-16T21:42:47Z}")
404 f.Add("@~3")
405 f.Add("v0.99.8^{}")
406 f.Add("master:./README")
407 f.Add("HEAD^{/fix nasty bug}")
408 f.Add("HEAD^{/[A-")
409 f.Add(":/fix nasty bug")
410 f.Add(":/[A-")
411
412 f.Fuzz(func(t *testing.T, input string) {
413 parser := NewParser(bytes.NewBufferString(input))
414 parser.Parse()
415 })
416}

Callers

nothing calls this directly

Calls 3

ParseMethod · 0.95
NewParserFunction · 0.70
AddMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…