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

moonbitlang / core / 6367
89%

Build:
DEFAULT BRANCH: main
Ran 26 Aug 2026 07:47AM UTC
Jobs 1
Files 452
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

26 Aug 2026 07:43AM UTC coverage: 90.932% (-0.001%) from 90.933%
6367

push

github

web-flow
refactor(argparse): use list pattern and split_once in hyphen-value checks (#4159)

`should_parse_as_positional` peeked at the second character with
`get_char(1)` and a `Some/None` match; a nested list pattern
`['-', second, ..]` says the same thing in one shape and drops the
unreachable `None` arm (the preceding guards already rule out `-` and
`--...`).

`split_long` split on `=` and rejoined the tail to recover the inline
value; `split_once` matches the first separator directly, avoiding the
intermediate array and the rejoin.

Add a test covering the short-flag tail: a known short flag wins over an
`allow_hyphen_values` positional, while an unknown short token is
consumed as a positional value.

Co-authored-by: SeekMoon <noreply@moonbitlang.cn>

6 of 7 new or added lines in 2 files covered. (85.71%)

16736 of 18405 relevant lines covered (90.93%)

307364.92 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
88.89
-0.3% argparse/parser_positionals.mbt
Jobs
ID Job ID Ran Files Coverage
1 6367.1 26 Aug 2026 07:47AM UTC 453
90.95
GitHub Action Run
Source Files on build 6367
  • Tree
  • List 452
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 5fc5586d on github
  • Prev Build on main (#6365)
  • Next Build on main (#6373)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc