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

moonbitlang / core / 4734
91%

Build:
DEFAULT BRANCH: main
Ran 25 Jun 2026 08:36AM UTC
Jobs 1
Files 379
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

25 Jun 2026 08:34AM UTC coverage: 90.955%. Remained the same
4734

push

github

bobzhang
refactor(immut): make RRB-tree radix constants const

Convert the package-private radix hyper-parameters of the immut/array
and immut/vector RRB trees from top-level `let` bindings to `const`:
num_bits -> NUM_BITS, branching_factor -> BRANCHING_FACTOR, bitmask ->
BITMASK (BRANCHING_FACTOR is a power of two, 1 << NUM_BITS = 32).

As consts they are inlined as literals, so the backends see a compile-
time constant divisor for the `len / BRANCHING_FACTOR` and
`len % BRANCHING_FACTOR` operations in the construction/rebalance paths
(operands are non-negative lengths/capacities) and can strength-reduce
them instead of loading a runtime global. The per-element get/set path
already used `& BITMASK` and shifts, so it is unchanged.

Pure rename + let->const; the constants are package-private (no public
API or .mbti change) and no values change. Naming follows the existing
UPPER_CASE const convention used across core (strconv, encoding, ...).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

74 of 80 new or added lines in 10 files covered. (92.5%)

15154 of 16661 relevant lines covered (90.95%)

189322.54 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
73.79
0.0% immut/vector/tree.mbt
1
80.95
0.0% immut/vector/tree_pop.mbt
Jobs
ID Job ID Ran Files Coverage
1 4734.1 25 Jun 2026 08:36AM UTC 380
90.97
GitHub Action Run
Source Files on build 4734
  • Tree
  • List 379
  • Changed 15
  • Source Changed 15
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 609182e0 on github
  • Prev Build on main (#4732)
  • Next Build on main (#4746)
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