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

moonbitlang / core / 1461
89%
main: 96%

Build:
Build:
LAST BUILD BRANCH: hongbo/more_to_do
DEFAULT BRANCH: main
Ran 05 Oct 2025 11:11AM UTC
Jobs 1
Files 257
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 Oct 2025 11:09AM UTC coverage: 89.222% (+0.003%) from 89.219%
1461

Pull #2808

github

bobzhang
feat(builtin): Add StringBuilder::write_stringview method

Add a new method to write StringView directly to StringBuilder without
intermediate string conversions.

Key changes:
- Added write_stringview() accepting StringView parameter
- Fixed length calculation bug (end - start, not just end)
- Added comprehensive documentation with examples
- Enhanced test coverage with edge cases

Implementation details:
- Uses intrinsic accessors for str(), start(), end()
- Delegates to write_substring() with proper length
- No intermediate allocations needed

Performance benefits:
- Avoids string conversion overhead
- Direct write from viewed portion
- More efficient for string slicing operations

Testing (all 5638 tests pass):
- Basic substring write
- Multiple consecutive writes
- Empty view edge case
- Full string view
- ASCII-only strings

API addition:
- StringBuilder::write_stringview(StringView) -> Unit
Pull Request #2808: feat(builtin): Add StringBuilder::write_stringview method

3 of 0 new or added lines in 0 files covered. (NaN%)

9288 of 10410 relevant lines covered (89.22%)

193383.27 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1461.1 05 Oct 2025 11:11AM UTC 258
89.25
GitHub Action Run
Source Files on build 1461
  • Tree
  • List 257
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #2808
  • PR Base - main (#1459)
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