8000 minify/tests/README.md at test · nhminh9191/minify · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 512 Bytes

README.md

File metadata and controls

16 lines (10 loc) · 512 Bytes

Fuzzing minify

Fuzz testing for minify using go-fuzz. Pull requests to add more corpora or testers are appreciated.

To run the tests, install go-fuzz:

go get -u github.com/dvyukov/go-fuzz/go-fuzz github.com/dvyukov/go-fuzz/go-fuzz-build

cd $GOPATH/github.com/tdewolff/minify/tests/html

go-fuzz-build
go-fuzz -bin fuzz-fuzz.zip

If restarts is not close to 1/10000, something is probably wrong. If not finding new corpus for a while, restart the fuzzer.

0