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

Function serialize_roundtrip

nodedb/src/query/bitmap.rs:77–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75
76 #[test]
77 fn serialize_roundtrip() {
78 let bm = from_ids(0..10000);
79 let bytes = serialize(&bm).unwrap();
80 let bm2 = deserialize(&bytes).unwrap();
81 assert_eq!(bm, bm2);
82 }
83
84 #[test]
85 fn empty_bitmap() {

Callers

nothing calls this directly

Calls 3

from_idsFunction · 0.85
serializeFunction · 0.85
deserializeFunction · 0.85

Tested by

no test coverage detected