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

StoneCypher / circular_buffer_js / 20650934384 / 8
100%
main: 100%

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

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

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

110 of 110 relevant lines covered (100.0%)

1403.05 hits per line

Source Files on job 20650934384.8
  • 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 Build 20650934384
  • dd546fc4 on github
  • Prev Job for on main (#2567078082.9)
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