MCPcopy Create free account
hub / github.com/containers/image / createImage

Function createImage

storage/storage_test.go:381–388  ·  view source on GitHub ↗
(t *testing.T, ref types.ImageReference, cache types.BlobInfoCache,
	layers []testBlob, config *testBlob)

Source from the content-addressed store, hash-verified

379}
380
381func createImage(t *testing.T, ref types.ImageReference, cache types.BlobInfoCache,
382 layers []testBlob, config *testBlob) {
383 dest, unparsedToplevel := createUncommittedImageDest(t, ref, cache, layers, config)
384 err := dest.Commit(context.Background(), unparsedToplevel)
385 require.NoError(t, err)
386 err = dest.Close()
387 require.NoError(t, err)
388}
389
390func TestWriteRead(t *testing.T) {
391 ensureTestCanCreateImages(t)

Callers 6

TestResolveReferenceFunction · 0.85
TestDuplicateNameFunction · 0.85
TestDuplicateIDFunction · 0.85
TestDuplicateNameIDFunction · 0.85
TestSizeFunction · 0.85
TestDuplicateBlobFunction · 0.85

Calls 3

CommitMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…