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

Function test_convert_timeout

atomic-cli/tests/fixtures/helpers_c1.rs:453–464  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

451
452 #[test]
453 fn test_convert_timeout() {
454 let err = RemoteError::timeout(30);
455 let cli_err = convert_remote_error(err, "http://example.com");
456
457 match cli_err {
458 CliError::RemoteError { message, .. } => {
459 assert!(message.contains("timed out"));
460 assert!(message.contains("30"));
461 }
462 _ => panic!("Expected RemoteError"),
463 }
464 }
465
466 // =========================================================================
467 // Format Count Tests

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected