()
| 14 | ) |
| 15 | |
| 16 | func newFakeRegistryClient() *fakeRegistryClient { |
| 17 | return &fakeRegistryClient{ |
| 18 | getManifestFunc: func(_ context.Context, _ reference.Named) (manifesttypes.ImageManifest, error) { |
| 19 | return manifesttypes.ImageManifest{}, errors.New("unexpected error") |
| 20 | }, |
| 21 | getManifestListFunc: func(_ context.Context, _ reference.Named) ([]manifesttypes.ImageManifest, error) { |
| 22 | return nil, errors.New("unexpected error") |
| 23 | }, |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | func TestManifestPushErrors(t *testing.T) { |
| 28 | testCases := []struct { |
no outgoing calls
no test coverage detected
searching dependent graphs…