Railscale’s dedicated testing crate for HTTP/1.x compliance, regression, and performance testing. Named after the wheel assembly that supports a railcar.
Overview
Located at bogie/ in the workspace root. Implements a three-layer testing pyramid plus local benchmarks. Uses proptest for property-based testing, criterion for benchmarks, and shell scripts for conformance tests against the reference binary.
Test Pyramid
Layer 1: Property Tests (proptest)
File
Contents
bogie/src/generators.rs
Proptest strategies for HTTP messages (methods, URIs, versions, headers, full messages)
bogie/tests/proptest_derive.rs
9 property tests for the derivation engine — version matching, content-length, chunked TE, CL+TE conflicts, connection semantics, matcher dedup
bogie/tests/proptest_codec.rs
4 property tests for HttpStreamingCodec — split invariance, frame count, round-trip fidelity, no-panic on arbitrary bytes