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

Function TestDestinationReference

directory/directory_test.go:23–31  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

21var _ private.ImageDestination = (*dirImageDestination)(nil)
22
23func TestDestinationReference(t *testing.T) {
24 ref, tmpDir := refToTempDir(t)
25
26 dest, err := ref.NewImageDestination(context.Background(), nil)
27 require.NoError(t, err)
28 defer dest.Close()
29 ref2 := dest.Reference()
30 assert.Equal(t, tmpDir, ref2.StringWithinTransport())
31}
32
33func TestGetPutManifest(t *testing.T) {
34 ref, _ := refToTempDir(t)

Callers

nothing calls this directly

Calls 5

CloseMethod · 0.95
ReferenceMethod · 0.95
refToTempDirFunction · 0.85
NewImageDestinationMethod · 0.65
StringWithinTransportMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…