Struct agg_es_test_helpers::AggTestCase
source · [−]pub struct AggTestCase<S, C, E, DomainErr> {
pub initial: fn() -> S,
pub decider: fn(_: S, _: C) -> Result<Vec<E>, DomainErr>,
pub evolve: fn(_: S, _: &E) -> S,
}
Fields
initial: fn() -> S
decider: fn(_: S, _: C) -> Result<Vec<E>, DomainErr>
evolve: fn(_: S, _: &E) -> S
Implementations
sourceimpl<S, C, DomainErr: PartialEq + Debug, E: PartialEq + Debug> AggTestCase<S, C, E, DomainErr>
impl<S, C, DomainErr: PartialEq + Debug, E: PartialEq + Debug> AggTestCase<S, C, E, DomainErr>
pub fn given(self, events: Vec<E>) -> AfterGiven<S, C, E, DomainErr>
pub fn given_none(self) -> AfterGiven<S, C, E, DomainErr>
Auto Trait Implementations
impl<S, C, E, DomainErr> RefUnwindSafe for AggTestCase<S, C, E, DomainErr>
impl<S, C, E, DomainErr> Send for AggTestCase<S, C, E, DomainErr>
impl<S, C, E, DomainErr> Sync for AggTestCase<S, C, E, DomainErr>
impl<S, C, E, DomainErr> Unpin for AggTestCase<S, C, E, DomainErr>
impl<S, C, E, DomainErr> UnwindSafe for AggTestCase<S, C, E, DomainErr>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more