Struct move_unit_test::test_reporter::TestFailure
source · pub struct TestFailure {
pub test_run_info: TestRunInfo,
pub vm_error: Option<VMError>,
pub failure_reason: FailureReason,
pub storage_state: Option<String>,
}
Fields§
§test_run_info: TestRunInfo
§vm_error: Option<VMError>
§failure_reason: FailureReason
§storage_state: Option<String>
Implementations§
source§impl TestFailure
impl TestFailure
pub fn new( failure_reason: FailureReason, test_run_info: TestRunInfo, vm_error: Option<VMError>, storage_state: Option<String> ) -> Self
pub fn render_error(&self, test_plan: &TestPlan) -> String
Trait Implementations§
source§impl Clone for TestFailure
impl Clone for TestFailure
source§fn clone(&self) -> TestFailure
fn clone(&self) -> TestFailure
Returns a copy of the value. Read more
1.0.0 · 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 TestFailure
impl Debug for TestFailure
source§impl Ord for TestFailure
impl Ord for TestFailure
source§fn cmp(&self, other: &TestFailure) -> Ordering
fn cmp(&self, other: &TestFailure) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<TestFailure> for TestFailure
impl PartialEq<TestFailure> for TestFailure
source§fn eq(&self, other: &TestFailure) -> bool
fn eq(&self, other: &TestFailure) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TestFailure> for TestFailure
impl PartialOrd<TestFailure> for TestFailure
source§fn partial_cmp(&self, other: &TestFailure) -> Option<Ordering>
fn partial_cmp(&self, other: &TestFailure) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for TestFailure
impl StructuralEq for TestFailure
impl StructuralPartialEq for TestFailure
Auto Trait Implementations§
impl RefUnwindSafe for TestFailure
impl Send for TestFailure
impl Sync for TestFailure
impl Unpin for TestFailure
impl UnwindSafe for TestFailure
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.