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

Function test_convert_view_not_found

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

Source from the content-addressed store, hash-verified

913 /// Test converting view not found error.
914 #[test]
915 fn test_convert_view_not_found() {
916 let err = RemoteError::view_not_found("missing-stack");
917 let cli_err = convert_remote_error(err, "http://example.com");
918
919 match cli_err {
920 CliError::RemoteError { message, .. } => {
921 assert!(message.contains("missing-stack"));
922 }
923 _ => panic!("Expected RemoteError"),
924 }
925 }
926
927 /// Test converting change not found error.
928 #[test]

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected