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

Function open_temp

nodedb-cluster/src/raft_storage.rs:396–401  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

394 use super::*;
395
396 fn open_temp() -> (RedbLogStorage, tempfile::TempDir) {
397 let dir = tempfile::tempdir().unwrap();
398 let path = dir.path().join("test-raft.redb");
399 let storage = RedbLogStorage::open(&path).unwrap();
400 (storage, dir)
401 }
402
403 #[test]
404 fn append_and_load() {

Callers 6

append_and_loadFunction · 0.70
truncate_removes_tailFunction · 0.70
compact_removes_prefixFunction · 0.70
hard_state_roundtripFunction · 0.70
versioned_roundtripFunction · 0.70

Calls 3

joinMethod · 0.80
openFunction · 0.50
pathMethod · 0.45

Tested by 6

append_and_loadFunction · 0.56
truncate_removes_tailFunction · 0.56
compact_removes_prefixFunction · 0.56
hard_state_roundtripFunction · 0.56
versioned_roundtripFunction · 0.56