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

Function test_convert_timeout

atomic-cli/tests/fixtures/helpers_c6.rs:628–639  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

626
627 #[test]
628 fn test_convert_timeout() {
629 let err = RemoteError::timeout(30);
630 let cli_err = convert_remote_error(err, "http://example.com");
631
632 match cli_err {
633 CliError::RemoteError { message, .. } => {
634 assert!(message.contains("timed out"));
635 assert!(message.contains("30"));
636 }
637 _ => panic!("Expected RemoteError"),
638 }
639 }
640
641 // Format Count Tests
642

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected