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

moonbitlang / core / 6894
89%

Build:
DEFAULT BRANCH: main
Ran 29 Sep 2026 02:31AM UTC
Jobs 1
Files 454
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

29 Sep 2026 02:28AM UTC coverage: 89.432% (-0.001%) from 89.433%
6894

push

github

bobzhang
fix(json): print replacer-emptied objects as {} when indenting

Json::stringify with indent > 0 wrote the line break and indentation
after `{` as soon as it opened a non-empty object, before the replacer
had decided whether any member survives. When every member was dropped
the object printed as `{`, a blank indented line, then `}` (e.g.
"{\n  \n}") instead of "{}".

Write the line break with each emitted member instead, and on close
only write it when a member was emitted. Output without a replacer or
without indentation is unchanged. Arrays are unaffected: the replacer
only applies to object members, so an array never loses elements.

Adds a differential test checking stringify(indent~, replacer~) against
transform(replacer).stringify(indent~).

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

1 of 1 new or added line in 1 file covered. (100.0%)

16672 of 18642 relevant lines covered (89.43%)

332129.82 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6894.1 29 Sep 2026 02:31AM UTC 454
89.43
GitHub Action Run
Source Files on build 6894
  • Tree
  • List 454
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a68215f3 on github
  • Prev Build on main (#6892)
  • Next Build on main (#6896)
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