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

moonbitlang / core / 4171

05 May 2026 03:24PM UTC coverage: 94.546% (+0.004%) from 94.542%
4171

push

github

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

Same shape as #3533 but in three other argparse files:

- `parser.mbt`: `match cmd.build_error { Some(err) => raise err; None => () }` and `match parent_matches.parsed_subcommand { Some(...) => big-block; None => () }`
- `parser_validate.mbt`: `match cmd.build_error { Some(err) => raise err; None => () }`
- `help_render.mbt`: `match arg.env { Some(env_name) => notes.push(...); None => () }`

Replaced with `if X is Some(y) { ... }` form.

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>

5 of 6 new or added lines in 3 files covered. (83.33%)

14857 of 15714 relevant lines covered (94.55%)

209833.29 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

93.37
/argparse/parser_validate.mbt


Source Not Available

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