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

Function same_tile_gives_same_vshard

nodedb-cluster/src/array_routing.rs:220–225  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

218
219 #[test]
220 fn same_tile_gives_same_vshard() {
221 // All coords within tile [0,10) map to the same shard.
222 let s0 = vshard_for_array_coord("prices", &[0], &[10]);
223 let s9 = vshard_for_array_coord("prices", &[9], &[10]);
224 assert_eq!(s0, s9, "same tile → same shard");
225 }
226
227 #[test]
228 fn different_tiles_likely_different_vshards() {

Callers

nothing calls this directly

Calls 1

vshard_for_array_coordFunction · 0.85

Tested by

no test coverage detected