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

Function test_convert_repo_not_found

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

Source from the content-addressed store, hash-verified

679 /// Test converting repository not found error.
680 #[test]
681 fn test_convert_repo_not_found() {
682 let err = RemoteError::repo_not_found("http://example.com/repo");
683 let cli_err = convert_remote_error(err, "http://example.com/repo");
684
685 match cli_err {
686 CliError::RemoteError { message, .. } => {
687 assert!(message.contains("not found"));
688 }
689 _ => panic!("Expected RemoteError"),
690 }
691 }
692
693 /// Test converting view not found error.
694 #[test]

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected