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

yeatmanlab / jsCAT / 15909887160 / 1
100%
main: 100%

Build:
DEFAULT BRANCH: main
Ran 26 Jun 2025 06:42PM UTC
Files 6
Run time 0s
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

26 Jun 2025 06:40PM UTC coverage: 100.0%. Remained the same
15909887160.1

push

github

web-flow
[ENH] Refactor Clowder's Item Selection and Improve Code Organization (#36)

* Add corpusToSelectFrom parameter

* refactor: improve Clowder item selection

This commit includes several improvements to the Clowder class:

1. Refactor updateCatAndGetNextItem for better organization:
   - Split into clear sections: Validate Input, Update Cats, Early Stopping,
     and Select Item
   - Extract cat updating logic into private _updateCats method
   - Extract item selection logic into private _selectNextItem method
   - Improve code readability with ASCII art section headers

2. Enhance corpusToSelectFrom functionality:
   - Add validation for corpusToSelectFrom parameter
   - Add warning when items lack parameters for both cats
   - Update tests to correctly verify that items need parameters for both
     the selecting cat and target corpus

3. Improve code documentation:
   - Add explanatory comments for non-null assertions
   - Better document the relationship between catToSelect and corpusToSelectFrom

4. Fix code style:
   - Add missing trailing commas
   - Improve formatting consistency

* Add test for warning message when items are available in the corpus but not for catToSelect

290 of 290 branches covered (100.0%)

Branch coverage included in aggregate %.

1440 of 1440 relevant lines covered (100.0%)

1023.57 hits per line

Source Files on job run-lts/* - 15909887160.1
  • Tree
  • List 6
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 15909887160
  • 8d7defbb on github
  • Prev Job for on main (#15055567556.2)
  • Next Job for on main (#15912906133.2)
  • Delete
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