Skip to content

test: cover pkg/streaming TCP transport (→60.4%) - #7

Merged
scttfrdmn merged 1 commit into
mainfrom
test/streaming-coverage
May 30, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
test/streaming-coverage

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

Third spawn coverage pass (#3) — the TCP streaming library.

Coverage

Package Before After
pkg/streaming 19.5% 60.4%
aggregate 26.1% 26.5%

CI ratchet floor raised 25 → 26.

What's tested

Loopback integration tests (no AWS) over real localhost connections, OS-assigned ports:

  • TCP server accept + client connect/close
  • Send/Receive (bytes) and SendString/ReceiveString (lines)
  • StreamWriter/StreamReader length-prefixed chunk round-trip + raw Write/Read
  • LineStreamer write/read
  • ConnectionPool: Size, Get (valid + out-of-range nil), Broadcast with per-connection echo verification
  • Failure paths: NewTCPClient/NewConnectionPool dial failure to a refused port; ReadChunk rejecting an oversized (>100MB) length prefix

Verification

go vet, gofmt, golangci-lint (file clean), package tests pass. Gate validated: 26.5% ≥ 26%.

Loopback integration tests for the TCP streaming library (no AWS): server
accept + client connect, Send/Receive (bytes and string), StreamWriter/
StreamReader length-prefixed chunk round-trip + raw Write/Read, LineStreamer,
ConnectionPool (Size/Get/Broadcast + echo verification), dial-failure paths
for NewTCPClient and NewConnectionPool, and the oversized-chunk rejection in
ReadChunk.

Aggregate spawn coverage 26.1% → 26.5%. CI ratchet floor raised 25 → 26.
@scttfrdmn
scttfrdmn merged commit 8ccaa76 into main May 30, 2026
1 check passed
@scttfrdmn
scttfrdmn deleted the test/streaming-coverage branch May 30, 2026 21:07
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