MCPcopy
hub / github.com/docker/docker-agent / TestPushNonExistentArtifact

Function TestPushNonExistentArtifact

pkg/remote/push_test.go:49–56  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

47}
48
49func TestPushNonExistentArtifact(t *testing.T) {
50 t.Parallel()
51 err := Push(t.Context(), "registry.example.com/test:latest")
52 require.Error(t, err)
53
54 err = Push(t.Context(), "registry.example.com/test:latest")
55 require.Error(t, err)
56}
57
58func TestPushWithOptions(t *testing.T) {
59 t.Parallel()

Callers

nothing calls this directly

Calls 3

PushFunction · 0.85
ContextMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected