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

rm-hull / jasengo / 19616388867
81%

Build:
DEFAULT BRANCH: main
Ran 23 Nov 2025 07:48PM UTC
Jobs 1
Files 8
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

23 Nov 2025 07:48PM UTC coverage: 78.21% (+1.0%) from 77.228%
19616388867

push

github

web-flow
fix: Pre-fill reader buffer on initialization (#11)

* feat: Pre-fill reader buffer on initialization

Implement initial pre-filling logic for `runeReader` buffers to
improve startup performance.

*   Bounded buffers pre-fill 25% of capacity.
*   Unbounded buffers pre-fill up to 64KB (2^16 runes).

Also adds tests for `State.Remaining()` behavior concerning the
newly introduced pre-filling step.

* Update parser/reader.go

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* fix: Correctly calculate prefillCount

The previous implementation used the bitwise XOR operator (`^`)
instead of the left shift operator (`<<`) to calculate 2^16.
Using `1 << 16` ensures the pre-fill count is correctly set to
65536 (64Kb).

* test: Check error returned by state Rollback

Adds an assertion to ensure that `st.Input.Rollback` returns
no error during the state ring buffer test execution.

Removes an unused constant `prefill`.

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

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

402 of 514 relevant lines covered (78.21%)

0.91 hits per line

Jobs
ID Job ID Ran Files Coverage
1 19616388867.1 23 Nov 2025 07:48PM UTC 8
78.21
GitHub Action Run
Source Files on build 19616388867
  • Tree
  • List 8
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • dac1e1cd on github
  • Prev Build on main (#19603260868)
  • Next Build on main (#19617116355)
  • 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