MCPcopy
hub / github.com/containerd/containerd / removePodSandboxFuzz

Function removePodSandboxFuzz

contrib/fuzz/cri_server_fuzz_test.go:393–403  ·  view source on GitHub ↗

removePodSandboxFuzz creates a RemovePodSandboxRequest and passes it to c.RemovePodSandbox

(c fuzzCRIService, f *fuzz.ConsumeFuzzer)

Source from the content-addressed store, hash-verified

391// removePodSandboxFuzz creates a RemovePodSandboxRequest and
392// passes it to c.RemovePodSandbox
393func removePodSandboxFuzz(c fuzzCRIService, f *fuzz.ConsumeFuzzer) error {
394 r := &runtime.RemovePodSandboxRequest{}
395 err := f.GenerateStruct(r)
396 if err != nil {
397 return err
398 }
399 _, _ = c.RemovePodSandbox(context.Background(), r)
400 reqString := fmt.Sprintf("%+v", r)
401 logExecution("c.RemovePodSandbox", reqString)
402 return nil
403}
404
405// runPodSandboxFuzz creates a RunPodSandboxRequest and passes
406// it to c.RunPodSandbox

Callers

nothing calls this directly

Calls 2

logExecutionFunction · 0.85
RemovePodSandboxMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…