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

Function stubClientFnErr

pkg/github/server_test.go:90–94  ·  view source on GitHub ↗
(errMsg string)

Source from the content-addressed store, hash-verified

88}
89
90func stubClientFnErr(errMsg string) func(context.Context) (*gogithub.Client, error) {
91 return func(_ context.Context) (*gogithub.Client, error) {
92 return nil, errors.New(errMsg)
93 }
94}
95
96func stubGQLClientFnErr(errMsg string) func(context.Context) (*githubv4.Client, error) {
97 return func(_ context.Context) (*githubv4.Client, error) {

Callers 2

Test_GetMeFunction · 0.85
Test_GetTeamsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected