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

Function test_convert_repo_not_found

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

Source from the content-addressed store, hash-verified

758 /// Test converting repository not found error.
759 #[test]
760 fn test_convert_repo_not_found() {
761 let err = RemoteError::repo_not_found("http://example.com/repo");
762 let cli_err = convert_remote_error(err, "http://example.com/repo");
763
764 match cli_err {
765 CliError::RemoteError { message, .. } => {
766 assert!(message.contains("not found"));
767 }
768 _ => panic!("Expected RemoteError"),
769 }
770 }
771
772 /// Test converting view not found error.
773 #[test]

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected