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

StoneCypher / circular_buffer_js
100%

Build:
DEFAULT BRANCH: main
Repo Added 19 Jul 2021 10:50PM UTC
Files 2
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

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • main

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

Relevant lines Covered
Build:
Build:
110 RELEVANT LINES 110 COVERED LINES
1403.05 HITS PER LINE
Source Files on main
  • Tree
  • List 2
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
20650934384 main 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 '... push 02 Jan 2026 04:33AM UTC StoneCypher github
100.0
2567078082 main end orientation on resize push 27 Jun 2022 05:53AM UTC John Haugeland github pending completion  
2561677938 main 1.9.0 implement shove/1, fixes #55 push 25 Jun 2022 07:18PM UTC John Haugeland github pending completion  
1904360740 main Merge branch 'main' of github.com:StoneCypher/circular_buffer_js push 26 Feb 2022 10:38PM UTC John Haugeland github pending completion  
1904277101 AddOffsetAndPos Merge 59d245519 into 37706f8c5 Pull #54 26 Feb 2022 10:03PM UTC GitHub github pending completion  
1904277101 AddOffsetAndPos Merge 59d245519 into 37706f8c5 Pull #54 26 Feb 2022 10:01PM UTC GitHub github pending completion  
1904277101 AddOffsetAndPos Merge 59d245519 into 37706f8c5 Pull #54 26 Feb 2022 10:00PM UTC GitHub github pending completion  
1904277101 AddOffsetAndPos Merge 59d245519 into 37706f8c5 Pull #54 26 Feb 2022 10:00PM UTC GitHub github pending completion  
1904277101 AddOffsetAndPos Merge 59d245519 into 37706f8c5 Pull #54 26 Feb 2022 10:00PM UTC GitHub github pending completion  
1904277153 main Merge pull request #54 from StoneCypher/AddOffsetAndPos push 26 Feb 2022 10:00PM UTC GitHub github pending completion  
See All Builds (31)
  • Repo on GitHub
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