MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / test_empty_recovery

Function test_empty_recovery

graphlite/src/txn/recovery.rs:392–403  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

390
391 #[test]
392 fn test_empty_recovery() {
393 // Create temp directory for WAL
394 let temp_dir = TempDir::new().unwrap();
395
396 // Create manager with explicit path
397 let mut manager = RecoveryManager::new(temp_dir.path().to_path_buf());
398
399 let report = manager.recover().unwrap();
400 assert_eq!(report.total_wal_entries, 0);
401 assert_eq!(report.committed_transactions.len(), 0);
402 assert_eq!(report.incomplete_transactions.len(), 0);
403 }
404}

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.80
recoverMethod · 0.80

Tested by

no test coverage detected