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

Function test_convert_timeout

atomic-cli/src/commands/clone/helpers.rs:971–981  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

969 /// Test converting timeout error.
970 #[test]
971 fn test_convert_timeout() {
972 let err = RemoteError::timeout(30);
973 let cli_err = convert_remote_error(err, "http://example.com");
974
975 match cli_err {
976 CliError::RemoteError { message, .. } => {
977 assert!(message.contains("30 seconds"));
978 }
979 _ => panic!("Expected RemoteError"),
980 }
981 }
982
983 /// Test converting empty view error.
984 #[test]

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected