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

moonbitlang / core / 4157
94%

Build:
DEFAULT BRANCH: main
Ran 05 May 2026 02:21PM UTC
Jobs 1
Files 364
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

05 May 2026 02:19PM UTC coverage: 94.546%. Remained the same
4157

push

github

bobzhang
refactor(internal/regex_engine): for-in iteration in SlotBook::find_unused

Replace the c-style index loop in `SlotBook::find_unused` with `for i, word in self.0`,
which also caches the word once instead of indexing twice.

```diff
-  for i = 0; i < self.0.length(); i = i + 1 {
-    if self.0[i] != -1 {
-      let bit = self.0[i].lnot().ctz()
-      return Slot::from_index(i * 32 + bit)
+  for i, word in self.0 {
+    if word != -1 {
+      let bit = word.lnot().ctz()
+      return Slot::from_index(i * 32 + bit)
     }
   }
```

`find_unused` is called during regex *compilation* (per pattern, not per match),
so this is not a matcher hot path.

Semantics-preserving: `moon test` (6425/6425) passes and `moon info` produces
no `.mbti` change.

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

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

14874 of 15732 relevant lines covered (94.55%)

218124.83 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4157.1 05 May 2026 02:21PM UTC 365
94.56
GitHub Action Run
Source Files on build 4157
  • Tree
  • List 364
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • b647073c on github
  • Prev Build on main (#4156)
  • Next Build on main (#4159)
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