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

Function TestCallbackHandlerMissingCode

internal/oauth/callback_test.go:50–55  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

48}
49
50func TestCallbackHandlerMissingCode(t *testing.T) {
51 _, res := serveCallback(t, "state123", "state=state123")
52
53 require.Error(t, res.err)
54 assert.Contains(t, res.err.Error(), "no authorization code")
55}
56
57func TestCallbackHandlerOAuthError(t *testing.T) {
58 _, res := serveCallback(t, "state123", "error=access_denied&error_description=user+said+no")

Callers

nothing calls this directly

Calls 2

serveCallbackFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected