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

moonbitlang / core / 6051
87%

Build:
DEFAULT BRANCH: main
Ran 15 Aug 2026 01:13AM UTC
Jobs 1
Files 437
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

15 Aug 2026 01:00AM UTC coverage: 90.29%. Remained the same
6051

push

github

bobzhang
test(sorted_map): add whitebox AVL invariant QuickCheck tests

Add sorted_map/invariant_wbtest.mbt: a recursive structural checker that
verifies, for every node after every mutation:

- BST order with full min/max bound propagation
- AVL balance (|height(l) - height(r)| <= 1)
- stored height field equals the recomputed true height
- map-level size field equals the actual node count

driven by randomized set/remove/update_or_default sequences (splitmix64
PRNG, small %31 and large %1009 key spaces) checked against a naive Map
model, plus targeted rotation-stressing patterns: ascending, descending,
zigzag inserts, ascending insert-then-remove, repeated root removal, and
from_array/clear/copy/merge/merge_in_place/range coverage.

The checker was mutation-tested: weakening the rebalance threshold,
dropping an update_height in rotate_l, and flipping the insert
comparison are each caught by the corresponding invariant. The real
implementation passes a heavy local sweep (60 seeds x 1500 ops small key
space, 25 seeds x 6000 ops over %20011, trees to ~6000 nodes) on
wasm-gc, js and native - no violations found.

A hand-rolled splitmix64 is used instead of importing quickcheck in the
wbtest, since quickcheck's regular imports include sorted_map.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

15929 of 17642 relevant lines covered (90.29%)

135013.77 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6051.1 15 Aug 2026 01:13AM UTC 438
90.31
GitHub Action Run
Source Files on build 6051
  • Tree
  • List 437
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 8ca69314 on github
  • Prev Build on main (#6050)
  • Next Build on main (#6052)
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