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

Source from the content-addressed store, hash-verified

964 /// Test converting empty view error.
965 #[test]
966 fn test_convert_empty_view() {
967 let err = RemoteError::empty_view("main");
968 let cli_err = convert_remote_error(err, "http://example.com");
969
970 match cli_err {
971 CliError::RemoteError { message, .. } => {
972 assert!(message.contains("main"));
973 assert!(message.contains("empty"));
974 }
975 _ => panic!("Expected RemoteError"),
976 }
977 }
978
979 /// Test converting tag not found error.
980 #[test]

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected