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

dandavison / delta / 43732751284
66%
master: 59%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 15 Nov 2026 04:00PM UTC
Jobs 1
Files 65
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

15 Nov 2026 03:57PM UTC coverage: 65.79% (-0.05%) from 65.841%
43732751284

push

github

web-flow
Emit the h record when the hunk header row is skipped (#2334)

* Emit the h record when the hunk header row is skipped

With a hunk-header-style that shows neither the file nor the line
number, a hunk without a code fragment after @@ gets no header row, so
no h record was written for it. Put the record on the blank line above
the hunk in that case, the same way the omit style puts it on an empty
row.

Fixes #2333

* Work out the hunk header row once rather than twice

Deciding before the blank row whether the hunk header row would be empty
meant working out its contents twice per hunk. Instead, the function that
draws the row also writes the blank row above it, and puts the h record on
the blank row when there is no header row. The test moves to
hunk_header.rs and covers a second hunk.

* Restore the test for a hunk whose hunk header row is skipped

* Say what the blank-row argument means at each call site

A bare true/false did not say what it controlled. Use an enum, as the
function's other include_* arguments do.

---------

Co-authored-by: Dan Davison <dandavison7@gmail.com>

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

15 existing lines in 7 files now uncovered.

2702 of 4107 relevant lines covered (65.79%)

1.83 hits per line

Coverage Regressions

Lines Coverage ∆ File
5
41.34
-1.18% src/wrapping.rs
4
35.48
-4.52% src/options/option_value.rs
2
53.74
-1.36% src/utils/process.rs
1
48.78
-0.06% src/color.rs
1
62.14
-0.71% src/delta.rs
1
77.42
-0.91% src/git_config/mod.rs
1
88.61
-1.64% src/handlers/hunk.rs
Jobs
ID Job ID Ran Files Coverage
1 43732751284.1 15 Nov 2026 04:00PM UTC 65
65.79
GitHub Action Run
Source Files on build 43732751284
  • Tree
  • List 65
  • Changed 25
  • Source Changed 0
  • Coverage Changed 25
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 487512e5 on github
  • Prev Build on main (#43728544323)
  • Next Build on main (#43734319875)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc