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

Struct failAfterNCallsHttpClient

pkg/cmd/attestation/api/mock_httpClient_test.go:60–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60type failAfterNCallsHttpClient struct {
61 mock.Mock
62 mu sync.Mutex
63 FailOnCallN int
64 FailOnAllSubsequentCalls bool
65 NumCalls int
66}
67
68func (m *failAfterNCallsHttpClient) Get(url string) (*http.Response, error) {
69 m.mu.Lock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected