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

Function test_convert_timeout

atomic-cli/tests/fixtures/helpers_c5.rs:692–703  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

690
691 #[test]
692 fn test_convert_timeout() {
693 let err = RemoteError::timeout(30);
694 let cli_err = convert_remote_error(err, "http://example.com");
695
696 match cli_err {
697 CliError::RemoteError { message, .. } => {
698 assert!(message.contains("timed out"));
699 assert!(message.contains("30"));
700 }
701 _ => panic!("Expected RemoteError"),
702 }
703 }
704
705 // =========================================================================
706 // Format Count Tests

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected