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

moonbitlang / core / 4156
94%

Build:
DEFAULT BRANCH: main
Ran 05 May 2026 02:20PM 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 02:19PM UTC coverage: 94.546% (-0.002%) from 94.548%
4156

push

github

bobzhang
refactor(argparse): declarative levenshtein loops + Array initializers

In `argparse/parser_suggest.mbt::levenshtein`:

- Replace the row-init loop `for j = 0; j <= n; { prev.push(j); curr.push(0); continue j+1 }`
  with declarative initializers:
    `let mut prev = Array::makei(n + 1, j => j)`
    `let mut curr = Array::make(n + 1, 0)`
- Replace c-style outer loop `for i = 1; i <= m; { ... continue i + 1 }`
  with `for i in 1..<(m + 1) { ... }`
- Replace c-style inner loop `for j2 = 1; j2 <= n; { ... continue j2 + 1 }`
  with `for j2 in 1..<(n + 1) { ... }`

`levenshtein` only runs when argparse needs to suggest a typo correction
for an unknown flag, on bounded candidate strings — not a hot path.

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>

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

14874 of 15732 relevant lines covered (94.55%)

218124.88 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4156.1 05 May 2026 02:20PM UTC 365
94.56
GitHub Action Run
Source Files on build 4156
  • Tree
  • List 364
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • be562c13 on github
  • Prev Build on main (#4151)
  • Next Build on main (#4157)
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