nolint
(t *testing.T, ctx context.Context)
| 33 | |
| 34 | // nolint |
| 35 | func DockerClient(t *testing.T, ctx context.Context) *dockerfake.MockClient { |
| 36 | t.Helper() |
| 37 | |
| 38 | client, err := dockerutil.ExtractClient(ctx) |
| 39 | require.NoError(t, err) |
| 40 | //nolint we should panic if this isn't the case. |
| 41 | return client.(*dockerfake.MockClient) |
| 42 | } |
| 43 | |
| 44 | // New returns an instantiated Command as well as a context populated with mocked |
| 45 | // values for the command. All mock/fakes have been minimally configured to |