mirror of
https://github.com/block/buzz.git
synced 2026-11-03 07:51:22 +00:00
test(readStateManager): consolidate suite 6929 → 3785 lines via harness + table-driven mirrors
Same 88 behavioral witnesses, same mutation coverage. All 100 tests pass. Zero production-file changes; no sibling test files touched. Approach: - Shared scenario harness (makeFakeTimers, makeFakeRelay, makeFenceHandle, makeLocalStorage, wireDrainCallback) replaces 82 per-test manager constructions - Table-driven mirror pairs collapse drain_crashAfter* read/unread symmetric pairs and incomplete-verdict cases into parameterized test() rows - Comment pruning: one-line intent header retained per test; narrated step-by-step comments removed Co-authored-by: Will Pfleger <pfleger.will@gmail.com> Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
This commit is contained in: