AssertResult

Struct AssertResult 

Source
pub struct AssertResult { /* private fields */ }

Implementations§

Source§

impl AssertResult

Source

pub fn new_error_result( passed: bool, stack_trace: Option<&str>, message: Option<&str>, actual_value: InterpretingError, expected_value: InterpretingError, ) -> Self

Source

pub fn new_equals_result( passed: bool, stack_trace: Option<&str>, message: Option<&str>, actual_value: &DataObject, actual_value_text: &str, expected_value: &DataObject, expected_value_text: &str, ) -> Self

Source

pub fn new_not_equals_result( passed: bool, stack_trace: Option<&str>, message: Option<&str>, actual_value: &DataObject, actual_value_text: &str, expected_value: &DataObject, expected_value_text: &str, ) -> Self

Source

pub fn new_less_than_result( passed: bool, stack_trace: Option<&str>, message: Option<&str>, actual_value: &DataObject, actual_value_text: &str, expected_value: &DataObject, expected_value_text: &str, ) -> Self

Source

pub fn new_greater_than_result( passed: bool, stack_trace: Option<&str>, message: Option<&str>, actual_value: &DataObject, actual_value_text: &str, expected_value: &DataObject, expected_value_text: &str, ) -> Self

Source

pub fn new_less_than_or_equals_result( passed: bool, stack_trace: Option<&str>, message: Option<&str>, actual_value: &DataObject, actual_value_text: &str, expected_value: &DataObject, expected_value_text: &str, ) -> Self

Source

pub fn new_greater_than_or_equals_result( passed: bool, stack_trace: Option<&str>, message: Option<&str>, actual_value: &DataObject, actual_value_text: &str, expected_value: &DataObject, expected_value_text: &str, ) -> Self

Source

pub fn new_strict_equals_result( passed: bool, stack_trace: Option<&str>, message: Option<&str>, actual_value: &DataObject, actual_value_text: &str, expected_value: &DataObject, expected_value_text: &str, ) -> Self

Source

pub fn new_strict_not_equals_result( passed: bool, stack_trace: Option<&str>, message: Option<&str>, actual_value: &DataObject, actual_value_text: &str, expected_value: &DataObject, expected_value_text: &str, ) -> Self

Source

pub fn new_translation_value_equals_result( passed: bool, stack_trace: Option<&str>, message: Option<&str>, translation_key: &str, translation_value: Option<&str>, expected_value: &str, ) -> Self

Source

pub fn new_translation_value_not_equals_result( passed: bool, stack_trace: Option<&str>, message: Option<&str>, translation_key: &str, translation_value: Option<&str>, expected_value: &str, ) -> Self

Source

pub fn new_translation_key_found_result( passed: bool, stack_trace: Option<&str>, message: Option<&str>, translation_key: &str, translation_value: Option<&str>, ) -> Self

Source

pub fn new_translation_key_not_found_result( passed: bool, stack_trace: Option<&str>, message: Option<&str>, translation_key: &str, translation_value: Option<&str>, ) -> Self

Source

pub fn new_type_equals_result( passed: bool, stack_trace: Option<&str>, message: Option<&str>, actual_value: &DataObject, actual_value_text: &str, expected_type: DataType, ) -> Self

Source

pub fn new_type_not_equals_result( passed: bool, stack_trace: Option<&str>, message: Option<&str>, actual_value: &DataObject, actual_value_text: &str, expected_type: DataType, ) -> Self

Source

pub fn new_null_result( passed: bool, stack_trace: Option<&str>, message: Option<&str>, actual_value: &DataObject, actual_value_text: &str, ) -> Self

Source

pub fn new_not_null_result( passed: bool, stack_trace: Option<&str>, message: Option<&str>, actual_value: &DataObject, actual_value_text: &str, ) -> Self

Source

pub fn new_void_result( passed: bool, stack_trace: Option<&str>, message: Option<&str>, actual_value: &DataObject, actual_value_text: &str, ) -> Self

Source

pub fn new_not_void_result( passed: bool, stack_trace: Option<&str>, message: Option<&str>, actual_value: &DataObject, actual_value_text: &str, ) -> Self

Source

pub fn new_final_result( passed: bool, stack_trace: Option<&str>, message: Option<&str>, actual_value: &DataObject, actual_value_text: &str, ) -> Self

Source

pub fn new_not_final_result( passed: bool, stack_trace: Option<&str>, message: Option<&str>, actual_value: &DataObject, actual_value_text: &str, ) -> Self

Source

pub fn new_static_result( passed: bool, stack_trace: Option<&str>, message: Option<&str>, actual_value: &DataObject, actual_value_text: &str, ) -> Self

Source

pub fn new_not_static_result( passed: bool, stack_trace: Option<&str>, message: Option<&str>, actual_value: &DataObject, actual_value_text: &str, ) -> Self

Source

pub fn new_throw_result( passed: bool, stack_trace: Option<&str>, message: Option<&str>, actual_value: Option<InterpretingError>, expected_value: InterpretingError, ) -> Self

Source

pub fn new_return_result( passed: bool, stack_trace: Option<&str>, message: Option<&str>, actual_value: Option<(&DataObjectRef, Box<str>)>, expected_value: &DataObject, expected_value_text: &str, ) -> Self

Source

pub fn new_no_return_result( passed: bool, stack_trace: Option<&str>, message: Option<&str>, actual_value: Option<(&DataObjectRef, Box<str>)>, ) -> Self

Source

pub fn new_fail_result(stack_trace: Option<&str>, message: Option<&str>) -> Self

Source

pub fn passed(&self) -> bool

Source

pub fn assert_test_name(&self) -> &str

Source

pub fn stack_trace(&self) -> Option<&str>

Source

pub fn message(&self) -> Option<&str>

Source

pub fn actual_value(&self) -> Option<&str>

Source

pub fn expected_value(&self) -> Option<&str>

Trait Implementations§

Source§

impl Debug for AssertResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V