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

Function small_tile_roundtrip

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

Source from the content-addressed store, hash-verified

187
188 #[test]
189 fn small_tile_roundtrip() {
190 let s = schema();
191 let tile = make_tile(&s, 5);
192 let mut buf = Vec::new();
193 encode_sparse_tile(&tile, &mut buf).unwrap();
194 let decoded = decode_sparse_tile(&buf).unwrap();
195 assert_eq!(decoded.surrogates, tile.surrogates);
196 assert_eq!(decoded.valid_from_ms, tile.valid_from_ms);
197 assert_eq!(decoded.row_kinds, tile.row_kinds);
198 }
199
200 #[test]
201 fn large_tile_roundtrip() {

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