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

Function open_temp

nodedb/src/engine/sparse/btree.rs:439–443  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

437 use super::*;
438
439 fn open_temp() -> (SparseEngine, tempfile::TempDir) {
440 let dir = tempfile::tempdir().unwrap();
441 let engine = SparseEngine::open(&dir.path().join("sparse.redb")).unwrap();
442 (engine, dir)
443 }
444
445 #[test]
446 fn put_and_get() {

Callers 6

put_and_getFunction · 0.70
put_overwritesFunction · 0.70
delete_removesFunction · 0.70
range_scan_with_indexFunction · 0.70
collections_are_isolatedFunction · 0.70

Calls 3

joinMethod · 0.80
openFunction · 0.50
pathMethod · 0.45

Tested by 6

put_and_getFunction · 0.56
put_overwritesFunction · 0.56
delete_removesFunction · 0.56
range_scan_with_indexFunction · 0.56
collections_are_isolatedFunction · 0.56