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

moonbitlang / core / 1290
92%

Build:
DEFAULT BRANCH: main
Ran 23 Sep 2025 01:27AM UTC
Jobs 1
Files 256
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

23 Sep 2025 01:27AM UTC coverage: 89.443% (-0.2%) from 89.604%
1290

push

github

bobzhang
Add comprehensive tests for Array::partition function

Added extensive test coverage for the internal partition function used by quicksort:
- Basic partitioning tests with middle pivot and already partitioned arrays
- Edge case tests for empty ranges, single elements, and two-element arrays
- Tests with duplicate values to ensure stable partitioning
- Tests with different pivot positions (first, last, sub-range)
- Special cases: all equal elements and reverse sorted arrays

These tests verify:
- Correct relative position returns (validates previous bug fix)
- Proper partitioning invariant (elements < pivot on left, >= pivot on right)
- Accurate 'partitioned' flag indicating if rearrangement occurred
- Boundary conditions and sub-range operations

All 6 new test blocks pass successfully (215 tests in array package)

9294 of 10391 relevant lines covered (89.44%)

198519.9 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
9
89.29
-10.71% array/sort.mbt
13
81.94
-13.44% array/sort_by.mbt
Jobs
ID Job ID Ran Files Coverage
1 1290.1 23 Sep 2025 01:27AM UTC 257
89.47
GitHub Action Run
Source Files on build 1290
  • Tree
  • List 256
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 1c1460d3 on github
  • Prev Build on main (#1286)
  • Next Build on main (#1293)
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

© 2025 Coveralls, Inc