(t *testing.T)
| 173 | } |
| 174 | |
| 175 | func TestUserNotLoggedIn(t *testing.T) { |
| 176 | // Given we have not logged in |
| 177 | authCfg := newTestAuthConfig(t) |
| 178 | |
| 179 | // When we get the user |
| 180 | _, err := authCfg.ActiveUser("github.com") |
| 181 | |
| 182 | // Then it returns failure, bubbling the KeyNotFoundError |
| 183 | var keyNotFoundError *ghConfig.KeyNotFoundError |
| 184 | require.ErrorAs(t, err, &keyNotFoundError) |
| 185 | } |
| 186 | |
| 187 | func TestHostsIncludesEnvVar(t *testing.T) { |
| 188 | // Given the GH_HOST env var is set |
nothing calls this directly
no test coverage detected