()
| 328 | |
| 329 | #[test] |
| 330 | fn test_resolve_destination_to_directory() { |
| 331 | let cmd = Move::new("file.txt", "subdir"); |
| 332 | let temp = tempfile::tempdir().unwrap(); |
| 333 | |
| 334 | // Create the target directory |
| 335 | std::fs::create_dir(temp.path().join("subdir")).unwrap(); |
| 336 | |
| 337 | let result = cmd.resolve_destination(temp.path(), "file.txt", "subdir"); |
| 338 | assert_eq!(result, "subdir/file.txt"); |
| 339 | } |
| 340 | |
| 341 | #[test] |
| 342 | fn test_resolve_destination_trailing_slash() { |
nothing calls this directly
no test coverage detected