Skip to main content

Module fixtures

Module fixtures 

Expand description

Small builders shared by the conformance rules, the reference Fixture implementation, and the property-test generators.

Public because adapter authors writing their own extra tests should express them in the same vocabulary the suite uses.

Re-exports§

pub use proptest;proptest

Modules§

strategiesproptest
proptest strategies over the contract’s value types.

Structs§

MemoryFixture
The reference Fixture: one MemoryEventStore, any number of handles.
MemoryHandle
One handle onto a MemoryFixture’s store.
MemoryProjectionFixture
The reference ProjectionFixture: one MemoryProjectionStore, any number of handles.
MemoryProjectionHandle
One handle onto a MemoryProjectionFixture’s store.

Functions§

condition
Builds an append condition over the whole log.
condition_after
Builds an append condition restricted to events after position.
event
Builds an event of event_type with no tags.
event_type
Builds an EventType.
event_with_owned_payload
Builds an event whose payload is owned rather than 'static.
event_with_payload
Builds an event with a distinct payload, for checking round-tripping.
item_of_types
Builds a query item constrained by type alone.
item_tagged
Builds a query item constrained by tags alone.
query_of
Builds a single-item query constrained by both type and tags.
query_of_items
Builds a query from several items, which combine with OR.
query_of_types
Builds a single-item query constrained by type.
query_tagged
Builds a single-item query constrained by tags.
tagged_event
Builds an event of event_type carrying key:value tags.
tags
Builds a canonical tag set from key:value pairs.