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

moonbitlang / core / 4145
94%

Build:
DEFAULT BRANCH: main
Ran 05 May 2026 01:55PM 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

05 May 2026 01:54PM UTC coverage: 94.548% (-0.002%) from 94.55%
4145

push

github

bobzhang
refactor(argparse): Map literal + spread + comprehension in build_*_index

`build_long_index`: replace `let index : Map[K,V] = {}` with `Map([])`
and `globals.iter() + args.iter()` with the array spread `[..globals, ..args]`.

`build_short_index`: collapse the two-loop population into a single Map
comprehension `Map([for arg in [..globals, ..args] if ... => (key, arg)])`.

Both transforms walk the same elements once. The spread allocates a
small temporary array (bounded by the global+local arg count, typically
<20 in CLI use), which is acceptable for argparse's non-hot-path
invocation pattern.

Semantics-preserving: `moon test -p argparse` (225/225) 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 1 file covered. (100.0%)

14879 of 15737 relevant lines covered (94.55%)

218055.67 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4145.1 05 May 2026 01:55PM UTC 365
94.56
GitHub Action Run
Source Files on build 4145
  • Tree
  • List 364
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 96f24e72 on github
  • Prev Build on main (#4144)
  • Next Build on main (#4151)
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