diff options
author | Chuyan Zhang <me@zcy.moe> | 2023-11-19 01:03:19 -0800 |
---|---|---|
committer | Chuyan Zhang <me@zcy.moe> | 2023-11-19 01:03:19 -0800 |
commit | 8a45cd95353ae9fe1286dbc4fcd36faaa66c9f82 (patch) | |
tree | af7687f74197ec338f57dc0cd174f1c32bb60af2 /src/tests/common | |
parent | 886df6daf6bb6b922276157dba1cc099e897a9ea (diff) | |
download | myfs-8a45cd95353ae9fe1286dbc4fcd36faaa66c9f82.tar.gz myfs-8a45cd95353ae9fe1286dbc4fcd36faaa66c9f82.zip |
Layer 1 test not passing
Diffstat (limited to 'src/tests/common')
-rw-r--r-- | src/tests/common/mod.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tests/common/mod.rs b/src/tests/common/mod.rs new file mode 100644 index 0000000..9314fd9 --- /dev/null +++ b/src/tests/common/mod.rs @@ -0,0 +1,8 @@ +use crate::block_device::memory_disk::MemoryDisk; +use crate::AyaFS; +use std::sync::Arc; + +pub(crate) fn setup() -> AyaFS { + let mem_disk = Arc::new(MemoryDisk::new(1059715)); + AyaFS::new(mem_disk, 1059715) +} |