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