MCPcopy
hub / github.com/containerd/containerd / listContainerStatsFuzz

Function listContainerStatsFuzz

contrib/fuzz/cri_server_fuzz_test.go:253–263  ·  view source on GitHub ↗

listContainerStatsFuzz creates a ListContainerStatsRequest and passes it to c.ListContainerStats

(c fuzzCRIService, f *fuzz.ConsumeFuzzer)

Source from the content-addressed store, hash-verified

251// listContainerStatsFuzz creates a ListContainerStatsRequest and
252// passes it to c.ListContainerStats
253func listContainerStatsFuzz(c fuzzCRIService, f *fuzz.ConsumeFuzzer) error {
254 r := &runtime.ListContainerStatsRequest{}
255 err := f.GenerateStruct(r)
256 if err != nil {
257 return err
258 }
259 _, _ = c.ListContainerStats(context.Background(), r)
260 reqString := fmt.Sprintf("%+v", r)
261 logExecution("c.ListContainerStats", reqString)
262 return nil
263}
264
265// containerStatusFuzz creates a ContainerStatusRequest and passes
266// it to c.ContainerStatus

Callers

nothing calls this directly

Calls 2

logExecutionFunction · 0.85
ListContainerStatsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…