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

Function createImageSource

oci/layout/oci_src_test.go:138–144  ·  view source on GitHub ↗
(t *testing.T, sys *types.SystemContext)

Source from the content-addressed store, hash-verified

136}
137
138func createImageSource(t *testing.T, sys *types.SystemContext) types.ImageSource {
139 imageRef, err := NewReference("fixtures/manifest", "")
140 require.NoError(t, err)
141 imageSource, err := imageRef.NewImageSource(context.Background(), sys)
142 require.NoError(t, err)
143 return imageSource
144}
145
146func TestGetLocalBlobPath(t *testing.T) {
147 tmpDir := loadFixture(t, "delete_image_multiple_images")

Calls 2

NewReferenceFunction · 0.70
NewImageSourceMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…