Skip to main content

Crate eggress_testkit

Crate eggress_testkit 

Source
Expand description

Test utilities for eggress.

Provides async test servers, port allocation helpers, and protocol test harnesses for fragmented and slow I/O scenarios.

Modules§

canonical_manifest
Canonical manifest validation for the pproxy capability manifest.
case_model
composition
Composition matrix validation for the pproxy parity model.
corpus
Validation helpers for the pproxy URI corpus and CLI fixture files.
differential
Reusable differential test harness for comparing eggress with Python pproxy.
eggress_runner
fixtures
manifest
Manifest validation for pproxy feature parity tracking.
oracle
Scenario-driven oracle harness for comparing eggress with pproxy.
pproxy_oracle
report
strict_comparators
strict_manifest
Strict manifest validation for the pproxy 2.7.9 behavioral compatibility manifest.
strict_observations

Structs§

FragmentedStream
A stream wrapper that fragments all writes into small chunks.
SlowReader
A wrapper that reads from an inner stream with an artificial delay.
SlowWriter
A wrapper that writes to an inner stream with an artificial delay.

Traits§

AsyncStream
A trait combining AsyncRead + AsyncWrite + Send + Unpin for test streams.

Functions§

get_free_port
Get a free port by binding to port 0.
start_echo_server
Start an async echo server that echoes back received bytes.
start_half_close_server
Start a half-close server: reads until EOF, then sends a response and closes.
start_http_origin_server
Start a minimal HTTP origin server that responds to any request.