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

Function TestReferenceDeleteImage

openshift/openshift_transport_test.go:125–130  ·  view source on GitHub ↗

openshiftReference.NewImage, openshiftReference.NewImageSource, openshiftReference.NewImageDestination untested because they depend on per-user configuration when initializing httpClient.

(t *testing.T)

Source from the content-addressed store, hash-verified

123// on per-user configuration when initializing httpClient.
124
125func TestReferenceDeleteImage(t *testing.T) {
126 ref, err := ParseReference("registry.example.com:8443/ns/stream:notlatest")
127 require.NoError(t, err)
128 err = ref.DeleteImage(context.Background(), nil)
129 assert.Error(t, err)
130}

Callers

nothing calls this directly

Calls 3

ParseReferenceFunction · 0.70
DeleteImageMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…