Struct k9::assertions::Assertion[][src]

pub struct Assertion {
    pub description: Option<String>,
    pub name: String,
    pub args_str: String,
    pub failure_message: String,
}

Fields

description: Option<String>

Description of what’s being asserted to provide a bit more context in the error mesasge

name: String

the name of the assertion macro that was invoked. e.g. assert_equals

args_str: String

string containing all arguments passed to the assertion macro. e.g. “1 + 1, my_var”

failure_message: String

Assertion failure message, e.g. expected blah blah but got blah

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.