()
| 159 | |
| 160 | #[test] |
| 161 | fn test_tree_initialization() { |
| 162 | let path = PathBuf::from_str("tests/data") |
| 163 | .unwrap() |
| 164 | .join(uuid::Uuid::new_v4().to_string()) |
| 165 | .join("test.bin"); |
| 166 | fs::create_dir_all(&path.parent().unwrap()).expect("Failed to create directory"); |
| 167 | |
| 168 | let tree: Result<Tree<i32, String>, std::io::Error> = Tree::new(path); |
| 169 | assert!(tree.is_ok()); |
| 170 | } |
| 171 | |
| 172 | #[test] |
| 173 | fn test_insert_search_leaf() { |
nothing calls this directly
no outgoing calls
no test coverage detected