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

Function header_compatible_minor

nodedb-columnar/src/format.rs:383–389  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

381
382 #[test]
383 fn header_compatible_minor() {
384 let mut bytes = SegmentHeader::current().to_bytes();
385 bytes[5] = VERSION_MINOR + 5; // Future minor version, same major.
386 let parsed = SegmentHeader::from_bytes(&bytes).expect("compatible minor");
387 assert_eq!(parsed.version_major, VERSION_MAJOR);
388 assert_eq!(parsed.version_minor, VERSION_MINOR + 5);
389 }
390
391 #[test]
392 fn footer_roundtrip() {

Callers

nothing calls this directly

Calls 3

currentFunction · 0.85
to_bytesMethod · 0.45
expectMethod · 0.45

Tested by

no test coverage detected