(t *testing.T)
| 213 | } |
| 214 | |
| 215 | func TestDefaultHostFromEnvVar(t *testing.T) { |
| 216 | // Given the GH_HOST env var is set |
| 217 | authCfg := newTestAuthConfig(t) |
| 218 | t.Setenv("GH_HOST", "ghe.io") |
| 219 | |
| 220 | // When we get the DefaultHost |
| 221 | defaultHost, source := authCfg.DefaultHost() |
| 222 | |
| 223 | // Then the returned host and source are using the env var |
| 224 | require.Equal(t, "ghe.io", defaultHost) |
| 225 | require.Equal(t, "GH_HOST", source) |
| 226 | } |
| 227 | |
| 228 | func TestDefaultHostNotLoggedIn(t *testing.T) { |
| 229 | // Given we are not logged in |
nothing calls this directly
no test coverage detected