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

moonbitlang / core / 4193

05 May 2026 11:22PM UTC coverage: 94.618%. Remained the same
4193

push

github

bobzhang
refactor(argparse): use Array::is_empty instead of length() == 0

argparse uniformly used `xs.length() == 0` while the rest of moonbitlang/core
prefers `.is_empty()` (60+ uses). Fix the style inconsistency: 9 sites
across `parser.mbt`, `parser_validate.mbt`, and `help_render.mbt`.

```diff
-if groups.length() == 0 {
+if groups.is_empty() {
```

Bundled because all sites are mechanical and reside in the same package.

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>

8 of 9 new or added lines in 3 files covered. (88.89%)

14839 of 15683 relevant lines covered (94.62%)

218806.14 hits per line

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

79.21
/argparse/parser.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