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

Function test_convert_timeout

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

Source from the content-addressed store, hash-verified

983
984 #[test]
985 fn test_convert_timeout() {
986 let err = RemoteError::timeout(30);
987 let cli_err = convert_remote_error(err, "http://example.com");
988
989 match cli_err {
990 CliError::RemoteError { message, .. } => {
991 assert!(message.contains("timed out"));
992 assert!(message.contains("30"));
993 }
994 _ => panic!("Expected RemoteError"),
995 }
996 }
997
998 // Format Count Tests
999

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected