Skip to main content

Module fixtures

Module fixtures 

Source
Expand description

Canonical cross-language Golden Fixtures embedded for consistency suites.

This module is available only with the non-default fixtures feature. Every value is embedded directly from crates/protocol/fixtures, so users do not need repository-relative filesystem paths and there is no copied fixture body that can drift from the canonical source.

Structs§

CanonicalFixture
One canonical fixture embedded in the protocol crate.

Constants§

CANONICAL_FIXTURES
Every JSON fixture named by MANIFEST_JSON, in stable path order.
DEVICES_LIST_REQUEST_JSON
Canonical devices.list request fixture.
DEVICES_LIST_RESPONSE_JSON
Canonical devices.list response fixture.
DEVICE_CONNECT_REQUEST_JSON
Canonical device.connect request fixture.
DEVICE_CONNECT_RESPONSE_JSON
Canonical device.connect response fixture.
EVENTS_STREAM_EVENT_NOTIFICATION_JSON
Canonical event-stream event notification fixture.
EVENTS_STREAM_TERMINAL_NOTIFICATION_JSON
Canonical event-stream terminal notification fixture.
MANIFEST_JSON
Exact canonical fixture manifest JSON.
RPC_FAILURE_JSON
Canonical JSON-RPC failure fixture.
SYSTEM_HELLO_REQUEST_JSON
Canonical system.hello request fixture.
SYSTEM_HELLO_RESPONSE_JSON
Canonical system.hello response fixture.

Functions§

fixture_json
Returns the exact canonical JSON for a manifest-relative fixture path.