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

Function test_resolve_destination_rename

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

Source from the content-addressed store, hash-verified

326
327 #[test]
328 fn test_resolve_destination_rename() {
329 let cmd = Move::new("old.rs", "new.rs");
330 let temp = tempfile::tempdir().unwrap();
331 let result = cmd.resolve_destination(temp.path(), "old.rs", "new.rs");
332 assert_eq!(result, "new.rs");
333 }
334
335 #[test]
336 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