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

moonbitlang / core / 4751
91%

Build:
DEFAULT BRANCH: main
Ran 26 Jun 2026 07:57AM UTC
Jobs 1
Files 379
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

26 Jun 2026 07:55AM UTC coverage: 90.964% (+0.01%) from 90.953%
4751

push

github

bobzhang
refactor(json): drop redundant control-char checks in lex_string

Two checks named '\n'/'\r' explicitly even though the general
control-char guard already covers them:

- Fast path: `c == '\n' || c == '\r' || c < ' '` is just `c < ' '`,
  since '\n' (0x0A) and '\r' (0x0D) are both below ' ' (0x20).
- Slow path: the `Some('\n' | '\r') => invalid_char(shift=-1)` arm is
  subsumed by the catch-all `Some(ch) => if ch.to_int() < 32 { ... }`.

Collapse both to the single control-char check. Add a slow-path
regression test (raw newline after a valid '\t' escape) since that
branch was previously only reached via the now-removed explicit arm.

Pure refactor, no behavior change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

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

1 existing line in 1 file now uncovered.

15151 of 16656 relevant lines covered (90.96%)

197437.53 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
95.12
0.0% json/lex_main.mbt
Jobs
ID Job ID Ran Files Coverage
1 4751.1 26 Jun 2026 07:57AM UTC 380
90.98
GitHub Action Run
Source Files on build 4751
  • Tree
  • List 379
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 50b4942f on github
  • Prev Build on main (#4749)
  • Next Build on main (#4761)
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