()
| 491 | |
| 492 | #[test] |
| 493 | fn total_size_bytes() { |
| 494 | let dir = tempfile::tempdir().unwrap(); |
| 495 | let wal_dir = dir.path().join("wal"); |
| 496 | |
| 497 | let mut wal = SegmentedWal::open(test_config(&wal_dir)).unwrap(); |
| 498 | wal.append(RecordType::Put as u32, 1, 0, 0, b"data") |
| 499 | .unwrap(); |
| 500 | wal.sync().unwrap(); |
| 501 | |
| 502 | let size = wal.total_size_bytes().unwrap(); |
| 503 | assert!(size > 0); |
| 504 | } |
| 505 | |
| 506 | #[test] |
| 507 | fn reopen_continues_lsn() { |
nothing calls this directly
no test coverage detected