MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / open_store

Function open_store

nodedb/src/engine/sparse/gsi.rs:335–340  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

333 use super::*;
334
335 fn open_store() -> (GsiStore, tempfile::TempDir) {
336 let dir = tempfile::tempdir().unwrap();
337 let db = Arc::new(Database::create(dir.path().join("gsi.redb")).unwrap());
338 let store = GsiStore::open(db).unwrap();
339 (store, dir)
340 }
341
342 #[test]
343 fn create_and_lookup() {

Callers 3

create_and_lookupFunction · 0.70
max_gsi_limitFunction · 0.70
update_replaces_entryFunction · 0.70

Calls 4

joinMethod · 0.80
createFunction · 0.50
openFunction · 0.50
pathMethod · 0.45

Tested by 3

create_and_lookupFunction · 0.56
max_gsi_limitFunction · 0.56
update_replaces_entryFunction · 0.56