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

Function test_convert_timeout

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

Source from the content-addressed store, hash-verified

730 /// Test converting timeout error.
731 #[test]
732 fn test_convert_timeout() {
733 let err = RemoteError::timeout(30);
734 let cli_err = convert_remote_error(err, "http://example.com");
735
736 match cli_err {
737 CliError::RemoteError { message, .. } => {
738 assert!(message.contains("30 seconds"));
739 }
740 _ => panic!("Expected RemoteError"),
741 }
742 }
743
744 /// Test converting empty view error.
745 #[test]

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected