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

moonbitlang / core / 6492
89%

Build:
DEFAULT BRANCH: main
Ran 01 Sep 2026 09:19AM UTC
Jobs 1
Files 453
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

01 Sep 2026 09:17AM UTC coverage: 90.983% (-0.001%) from 90.984%
6492

push

github

bobzhang
refactor(encoding/utf16): drop the dead leading surrogate checks

`utf16_needs_scalar_le_v128` and its BE twin each tested the first code unit
for a surrogate before entering the scan loop. That test can never fire:

- with >= 16 bytes left the first arm checks all eight code units of the
  block, including the first, via `utf16_v128_has_surrogate`;
- with fewer, the `[u16le(0xD800..=0xDFFF), ..]` arm catches the first code
  unit itself.

The check predates the bitstring rewrite, where the loop's own arms took over
the job. Remove it from both functions. No behavior change; the oracle tests
in `quickcheck_test.mbt` — including "a surrogate at every position of a
vectorized block" — cover the first-code-unit case.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013wPGhicD5xMW9xH5Uk56iK

16861 of 18532 relevant lines covered (90.98%)

283433.33 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6492.1 01 Sep 2026 09:19AM UTC 454
91.0
GitHub Action Run
Source Files on build 6492
  • Tree
  • List 453
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d0a9af91 on github
  • Prev Build on main (#6490)
  • Next Build on main (#6494)
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