IteratorAssertions

Trait IteratorAssertions 

Source
pub trait IteratorAssertions<T>
where T: Debug + PartialEq,
{ // Required methods fn contains(&self, expected_item: T); fn contains_all(&self, expected_items: &[T]); fn has_count(&self, expected_count: usize); fn does_not_contain_any(&self, not_expected_items: &[T]); fn is_empty(&self); fn is_not_empty(&self); }

Required Methods§

Source

fn contains(&self, expected_item: T)

Checks if the iterator contains the specified element

Source

fn contains_all(&self, expected_items: &[T])

Checks if the iterator contains the specified elements

Source

fn has_count(&self, expected_count: usize)

Checks if the iterator has the specified count

Source

fn does_not_contain_any(&self, not_expected_items: &[T])

Checks if the iterator does not contain any of the specified elements

Source

fn is_empty(&self)

Checks if the iterator is empty

Source

fn is_not_empty(&self)

Checks if the iterator is not empty

Implementors§

Source§

impl<T, K> IteratorAssertions<T> for Asserter<K>
where T: Debug + PartialEq, K: IntoIterator<Item = T> + Clone,