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

moonbitlang / core / 4196
95%

Build:
DEFAULT BRANCH: main
Ran 05 May 2026 11:24PM 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 11:22PM UTC coverage: 94.617% (-0.001%) from 94.618%
4196

push

github

bobzhang
refactor(argparse): collapse has_subcommands_for_help with Array::any

```diff
 fn has_subcommands_for_help(cmd : Command) -> Bool {
-  if help_subcommand_enabled(cmd) {
-    return true
-  }
-  for sub in cmd.subcommands {
-    if !sub.hidden {
-      return true
-    }
-  }
-  false
+  help_subcommand_enabled(cmd) || cmd.subcommands.any(sub => !sub.hidden)
 }
```

Same idiom as the earlier `Array::any` collapses (#3530). Boolean
short-circuit on the early-exit branch preserves the original behavior.

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>

1 of 1 new or added line in 1 file covered. (100.0%)

14835 of 15679 relevant lines covered (94.62%)

218861.95 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4196.1 05 May 2026 11:24PM UTC 365
94.63
GitHub Action Run
Source Files on build 4196
  • Tree
  • List 364
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 95ad6d84 on github
  • Prev Build on main (#4195)
  • Next Build on main (#4200)
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