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

Source from the content-addressed store, hash-verified

899 /// Test converting repository not found error.
900 #[test]
901 fn test_convert_repo_not_found() {
902 let err = RemoteError::repo_not_found("http://example.com/repo");
903 let cli_err = convert_remote_error(err, "http://example.com/repo");
904
905 match cli_err {
906 CliError::RemoteError { message, .. } => {
907 assert!(message.contains("not found"));
908 }
909 _ => panic!("Expected RemoteError"),
910 }
911 }
912
913 /// Test converting view not found error.
914 #[test]

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected