(hostname string)
| 29 | } |
| 30 | |
| 31 | func (s *sequencedAuthConfig) ActiveTokenWithRefresh(hostname string) (gh.Credential, gh.RefreshStatus, error) { |
| 32 | cred := s.creds[len(s.calls)] |
| 33 | s.calls = append(s.calls, hostname) |
| 34 | return cred, s.status, s.err |
| 35 | } |
| 36 | |
| 37 | func TestCAPITransportResolvesFreshTokenPerRequest(t *testing.T) { |
| 38 | base := &recordingRoundTripper{} |
nothing calls this directly
no outgoing calls
no test coverage detected