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

moonbitlang / core / 4646
94%

Build:
DEFAULT BRANCH: main
Ran 07 Jun 2026 05:40AM UTC
Jobs 1
Files 370
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

07 Jun 2026 05:39AM UTC coverage: 94.247% (+0.006%) from 94.241%
4646

push

github

bobzhang
refactor(string): use `re"..."` regex literal for compile-time patterns

Converts ~82 `@string.Regex("<literal>")` and `Regex("<literal>")` call
sites in `string/` to the `re"<literal>"` regex literal, which lets the
compiler validate the pattern at compile time rather than raising at
runtime.

- Variable patterns (`Regex(pattern)`, `Regex(make_large_pattern())`)
  stay as-is — `re"..."` only accepts a literal.
- Patterns inside `try`/`try!`/`try?` stay as `Regex(...)` because they
  intentionally exercise the runtime failure path with invalid patterns
  (`"("`, `"[abc"`, `"[-a]"`, etc.).
- Four sites with `\b` / `\B` word-boundary assertions also stay as
  `@string.Regex("\\b")` / `\\B` — the runtime regex engine accepts
  them, but the compile-time literal rejects them.

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

14957 of 15870 relevant lines covered (94.25%)

207094.38 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4646.1 07 Jun 2026 05:40AM UTC 371
94.26
GitHub Action Run
Source Files on build 4646
  • Tree
  • List 370
  • Changed 3
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 184fec1c on github
  • Prev Build on main (#4644)
  • Next Build on main (#4649)
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