test: add end-to-end tests and benchmark suite

- Add db_e2e_test.go: WAL roundtrip, partial write recovery, multi-segment
  recovery, Get semantics, concurrent read/write, large batch rotation tests
- Add bench_test.go: SinglePut, ConcurrentPut, Get, ConcurrentGet,
  MixedReadWrite, WALRecovery benchmarks with b.ReportAllocs()

Wave 5 complete (T20 + T21). All implementation tasks done.
This commit is contained in:
dailz
2026-06-12 14:20:16 +08:00
parent 0fe1530e25
commit 5905dbc06f
4 changed files with 558 additions and 4 deletions
+2 -2
View File
@@ -1525,7 +1525,7 @@ Max Concurrent: 6 (Wave 1b)
**Commit**: YES
- Message: `feat: integrate DB with Open/Close/Put/Delete/Get`
- [ ] 20. End-to-end + crash recovery tests
- [x] 20. End-to-end + crash recovery tests
**What to do**:
- 创建 `db_test.go`:集成测试
@@ -1591,7 +1591,7 @@ Max Concurrent: 6 (Wave 1b)
**Commit**: YES
- Message: `test: add end-to-end and crash recovery tests`
- [ ] 21. Benchmark suite
- [x] 21. Benchmark suite
**What to do**:
- 创建 `bench_test.go`:性能基准