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

Function test_resolve_destination_rename

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

Source from the content-addressed store, hash-verified

431
432 #[test]
433 fn test_resolve_destination_rename() {
434 let cmd = Move::new("old.rs", "new.rs");
435 let temp = tempfile::tempdir().unwrap();
436 let result = cmd.resolve_destination(temp.path(), "old.rs", "new.rs");
437 assert_eq!(result, "new.rs");
438 }
439
440 #[test]
441 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