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

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

Build:
DEFAULT BRANCH: main
Ran 05 May 2026 03:45PM UTC
Files 365
Run time 16s
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 03:44PM UTC coverage: 94.63% (+0.08%) from 94.555%
4178.1

push

github

bobzhang
refactor(argparse): use 'is' pattern for Some-or-noop match blocks

Multiple sites in argparse/parser_globals_merge.mbt followed the same
shape:

```moonbit
match X { Some(y) => action(y); None => () }
```

Replaced with the equivalent `is`-pattern:

```moonbit
if X is Some(y) { action(y) }
```

Plus:
- one early-Some-fallback `match parent_source { Some(s) => Some(s); None => child_source }` collapsed to `if parent_source is Some(_) { parent_source } else { child_source }`
- one big-block `match child.flags.get(name) { Some(v) => big-body; None => () }` flattened with `guard ... is Some(v) else { return }`
- nested `match Some/None` inside `propagate_globals_to_child` flattened to nested `if X is Some(...)`

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>

14872 of 15716 relevant lines covered (94.63%)

209806.5 hits per line

Source Files on job 4178.1
  • Tree
  • List 365
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 4178
  • 03bc394d on github
  • Prev Job for on main (#4175.1)
  • Next Job for on main (#4184.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