pub mod _utils; pub use _utils::*; use parallel_disk_usage::{ get_size::{GetApparentSize, GetBlockCount, GetBlockSize}, size::Bytes, }; #[cfg(unix)] use parallel_disk_usage::size::Blocks; #[test] fn len_as_bytes() { let workspace = SampleWorkspace::default(); test_sample_tree::(&workspace, GetApparentSize); } #[cfg(unix)] #[test] fn blocks_as_bytes() { let workspace = SampleWorkspace::default(); test_sample_tree::(&workspace, GetBlockSize); } #[cfg(unix)] #[test] fn blocks_as_blocks() { let workspace = SampleWorkspace::default(); test_sample_tree::(&workspace, GetBlockCount); }