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

Function OnCreateMetadataFileFailure

pkg/cmd/attestation/download/metadata_test.go:26–28  ·  view source on GitHub ↗
(artifactDigest string, attestationsResp []*api.Attestation)

Source from the content-addressed store, hash-verified

24}
25
26func OnCreateMetadataFileFailure(artifactDigest string, attestationsResp []*api.Attestation) (string, error) {
27 return "", fmt.Errorf("failed to create trusted metadata file")
28}
29
30func TestCreateJSONLinesFilePath(t *testing.T) {
31 tempDir := t.TempDir()

Callers

nothing calls this directly

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected