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

Function header_incompatible_major

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

Source from the content-addressed store, hash-verified

371
372 #[test]
373 fn header_incompatible_major() {
374 let mut bytes = SegmentHeader::current().to_bytes();
375 bytes[4] = VERSION_MAJOR + 1; // Future major version.
376 assert!(matches!(
377 SegmentHeader::from_bytes(&bytes),
378 Err(crate::error::ColumnarError::IncompatibleVersion { .. })
379 ));
380 }
381
382 #[test]
383 fn header_compatible_minor() {

Callers

nothing calls this directly

Calls 2

currentFunction · 0.85
to_bytesMethod · 0.45

Tested by

no test coverage detected