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

Source from the content-addressed store, hash-verified

726 /// Test converting empty view error.
727 #[test]
728 fn test_convert_empty_view() {
729 let err = RemoteError::empty_view("main");
730 let cli_err = convert_remote_error(err, "http://example.com");
731
732 match cli_err {
733 CliError::RemoteError { message, .. } => {
734 assert!(message.contains("main"));
735 assert!(message.contains("empty"));
736 }
737 _ => panic!("Expected RemoteError"),
738 }
739 }
740
741 // Formatting Tests
742

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected