This repo created for the LASCON '2023 conference talk shows simple APIs with automated tests including unit and fuzz tests.
The reverse service implementation is based on the Getting started with fuzzing tutorial.
You can compile the app using go build
.
Execute them using the standard go test
command.
For example, this command runs the reverse server fuzzing tests for 10 seconds
go test -v --skip Test -fuzz=FuzzReverseServer --fuzztime 10s
In reverseserver.go, change the Reverse
function to use Reverse_Buggy
.
The fuzzing tests will quickly find an issue.