(t *testing.T)
| 48 | } |
| 49 | |
| 50 | func TestCallbackHandlerMissingCode(t *testing.T) { |
| 51 | _, res := serveCallback(t, "state123", "state=state123") |
| 52 | |
| 53 | require.Error(t, res.err) |
| 54 | assert.Contains(t, res.err.Error(), "no authorization code") |
| 55 | } |
| 56 | |
| 57 | func TestCallbackHandlerOAuthError(t *testing.T) { |
| 58 | _, res := serveCallback(t, "state123", "error=access_denied&error_description=user+said+no") |
nothing calls this directly
no test coverage detected