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

Function test_resolve_destination_rename

atomic-cli/src/commands/mv.rs:322–327  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

320
321 #[test]
322 fn test_resolve_destination_rename() {
323 let cmd = Move::new("old.rs", "new.rs");
324 let temp = tempfile::tempdir().unwrap();
325 let result = cmd.resolve_destination(temp.path(), "old.rs", "new.rs");
326 assert_eq!(result, "new.rs");
327 }
328
329 #[test]
330 fn test_resolve_destination_to_directory() {

Callers

nothing calls this directly

Calls 3

resolve_destinationMethod · 0.80
unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected