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

Function test_convert_timeout

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

Source from the content-addressed store, hash-verified

886
887 #[test]
888 fn test_convert_timeout() {
889 let err = RemoteError::timeout(30);
890 let cli_err = convert_remote_error(err, "http://example.com");
891
892 match cli_err {
893 CliError::RemoteError { message, .. } => {
894 assert!(message.contains("timed out"));
895 assert!(message.contains("30"));
896 }
897 _ => panic!("Expected RemoteError"),
898 }
899 }
900
901 // Format Count Tests
902

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected