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

Function cells_in_same_tile_share_prefix

nodedb-array/src/tile/layout.rs:126–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124
125 #[test]
126 fn cells_in_same_tile_share_prefix() {
127 let s = schema();
128 let t1 = tile_id_for_cell(&s, &[CoordValue::Int64(0), CoordValue::Int64(0)], 0).unwrap();
129 let t2 = tile_id_for_cell(&s, &[CoordValue::Int64(9), CoordValue::Int64(9)], 0).unwrap();
130 assert_eq!(t1.hilbert_prefix, t2.hilbert_prefix);
131 }
132
133 #[test]
134 fn cells_in_different_tiles_have_different_prefixes() {

Callers

nothing calls this directly

Calls 2

tile_id_for_cellFunction · 0.85
schemaFunction · 0.70

Tested by

no test coverage detected