Go 1 · Testing and profiling

Fuzz a function

Run a fuzz test for 30 seconds to look for inputs that make it fail.

go test -fuzz=FuzzParse -fuzztime=30s

Official Go 1 documentation

More testing and profiling commands

All testing and profiling commands · Go 1 cheatsheet

Was this page helpful?