(t *testing.T, c gh.Config, hostname, username, token, gitProtocol string, secureStorage bool)
| 486 | } |
| 487 | |
| 488 | func login(t *testing.T, c gh.Config, hostname, username, token, gitProtocol string, secureStorage bool) { |
| 489 | t.Helper() |
| 490 | _, err := c.Authentication().Login(hostname, username, token, gitProtocol, secureStorage) |
| 491 | require.NoError(t, err) |
| 492 | } |
| 493 | |
| 494 | // setupLegacyUnkeyedKeyringState recreates the state a very old gh install leaves behind: an active user is recorded |
| 495 | // for github.com, but the only keyring token lives in the legacy unkeyed slot rather than a per-user slot. It logs in |
no test coverage detected