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

moonbitlang / core / 8973
87%

Build:
DEFAULT BRANCH: main
Ran 03 Dec 2026 12:34PM UTC
Jobs 1
Files 670
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

03 Dec 2026 12:33PM UTC coverage: 88.215% (+0.007%) from 88.208%
8973

push

github

web-flow
feat(builtin): complete the `range_equal` family for views (#5045)

* feat(builtin): complete the `range_equal` family for views

`String` and `Bytes` each expose a checked `range_equal` plus an
`unsafe_range_equal`, but the view types were incomplete: `BytesView` had
neither, and `StringView` had no unsafe variant. The missing pieces forced
callers to write the view-to-backing offset arithmetic by hand.

Add `BytesView::range_equal`, which validates view-relative ranges before
delegating to `Bytes::unsafe_range_equal`.

Add `StringView::unsafe_range_equal`, and make `StringView::range_equal`
delegate to it, so the checked/unsafe split now matches `String` and
`Bytes` exactly.

Both are additive; no existing API changes.

Closes #4658
Part of #4613 (builtin-10)

* Preserve the checked StringView range comparison and cover zero bytes

---------

Co-authored-by: Hongbo Zhang <bobzhang1988@gmail.com>

15 of 15 new or added lines in 2 files covered. (100.0%)

25307 of 28688 relevant lines covered (88.21%)

788233.3 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8973.1 03 Dec 2026 12:34PM UTC 670
88.21
GitHub Action Run
Source Files on build 8973
  • Tree
  • List 670
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 9d792c08 on github
  • Prev Build on main (#8970)
  • Next Build on main (#8984)
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