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:663–673  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

661 /// Test converting repository not found error.
662 #[test]
663 fn test_convert_repo_not_found() {
664 let err = RemoteError::repo_not_found("http://example.com/repo");
665 let cli_err = convert_remote_error(err, "http://example.com/repo");
666
667 match cli_err {
668 CliError::RemoteError { message, .. } => {
669 assert!(message.contains("not found"));
670 }
671 _ => panic!("Expected RemoteError"),
672 }
673 }
674
675 /// Test converting view not found error.
676 #[test]

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected