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

Function TestReferenceDockerReference

openshift/openshift_transport_test.go:80–86  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

78}
79
80func TestReferenceDockerReference(t *testing.T) {
81 ref, err := ParseReference("registry.example.com:8443/ns/stream:notlatest")
82 require.NoError(t, err)
83 dockerRef := ref.DockerReference()
84 require.NotNil(t, dockerRef)
85 assert.Equal(t, "registry.example.com:8443/ns/stream:notlatest", dockerRef.String())
86}
87
88func TestReferenceTransport(t *testing.T) {
89 ref, err := ParseReference("registry.example.com:8443/ns/stream:notlatest")

Callers

nothing calls this directly

Calls 3

ParseReferenceFunction · 0.70
DockerReferenceMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…