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

Function test_convert_timeout

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected