Expand description
The collection module contains matchers for asserting properties of collections and iterators.
Structs§
- Contained
In - Matches if the asserted (single) value is contained in the expected elements.
- Contains
InAny Order - Matches if the asserted collection contains all and only the expected elements in any order.
- Contains
InOrder - Matches if the asserted collection contains all and only of the expected elements in the given order.
- Contains
Subset - Matches if the asserted collection contains all (possibly more) of the expected elements.
- HasEntry
- Matches if the map-like collection contains the given key/value pair.
- HasKey
- Matches if the map-like collection contains the given key.
- HasValue
- Matches if the map-like collection contains the given value.
Functions§
- all_
elements_ satisfy - Matches if all elements in the asserted collection satisfy the given
predicate
. - contained_
in - Matches if the asserted (single) value is contained in the expected elements.
- contains_
in_ any_ order - Matches if the asserted collection contains all and only of the expected elements in any order.
- contains_
in_ order - Matches if the asserted collection contains all and only of the expected elements in the given order.
- contains_
subset - Matches if the asserted collection contains all (possibly more) of the expected elements.
- has_
entry - Matches if the map-like collection contains the given key/value pair.
- has_key
- Matches if the map-like collection contains the given key.
- has_
value - Matches if the map-like collection contains the given value.
- some_
elements_ satisfy - Matches if at least one element in the asserted collection satisfy the given
predicate
. - sorted_
ascending - Matches if the asserted collection is sorted weakly ascending.
- sorted_
by - Matches if the elements in the asserted collection are sorted weakly monotone according to the given
predicate
in the expected order. - sorted_
by_ in_ any_ order - Matches if the elements in the asserted collection are sorted weakly monotone according to the given
predicate
in any order. - sorted_
descending - Matches if the asserted collection is sorted weakly descending.
- sorted_
strictly_ ascending - Matches if the asserted collection is sorted strictly ascending.
- sorted_
strictly_ by - Matches if the elements in the asserted collection are sorted strictly monotone according to the given
predicate
in the expected order`. - sorted_
strictly_ by_ in_ any_ order - Matches if the elements in the asserted collection are sorted strictly monotone according to the given
predicate
in any order. - sorted_
strictly_ descending - Matches if the asserted collection is sorted strictly descending.