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

Method Get

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

Source from the content-addressed store, hash-verified

33}
34
35func (m *invalidBundleClient) Get(url string) (*http.Response, error) {
36 m.On("OnGetInvalidBundle").Return()
37 m.MethodCalled("OnGetInvalidBundle")
38
39 var compressed []byte
40 compressed = snappy.Encode(compressed, []byte("invalid bundle bytes"))
41 return &http.Response{
42 StatusCode: 200,
43 Body: io.NopCloser(bytes.NewReader(compressed)),
44 }, nil
45}
46
47type reqFailHttpClient struct {
48 mock.Mock

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected