()
| 397 | |
| 398 | #[test] |
| 399 | fn parse_error_body_404() { |
| 400 | let client = StorageClient::new("https://example.com", "acme", "tok").unwrap(); |
| 401 | let body = |
| 402 | r#"{"success":false,"error":{"code":"NOT_FOUND","message":"workspace not found"}}"#; |
| 403 | let err = client.parse_error_body(404, body); |
| 404 | assert!(err.is_not_found()); |
| 405 | } |
| 406 | |
| 407 | #[test] |
| 408 | fn parse_error_body_non_json() { |
nothing calls this directly
no test coverage detected