(hostname string, secure bool)
| 1326 | } |
| 1327 | |
| 1328 | func expiredRefreshableCredentialForHost(hostname string, secure bool) func(*testing.T, gh.Config) { |
| 1329 | return func(t *testing.T, cfg gh.Config) { |
| 1330 | t.Helper() |
| 1331 | _, err := cfg.Authentication().LoginRefreshable(hostname, "monalisa", gh.Credential{ |
| 1332 | Token: "gho_saved", RefreshToken: "ghr_saved", ExpiresAt: new(time.Unix(1, 0)), |
| 1333 | }, "ssh", secure) |
| 1334 | require.NoError(t, err) |
| 1335 | } |
| 1336 | } |
| 1337 | |
| 1338 | func hasSavedPair(hostname, accessToken, refreshToken, source string) tokenAssertion { |
| 1339 | return func(t *testing.T, cfg gh.Config) { |
no test coverage detected