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

yeatmanlab / jsCAT / 15909887160
100%

Build:
DEFAULT BRANCH: main
Ran 26 Jun 2025 06:42PM UTC
Jobs 2
Files 6
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

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

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 %.

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

1440 of 1440 relevant lines covered (100.0%)

2047.15 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-lts/* - 15909887160.1 26 Jun 2025 06:42PM UTC 6
100.0
GitHub Action Run
2 run-20 - 15909887160.2 26 Jun 2025 06:42PM UTC 6
100.0
GitHub Action Run
Source Files on build 15909887160
  • 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 Repo
  • 8d7defbb on github
  • Prev Build on clamp-eap (#15055567556)
  • Next Build on main (#15912906133)
  • 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