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

Function assert_collisions

crates/table/src/pointer_map.rs:389–393  ·  view source on GitHub ↗
(map: &PointerMap, num_collisions: usize, num_not: usize)

Source from the content-addressed store, hash-verified

387 }
388
389 fn assert_collisions(map: &PointerMap, num_collisions: usize, num_not: usize) -> R {
390 prop_assert_eq!(map.num_collisions(), num_collisions);
391 prop_assert_eq!(map.num_non_collisions(), num_not);
392 Ok(())
393 }
394
395 fn ensure_unique<T: Eq + Hash>(xs: &[T]) -> R {
396 if !xs.iter().all_unique() {

Callers

nothing calls this directly

Calls 1

OkFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…