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

floatdrop / zoxy / 28731866820
96%

Build:
DEFAULT BRANCH: main
Ran 05 Jul 2026 06:24AM UTC
Jobs 1
Files 33
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

05 Jul 2026 06:22AM UTC coverage: 96.09% (-0.2%) from 96.281%
28731866820

push

github

floatdrop
refactor(test): extract TestHarness for the common proxy setup

The ~30-line setup block (IO loop, TestOrigin, the simple single-cluster
config + router, connection pool, and a started ProxyServer on a loopback
listener) was repeated in most proxy tests. Extract it as a pointer-stable
TestHarness (in-place init, reverse-order deinit) with an Options struct
for the knobs that vary (origin lingering, respond_after, pool slots,
timeouts), and adopt it in the 13 tests that match the simple single-origin
/ single-cluster / no-resilience pattern.

Tests with a custom resilience config, multiple origins or clusters, TLS,
a second server, or a drain trigger keep manual setup — the harness only
owns the common case.

deinit closes a lingering origin's accepted connection (close_after_send =
false), centralizing the fd cleanup the per-test defers used to do so no
fd leaks past a test.

Combined with OneShotClient, the test section is now ~485 lines lighter.
220 tests + sim seeds 0..300 (3849 framed responses) pass; zig fmt + zig
build lint clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

10689 of 11124 relevant lines covered (96.09%)

0.96 hits per line

Coverage Regressions

Lines Coverage ∆ File
25
96.69
-0.37% net/proxy.zig
8
78.95
-21.05% mem/futex_mutex.zig
Jobs
ID Job ID Ran Files Coverage
1 28731866820.1 05 Jul 2026 06:24AM UTC 33
96.09
GitHub Action Run
Source Files on build 28731866820
  • Tree
  • List 33
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28731866820
  • acd8a1e3 on github
  • Prev Build on main (#28730770547)
  • 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