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

Source from the content-addressed store, hash-verified

663
664 #[test]
665 fn parse_error_body_non_json() {
666 let client = StorageClient::new("https://example.com", "acme", "tok").unwrap();
667 let err = client.parse_error_body(502, "Bad Gateway");
668 assert!(err.to_string().contains("502"));
669 }
670
671 fn info_with_key(public_key: Option<String>) -> IdentityInfo {
672 IdentityInfo {

Callers

nothing calls this directly

Calls 2

parse_error_bodyMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected