• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

umputun / revdiff / 24277629943
88%
master: 90%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v1.6.1
DEFAULT BRANCH: master
Ran 11 Apr 2026 07:28AM UTC
Jobs 1
Files 37
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Apr 2026 07:26AM UTC coverage: 88.4% (+0.2%) from 88.217%
24277629943

Pull #92

github

umputun
fix(style): address Copilot review findings on PR #92

Apply four fixes from Copilot's PR review:

1. FileStatusMark color leak (renderer.go): when Colors.Normal is
   unset, the status color had no terminating ANSI sequence and
   bled into subsequent text on the same line. Fall back to ResetFg
   ("\033[39m") when normalFg is empty. Added regression test
   TestRenderer_FileStatusMark_emptyNormalFallsBackToResetFg.

2. FileReviewedMark color leak (renderer.go): same bug pattern as
   FileStatusMark — AddFg checkmark color would bleed when Normal
   was empty. Same fix. Added regression subtest
   emptyNormalFallsBackToResetFg.

3. Pin go-pkgz/enum generator version (enums.go): the go:generate
   directives used @latest, making regeneration non-reproducible.
   Pinned to @v0.7.0 matching the version in go.mod. Verified
   regeneration produces identical output.

4. Drop tautological NotNil assertion (resolver_test.go): the
   TestResolver_Style_coversAllKeys test asserted require.NotNil on
   lipgloss.Style return values, but lipgloss.Style is a struct
   value type that can never be nil. The assertion always passed.
   Replaced with `_ = r.Style(k)` to match the sibling
   TestResolver_Color_coversAllKeys pattern — the exhaustiveness
   check's real purpose is "no panic for any defined key", not a
   nil check.
Pull Request #92: refactor(ui): extract style sub-package with Resolver/Renderer/SGR

880 of 996 new or added lines in 19 files covered. (88.35%)

1 existing line in 1 file now uncovered.

6066 of 6862 relevant lines covered (88.4%)

382.9 hits per line

Uncovered Changes

Lines Coverage ∆ File
43
51.43
-1.51% app/main.go
25
60.32
app/ui/style/color_key_enum.go
25
73.12
app/ui/style/style_key_enum.go
12
86.51
-3.42% app/ui/model.go
3
71.13
2.38% app/ui/themeselect.go
2
96.33
-0.02% app/ui/annotlist.go
2
95.93
2.94% app/ui/diffview.go
2
97.92
app/ui/style/sgr.go
1
94.21
0.13% app/ui/collapsed.go
1
98.45
app/ui/style/color.go

Coverage Regressions

Lines Coverage ∆ File
1
96.33
-0.02% app/ui/annotlist.go
Jobs
ID Job ID Ran Files Coverage
1 24277629943.1 11 Apr 2026 07:28AM UTC 37
88.4
GitHub Action Run
Source Files on build 24277629943
  • Tree
  • List 37
  • Changed 11
  • Source Changed 0
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #92
  • PR Base - master (#24269886359)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc