MCPcopy
hub / github.com/containerd/containerd / stopContainerFuzz

Function stopContainerFuzz

contrib/fuzz/cri_server_fuzz_test.go:281–291  ·  view source on GitHub ↗

stopContainerFuzz creates a StopContainerRequest and passes it to c.StopContainer

(c fuzzCRIService, f *fuzz.ConsumeFuzzer)

Source from the content-addressed store, hash-verified

279// stopContainerFuzz creates a StopContainerRequest and passes
280// it to c.StopContainer
281func stopContainerFuzz(c fuzzCRIService, f *fuzz.ConsumeFuzzer) error {
282 r := &runtime.StopContainerRequest{}
283 err := f.GenerateStruct(r)
284 if err != nil {
285 return err
286 }
287 _, _ = c.StopContainer(context.Background(), r)
288 reqString := fmt.Sprintf("%+v", r)
289 logExecution("c.StopContainer", reqString)
290 return nil
291}
292
293// updateContainerResourcesFuzz creates a UpdateContainerResourcesRequest
294// and passes it to c.UpdateContainerResources

Callers

nothing calls this directly

Calls 2

logExecutionFunction · 0.85
StopContainerMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…