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

Function checkpoint_roundtrip_empty

nodedb-spatial/src/persist.rs:313–318  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

311
312 #[test]
313 fn checkpoint_roundtrip_empty() {
314 let tree = RTree::new();
315 let bytes = tree.checkpoint_to_bytes(None).unwrap();
316 let restored = RTree::from_checkpoint(&bytes, None).unwrap();
317 assert_eq!(restored.len(), 0);
318 }
319
320 #[test]
321 fn checkpoint_roundtrip_entries() {

Callers

nothing calls this directly

Calls 1

checkpoint_to_bytesMethod · 0.45

Tested by

no test coverage detected