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

Function test_convert_view_not_found

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

Source from the content-addressed store, hash-verified

675 /// Test converting view not found error.
676 #[test]
677 fn test_convert_view_not_found() {
678 let err = RemoteError::view_not_found("missing-stack");
679 let cli_err = convert_remote_error(err, "http://example.com");
680
681 match cli_err {
682 CliError::RemoteError { message, .. } => {
683 assert!(message.contains("missing-stack"));
684 }
685 _ => panic!("Expected RemoteError"),
686 }
687 }
688
689 /// Test converting change not found error.
690 #[test]

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected