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

Function version_byte_is_one

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

Source from the content-addressed store, hash-verified

232
233 #[test]
234 fn version_byte_is_one() {
235 let s = schema();
236 let tile = make_tile(&s, 20);
237 let mut buf = Vec::new();
238 encode_sparse_tile(&tile, &mut buf).unwrap();
239 assert_eq!(buf[1], PAYLOAD_VERSION);
240 }
241
242 #[test]
243 fn empty_tile_encodes_and_decodes() {

Callers

nothing calls this directly

Calls 3

encode_sparse_tileFunction · 0.85
schemaFunction · 0.70
make_tileFunction · 0.70

Tested by

no test coverage detected