[][src]Module double::matcher

Functions

all_of

Matcher that matches if arg matches all of the specified matchers. If at least one of matchers doesn't match with arg, this matcher doesn't match.

any

Matcher that matches any arg value.

any_of

Matcher that matches if arg matches any of the specified matchers. If none of the matchers match with arg, this matcher doesn't match.

between_exc

Matcher that matches if arg is between the exclusive range (low,high).

between_inc

Matcher that matches if arg is between the inclusive range [low,high].

contains

Matcher that matches if arg contains the substring specified by string.

ends_with

Matcher that matches if arg ends with the specified suffix.

eq

Matcher that matches if arg is equal to target_val.

eq_nocase

Matcher that matches if arg is equal to string after ignoring case.

f32_eq

Matcher that matches if arg is equal to target_val. This uses approximate floating point equality, as defined by the float-cmp crate.

f64_eq

Matcher that matches if arg is equal to target_val. This uses approximate floating point equality, as defined by the float-cmp crate.

ge

Matcher that matches if arg is greater than or equal to target_val.

gt

Matcher that matches if arg is greater than target_val.

is_err

Matcher that matches if arg is a Result::Err whose stored value matches the specified matcher.

is_ok

Matcher that matches if arg is a Result::Ok whose stored value matches the specified matcher.

is_some

Matcher that matches if arg is a populated Option whose stored value matches the specified matcher.

le

Matcher that matches if arg is less than or equal to target_val.

lt

Matcher that matches if arg is less than target_val.

match_impl_1
match_impl_2
match_impl_3
match_impl_4
match_impl_5
match_impl_6
match_impl_7
match_impl_8
match_impl_9
match_impl_10
match_impl_11
nan_sensitive_f32_eq

Matcher that matches if arg is equal to target_val. This uses approximate floating point equality, as defined by the float-cmp crate.

nan_sensitive_f64_eq

Matcher that matches if arg is equal to target_val. This uses approximate floating point equality, as defined by the float-cmp crate.

ne

Matcher that matches if arg is not equal to target_val.

ne_nocase

Matcher that matches if arg is not equal to string, even after ignoring case.

not

Matcher that matches if arg does not match the specified matcher.

starts_with

Matcher that matches if arg starts with the specified prefix.