(t *testing.T)
| 187 | } |
| 188 | |
| 189 | func TestUserNotLoggedIn(t *testing.T) { |
| 190 | // Given we have not logged in |
| 191 | authCfg := newTestAuthConfig(t) |
| 192 | |
| 193 | // When we get the user |
| 194 | _, err := authCfg.ActiveUser("github.com") |
| 195 | |
| 196 | // Then it returns failure, bubbling the KeyNotFoundError |
| 197 | var keyNotFoundError *ghConfig.KeyNotFoundError |
| 198 | require.ErrorAs(t, err, &keyNotFoundError) |
| 199 | } |
| 200 | |
| 201 | func TestHostsIncludesEnvVar(t *testing.T) { |
| 202 | // Given the GH_HOST env var is set |
nothing calls this directly
no test coverage detected