MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / assert_ptrs_and_len

Function assert_ptrs_and_len

crates/table/src/pointer_map.rs:382–387  ·  view source on GitHub ↗
(map: &mut PointerMap, hash: RowHash, ptrs: &[RowPointer])

Source from the content-addressed store, hash-verified

380 }
381
382 fn assert_ptrs_and_len(map: &mut PointerMap, hash: RowHash, ptrs: &[RowPointer]) -> R {
383 assert_ptrs_are(map, hash, ptrs)?;
384 prop_assert_eq!(map.len(), ptrs.len());
385 prop_assert_eq!(map.is_empty(), ptrs.is_empty());
386 Ok(())
387 }
388
389 fn assert_collisions(map: &PointerMap, num_collisions: usize, num_not: usize) -> R {
390 prop_assert_eq!(map.num_collisions(), num_collisions);

Callers

nothing calls this directly

Calls 2

assert_ptrs_areFunction · 0.85
OkFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…