MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / parse_error_body_404

Function parse_error_body_404

atomic-remote/src/storage.rs:426–432  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 2

parse_error_bodyMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected