(t *testing.T)
| 317 | } |
| 318 | |
| 319 | func TestLoginSetsUserForProvidedHost(t *testing.T) { |
| 320 | // Given we are not logged in |
| 321 | authCfg := newTestAuthConfig(t) |
| 322 | |
| 323 | // When we login |
| 324 | _, err := authCfg.Login("github.com", "test-user", "test-token", "ssh", false) |
| 325 | |
| 326 | // Then it returns success and the user is set |
| 327 | require.NoError(t, err) |
| 328 | |
| 329 | user, err := authCfg.ActiveUser("github.com") |
| 330 | require.NoError(t, err) |
| 331 | require.Equal(t, "test-user", user) |
| 332 | } |
| 333 | |
| 334 | func TestLoginSetsGitProtocolForProvidedHost(t *testing.T) { |
| 335 | // Given we are logged in |
nothing calls this directly
no test coverage detected