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

Function test_convert_empty_view

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

Source from the content-addressed store, hash-verified

823 /// Test converting empty view error.
824 #[test]
825 fn test_convert_empty_view() {
826 let err = RemoteError::empty_view("main");
827 let cli_err = convert_remote_error(err, "http://example.com");
828
829 match cli_err {
830 CliError::RemoteError { message, .. } => {
831 assert!(message.contains("main"));
832 assert!(message.contains("empty"));
833 }
834 _ => panic!("Expected RemoteError"),
835 }
836 }
837
838 /// Test converting tag not found error.
839 #[test]

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected