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

umputun / revdiff / 24055872851
91%

Build:
DEFAULT BRANCH: master
Ran 06 Apr 2026 11:15PM UTC
Jobs 1
Files 19
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

06 Apr 2026 11:14PM UTC coverage: 91.116% (-0.05%) from 91.169%
24055872851

push

github

web-flow
Detect binary files in diff with size delta and IsBinary flag (#44)

* Detect binary files in diff and show placeholder with file size delta

Binary files in git diffs previously showed as blank (no content) because
ParseUnifiedDiff never found hunk headers for them. Now detects git's
"Binary files ... differ" marker and returns a placeholder enriched with
size info from git diff --stat (e.g. "(binary file: 1.0 KB → 2.0 KB)").

* Add IsBinary field and header-based new/deleted detection for binary diffs

Replace fragile string comparison (Content == BinaryPlaceholder) with an
explicit IsBinary bool on DiffLine. ParseUnifiedDiff now tracks "new file
mode" / "deleted file mode" from diff headers so the placeholder content
is correct even when git diff --stat fails (e.g. non-English locale).
Also clarifies locale assumptions in binaryStatRe and binaryFilesRe
comments and uses binaryChangeKind for accurate create/delete detection
when stat parsing succeeds.

* Refine binary diff helpers

79 of 89 new or added lines in 2 files covered. (88.76%)

4154 of 4559 relevant lines covered (91.12%)

460.74 hits per line

Uncovered Changes

Lines Coverage ∆ File
10
89.8
-1.11% diff/diff.go
Jobs
ID Job ID Ran Files Coverage
1 24055872851.1 06 Apr 2026 11:15PM UTC 19
91.12
GitHub Action Run
Source Files on build 24055872851
  • Tree
  • List 19
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 713438b1 on github
  • Prev Build on master (#24055813812)
  • Next Build on master (#24057135254)
  • 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