Struct rassert::ExpectationChain [−][src]
pub struct ExpectationChain<'a, T> { /* fields omitted */ }
Implementations
Trait Implementations
Asserts that the tested expression evaluates to true.
Asserts that the tested expression evaluates to false.
Asserts that the actual value satisfies some expectation, given in the form of a custom function. This expectation function shall return false if the expectation does not hold and true otherwise. In the former case, rassert will display the supplied message string. Read more
impl<'a, T> EqualityExpectationsExt<'a, T> for ExpectationChain<'a, T> where
T: PartialEq + Debug,
impl<'a, T> EqualityExpectationsExt<'a, T> for ExpectationChain<'a, T> where
T: PartialEq + Debug,
Asserts that the actual value is equal to the [expected] value. The same
as the to_be
function. Read more
Asserts that the actual value is equal to the [expected] value. The same
as the to_equal
function. Read more
Asserts that the actual value is not equal to the [expected] value. The same
as the to_not_be
function. Read more
Asserts that the actual value is not equal to the [expected] value. The same
as the to_not_equal
function. Read more
impl<'a, T> OptionItemExpectationsExt<'a, T> for ExpectationChain<'a, Option<T>> where
T: Debug + PartialEq,
impl<'a, T> OptionItemExpectationsExt<'a, T> for ExpectationChain<'a, Option<T>> where
T: Debug + PartialEq,
Asserts that the actual Option holds Some(expected)
.
impl<'a, T, E> ResultOkExpectationsExt<'a, T, E> for ExpectationChain<'a, Result<T, E>> where
T: Debug + PartialEq,
impl<'a, T, E> ResultOkExpectationsExt<'a, T, E> for ExpectationChain<'a, Result<T, E>> where
T: Debug + PartialEq,
Asserts that the length of the tested vector is equal to [expected].
Asserts that the tested vector is empty.
Asserts that the tested vector is not empty (it contains at least one item).
impl<'a, T> VectorItemExpectationsExt<'a, T> for ExpectationChain<'a, Vec<T>> where
T: Debug + PartialEq,
impl<'a, T> VectorItemExpectationsExt<'a, T> for ExpectationChain<'a, Vec<T>> where
T: Debug + PartialEq,
Asserts that the tested vec contains [expected].