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

Function temp_catalog

nodedb-cluster/src/catalog/ops.rs:89–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87 use crate::topology::{NodeInfo, NodeState};
88
89 fn temp_catalog() -> (tempfile::TempDir, ClusterCatalog) {
90 let dir = tempfile::tempdir().unwrap();
91 let path = dir.path().join("cluster.redb");
92 let catalog = ClusterCatalog::open(&path).unwrap();
93 (dir, catalog)
94 }
95
96 #[test]
97 fn topology_save_load_roundtrip() {

Callers 4

overwrite_topologyFunction · 0.70

Calls 3

joinMethod · 0.80
openFunction · 0.50
pathMethod · 0.45

Tested by 4

overwrite_topologyFunction · 0.56