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

moonbitlang / core / 624

01 Aug 2025 09:31AM UTC coverage: 90.259% (+0.003%) from 90.256%
624

Pull #2527

github

bobzhang
refactor(show): rewrite String Show::output with functional for-loop

Replace imperative mutable state + helper function with a functional-style for loop that carries state (index, segment start) inside the loop variables. This:
• clarifies control-flow—each branch clearly advances loop state via continue.
• removes the extra mutable var/helper closure.
• preserves behaviour and performance.

All unit tests pass locally.
Pull Request #2527: refactor/string show output

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

1 existing line in 1 file now uncovered.

8497 of 9414 relevant lines covered (90.26%)

228762.01 hits per line

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

98.08
/string/view.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