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

Function TestLoadBundleFromJSONFile

pkg/cmd/attestation/verification/attestation_test.go:58–64  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

56}
57
58func TestLoadBundleFromJSONFile(t *testing.T) {
59 path := "../test/data/sigstore-js-2.1.0-bundle.json"
60 attestations, err := loadBundleFromJSONFile(path)
61
62 require.NoError(t, err)
63 require.Len(t, attestations, 1)
64}
65
66func TestGetLocalAttestations(t *testing.T) {
67 t.Run("with JSON file containing one bundle", func(t *testing.T) {

Callers

nothing calls this directly

Calls 2

loadBundleFromJSONFileFunction · 0.85
LenMethod · 0.65

Tested by

no test coverage detected