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

Function large_tile_roundtrip

nodedb-array/src/codec/tile_encode.rs:201–210  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

199
200 #[test]
201 fn large_tile_roundtrip() {
202 let s = schema();
203 let tile = make_tile(&s, 100);
204 let mut buf = Vec::new();
205 encode_sparse_tile(&tile, &mut buf).unwrap();
206 let decoded = decode_sparse_tile(&buf).unwrap();
207 assert_eq!(decoded.surrogates, tile.surrogates);
208 assert_eq!(decoded.attr_cols, tile.attr_cols);
209 assert_eq!(decoded.dim_dicts.len(), tile.dim_dicts.len());
210 }
211
212 #[test]
213 fn sentinel_only_tile_uses_raw() {

Callers

nothing calls this directly

Calls 4

encode_sparse_tileFunction · 0.85
decode_sparse_tileFunction · 0.85
schemaFunction · 0.70
make_tileFunction · 0.70

Tested by

no test coverage detected