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

umputun / revdiff / 24269886359
90%

Build:
DEFAULT BRANCH: master
Ran 11 Apr 2026 12:12AM 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

11 Apr 2026 12:10AM UTC coverage: 88.217% (+0.003%) from 88.214%
24269886359

push

github

umputun
test(ui): pin hunk-centering test expectations to literals

Follow-up to #83. The WrapMode, WithAnnotation, and CollapsedMode tests
computed expected offsets via the same helpers (wrappedLineCount,
wrappedAnnotationLineCount, cursorViewportY) that centerHunkInViewport
uses internally, so a bug in any helper would fail both sides of the
assertion and hide regressions.

Replace helper calls with literal constants derived from test setup:
- WrapMode: force singleFile mode for deterministic wrap width (73),
  200 'a' chars wrap to 3 rows, hunk height = 1 + 3 = 4
- WithAnnotation: short annotation contributes 1 row, hunk height = 3
- CollapsedMode: 3 hidden removes contribute 0 rows, hunk height = 3

Also add a comment to centerHunkInViewport explaining that the hunk-end
scan intentionally includes hidden ChangeRemove lines because
hunkLineHeight returns 0 for them.

3 of 3 new or added lines in 1 file covered. (100.0%)

5735 of 6501 relevant lines covered (88.22%)

449.61 hits per line

Jobs
ID Job ID Ran Files Coverage
1 24269886359.1 11 Apr 2026 12:12AM UTC 32
88.22
GitHub Action Run
Source Files on build 24269886359
  • Tree
  • List 32
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e50fade2 on github
  • Prev Build on master (#24269731421)
  • Next Build on master (#24277672794)
  • 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