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

moonbitlang / core / 4175
95%

Build:
DEFAULT BRANCH: main
Ran 05 May 2026 03:35PM 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 03:34PM UTC coverage: 94.545% (-0.001%) from 94.546%
4175

push

github

bobzhang
refactor(quickcheck): unwrap_or / unwrap_or_else in gen

Replace two `match opt { None => default; Some(x) => x }` blocks with
the dedicated `Option` helpers:

```diff
-  let size = match size {
-    None => 0
-    Some(x) => x
-  }
-  let state = match state {
-    None => @splitmix.RandomState::default()
-    Some(x) => x
-  }
+  let size = size.unwrap_or(0)
+  let state = state.unwrap_or_else(() => @splitmix.RandomState::default())
```

`unwrap_or_else` keeps the lazy default — `RandomState::default()` only
runs when `state` is `None`, matching the original.

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

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

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

14853 of 15710 relevant lines covered (94.54%)

218430.11 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4175.1 05 May 2026 03:35PM UTC 365
94.55
GitHub Action Run
Source Files on build 4175
  • Tree
  • List 364
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • fe69f488 on github
  • Prev Build on main (#4171)
  • Next Build on main (#4178)
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