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

Function test_convert_timeout

atomic-cli/src/commands/push/helpers.rs:679–690  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

677
678 #[test]
679 fn test_convert_timeout() {
680 let err = RemoteError::timeout(30);
681 let cli_err = convert_remote_error(err, "http://example.com");
682
683 match cli_err {
684 CliError::RemoteError { message, .. } => {
685 assert!(message.contains("timed out"));
686 assert!(message.contains("30"));
687 }
688 _ => panic!("Expected RemoteError"),
689 }
690 }
691
692 // Format Count Tests
693

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected