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

moonbitlang / core / 8103
87%

Build:
DEFAULT BRANCH: main
Ran 09 Nov 2026 04:32PM UTC
Jobs 1
Files 690
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

09 Nov 2026 04:29PM UTC coverage: 88.364% (-0.003%) from 88.367%
8103

push

github

web-flow
refactor!: deprecate Show for Buffer and Buffer::to_string (#4777)

`Show for Buffer` reinterprets the buffer's bytes as UTF-16LE, so
anything written with `write_utf8` comes back as garbage, and an odd
byte count or a lone surrogate produces an invalid String. The result
also differs by backend: wasm and wasm-gc drop an odd trailing byte,
js pads it with a zero, and native fills it with an uninitialized byte.

Deprecate the impl and the promoted `to_string`, pointing users to
`@utf8.decode` / `@utf16.decode` for text and `@debug.Debug` for
inspection. The output is unchanged until the impl is removed.

Buffer tests now snapshot `buf.to_bytes()` instead of the buffer's
`Show` output.

Part of #4642

25561 of 28927 relevant lines covered (88.36%)

432201.15 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
96.88
-0.63% buffer/buffer.mbt
Jobs
ID Job ID Ran Files Coverage
1 8103.1 09 Nov 2026 04:32PM UTC 690
88.36
GitHub Action Run
Source Files on build 8103
  • Tree
  • List 690
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • ad51dfd7 on github
  • Prev Build on main (#8102)
  • Next Build on main (#8105)
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