Fuzzing Tests in Go

Fuzzing is a technique where you automagically generate input values for your functions to find bugs

Percy Bolmér
Towards Data Science
6 min readJan 31, 2022

--

Fuzzing in Go, allows us to test randomly generated input to a function. Image by Percy Bolmér. Gopher by Takuya Ueda, Original Go Gopher by Renée French (CC BY 3.0)

Fuzzing is being released as part of the standard library in Go 1.18. It is a pretty cool way of locating bugs in your code that you never thought of. I know many bugs have been found in the standard library in Go by people using third-party fuzzers.

--

--