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

Function recover_nonexistent_file

nodedb-wal/src/recovery.rs:115–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113
114 #[test]
115 fn recover_nonexistent_file() {
116 let dir = tempfile::tempdir().unwrap();
117 let path = dir.path().join("nonexistent.wal");
118
119 let info = recover(&path).unwrap();
120 assert_eq!(info.last_lsn, 0);
121 assert_eq!(info.record_count, 0);
122 }
123
124 #[test]
125 fn recover_with_records() {

Callers

nothing calls this directly

Calls 3

recoverFunction · 0.85
joinMethod · 0.80
pathMethod · 0.45

Tested by

no test coverage detected