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

umputun / revdiff / 24231077439
89%

Build:
DEFAULT BRANCH: master
Ran 10 Apr 2026 07:09AM UTC
Jobs 1
Files 32
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

10 Apr 2026 07:07AM UTC coverage: 88.055% (+0.6%) from 87.498%
24231077439

push

github

web-flow
feat: add intra-line word-diff highlighting (#87)

* feat: add color utility and theme wiring for intra-line word-diff

* feat: add core word-diff algorithm — tokenizer, LCS, and range computation

* feat: add line pairing and intra-range computation for word-diff

* feat: integrate intra-line word-diff into render pipeline

Wire recomputeIntraRanges into handleFileLoaded, add
applyIntraLineHighlight method that inserts ANSI bg markers
for changed words in add/remove lines. Supports color mode
(WordAddBg/WordRemoveBg with line bg restoration) and no-color
fallback (reverse-video). Add background state tracking to
reemitANSIState so word-diff bg survives across wrapped
continuation lines. Extract buildSGRPrefix to reduce nesting.

* feat: complete intra-line word-diff — collapsed refactor, themes, docs, review fixes

* move completed plan: 20260409-intraline-word-diff.md

* fix: address Copilot review — hex validation and long-line cap

- parseHexRGB now validates each nibble explicitly; invalid hex chars
  return ok=false instead of silently parsing as black. matches the
  shiftLightness contract ("unparseable -> unchanged").
- changedTokenRanges caps line length at 500 bytes before running LCS
  to prevent O(m*n) memory blowup on pathological input (minified
  files, very long configs). lines above the cap still render with
  whole-line add/remove highlighting, just no word-level detail.

Copilot also flagged `for i := range n` as a compile error but that's
a false positive — Go 1.22+ supports integer ranges.

435 of 470 new or added lines in 7 files covered. (92.55%)

1 existing line in 1 file now uncovered.

5588 of 6346 relevant lines covered (88.06%)

397.38 hits per line

Uncovered Changes

Lines Coverage ∆ File
23
53.05
-0.03% app/main.go
5
94.74
app/ui/colorutil.go
4
92.79
0.57% app/ui/diffview.go
3
98.51
app/ui/worddiff.go

Coverage Regressions

Lines Coverage ∆ File
1
92.79
0.57% app/ui/diffview.go
Jobs
ID Job ID Ran Files Coverage
1 24231077439.1 10 Apr 2026 07:09AM UTC 32
88.06
GitHub Action Run
Source Files on build 24231077439
  • Tree
  • List 32
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 8bd39735 on github
  • Prev Build on master (#24220377546)
  • Next Build on master (#24254538556)
  • 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