MCPcopy Create free account
hub / github.com/cli/cli / TestParseImageRefFailure

Function TestParseImageRefFailure

pkg/cmd/attestation/artifact/image_test.go:22–27  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

20}
21
22func TestParseImageRefFailure(t *testing.T) {
23 client := oci.ReferenceFailClient{}
24 url := "example.com/repo:tag"
25 _, err := digestContainerImageArtifact(url, client)
26 require.Error(t, err)
27}
28
29func TestFetchImageFailure(t *testing.T) {
30 testcase := []struct {

Callers

nothing calls this directly

Calls 2

ErrorMethod · 0.45

Tested by

no test coverage detected