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