MCPcopy
hub / github.com/containerd/containerd / newTestDiffPlugin

Function newTestDiffPlugin

plugins/transfer/plugin_test.go:173–182  ·  view source on GitHub ↗
(id string, applier diff.Applier, err error, supported ...ocispec.Platform)

Source from the content-addressed store, hash-verified

171}
172
173func newTestDiffPlugin(id string, applier diff.Applier, err error, supported ...ocispec.Platform) *plugin.Registration {
174 return &plugin.Registration{
175 Type: plugins.DiffPlugin,
176 ID: id,
177 InitFn: func(ic *plugin.InitContext) (any, error) {
178 ic.Meta.Platforms = append(ic.Meta.Platforms, supported...)
179 return applier, err
180 },
181 }
182}
183
184type testApplier struct {
185 diff.Applier

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…