Skip to content

Close the coverage gaps in cmd and app - #21

Merged
namest504 merged 10 commits into
mainfrom
test/coverage-gaps
Aug 21, 2026
Merged

Close the coverage gaps in cmd and app#21
namest504 merged 10 commits into
mainfrom
test/coverage-gaps

Conversation

@namest504

Copy link
Copy Markdown
Owner

Summary

  • Table tests for summaryLine and resolveASCII (t.Setenv-isolated locale matrix)
  • SimulationScreen smoke tests for the menu, settings, and history screens at 80x24 and 20x10
  • Event-loop tests driving runMenu/runSettings/showHistory with injected key sequences
  • Game tests: construction fallbacks, cozy auto-graph exemption, pause/backspace/finish/graph-toggle key handling, graph-view smoke
  • Monotone-cubic local-extrema regression test

cmd/termtype coverage 24% -> 75.5%, internal/app 46% -> 72.2%. Test files only.

Make chartStyles the single source of truth for style codes so
chartOptionsFor and newSettingsModel can no longer disagree on the
fallback for an unknown code: both now fall back to braille2 instead
of chartOptionsFor's braille2 vs newSettingsModel's index-0 braille1,
which used to render braille2, display braille1, and silently rewrite
the config to braille1 on any unrelated settings change.

Also: drawSettings truncates rows/help to terminal width like
drawMenu/history do; renderBraille's loop locals no longer shadow the
lo/hi bounds parameters; MockScreen in typing_renderer_test.go keeps
one cell map instead of two.
@namest504
namest504 changed the base branch from feat/menu-settings to main August 21, 2026 00:24
@namest504
namest504 merged commit 362ea04 into main Aug 21, 2026
1 check passed
@namest504
namest504 deleted the test/coverage-gaps branch August 21, 2026 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant