Debian Codegraph @

tests/README.md

raw
1 # Fuzzing parse
2
3 Fuzz testing for `parse` using [go-fuzz](https://github.com/dvyukov/go-fuzz). Pull requests to add more corpora or testers are appreciated.
4
5 To run the tests, install `go-fuzz`:
6
7 ```
8 go get -u github.com/dvyukov/go-fuzz/go-fuzz github.com/dvyukov/go-fuzz/go-fuzz-build
9
10 cd $GOPATH/github.com/tdewolff/parse/tests/number
11
12 go-fuzz-build
13 go-fuzz -bin fuzz-fuzz.zip
14 ```
15
16 If restarts is not close to `1/10000`, something is probably wrong. If not finding new corpus for a while, restart the fuzzer.