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

Function test_header

nodedb-wal/src/crypto.rs:465–469  ·  view source on GitHub ↗
(lsn: u64)

Source from the content-addressed store, hash-verified

463 }
464
465 fn test_header(lsn: u64) -> [u8; HEADER_SIZE] {
466 let mut h = [0u8; HEADER_SIZE];
467 h[8..16].copy_from_slice(&lsn.to_le_bytes());
468 h
469 }
470
471 #[test]
472 fn encrypt_decrypt_roundtrip() {

Calls

no outgoing calls

Tested by

no test coverage detected