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

Struct fakePrompter

internal/oauth/testutil_test.go:148–156  ·  view source on GitHub ↗

fakePrompter is a configurable Prompter. The on* hooks simulate the user acting on the prompt; a nil hook means the prompt is shown and acknowledged.

Source from the content-addressed store, hash-verified

146// fakePrompter is a configurable Prompter. The on* hooks simulate the user
147// acting on the prompt; a nil hook means the prompt is shown and acknowledged.
148type fakePrompter struct {
149 urlCapable bool
150 formCapable bool
151 onURL func(context.Context, Prompt) error
152 onForm func(context.Context, Prompt) error
153
154 mu sync.Mutex
155 urlCalls []Prompt
156}
157
158func (p *fakePrompter) CanPromptURL() bool { return p.urlCapable }
159

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected