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

Function open_catalog

nodedb/src/control/security/catalog/database.rs:243–247  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

241 use super::*;
242
243 fn open_catalog() -> (tempfile::TempDir, SystemCatalog) {
244 let dir = tempfile::tempdir().unwrap();
245 let cat = SystemCatalog::open(&dir.path().join("system.redb")).unwrap();
246 (dir, cat)
247 }
248
249 #[test]
250 fn hwm_fresh_is_zero() {

Callers 8

hwm_fresh_is_zeroFunction · 0.70
hwm_put_get_roundtripFunction · 0.70
bootstrap_is_idempotentFunction · 0.70
put_then_get_roundtripFunction · 0.70
missing_returns_noneFunction · 0.70
delete_is_idempotentFunction · 0.70

Calls 3

joinMethod · 0.80
openFunction · 0.50
pathMethod · 0.45

Tested by 8

hwm_fresh_is_zeroFunction · 0.56
hwm_put_get_roundtripFunction · 0.56
bootstrap_is_idempotentFunction · 0.56
put_then_get_roundtripFunction · 0.56
missing_returns_noneFunction · 0.56
delete_is_idempotentFunction · 0.56