Struct ensc_testsuite::util::result::Result [−][src]
pub struct Result<T> { /* fields omitted */ }
Expand description
Result of a testcase.
This includes both the returned value of the testcase and the status.
Example
let result = PlanRunner::new().ok("test", || Result::<_,()>::Ok(42));
assert!(result.is_ok());
assert_eq!(result.as_status(), TestStatus::Pass);
assert_eq!(result.into_value(), Some(Ok(42)));