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

moonbitlang / core / 6721
89%

Build:
DEFAULT BRANCH: main
Ran 23 Sep 2026 06:01AM UTC
Jobs 1
Files 448
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

23 Sep 2026 05:59AM UTC coverage: 89.487% (+0.002%) from 89.485%
6721

push

github

web-flow
feat: let Map::map and HashMap::map take a raising function (#4258)

* feat: let Map::map and HashMap::map take a raising function

Functional collection operations accept a raising callback (`raise?`):
self is never modified, so an error simply discards the partial result.
filter already does; map, the other functional transform on the two
map types, did not. In-place operations (retain, update, get_or_init)
stay non-raising, since an error there would leave the collection
half-modified.

Adding `raise?` is source compatible: non-raising callers need no try.

Part of #4256.

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

* test: make the map raise tests prove their claims

From review: raise on the second call via a counter, so a partial
result has been built whatever the hash order, and check non-raising
use through a helper that is not declared `raise`, so it only compiles
if `map` with a non-raising function does not raise.

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

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

16462 of 18396 relevant lines covered (89.49%)

274678.77 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6721.1 23 Sep 2026 06:01AM UTC 448
89.49
GitHub Action Run
Source Files on build 6721
  • Tree
  • List 448
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 1fd72c54 on github
  • Prev Build on main (#6713)
  • Next Build on main (#6720)
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