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

Method Get

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

Source from the content-addressed store, hash-verified

49}
50
51func (m *reqFailHttpClient) Get(url string) (*http.Response, error) {
52 m.On("OnGetReqFail").Return()
53 m.MethodCalled("OnGetReqFail")
54
55 return &http.Response{
56 StatusCode: 500,
57 }, fmt.Errorf("failed to fetch with %s", url)
58}
59
60type failAfterNCallsHttpClient struct {
61 mock.Mock

Callers

nothing calls this directly

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected