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

Function newTestClient

api/client_test.go:17–21  ·  view source on GitHub ↗
(reg *httpmock.Registry)

Source from the content-addressed store, hash-verified

15)
16
17func newTestClient(reg *httpmock.Registry) *Client {
18 client := &http.Client{}
19 httpmock.ReplaceTripper(client, reg)
20 return NewClientFromHTTP(client)
21}
22
23func TestGraphQL(t *testing.T) {
24 http := &httpmock.Registry{}

Calls 2

ReplaceTripperFunction · 0.92
NewClientFromHTTPFunction · 0.85

Tested by

no test coverage detected