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:435–439  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

433
434 #[test]
435 fn parse_error_body_non_json() {
436 let client = StorageClient::new("https://example.com", "acme", "tok").unwrap();
437 let err = client.parse_error_body(502, "Bad Gateway");
438 assert!(err.to_string().contains("502"));
439 }
440
441 #[test]
442 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