MCPcopy
hub / github.com/github/github-mcp-server / stubClientFnFromHTTP

Function stubClientFnFromHTTP

pkg/github/server_test.go:83–88  ·  view source on GitHub ↗
(t *testing.T, httpClient *http.Client)

Source from the content-addressed store, hash-verified

81}
82
83func stubClientFnFromHTTP(t *testing.T, httpClient *http.Client) func(context.Context) (*gogithub.Client, error) {
84 t.Helper()
85 return func(_ context.Context) (*gogithub.Client, error) {
86 return mustNewGHClient(t, httpClient), nil
87 }
88}
89
90func stubClientFnErr(errMsg string) func(context.Context) (*gogithub.Client, error) {
91 return func(_ context.Context) (*gogithub.Client, error) {

Callers 1

Test_GetTeamsFunction · 0.85

Calls 1

mustNewGHClientFunction · 0.85

Tested by

no test coverage detected