MCPcopy Create free account
hub / github.com/carsonpo/haystackdb / test_tree_initialization

Function test_tree_initialization

tests/trees.rs:161–170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected