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

moonbitlang / core / 593

30 Jul 2025 09:50AM UTC coverage: 90.228% (+0.01%) from 90.215%
593

Pull #2515

github

bobzhang
feat(string): Add missing View methods for API consistency

- Add View::strip_prefix() and View::strip_suffix() methods
- Add View::to_array() and View::to_bytes() methods
- Add missing String::strip_prefix() method
- Improve View::to_bytes() to work directly with view range
- Update method documentation with better examples
- Regenerate string.mbti with new method signatures

This achieves full API symmetry between String and StringView types,
allowing developers to use the same operations on both types without
losing functionality when working with string views.
Pull Request #2515: feat(string): Add missing View methods for API consistency

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

3 existing lines in 1 file now uncovered.

8495 of 9415 relevant lines covered (90.23%)

230480.83 hits per line

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

98.91
/string/methods.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