MCPcopy
hub / github.com/containerd/containerd / removeContainerFuzz

Function removeContainerFuzz

contrib/fuzz/cri_server_fuzz_test.go:197–207  ·  view source on GitHub ↗

removeContainerFuzz creates a RemoveContainerRequest and passes it to c.RemoveContainer

(c fuzzCRIService, f *fuzz.ConsumeFuzzer)

Source from the content-addressed store, hash-verified

195// removeContainerFuzz creates a RemoveContainerRequest and passes
196// it to c.RemoveContainer
197func removeContainerFuzz(c fuzzCRIService, f *fuzz.ConsumeFuzzer) error {
198 r := &runtime.RemoveContainerRequest{}
199 err := f.GenerateStruct(r)
200 if err != nil {
201 return err
202 }
203 _, _ = c.RemoveContainer(context.Background(), r)
204 reqString := fmt.Sprintf("%+v", r)
205 logExecution("c.RemoveContainer", reqString)
206 return nil
207}
208
209// listContainersFuzz creates a ListContainersRequest and passes
210// it to c.ListContainers

Callers

nothing calls this directly

Calls 2

logExecutionFunction · 0.85
RemoveContainerMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…