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

Function test_convert_timeout

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

Source from the content-addressed store, hash-verified

809 /// Test converting timeout error.
810 #[test]
811 fn test_convert_timeout() {
812 let err = RemoteError::timeout(30);
813 let cli_err = convert_remote_error(err, "http://example.com");
814
815 match cli_err {
816 CliError::RemoteError { message, .. } => {
817 assert!(message.contains("30 seconds"));
818 }
819 _ => panic!("Expected RemoteError"),
820 }
821 }
822
823 /// Test converting empty view error.
824 #[test]

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected