-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
enhancementNew feature or requestNew feature or requesttestingTests and qualityTests and qualitytuiTUI dashboardTUI dashboard
Description
Parent: #542
Problem
EventReader is hardwired to crossterm, making it impossible to inject synthetic events in tests. The tui_loop cannot be exercised without a real terminal.
Requirements
- Extract
EventSourcetrait fromEventReader - Implement
CrosstermEventSourcefor production use - Implement
MockEventSourceacceptingVec<AppEvent>ormpsc::Receiver<AppEvent> - Make
tui_loopgeneric overEventSource
Acceptance criteria
tui_loopcan run in tests with synthetic events without a real terminal- No behavioral changes to production code path
- All existing tests pass
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesttestingTests and qualityTests and qualitytuiTUI dashboardTUI dashboard