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

Function writer_emits_header_first

nodedb-array/src/segment/writer.rs:183–188  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

181
182 #[test]
183 fn writer_emits_header_first() {
184 let w = SegmentWriter::new(0xAA);
185 let bytes = finish_plain(w).unwrap();
186 let h = SegmentHeader::decode(&bytes).unwrap();
187 assert_eq!(h.schema_hash, 0xAA);
188 }
189
190 #[test]
191 fn writer_rejects_non_monotonic_tile_ids() {

Callers

nothing calls this directly

Calls 2

finish_plainFunction · 0.85
decodeFunction · 0.50

Tested by

no test coverage detected