Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/cli/cli
/ NewTestClient
Function
NewTestClient
pkg/cmd/attestation/api/mock_client.go:62–66 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
60
}
61
62
func
NewTestClient() *MockClient {
63
return
&MockClient{
64
OnGetByDigest: OnGetByDigestSuccess,
65
}
66
}
67
68
func
NewFailTestClient() *MockClient {
69
return
&MockClient{
Callers
12
Test_verifyRun_Success
Function · 0.92
Test_verifyRun_FailedTagNotInAttestation
Function · 0.92
Test_verifyAssetRun_Success
Function · 0.92
Test_verifyAssetRun_SuccessNoTagArg
Function · 0.92
Test_verifyAssetRun_FailedTagNotInAttestation
Function · 0.92
Test_verifyAssetRun_FailedInvalidAsset
Function · 0.92
Test_verifyAssetRun_NoSuchAsset
Function · 0.92
TestGetAttestations_GhAPI_NoAttestationsFound
Function · 0.92
TestJSONOutput
Function · 0.92
TestRunVerify
Function · 0.92
TestNewDownloadCmd
Function · 0.92
TestRunDownload
Function · 0.92
Calls
no outgoing calls
Tested by
12
Test_verifyRun_Success
Function · 0.74
Test_verifyRun_FailedTagNotInAttestation
Function · 0.74
Test_verifyAssetRun_Success
Function · 0.74
Test_verifyAssetRun_SuccessNoTagArg
Function · 0.74
Test_verifyAssetRun_FailedTagNotInAttestation
Function · 0.74
Test_verifyAssetRun_FailedInvalidAsset
Function · 0.74
Test_verifyAssetRun_NoSuchAsset
Function · 0.74
TestGetAttestations_GhAPI_NoAttestationsFound
Function · 0.74
TestJSONOutput
Function · 0.74
TestRunVerify
Function · 0.74
TestNewDownloadCmd
Function · 0.74
TestRunDownload
Function · 0.74