pub struct StateAssertion<'a> { /* private fields */ }Expand description
Assertions for state store
Implementations§
Source§impl<'a> StateAssertion<'a>
impl<'a> StateAssertion<'a>
Sourcepub fn new(store: &'a TestStateStore) -> Self
pub fn new(store: &'a TestStateStore) -> Self
Create a new state assertion
Sourcepub fn has_entries(&self, count: usize) -> &Self
pub fn has_entries(&self, count: usize) -> &Self
Assert the state has a specific number of entries
Sourcepub fn has_key(&self, key: &EncodedKey) -> &Self
pub fn has_key(&self, key: &EncodedKey) -> &Self
Assert a key exists
Sourcepub fn not_has_key(&self, key: &EncodedKey) -> &Self
pub fn not_has_key(&self, key: &EncodedKey) -> &Self
Assert a key does not exist
Sourcepub fn key_has_values(
&self,
key: &EncodedKey,
expected: &[Value],
layout: &EncodedValuesLayout,
) -> &Self
pub fn key_has_values( &self, key: &EncodedKey, expected: &[Value], layout: &EncodedValuesLayout, ) -> &Self
Assert a key has specific values
Auto Trait Implementations§
impl<'a> Freeze for StateAssertion<'a>
impl<'a> RefUnwindSafe for StateAssertion<'a>
impl<'a> Send for StateAssertion<'a>
impl<'a> Sync for StateAssertion<'a>
impl<'a> Unpin for StateAssertion<'a>
impl<'a> UnwindSafe for StateAssertion<'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