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

Function test_convert_timeout

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

Source from the content-addressed store, hash-verified

950 /// Test converting timeout error.
951 #[test]
952 fn test_convert_timeout() {
953 let err = RemoteError::timeout(30);
954 let cli_err = convert_remote_error(err, "http://example.com");
955
956 match cli_err {
957 CliError::RemoteError { message, .. } => {
958 assert!(message.contains("30 seconds"));
959 }
960 _ => panic!("Expected RemoteError"),
961 }
962 }
963
964 /// Test converting empty view error.
965 #[test]

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected