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

Function header_roundtrip

nodedb-wal/src/record/header.rs:166–170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164
165 #[test]
166 fn header_roundtrip() {
167 let header = make_header(1 | REQUIRED_FLAG, 3);
168 let bytes = header.to_bytes();
169 assert_eq!(header, RecordHeader::from_bytes(&bytes));
170 }
171
172 #[test]
173 fn header_golden_54_bytes_exact_offsets() {

Callers

nothing calls this directly

Calls 2

make_headerFunction · 0.70
to_bytesMethod · 0.45

Tested by

no test coverage detected