(t *testing.T)
| 185 | } |
| 186 | |
| 187 | func TestHostsIncludesEnvVar(t *testing.T) { |
| 188 | // Given the GH_HOST env var is set |
| 189 | authCfg := newTestAuthConfig(t) |
| 190 | t.Setenv("GH_HOST", "ghe.io") |
| 191 | |
| 192 | // When we get the hosts |
| 193 | hosts := authCfg.Hosts() |
| 194 | |
| 195 | // Then the host in the env var is included |
| 196 | require.Contains(t, hosts, "ghe.io") |
| 197 | } |
| 198 | |
| 199 | func TestDefaultHostFromEnvVar(t *testing.T) { |
| 200 | // Given the GH_HOST env var is set |
nothing calls this directly
no test coverage detected