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

Source from the content-addressed store, hash-verified

406
407 #[test]
408 fn parse_error_body_non_json() {
409 let client = StorageClient::new("https://example.com", "acme", "tok").unwrap();
410 let err = client.parse_error_body(502, "Bad Gateway");
411 assert!(err.to_string().contains("502"));
412 }
413}

Callers

nothing calls this directly

Calls 2

parse_error_bodyMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected