Back to godoc.org
k8s.io/kubernetes/staging/src/k8s.io/apimachinery/pkg/api/apitesting/fuzzer

package fuzzer

v1.14.10
Latest Go to latest
Published: Dec 11, 2019 | Licenses: Apache-2.0, Apache-2.0 | Module: k8s.io/kubernetes

Index

func FuzzerFor

func FuzzerFor(funcs FuzzerFuncs, src rand.Source, codecs runtimeserializer.CodecFactory) *fuzz.Fuzzer

FuzzerFor can randomly populate api objects that are destined for version.

func ValueFuzz

func ValueFuzz(obj interface{})

ValueFuzz recursively changes all basic type values in an object. Any kind of references will not be touch, i.e. the addresses of slices, maps, pointers will stay unchanged.

type FuzzerFuncs

type FuzzerFuncs func(codecs runtimeserializer.CodecFactory) []interface{}

FuzzerFuncs returns a list of func(*SomeType, c fuzz.Continue) functions.

func MergeFuzzerFuncs

func MergeFuzzerFuncs(funcs ...FuzzerFuncs) FuzzerFuncs

MergeFuzzerFuncs will merge the given funcLists, overriding early funcs with later ones if there first argument has the same type.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier