pub struct TestReport {
pub name: Symbol,
pub passed: bool,
pub detail: Option<String>,
pub mode: Symbol,
pub events: Vec<Value>,
pub effect: Option<Value>,
pub shape_report: Option<Value>,
pub skipped: bool,
}Expand description
The outcome of running a library-supplied Test.
Fields§
§name: SymbolSymbol naming the test.
passed: boolWhether the test passed.
detail: Option<String>Optional human-readable detail (e.g. a failure message).
mode: SymbolThe mode the test ran under.
events: Vec<Value>Events recorded while running the test.
effect: Option<Value>The effect produced by the test, if any.
shape_report: Option<Value>A shape-level report value, if the test produced one.
skipped: boolWhether the test was skipped rather than run.
Implementations§
Source§impl TestReport
impl TestReport
Trait Implementations§
Source§impl Clone for TestReport
impl Clone for TestReport
Source§fn clone(&self) -> TestReport
fn clone(&self) -> TestReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TestReport
impl Debug for TestReport
impl Eq for TestReport
Source§impl PartialEq for TestReport
impl PartialEq for TestReport
Source§fn eq(&self, other: &TestReport) -> bool
fn eq(&self, other: &TestReport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TestReport
Auto Trait Implementations§
impl !RefUnwindSafe for TestReport
impl !UnwindSafe for TestReport
impl Freeze for TestReport
impl Send for TestReport
impl Sync for TestReport
impl Unpin for TestReport
impl UnsafeUnpin for TestReport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more