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

igorls / context-builder / 38033688881
87%

Build:
DEFAULT BRANCH: master
Ran 10 Oct 2026 07:17AM UTC
Jobs 1
Files 25
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 Oct 2026 07:13AM UTC coverage: 79.517% (+0.2%) from 79.353%
38033688881

push

github

web-flow
fix: detect binary files by NUL bytes and magic numbers (B2) (#27)

* fix: detect binary files by NUL bytes and magic numbers

Windows-1252 accepts every byte, so a PDF header or a single NUL in
the sniff buffer was emitted as text. Treat a NUL as binary unless a
UTF-16/32 BOM is present, recognize common binary signatures, and keep
the existing placeholder plus UTF-16 and Latin-1 transcoding.

Co-authored-by: Igor Lins e Silva <igorls@users.noreply.github.com>

* fix: do not treat a bare MZ prefix as binary

Real PE/DOS images have a NUL in the first 64 bytes, so the NUL rule
already classifies them. A text file that starts with "MZ" stays text.
OggS and fLaC remain signatures, with that trade-off documented.

Co-authored-by: Igor Lins e Silva <igorls@users.noreply.github.com>

* fix: apply binary detection in the auto-diff snapshot path

* refactor: single placeholder path in auto-diff snapshot; test non-UTF-8 text

* test: cover sniff-boundary UTF-8 handling

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Igor Lins e Silva <igorls@users.noreply.github.com>

37 of 38 new or added lines in 2 files covered. (97.37%)

4 existing lines in 1 file now uncovered.

2702 of 3398 relevant lines covered (79.52%)

4.24 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
80.52
1.08% src/markdown.rs

Coverage Regressions

Lines Coverage ∆ File
4
80.52
1.08% src/markdown.rs
Jobs
ID Job ID Ran Files Coverage
1 38033688881.1 10 Oct 2026 07:17AM UTC 25
79.52
GitHub Action Run
Source Files on build 38033688881
  • Tree
  • List 25
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #38033688881
  • bcec41ac on github
  • Prev Build on master (#38032424967)
  • Next Build on master (#38036987624)
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