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

Function parse_error_body_non_json

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

Source from the content-addressed store, hash-verified

617
618 #[test]
619 fn parse_error_body_non_json() {
620 let client = StorageClient::new("https://example.com", "acme", "tok").unwrap();
621 let err = client.parse_error_body(502, "Bad Gateway");
622 assert!(err.to_string().contains("502"));
623 }
624
625 #[test]
626 fn preview_returns_short_input_verbatim() {

Callers

nothing calls this directly

Calls 2

parse_error_bodyMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected