Module
w3cos-runtime
Description
The runtime crate (layout, render, window, state) has minimal tests. Add comprehensive unit tests.
Areas to Test
- layout.rs: Verify Taffy layout computation for various Component trees (flex, grid, nested)
- state.rs: Already has 6 tests, but add edge cases (multiple signals, concurrent access patterns)
- render.rs: Snapshot tests — render a Component to a Pixmap and verify pixel values at key positions
- Integration: Build a Component tree with signals + onClick, verify state changes propagate
Acceptance Criteria
Difficulty
Medium
Module
w3cos-runtimeDescription
The runtime crate (layout, render, window, state) has minimal tests. Add comprehensive unit tests.
Areas to Test
Acceptance Criteria
cargo test -p w3cos-runtimeDifficulty
Medium