Skip to content

test: guard incremental receive-buffer scanning - #205

Open
LeulTew wants to merge 1 commit into
python-hyper:masterfrom
LeulTew:leultew-receive-buffer-scan-bounds
Open

LeulTew wants to merge 1 commit into
python-hyper:masterfrom
LeulTew:leultew-receive-buffer-scan-bounds

Conversation

@LeulTew

@LeulTew LeulTew commented Sep 16, 2026

Copy link
Copy Markdown

Add deterministic regressions for incremental ReceiveBuffer scanning by counting windows passed to real searches while feeding fragmented lines and header blocks; runtime code is unchanged.

This covers incremental search-window bounds, not native buffer copying/deletion or obsolete-line-fold processing. Local runtime validation was limited to Windows / CPython 3.14.2.

Refs #16.

Coverage and validation
  • Covers repeated polls, prefix consumption, delimiter boundaries, and buffer reuse.
  • Cursor-reset diagnostics fail the work bounds; a different still-linear overlap strategy passes.
  • 98 tests pass, with existing coverage preserved. Black, isort, and strict mypy pass.

Bound ranges passed to real searches while receiving fragmented lines and header blocks, including repeated polls and prefix consumption.

Refs python-hyper#16.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant