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

moonbitlang / core / 6817
89%

Build:
DEFAULT BRANCH: main
Ran 26 Sep 2026 07:22AM UTC
Jobs 1
Files 448
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

26 Sep 2026 07:19AM UTC coverage: 89.716% (-0.001%) from 89.717%
6817

push

github

bobzhang
perf(debug, json): format inspect locations only when the check fails

`debug_inspect` and `json_inspect` converted `loc` and `args_loc` to
JSON strings on every call, although they are only used in the
`@EXPECT_FAILED` message of a failing check. Builtin `inspect` already
formats them lazily. Move the formatting into the failure branch.
The failure message is unchanged (new tests check it still carries the
locations).

These run in almost every test in the repository, so a passing check
is the hot path. Release benchmarks, main -> this:

| bench                          | native          | js              | wasm-gc         |
|--------------------------------|-----------------|-----------------|-----------------|
| debug_inspect(42) passing      | 1.29us -> 175ns | 1.33us -> 42ns  | 1.68us -> 68ns  |
| debug_inspect([1..5]) passing  | 2.91 -> 1.73us  | 2.13us -> 838ns | 2.45us -> 862ns |
| json_inspect(42) passing       | 1.30us -> 175ns | 1.29us -> 22ns  | 1.69us -> 74ns  |

Codex review: "Approved; behavior identical, message text byte-identical (follow-up: json failure test now asserts expect/actual)."

Signed-off-by: Codex CLI <codex@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

4 of 4 new or added lines in 2 files covered. (100.0%)

16497 of 18388 relevant lines covered (89.72%)

313978.09 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6817.1 26 Sep 2026 07:22AM UTC 448
89.72
GitHub Action Run
Source Files on build 6817
  • Tree
  • List 448
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 4691b0f3 on github
  • Prev Build on main (#6801)
  • Next Build on main (#6820)
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