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