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

moonbitlang / core / 4331
94%

Build:
DEFAULT BRANCH: main
Ran 13 May 2026 08:08AM UTC
Jobs 1
Files 369
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

13 May 2026 08:07AM UTC coverage: 94.293%. Remained the same
4331

push

github

bobzhang
feat(debug): expose @debug.to_string under the shorter prelude name `repr`

Adds `#alias(repr)` to `@debug.to_string` so it can also be called as
`@debug.repr`. Re-exports `repr` from prelude alongside `to_repr`, so
user code can write `repr(x)` for a one-step Debug rendering with no
imports needed. Same underlying function as `@debug.to_string`; pick
whichever name reads better at the call site.

The deprecated `@builtin.repr` (Show-based) is kept for callers using
the qualified spelling, but is no longer re-exported from prelude — the
unqualified `repr` now resolves to the Debug-based function. The
deprecation message is updated to point at `@debug.repr` / prelude
`repr` instead of `to_repr` (which returns a `Repr`, not a `String`).

This is a deliberate semantic flip for unqualified `repr(x)`: it now
returns the Debug rendering (strings quoted, tuples / arrays
structural). The old Show-based behavior remains available through the
deprecated `@builtin.repr(x)` qualified spelling and via the value's
`to_string()` method.

Verified:
- `repr("hi") == "\"hi\""`, `repr('a') == "'a'"`, structural rendering
  for tuples/arrays
- `@debug.repr == @debug.to_string` (alias resolution)
- prelude resolution of unqualified `repr`
- full test suite passes on wasm, wasm-gc, js, native (6386-6475 tests
  per target)

14886 of 15787 relevant lines covered (94.29%)

209031.36 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4331.1 13 May 2026 08:08AM UTC 370
94.3
GitHub Action Run
Source Files on build 4331
  • Tree
  • List 369
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • ac89c435 on github
  • Prev Build on main (#4329)
  • Next Build on main (#4333)
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