()
| 439 | |
| 440 | #[test] |
| 441 | fn test_resolve_destination_to_directory() { |
| 442 | let cmd = Move::new("file.txt", "subdir"); |
| 443 | let temp = tempfile::tempdir().unwrap(); |
| 444 | |
| 445 | // Create the target directory |
| 446 | std::fs::create_dir(temp.path().join("subdir")).unwrap(); |
| 447 | |
| 448 | let result = cmd.resolve_destination(temp.path(), "file.txt", "subdir"); |
| 449 | assert_eq!(result, "subdir/file.txt"); |
| 450 | } |
| 451 | |
| 452 | #[test] |
| 453 | fn test_resolve_destination_trailing_slash() { |
nothing calls this directly
no test coverage detected