MCPcopy Index your code
hub / github.com/docker/docker-agent / testImage

Function testImage

pkg/remote/pull_test.go:401–408  ·  view source on GitHub ↗
(t *testing.T, contents string)

Source from the content-addressed store, hash-verified

399}
400
401func 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
410func TestPullRegistryNotFound(t *testing.T) {
411 t.Parallel()

Calls

no outgoing calls

Tested by

no test coverage detected