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

Function invalid_magic_detected

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

Source from the content-addressed store, hash-verified

267
268 #[test]
269 fn invalid_magic_detected() {
270 let mut header = make_header(0, 0);
271 header.magic = 0xBAD0_F00D;
272 assert!(matches!(
273 header.validate(0),
274 Err(WalError::InvalidMagic { .. })
275 ));
276 }
277
278 #[test]
279 fn unsupported_version_detected() {

Callers

nothing calls this directly

Calls 1

make_headerFunction · 0.70

Tested by

no test coverage detected