Expand description
A module contains matchers.
Structs§
- BeClose
To - A matcher for
be_close_toassertions for float numbers. - BeEmpty
- A matcher for
be_emptyassertions. - BeEqual
To - A matcher for
be_equal_toassertions for types that conforms toPartialEqtrait. - BeErr
- A matcher for
be_errassertions forResult<T, E>type. - BeFalse
- A matcher for
be_falseassertions. - BeNone
- A matcher for
be_noneassertions forOption<T>types. - BeOk
- A matcher for
be_okassertions forResult<T, E>type. - BeSome
- A matcher for
be_someassertions forOption<T>types. - BeTrue
- A matcher for
be_trueassertions. - BeWithin
Range - A matcher for
be_within_rangeassertions. - Have
Count - A matcher for
have_countassertions. - Partial
Order - A matcher for types that conform to
PartialOrdtrait.
Functions§
- be_
close_ to - Returns a new
BeCloseTomatcher with defaultdeltaequal to0.001. - be_
empty - Returns a new
BeEmptymatcher. - be_eq
- Returns a new
BeEqualTomatcher. - be_
equal_ to - Returns a new
BeEqualTomatcher. - be_err
- Returns a new
BeErrmatcher. - be_
false - Returns a new
BeFalsematcher. - 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
BeNonematcher. - be_ok
- Returns a new
BeOkmatcher. - be_some
- Returns a new
BeSomematcher. - be_true
- Returns a new
BeTruematcher. - be_
within_ range - Returns a new
BeWithinRangematcher. - have_
count - Returns a new
HaveCountmatcher.