1pub mod backend;
2pub mod legacy;
3pub mod optimized;
4pub mod wal;
5pub mod lock;
6
7pub use backend::*;
8pub use legacy::*;
9pub use optimized::*;
10
11#[cfg(test)]
12mod tests {
13 use super::*;
14 use tempfile::TempDir;
15
16 #[test]
17 fn test_storage_auto_detect_new_index() {
18 let temp_dir = TempDir::new().unwrap();
19 let result = Storage::auto_detect(temp_dir.path(), "index.json");
20 assert!(result.is_ok());
21 }
22
23 #[test]
24 fn test_legacy_storage_creation() {
25 let temp_dir = TempDir::new().unwrap();
26 let result = LegacyStorage::new(temp_dir.path(), "index.json");
27 assert!(result.is_ok());
28 }
29}