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

Function createSampleResult

pkg/cmd/attestation/verification/extensions_test.go:11–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9)
10
11func createSampleResult() *AttestationProcessingResult {
12 return &AttestationProcessingResult{
13 VerificationResult: &verify.VerificationResult{
14 Signature: &verify.SignatureVerificationResult{
15 Certificate: &certificate.Summary{
16 SourceRepositoryOwnerURI: "https://github.com/owner",
17 SourceRepositoryURI: "https://github.com/owner/repo",
18 Issuer: "https://token.actions.githubusercontent.com",
19 SourceRepositoryRef: "refs/heads/main",
20 },
21 },
22 },
23 }
24}
25
26func TestVerifyCertExtensions(t *testing.T) {
27 results := []*AttestationProcessingResult{createSampleResult()}

Callers 1

TestVerifyCertExtensionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected