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

moonbitlang / core / 4259
94%

Build:
DEFAULT BRANCH: main
Ran 08 May 2026 01:41PM UTC
Jobs 1
Files 364
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

08 May 2026 01:40PM UTC coverage: 94.637% (-0.001%) from 94.638%
4259

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>

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

14877 of 15720 relevant lines covered (94.64%)

218296.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4259.1 08 May 2026 01:41PM UTC 365
94.65
GitHub Action Run
Source Files on build 4259
  • Tree
  • List 364
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 26d5cbbb on github
  • Prev Build on main (#4252)
  • Next Build on main (#4264)
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