apimachineryk8s.io/apimachinery/pkg/api/apitesting/fuzzer Index | Files

package fuzzer

import "k8s.io/apimachinery/pkg/api/apitesting/fuzzer"

Index

Functions

func FuzzerFor

func FuzzerFor(funcs FuzzerFuncs, src rand.Source, codecs runtimeserializer.CodecFactory) *randfill.Filler

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

func NormalizeJSONRawExtension

func NormalizeJSONRawExtension(ext *runtime.RawExtension)

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.

Types

type FuzzerFuncs

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

FuzzerFuncs returns a list of func(*SomeType, c randfill.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.

Source Files

fuzzer.go valuefuzz.go

Version
v0.33.0 (latest)
Published
Apr 11, 2025
Platform
linux/amd64
Imports
8 packages
Last checked
2 hours ago

Tools for package owners.