fuzzing: allow setup function to be called (#3175)

This allows to fuzzing of more interesting targets that require setup.

Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
Miek Gieben
2019-08-24 18:13:47 +00:00
committed by GitHub
parent 59e74eb15d
commit 62451fd3eb
7 changed files with 21 additions and 6 deletions

View File

@@ -8,5 +8,5 @@ import (
// Fuzz fuzzes cache.
func Fuzz(data []byte) int {
return fuzz.Do(New(), data)
return fuzz.Do(New(), nil, data)
}