(t *testing.T)
| 201 | } |
| 202 | |
| 203 | func TestHostsIncludesEnvVar(t *testing.T) { |
| 204 | // Given the GH_HOST env var is set |
| 205 | authCfg := newTestAuthConfig(t) |
| 206 | t.Setenv("GH_HOST", "ghe.io") |
| 207 | |
| 208 | // When we get the hosts |
| 209 | hosts := authCfg.Hosts() |
| 210 | |
| 211 | // Then the host in the env var is included |
| 212 | require.Contains(t, hosts, "ghe.io") |
| 213 | } |
| 214 | |
| 215 | func TestDefaultHostFromEnvVar(t *testing.T) { |
| 216 | // Given the GH_HOST env var is set |
nothing calls this directly
no test coverage detected