summaryrefslogtreecommitdiff
path: root/ayafs/src/tests/common
diff options
context:
space:
mode:
Diffstat (limited to 'ayafs/src/tests/common')
-rw-r--r--ayafs/src/tests/common/mod.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/ayafs/src/tests/common/mod.rs b/ayafs/src/tests/common/mod.rs
new file mode 100644
index 0000000..3abfcb4
--- /dev/null
+++ b/ayafs/src/tests/common/mod.rs
@@ -0,0 +1,9 @@
+use crate::block_device::memory_disk::MemoryDisk;
+use crate::AyaFS;
+use std::sync::Arc;
+
+#[allow(unused)]
+pub(crate) fn setup() -> AyaFS {
+ let mem_disk = Arc::new(MemoryDisk::new(1059715));
+ AyaFS::new(mem_disk, 1059715)
+}