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

Function assert_ptrs_are

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

Source from the content-addressed store, hash-verified

373 }
374
375 fn assert_ptrs_are(map: &mut PointerMap, hash: RowHash, ptrs: &[RowPointer]) -> R {
376 let ptrs = sorted(ptrs);
377 prop_assert_eq!(sorted(map.pointers_for(hash)), &*ptrs);
378 prop_assert_eq!(sorted(map.pointers_for_mut(hash)), ptrs);
379 Ok(())
380 }
381
382 fn assert_ptrs_and_len(map: &mut PointerMap, hash: RowHash, ptrs: &[RowPointer]) -> R {
383 assert_ptrs_are(map, hash, ptrs)?;

Callers 1

assert_ptrs_and_lenFunction · 0.85

Calls 2

sortedFunction · 0.70
OkFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…