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