fakeAuthenticator is a deterministic stand-in for *oauth.Manager that lets the middleware be tested at each branch without standing up live GitHub flows.
| 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. |
| 244 | type fakeAuthenticator struct { |
| 245 | hasToken bool |
| 246 | outcome *oauth.Outcome |
| 247 | err error |
| 248 | authCalls int |
| 249 | lastPrompter oauth.Prompter |
| 250 | } |
| 251 | |
| 252 | func (f *fakeAuthenticator) HasToken() bool { return f.hasToken } |
| 253 |
nothing calls this directly
no outgoing calls
no test coverage detected