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

Function test_convert_timeout

atomic-cli/src/commands/pull/helpers.rs:714–724  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

712 /// Test converting timeout error.
713 #[test]
714 fn test_convert_timeout() {
715 let err = RemoteError::timeout(30);
716 let cli_err = convert_remote_error(err, "http://example.com");
717
718 match cli_err {
719 CliError::RemoteError { message, .. } => {
720 assert!(message.contains("30 seconds"));
721 }
722 _ => panic!("Expected RemoteError"),
723 }
724 }
725
726 /// Test converting empty view error.
727 #[test]

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected