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

Struct mockScopeFetcher

pkg/http/middleware/pat_scope_test.go:18–21  ·  view source on GitHub ↗

mockScopeFetcher is a mock implementation of scopes.FetcherInterface

Source from the content-addressed store, hash-verified

16
17// mockScopeFetcher is a mock implementation of scopes.FetcherInterface
18type mockScopeFetcher struct {
19 scopes []string
20 err error
21}
22
23func (m *mockScopeFetcher) FetchTokenScopes(_ context.Context, _ string) ([]string, error) {
24 return m.scopes, m.err

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected