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§
- strategies
proptest propteststrategies over the contract’s value types.
Structs§
- Memory
Fixture - The reference
Fixture: oneMemoryEventStore, any number of handles. - Memory
Handle - One handle onto a
MemoryFixture’s store. - Memory
Projection Fixture - The reference
ProjectionFixture: oneMemoryProjectionStore, any number of handles. - Memory
Projection Handle - 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_typewith 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_typecarryingkey:valuetags. - tags
- Builds a canonical tag set from
key:valuepairs.