MCPcopy Index your code
hub / github.com/github/github-mcp-server / fakeAuthenticator

Struct fakeAuthenticator

internal/ghmcp/oauth_test.go:244–250  ·  view source on GitHub ↗

fakeAuthenticator is a deterministic stand-in for *oauth.Manager that lets the middleware be tested at each branch without standing up live GitHub flows.

Source from the content-addressed store, hash-verified

242// fakeAuthenticator is a deterministic stand-in for *oauth.Manager that lets the
243// middleware be tested at each branch without standing up live GitHub flows.
244type fakeAuthenticator struct {
245 hasToken bool
246 outcome *oauth.Outcome
247 err error
248 authCalls int
249 lastPrompter oauth.Prompter
250}
251
252func (f *fakeAuthenticator) HasToken() bool { return f.hasToken }
253

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected