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

Function stubGQLClientFnErr

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

Source from the content-addressed store, hash-verified

94}
95
96func stubGQLClientFnErr(errMsg string) func(context.Context) (*githubv4.Client, error) {
97 return func(_ context.Context) (*githubv4.Client, error) {
98 return nil, errors.New(errMsg)
99 }
100}
101
102func stubRepoAccessCache(restClient *gogithub.Client, ttl time.Duration) *lockdown.RepoAccessCache {
103 cacheName := fmt.Sprintf("repo-access-cache-test-%d", time.Now().UnixNano())

Callers 2

Test_GetTeamsFunction · 0.85
Test_GetTeamMembersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected