Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenesvk committed Dec 5, 2024
1 parent e2d17ed commit 1348dcc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,10 @@ fn percent_encode(input: &[u8]) -> Cow<'_, str> {
#[cfg(test)]
mod tests {
use crate::{
canonicalize_paths,
macos::{percent_encode, DeleteMethod, TrashContextExtMacos},
tests::{get_unique_name, init_logging},
TrashContext,canonicalize_paths,
TrashContext,
};
use serial_test::serial;
use std::ffi::OsStr;
Expand Down Expand Up @@ -272,8 +273,8 @@ mod tests {
File::create_new(&path).unwrap();
let trash_item = trash_ctx.delete_with_info(&path).unwrap().unwrap();
assert!(File::open(&path).is_err());
assert_eq!(name,trash_item.name);
assert_eq!(original_parent,trash_item.original_parent);
assert_eq!(name, trash_item.name);
assert_eq!(original_parent, trash_item.original_parent);
// TrashItem's date deleted not tested since we can't guarantee the date we calculate here will match the date calculated @ delete
// TrashItem's path@trash not tested since we can't guarantee the ours will be identical to the one FileManager decides to use (names change if they're dupe, also trash path is a bit tricky to get right as it changes depending on the user/admin)
}
Expand Down

0 comments on commit 1348dcc

Please sign in to comment.