()
| 424 | |
| 425 | #[test] |
| 426 | fn parse_error_body_404() { |
| 427 | let client = StorageClient::new("https://example.com", "acme", "tok").unwrap(); |
| 428 | let body = |
| 429 | r#"{"success":false,"error":{"code":"NOT_FOUND","message":"workspace not found"}}"#; |
| 430 | let err = client.parse_error_body(404, body); |
| 431 | assert!(err.is_not_found()); |
| 432 | } |
| 433 | |
| 434 | #[test] |
| 435 | fn parse_error_body_non_json() { |
nothing calls this directly
no test coverage detected