MCPcopy
hub / github.com/containerd/containerd / listContainersFuzz

Function listContainersFuzz

contrib/fuzz/cri_server_fuzz_test.go:211–221  ·  view source on GitHub ↗

listContainersFuzz creates a ListContainersRequest and passes it to c.ListContainers

(c fuzzCRIService, f *fuzz.ConsumeFuzzer)

Source from the content-addressed store, hash-verified

209// listContainersFuzz creates a ListContainersRequest and passes
210// it to c.ListContainers
211func listContainersFuzz(c fuzzCRIService, f *fuzz.ConsumeFuzzer) error {
212 r := &runtime.ListContainersRequest{}
213 err := f.GenerateStruct(r)
214 if err != nil {
215 return err
216 }
217 _, _ = c.ListContainers(context.Background(), r)
218 reqString := fmt.Sprintf("%+v", r)
219 logExecution("c.ListContainers", reqString)
220 return nil
221}
222
223// startContainerFuzz creates a StartContainerRequest and passes
224// it to c.StartContainer

Callers

nothing calls this directly

Calls 2

logExecutionFunction · 0.85
ListContainersMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…