Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} { return []interface{}{ func(r *resource.DeviceRequest, c fuzz.Continue) { c.FuzzNoCustom(r) if r.AllocationMode == "" { r.AllocationMode = []resource.DeviceAllocationMode{ resource.DeviceAllocationModeAll, resource.DeviceAllocationModeExactCount, }[c.Int31n(2)] } }, func(r *resource.DeviceAllocationConfiguration, c fuzz.Continue) { c.FuzzNoCustom(r) if r.Source == "" { r.Source = []resource.AllocationConfigSource{ resource.AllocationConfigSourceClass, resource.AllocationConfigSourceClaim, }[c.Int31n(2)] } }, func(r *resource.OpaqueDeviceConfiguration, c fuzz.Continue) { c.FuzzNoCustom(r) r.Parameters = runtime.RawExtension{Raw: []byte(`{"apiVersion":"unknown.group/unknown","kind":"Something","someKey":"someValue"}`)} }, } }
Funcs contains the fuzzer functions for the resource group.
Leaving fields empty which then get replaced by the default leads to errors during roundtrip tests.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.