flybrain/services/flysim/crates/flybus/tests
acamilo cf757af510 test(flybus): assert the example's output, and split the frame measurement up
The guide's first deliverable is one small program with a counter RPC, a pub/sub
observer and a frame artifact held past its message object. examples/demo.rs was
already that; its body moves into run(), which returns the lines it prints, so
tests/example_demo.rs can assert all seven of them. The counter now uses the
spec's own example.counter / Counter.Increment / {"amount": 1} and pins the
registration it discovered, and the example prints the router's root count while
the frame is held and after the last handle goes, so the lifetime it
demonstrates is visible rather than implied. cargo run -p flybus --example demo
prints the same lines.

tests/perf.rs reports what BUS-03 and bus-v1 section 11.7 actually ask for.
Allocate, the producer's copy into staging, the router's seal copy, publish
admission, the RPC round trip and a consumer's readback are six separate
percentile lines instead of one. The router gets its own two-thread runtime
whose threads carry a distinct name, and per-thread CPU is sampled from /proc by
that name, so router CPU is separable from the clients' in the same process.
Store bytes, outstanding roots and queue lengths are reported live as well as
peak.
2026-09-22 12:01:43 +00:00
..
common test(flybus): the BUS acceptance bullets that were unproven, and transport traces 2026-09-22 12:01:34 +00:00
artifacts.rs feat(flybus): add standalone IPC bus and conformance tests 2026-09-22 03:46:27 +00:00
bus_acceptance.rs test(flybus): the BUS acceptance bullets that were unproven, and transport traces 2026-09-22 12:01:34 +00:00
conformance_artifacts.rs feat(flybus): add standalone IPC bus and conformance tests 2026-09-22 03:46:27 +00:00
conformance_routing.rs feat(flybus): add standalone IPC bus and conformance tests 2026-09-22 03:46:27 +00:00
conformance_wire.rs feat(flybus): add standalone IPC bus and conformance tests 2026-09-22 03:46:27 +00:00
example_demo.rs test(flybus): assert the example's output, and split the frame measurement up 2026-09-22 12:01:43 +00:00
integration.rs feat(flybus): add standalone IPC bus and conformance tests 2026-09-22 03:46:27 +00:00
perf.rs test(flybus): assert the example's output, and split the frame measurement up 2026-09-22 12:01:43 +00:00
pubsub.rs feat(flybus): add standalone IPC bus and conformance tests 2026-09-22 03:46:27 +00:00
rpc.rs feat(flybus): add standalone IPC bus and conformance tests 2026-09-22 03:46:27 +00:00
sol_rereview_regressions.rs fix(flybus): stop connection teardown being starved by the frame it waits for 2026-09-22 12:01:24 +00:00
sol_review_races.rs feat(flybus): add standalone IPC bus and conformance tests 2026-09-22 03:46:27 +00:00
wire.rs feat(flybus): add standalone IPC bus and conformance tests 2026-09-22 03:46:27 +00:00