(t *testing.T, contents string)
| 399 | } |
| 400 | |
| 401 | func testImage(t *testing.T, contents string) v1.Image { |
| 402 | t.Helper() |
| 403 | |
| 404 | layer := static.NewLayer([]byte(contents), types.OCIUncompressedLayer) |
| 405 | img, err := mutate.AppendLayers(empty.Image, layer) |
| 406 | require.NoError(t, err) |
| 407 | return img |
| 408 | } |
| 409 | |
| 410 | func TestPullRegistryNotFound(t *testing.T) { |
| 411 | t.Parallel() |
no outgoing calls
no test coverage detected