MCPcopy
hub / github.com/cli/cli / mockAPIClient

Struct mockAPIClient

pkg/cmd/attestation/api/mock_githubApiClient_test.go:15–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13)
14
15type mockAPIClient struct {
16 OnRESTWithNext func(hostname, method, p string, body io.Reader, data interface{}) (string, error)
17 OnREST func(hostname, method, p string, body io.Reader, data interface{}) error
18}
19
20func (m mockAPIClient) RESTWithNext(hostname, method, p string, body io.Reader, data interface{}) (string, error) {
21 return m.OnRESTWithNext(hostname, method, p, body, data)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected