(t *testing.T)
| 210 | } |
| 211 | |
| 212 | func TestDefaultHostNotLoggedIn(t *testing.T) { |
| 213 | // Given we are not logged in |
| 214 | authCfg := newTestAuthConfig(t) |
| 215 | |
| 216 | // When we get the DefaultHost |
| 217 | defaultHost, source := authCfg.DefaultHost() |
| 218 | |
| 219 | // Then the returned host is always github.com |
| 220 | require.Equal(t, "github.com", defaultHost) |
| 221 | require.Equal(t, "default", source) |
| 222 | } |
| 223 | |
| 224 | func TestDefaultHostLoggedInToOnlyOneHost(t *testing.T) { |
| 225 | // Given we are logged into one host (not github.com to differentiate from the fallback) |
nothing calls this directly
no test coverage detected