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

Function getAttestationsFor

pkg/cmd/attestation/verify/attestation_integration_test.go:19–26  ·  view source on GitHub ↗
(t *testing.T, bundlePath string)

Source from the content-addressed store, hash-verified

17)
18
19func getAttestationsFor(t *testing.T, bundlePath string) []*api.Attestation {
20 t.Helper()
21
22 attestations, err := verification.GetLocalAttestations(bundlePath)
23 require.NoError(t, err)
24
25 return attestations
26}
27
28func TestVerifyAttestations(t *testing.T) {
29 sgVerifier, err := verification.NewLiveSigstoreVerifier(verification.SigstoreConfig{

Callers 1

TestVerifyAttestationsFunction · 0.70

Calls 2

GetLocalAttestationsFunction · 0.92
HelperMethod · 0.65

Tested by

no test coverage detected