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

Function tile_snapshot_roundtrip

nodedb-array/src/sync/snapshot.rs:296–301  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

294
295 #[test]
296 fn tile_snapshot_roundtrip() {
297 let s = snapshot(256);
298 let bytes = encode_snapshot(&s).unwrap();
299 let back = decode_snapshot(&bytes).unwrap();
300 assert_eq!(s, back);
301 }
302
303 #[test]
304 fn split_then_assemble_roundtrip() {

Callers

nothing calls this directly

Calls 3

snapshotFunction · 0.85
encode_snapshotFunction · 0.85
decode_snapshotFunction · 0.85

Tested by

no test coverage detected