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

Function test_convert_empty_view

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

Source from the content-addressed store, hash-verified

744 /// Test converting empty view error.
745 #[test]
746 fn test_convert_empty_view() {
747 let err = RemoteError::empty_view("main");
748 let cli_err = convert_remote_error(err, "http://example.com");
749
750 match cli_err {
751 CliError::RemoteError { message, .. } => {
752 assert!(message.contains("main"));
753 assert!(message.contains("empty"));
754 }
755 _ => panic!("Expected RemoteError"),
756 }
757 }
758
759 // Formatting Tests
760

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected