Skip to content

Boost TUI test coverage: 23 tests for 8 uncovered functions#230

Merged
clcollins merged 1 commit into
mainfrom
srepd/test-coverage-boost-2
May 30, 2026
Merged

Boost TUI test coverage: 23 tests for 8 uncovered functions#230
clcollins merged 1 commit into
mainfrom
srepd/test-coverage-boost-2

Conversation

@clcollins
Copy link
Copy Markdown
Owner

Summary

  • 23 new tests (+600 lines) in pkg/tui/commands_test.go
  • Covers: reassignIncidents, reEscalateIncidents, fetchEscalationPolicyAndReEscalate, silenceIncidents, ShouldBeAcknowledged, readLogFile, execErr.Error/Code
  • pkg/tui coverage: 55.6% → 58.5%
  • All target functions now at 100%

Partial fix for #205

🤖 Generated with Claude Code

Test 8 previously-uncovered functions: reassignIncidents,
reEscalateIncidents, fetchEscalationPolicyAndReEscalate,
silenceIncidents, ShouldBeAcknowledged, readLogFile,
execErr.Error(), and execErr.Code(). Moves pkg/tui
coverage from 55.6% to 58.5%.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@clcollins clcollins force-pushed the srepd/test-coverage-boost-2 branch from 95f1996 to 5774638 Compare May 30, 2026 00:29
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.97%. Comparing base (60dd928) to head (5774638).
⚠️ Report is 10 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #230      +/-   ##
==========================================
+ Coverage   65.33%   66.97%   +1.64%     
==========================================
  Files          26       26              
  Lines        3672     3797     +125     
==========================================
+ Hits         2399     2543     +144     
+ Misses       1142     1119      -23     
- Partials      131      135       +4     

☔ 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.

@clcollins clcollins merged commit a0608a2 into main May 30, 2026
10 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