(t *testing.T)
| 224 | } |
| 225 | |
| 226 | func TestDefaultHostNotLoggedIn(t *testing.T) { |
| 227 | // Given we are not logged in |
| 228 | authCfg := newTestAuthConfig(t) |
| 229 | |
| 230 | // When we get the DefaultHost |
| 231 | defaultHost, source := authCfg.DefaultHost() |
| 232 | |
| 233 | // Then the returned host is always github.com |
| 234 | require.Equal(t, "github.com", defaultHost) |
| 235 | require.Equal(t, "default", source) |
| 236 | } |
| 237 | |
| 238 | func TestDefaultHostLoggedInToOnlyOneHost(t *testing.T) { |
| 239 | // Given we are logged into one host (not github.com to differentiate from the fallback) |
nothing calls this directly
no test coverage detected