diff options
Diffstat (limited to 'plugin/pkg/fuzz/setup.go')
-rw-r--r-- | plugin/pkg/fuzz/setup.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugin/pkg/fuzz/setup.go b/plugin/pkg/fuzz/setup.go new file mode 100644 index 000000000..7c44b0ef3 --- /dev/null +++ b/plugin/pkg/fuzz/setup.go @@ -0,0 +1,10 @@ +package fuzz + +// SetupFunc can be given to Do to perform a one time setup of the fuzzing +// environment. This function is called on every fuzz, it is your +// responsibility to make it idempotent. If SetupFunc returns an error, panic +// is called with that error. +// +// There isn't a ShutdownFunc, because fuzzing is supposed to be run for a long +// time and there isn't any hook to call it from. +type SetupFunc func() error |