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