Module expectest::matchers [] [src]

A module contains matchers.

Structs

BeCloseTo

A matcher for be_close_to assertions for float numbers.

BeEmpty

A matcher for be_empty assertions.

BeEqualTo

A matcher for be_equal_to assertions for types that conforms to PartialEq trait.

BeFalse

A matcher for be_false assertions.

BeGreaterOrEqualTo

A matcher for be_greater_or_equal_to assertions for types that conforms to PartialOrd trait.

BeGreaterThan

A matcher for be_greater_than assertions for types that conforms to PartialOrd trait.

BeLessOrEqualTo

A matcher for be_less_or_equal_to assertions for types that conforms to PartialOrd trait.

BeLessThan

A matcher for be_less_than assertions for types that conforms to PartialOrd trait.

BeNone

A matcher for be_none assertions for Option<T> types.

BeSome

A matcher for be_some assertions for Option<T> types.

BeTrue

A matcher for be_true assertions.

Functions

be_close_to

Returns new BeCloseTo matcher with default delta equal to 0.001.

be_empty

Returns new BeEmpty matcher.

be_equal_to

Returns new BeEqualTo matcher.

be_false

Returns new BeFalse matcher.

be_greater_or_equal_to

Returns new BeGreaterOrEqualTo matcher.

be_greater_than

Returns new BeGreaterThan matcher.

be_less_or_equal_to

Returns new BeLessOrEqualTo matcher.

be_less_than

Returns new BeLessThan matcher.

be_none

Returns new BeNone matcher.

be_some

Returns new BeSome matcher.

be_true

Returns new BeTrue matcher.