Expand description
A module contains matchers.
Structs§
- BeClose
To - A matcher for
be_close_to
assertions for float numbers. - BeEmpty
- A matcher for
be_empty
assertions. - BeEqual
To - A matcher for
be_equal_to
assertions for types that conforms toPartialEq
trait. - BeErr
- A matcher for
be_err
assertions forResult<T, E>
type. - BeFalse
- A matcher for
be_false
assertions. - BeNone
- A matcher for
be_none
assertions forOption<T>
types. - BeOk
- A matcher for
be_ok
assertions forResult<T, E>
type. - BeSome
- A matcher for
be_some
assertions forOption<T>
types. - BeTrue
- A matcher for
be_true
assertions. - BeWithin
Range - A matcher for
be_within_range
assertions. - Have
Count - A matcher for
have_count
assertions. - Partial
Order - A matcher for types that conform to
PartialOrd
trait.
Functions§
- be_
close_ to - Returns a new
BeCloseTo
matcher with defaultdelta
equal to0.001
. - be_
empty - Returns a new
BeEmpty
matcher. - be_eq
- Returns a new
BeEqualTo
matcher. - be_
equal_ to - Returns a new
BeEqualTo
matcher. - be_err
- Returns a new
BeErr
matcher. - be_
false - Returns a new
BeFalse
matcher. - be_ge
- Returns a new
PartialOrder
(greater or equal to) matcher. - be_
greater_ or_ equal_ to - Returns a new
PartialOrder
(greater or equal to) matcher. - be_
greater_ than - Returns a new
PartialOrder
(greater than) matcher. - be_gt
- Returns a new
PartialOrder
(greater than) matcher. - be_le
- Returns a new
PartialOrder
(less or equal to) matcher. - be_
less_ or_ equal_ to - Returns a new
PartialOrder
(less or equal to) matcher. - be_
less_ than - Returns a new
PartialOrder
(less than) matcher. - be_lt
- Returns a new
PartialOrder
(less than) matcher. - be_none
- Returns a new
BeNone
matcher. - be_ok
- Returns a new
BeOk
matcher. - be_some
- Returns a new
BeSome
matcher. - be_true
- Returns a new
BeTrue
matcher. - be_
within_ range - Returns a new
BeWithinRange
matcher. - have_
count - Returns a new
HaveCount
matcher.