pub struct CostLayersFixture;Expand description
CostLayers over the same two sites: the honest non-convergent case
SY-22 excludes.
A ConvergenceFixture, so the machinery the rule uses can run it, and
not one the rule accepts: its projection makes no convergence declaration.
non_convergent_projections_are_excluded_not_failed
is where both facts are held.
Implementations§
Trait Implementations§
Source§impl ConvergenceFixture for CostLayersFixture
impl ConvergenceFixture for CostLayersFixture
Source§type Projection = CostLayers
type Projection = CostLayers
The projection under test, in either flavour.
Source§fn projection(&self) -> CostLayers
fn projection(&self) -> CostLayers
A fresh projection, in the state it starts a rebuild in.
Source§fn codec(&self) -> &Postcard
fn codec(&self) -> &Postcard
The codec the rule encodes the events with and the runner decodes
them with.
The events each origin authored, in authorship order: origin one’s,
then origin two’s. Read more
Source§async fn store(&self) -> Result<MemoryProjectionStore, Violation>
async fn store(&self) -> Result<MemoryProjectionStore, Violation>
A fresh, empty store that shares nothing with any other it returned. Read more
Source§async fn read_model(
&self,
store: &MemoryProjectionStore,
) -> Result<Vec<u8>, Violation>
async fn read_model( &self, store: &MemoryProjectionStore, ) -> Result<Vec<u8>, Violation>
The read model
store holds, as bytes the rule compares. Read moreSource§impl Debug for CostLayersFixture
impl Debug for CostLayersFixture
Auto Trait Implementations§
impl Freeze for CostLayersFixture
impl RefUnwindSafe for CostLayersFixture
impl Send for CostLayersFixture
impl Sync for CostLayersFixture
impl Unpin for CostLayersFixture
impl UnsafeUnpin for CostLayersFixture
impl UnwindSafe for CostLayersFixture
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more