-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathfs_tree_builder.rs
More file actions
30 lines (25 loc) · 665 Bytes
/
fs_tree_builder.rs
File metadata and controls
30 lines (25 loc) · 665 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
pub mod _utils;
pub use _utils::*;
use parallel_disk_usage::{get_size::GetApparentSize, size::Bytes};
#[cfg(unix)]
use parallel_disk_usage::{
get_size::{GetBlockCount, GetBlockSize},
size::Blocks,
};
#[test]
fn len_as_bytes() {
let workspace = SampleWorkspace::default();
test_sample_tree::<Bytes, _>(&workspace, GetApparentSize);
}
#[cfg(unix)]
#[test]
fn blocks_as_bytes() {
let workspace = SampleWorkspace::default();
test_sample_tree::<Bytes, _>(&workspace, GetBlockSize);
}
#[cfg(unix)]
#[test]
fn blocks_as_blocks() {
let workspace = SampleWorkspace::default();
test_sample_tree::<Blocks, _>(&workspace, GetBlockCount);
}