Skip to content

Test coverage boost: 22 tests for medium-priority TUI functions#242

Merged
clcollins merged 1 commit into
mainfrom
srepd/test-coverage-medium
Jun 1, 2026
Merged

Test coverage boost: 22 tests for medium-priority TUI functions#242
clcollins merged 1 commit into
mainfrom
srepd/test-coverage-medium

Conversation

@clcollins
Copy link
Copy Markdown
Owner

Summary

  • 22 new tests for: InitialModelWithConfig, renderIncident, renderIncidentMarkdown, switchInputFocusMode, switchErrorFocusMode, doIfIncidentSelected
  • pkg/tui coverage: 60.2% → 62.5%
  • Tests only, no source code changes

Partial fix for #205

🤖 Generated with Claude Code

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.10%. Comparing base (0d0986a) to head (eaab270).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #242      +/-   ##
==========================================
+ Coverage   67.73%   70.10%   +2.37%     
==========================================
  Files          26       26              
  Lines        3790     3740      -50     
==========================================
+ Hits         2567     2622      +55     
+ Misses       1088      974     -114     
- Partials      135      144       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Cover InitialModelWithConfig, renderIncident, renderIncidentMarkdown,
switchInputFocusMode, switchErrorFocusMode, and doIfIncidentSelected
with unit tests. Brings overall pkg/tui coverage from 60.2% to 62.4%.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@clcollins clcollins force-pushed the srepd/test-coverage-medium branch from eaab270 to bb1d268 Compare June 1, 2026 17:08
@clcollins clcollins merged commit 7426ac2 into main Jun 1, 2026
5 of 6 checks passed
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.

2 participants