MCPcopy
hub / github.com/helm/helm / FuzzMetadataValidate

Function FuzzMetadataValidate

pkg/chart/v2/fuzz_test.go:24–35  ·  view source on GitHub ↗
(f *testing.F)

Source from the content-addressed store, hash-verified

22)
23
24func FuzzMetadataValidate(f *testing.F) {
25 f.Fuzz(func(t *testing.T, data []byte) {
26 fdp := fuzz.NewConsumer(data)
27 // Add random values to the metadata
28 md := &Metadata{}
29 err := fdp.GenerateStruct(md)
30 if err != nil {
31 t.Skip()
32 }
33 md.Validate()
34 })
35}
36
37func FuzzDependencyValidate(f *testing.F) {
38 f.Fuzz(func(t *testing.T, data []byte) {

Callers

nothing calls this directly

Calls 1

ValidateMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…