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

Function test_convert_empty_view

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

Source from the content-addressed store, hash-verified

983 /// Test converting empty view error.
984 #[test]
985 fn test_convert_empty_view() {
986 let err = RemoteError::empty_view("main");
987 let cli_err = convert_remote_error(err, "http://example.com");
988
989 match cli_err {
990 CliError::RemoteError { message, .. } => {
991 assert!(message.contains("main"));
992 assert!(message.contains("empty"));
993 }
994 _ => panic!("Expected RemoteError"),
995 }
996 }
997
998 /// Test converting tag not found error.
999 #[test]

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected