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