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

Method Get

pkg/cmd/attestation/api/mock_httpClient_test.go:19–29  ·  view source on GitHub ↗
(url string)

Source from the content-addressed store, hash-verified

17}
18
19func (m *mockHttpClient) Get(url string) (*http.Response, error) {
20 m.On("OnGetSuccess").Return()
21 m.MethodCalled("OnGetSuccess")
22
23 var compressed []byte
24 compressed = snappy.Encode(compressed, data.SigstoreBundleRaw)
25 return &http.Response{
26 StatusCode: 200,
27 Body: io.NopCloser(bytes.NewReader(compressed)),
28 }, nil
29}
30
31type invalidBundleClient struct {
32 mock.Mock

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected