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

Function test_connection_failed

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

Source from the content-addressed store, hash-verified

424
425 #[test]
426 fn test_connection_failed() {
427 let err = RemoteError::connection_failed(
428 "http://example.com",
429 std::io::Error::new(std::io::ErrorKind::ConnectionRefused, "refused"),
430 );
431 assert!(err.to_string().contains("http://example.com"));
432 assert!(err.is_retryable());
433 }
434
435 #[test]
436 fn test_auth_failed() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected