(id string, applier diff.Applier, err error, supported ...ocispec.Platform)
| 171 | } |
| 172 | |
| 173 | func 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 | |
| 184 | type testApplier struct { |
| 185 | diff.Applier |
no outgoing calls
no test coverage detected
searching dependent graphs…