(&self)
| 69 | } |
| 70 | |
| 71 | async fn is_session_bad(&self) -> bool { |
| 72 | // i.e. self.get_user_info().contains_err(Error::CookieError) |
| 73 | matches!(self.get_user_info().await, Err(Error::CookieError)) |
| 74 | } |
| 75 | |
| 76 | async fn resp_to_json<T: DeserializeOwned>(&self, resp: Response) -> Result<T, Error> { |
| 77 | let maybe_json: Result<T, _> = resp.json().await; |
no outgoing calls
no test coverage detected