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

moonbitlang / core / 4043
94%

Build:
DEFAULT BRANCH: main
Ran 27 Apr 2026 08:52AM UTC
Jobs 1
Files 361
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

27 Apr 2026 08:50AM UTC coverage: 94.817% (-0.06%) from 94.878%
4043

push

github

web-flow
fix(coverage): break import cycle with debug (#3491)

`coverage/debug.mbt` (added in #3482) introduced a `Debug` impl for
`CoverageCounter`, which made `coverage` import `debug`. With
`--enable-coverage`, the toolchain implicitly injects coverage into
every package — including `debug` itself — producing the cycle:

    abort -> prelude -> coverage -> debug -> coverage

This causes `moon test --enable-coverage` (and the misc-check CI job)
to fail with "Import loop detected".

Removes `coverage/debug.mbt` and the `debug` import from
`coverage/moon.pkg`. The only observable API change is that
`CoverageCounter` no longer has a `Debug` impl — it's an internal
counter type that callers shouldn't be debug-printing in normal code.

After this change `moon test --enable-coverage` runs clean (6369/6369).

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

14781 of 15589 relevant lines covered (94.82%)

220117.56 hits per line

Coverage Regressions

Lines Coverage ∆ File
9
88.61
-11.39% debug/debug.mbt
2
96.92
0.0% float/methods.mbt
2
94.59
0.0% quickcheck/splitmix/random.mbt
1
88.29
-0.8% debug/pretty_print.mbt
Jobs
ID Job ID Ran Files Coverage
1 4043.1 27 Apr 2026 08:52AM UTC 362
94.83
GitHub Action Run
Source Files on build 4043
  • Tree
  • List 361
  • Changed 6
  • Source Changed 6
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 797ddb4b on github
  • Prev Build on main (#4027)
  • Next Build on main (#4045)
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