docs(04-02): complete config and player tests plan

- SUMMARY: 27 test cases across 6 packages, all passing with -race
- STATE: Phase 4 complete, 14/26 requirements delivered
- ROADMAP: Phase 04 marked complete
- REQUIREMENTS: TEST-04, TEST-05 marked complete
This commit is contained in:
2026-03-03 17:04:26 -05:00
parent 5513d47a4a
commit 7703297ebf
3 changed files with 155 additions and 24 deletions
+4 -4
View File
@@ -39,8 +39,8 @@ Requirements for the consolidation milestone. Each maps to roadmap phases.
- [x] **TEST-01**: In-memory SQLite test helper (database.NewTestDB) exists, applies same migrations and PRAGMAs as production NewDB, returns a clean DB per test
- [x] **TEST-02**: Queue package has unit tests covering SetQueue, Next, Previous, shuffle mode, repeat modes, and state persistence (~15-20 tests)
- [ ] **TEST-03**: Database package has unit tests covering FTS5 search queries (basic, empty, special characters), search index rebuild, and schema migrations (~10-15 tests)
- [ ] **TEST-04**: Config package has unit tests covering load/save roundtrip, validation rules, default application, and behavior with missing/empty config files (~8-10 tests)
- [ ] **TEST-05**: Player pure logic (UserVolume-to-Volume conversion, state serialization, format detection) is extracted into testable functions with unit tests (~5-8 tests)
- [x] **TEST-04**: Config package has unit tests covering load/save roundtrip, validation rules, default application, and behavior with missing/empty config files (~8-10 tests)
- [x] **TEST-05**: Player pure logic (UserVolume-to-Volume conversion, state serialization, format detection) is extracted into testable functions with unit tests (~5-8 tests)
- [ ] **TEST-06**: Library scan logic has unit tests covering metadata processing, entity cache behavior, and orphan cleanup (~10-15 tests)
### UX
@@ -110,8 +110,8 @@ Which phases cover which requirements. Updated during roadmap creation.
| TEST-01 | Phase 3: Test Infrastructure | Complete |
| TEST-02 | Phase 4: Queue, Config & Player Tests | Complete |
| TEST-03 | Phase 5: Database & Library Tests | Pending |
| TEST-04 | Phase 4: Queue, Config & Player Tests | Pending |
| TEST-05 | Phase 4: Queue, Config & Player Tests | Pending |
| TEST-04 | Phase 4: Queue, Config & Player Tests | Complete |
| TEST-05 | Phase 4: Queue, Config & Player Tests | Complete |
| TEST-06 | Phase 5: Database & Library Tests | Pending |
| UX-01 | Phase 8: Frontend Performance & UX | Pending |
| UX-02 | Phase 8: Frontend Performance & UX | Pending |