pub struct FlowChangeAssertion<'a> { /* private fields */ }Expand description
Assertions for FlowChange outputs
Implementations§
Source§impl<'a> FlowChangeAssertion<'a>
impl<'a> FlowChangeAssertion<'a>
Sourcepub fn new(change: &'a FlowChange) -> Self
pub fn new(change: &'a FlowChange) -> Self
Create a new FlowChange assertion
Sourcepub fn has_insert(&self) -> &Self
pub fn has_insert(&self) -> &Self
Assert the change has at least one insert
Sourcepub fn has_update(&self) -> &Self
pub fn has_update(&self) -> &Self
Assert the change has at least one update
Sourcepub fn has_remove(&self) -> &Self
pub fn has_remove(&self) -> &Self
Assert the change has at least one remove
Sourcepub fn diff_at(&self, index: usize) -> DiffAssertion<'_>
pub fn diff_at(&self, index: usize) -> DiffAssertion<'_>
Assert a specific diff exists at the given index
Sourcepub fn has_inserts(&self, count: usize) -> &Self
pub fn has_inserts(&self, count: usize) -> &Self
Assert the number of inserts
Sourcepub fn has_updates(&self, count: usize) -> &Self
pub fn has_updates(&self, count: usize) -> &Self
Assert the number of updates
Sourcepub fn has_removes(&self, count: usize) -> &Self
pub fn has_removes(&self, count: usize) -> &Self
Assert the number of removes
Auto Trait Implementations§
impl<'a> Freeze for FlowChangeAssertion<'a>
impl<'a> RefUnwindSafe for FlowChangeAssertion<'a>
impl<'a> Send for FlowChangeAssertion<'a>
impl<'a> Sync for FlowChangeAssertion<'a>
impl<'a> Unpin for FlowChangeAssertion<'a>
impl<'a> UnwindSafe for FlowChangeAssertion<'a>
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