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