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

Function resident_bytes_does_not_panic

nodedb-mem/src/collection_arena.rs:211–216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

209
210 #[test]
211 fn resident_bytes_does_not_panic() {
212 let reg = CollectionArenaRegistry::new();
213 let h = reg.get_or_create(1, "test_resident").expect("create");
214 // Must not panic; may return None when stats are unavailable.
215 let _ = h.resident_bytes();
216 }
217}

Callers

nothing calls this directly

Calls 3

resident_bytesMethod · 0.80
expectMethod · 0.45
get_or_createMethod · 0.45

Tested by

no test coverage detected