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

StoneCypher / circular_buffer_js / 20650934384
100%

Build:
DEFAULT BRANCH: main
Ran 02 Jan 2026 04:33AM UTC
Jobs 9
Files 2
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

02 Jan 2026 04:31AM UTC coverage: 100.0%. Remained the same
20650934384

push

github

StoneCypher
Fix three bugs: pop() return type, fill() cursor reset, and comment errors

This commit addresses three bugs found in the circular buffer implementation:

1. Type Safety Bug - pop() return type (HIGH severity)
   - Changed pop() return type from 'T | undefined' to 'T'
   - The method never returns undefined; it either returns T or throws RangeError
   - Previous type signature was misleading and could cause incorrect null checks
   - Affects: src/ts/circular_buffer.ts:708

2. Consistency Bug - fill() missing cursor reset (MEDIUM severity)
   - Added 'this._cursor = 0' to fill() method
   - Now consistent with similar buffer-reorganizing methods (reverse, every, some)
   - Previously left internal rotation state unnormalized after filling
   - Affects: src/ts/circular_buffer.ts:501

3. Documentation Bug - copy-paste comment errors (LOW severity)
   - Fixed comment in some() that incorrectly said "every can mutate"
   - Fixed typo "_this.offset" → "this._offset"
   - Comments were copied from every() method and not updated
   - Affects: src/ts/circular_buffer.ts:611, 616

All tests pass (84/84) with 100% coverage maintained.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

43 of 43 branches covered (100.0%)

Branch coverage included in aggregate %.

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

110 of 110 relevant lines covered (100.0%)

1403.05 hits per line

Jobs
ID Job ID Ran Files Coverage
1 20650934384.1 02 Jan 2026 04:33AM UTC 2
100.0
GitHub Action Run
2 20650934384.2 02 Jan 2026 04:33AM UTC 2
100.0
GitHub Action Run
3 20650934384.3 02 Jan 2026 04:33AM UTC 2
100.0
GitHub Action Run
4 20650934384.4 02 Jan 2026 04:33AM UTC 2
100.0
GitHub Action Run
5 20650934384.5 02 Jan 2026 04:33AM UTC 2
100.0
GitHub Action Run
6 20650934384.6 02 Jan 2026 04:33AM UTC 2
100.0
GitHub Action Run
7 20650934384.7 02 Jan 2026 04:33AM UTC 2
100.0
GitHub Action Run
8 20650934384.8 02 Jan 2026 04:33AM UTC 2
100.0
GitHub Action Run
9 20650934384.9 02 Jan 2026 04:34AM UTC 2
100.0
GitHub Action Run
Source Files on build 20650934384
  • Tree
  • List 2
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • dd546fc4 on github
  • Prev Build on main (#2567078082)
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