stubAuthConfig is a test double for the transport's token source. It returns a fixed credential and never simulates a refresh.
| 16 | // stubAuthConfig is a test double for the transport's token source. It returns a fixed credential and never |
| 17 | // simulates a refresh. |
| 18 | type stubAuthConfig struct { |
| 19 | cred gh.Credential |
| 20 | } |
| 21 | |
| 22 | func (s stubAuthConfig) ActiveTokenWithRefresh(string) (gh.Credential, gh.RefreshStatus, error) { |
| 23 | return s.cred, gh.RefreshStatusUnnecessary, nil |
nothing calls this directly
no outgoing calls
no test coverage detected