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

Function roundtrip

nodedb-array/src/codec/tile_decode.rs:231–235  ·  view source on GitHub ↗
(tile: &SparseTile)

Source from the content-addressed store, hash-verified

229 }
230
231 fn roundtrip(tile: &SparseTile) -> SparseTile {
232 let mut buf = Vec::new();
233 encode_sparse_tile(tile, &mut buf).unwrap();
234 decode_sparse_tile(&buf).unwrap()
235 }
236
237 #[test]
238 fn empty_tile_roundtrip() {

Callers 6

empty_tile_roundtripFunction · 0.70
small_tile_roundtripFunction · 0.70
tombstone_rows_roundtripFunction · 0.70

Calls 2

encode_sparse_tileFunction · 0.85
decode_sparse_tileFunction · 0.85

Tested by 6

empty_tile_roundtripFunction · 0.56
small_tile_roundtripFunction · 0.56
tombstone_rows_roundtripFunction · 0.56