Struct expectest::core::ActualValue
[−]
[src]
pub struct ActualValue<A> { /* fields omitted */ }
Represent an actual value and optional location of a test case in a source code.
Methods
impl<A> ActualValue<A>
[src]
fn new(value: A) -> Self
Creates a new instance of ActualValue
using value
.
Also to create a new instance you can use expect
function or expect!
macro.
Macro is better because it can save location of a test case in a source code.
fn location(self, l: SourceLocation) -> Self
Sets a new SourceLocation
.
fn to<M, E>(self, matcher: M) -> TestResult where
M: Matcher<A, E>,
M: Matcher<A, E>,
Performs assertion matching using matcher
. Returns a new instance of TestResult
.
fn to_not<M, E>(self, matcher: M) -> TestResult where
M: Matcher<A, E>,
M: Matcher<A, E>,
Performs negation matching using matcher
. Returns a new instance of TestResult
.
fn not_to<M, E>(self, matcher: M) -> TestResult where
M: Matcher<A, E>,
M: Matcher<A, E>,
Performs negation matching using matcher
. Returns a new instance of TestResult
.