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

moonbitlang / core / 2432
96%

Build:
DEFAULT BRANCH: main
Ran 20 Jan 2026 08:35AM UTC
Jobs 1
Files 273
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

20 Jan 2026 08:35AM UTC coverage: 96.149% (+0.001%) from 96.148%
2432

push

github

bobzhang
fix: Deque::drain should panic on invalid bounds

Change Deque::drain to use guard + abort for invalid inputs instead of
silently returning empty deque. This makes it consistent with Array::drain
behavior and helps catch programming errors early.

Panics if:
- start < 0
- start > self.length()
- len < 0 (when provided)
- start + len > self.length() (when len is provided)

The error messages include the actual values to aid debugging:
- "Deque::drain: start index out of bounds (start=X, deque.length()=Y)"
- "Deque::drain: len out of bounds (start=X, len=Y, deque.length()=Z)"

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

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

11111 of 11556 relevant lines covered (96.15%)

394074.5 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2432.1 20 Jan 2026 08:35AM UTC 274
96.16
GitHub Action Run
Source Files on build 2432
  • Tree
  • List 273
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 1d72fb68 on github
  • Prev Build on main (#2425)
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