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

moonbitlang / core / 4259 / 1
94%
main: 94%

Build:
DEFAULT BRANCH: main
Ran 08 May 2026 01:41PM UTC
Files 365
Run time 13s
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

08 May 2026 01:40PM UTC coverage: 94.647% (-0.001%) from 94.648%
4259.1

push

github

bobzhang
refactor: build to_array result without mutation

Two more sites collapse to a comprehension, mirroring the to_json sweep
in #3547:

- hashset/hashset.mbt — `HashSet::to_array`:
  collapse `let arr = Array::new(...); for entry in self.entries { if ... { arr.push(...) } }`
  to `[for entry in self.entries if entry is Some({key, ..}) => key]`.
- sorted_map/map.mbt — `SortedMap::to_array`:
  collapse `let arr = Array::new(...); self.each((k, v) => arr.push((k, v)))`
  to `[for k, v in self => (k, v)]`.

Both `to_array` methods are conversion paths, not on the matching/insertion
hot path of the underlying data structure.

Semantics-preserving: full `moon test` (6425/6425) passes and
`moon info` produces no `.mbti` change.

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

14906 of 15749 relevant lines covered (94.65%)

217894.96 hits per line

Source Files on job 4259.1
  • Tree
  • List 365
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 4259
  • 26d5cbbb on github
  • Prev Job for on main (#4252.1)
  • Next Job for on main (#4264.1)
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