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

moonbitlang / core / 3907
95%

Build:
DEFAULT BRANCH: main
Ran 24 Apr 2026 01:39AM UTC
Jobs 1
Files 356
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

24 Apr 2026 01:38AM UTC coverage: 94.871%. Remained the same
3907

push

github

bobzhang
perf(debug): avoid per-element allocation in compact_lines

The bracket/brace/paren branches of `compact_lines` were calling
`to_owned()` on every `trim()` result and every `strip_prefix`/
`strip_suffix` result, then joining with `+` / `join`. For an N-element
group that's roughly N+5 allocations per call, and `compact_lines` is
invoked recursively on every debug print.

Keep substrings as `StringView` until the final `join` / interpolation,
so each branch produces a constant ~2 allocations regardless of N.
Behavior and public surface are unchanged; `debug/pkg.generated.mbti`
is not touched.

All call sites were found by `rg '\.to_owned\(\)' debug/printer.mbt` —
the audit workflow the `to_owned` rename was designed to enable.

16 of 20 new or added lines in 1 file covered. (80.0%)

14723 of 15519 relevant lines covered (94.87%)

221100.28 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
90.32
-0.08% debug/printer.mbt
Jobs
ID Job ID Ran Files Coverage
1 3907.1 24 Apr 2026 01:39AM UTC 357
94.88
GitHub Action Run
Source Files on build 3907
  • Tree
  • List 356
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • bcf47090 on github
  • Prev Build on main (#3905)
  • Next Build on main (#3911)
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