Files
Billy Keyes 265161e7a0 Checkpoint go-fuzz testing
I'm not sure yet if this should remain committed in the repository, but
need to checkpoint progress so far so I can resume on another computer.
2021-09-11 16:54:31 -04:00

16 lines
180 B
Go

//go:build gofuzz
package gitdiff
import (
"bytes"
)
func Fuzz(data []byte) int {
r := bytes.NewReader(data)
if _, _, err := Parse(r); err != nil {
return 0
}
return 1
}