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

moonbitlang / core / 4581
94%

Build:
DEFAULT BRANCH: main
Ran 05 Jun 2026 10:06AM 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

05 Jun 2026 10:05AM UTC coverage: 94.021% (+0.003%) from 94.018%
4581

push

github

bobzhang
feat(test): add assert_raise and expect_error helpers

`try?` will be deprecated in favor of native `raise`, but tests still
need a clean way to assert that a callback raises. Split the use case
into two helpers:

- `@test.assert_raise(f)` for "I just want to assert it raises" — no
  return value, no `let _ =` ceremony at the call site.
- `@test.expect_error(f)` for "give me the error so I can interrogate
  it" — returns the raised error so the caller can compose with
  `inspect`, `guard ... is`, or `assert_true(... is ...)`.

Both helpers fail at the call site (with location info) when the
callback does not raise. Signatures use open `raise` to match the
existing test-helper convention (`fail`, `assert_same_object`).

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

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

14954 of 15905 relevant lines covered (94.02%)

206638.65 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4581.1 05 Jun 2026 10:06AM UTC 371
94.03
GitHub Action Run
Source Files on build 4581
  • Tree
  • List 370
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 070d84ff on github
  • Prev Build on main (#4579)
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