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

moonbitlang / core / 4178
95%

Build:
DEFAULT BRANCH: main
Ran 05 May 2026 03:45PM UTC
Jobs 1
Files 364
Run time 2min
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.62% (+0.08%) from 94.545%
4178

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>

34 of 39 new or added lines in 1 file covered. (87.18%)

14843 of 15687 relevant lines covered (94.62%)

210194.36 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
80.73
6.49% argparse/parser_globals_merge.mbt
Jobs
ID Job ID Ran Files Coverage
1 4178.1 05 May 2026 03:45PM UTC 365
94.63
GitHub Action Run
Source Files on build 4178
  • Tree
  • List 364
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 03bc394d on github
  • Prev Build on main (#4175)
  • Next Build on main (#4184)
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