This allows to fuzzing of more interesting targets that require setup. Signed-off-by: Miek Gieben <miek@miek.nl>
13 lines
186 B
Go
13 lines
186 B
Go
// +build fuzz
|
|
|
|
package chaos
|
|
|
|
import (
|
|
"github.com/coredns/coredns/plugin/pkg/fuzz"
|
|
)
|
|
|
|
// Fuzz fuzzes cache.
|
|
func Fuzz(data []byte) int {
|
|
c := Chaos{}
|
|
return fuzz.Do(c, nil, data)
|
|
}
|