Enum galvanic_assert::Expectation [] [src]

pub enum Expectation {
    Failed {
        assertion: String,
        file: String,
        line: u32,
        error_msg: String,
    },
    Satisfied,
}

The result of a deferred assertion.

Variants

Fields of Failed

A representation of the failed assertion.

The file where the expection has been created.

The source code line where the expectation has been created.

The reason why the expectation has not been met.

Methods

impl Expectation
[src]

[src]

Creates a failed Expectation

[src]

Create a satisfied Expectation

[src]

Verifies if the asseration given by the Expectation held.

Panics if the verification fails.

Trait Implementations

impl Drop for Expectation
[src]

If the Expectation is dropped it is automatically verified.

[src]

Executes the destructor for this type. Read more

impl Display for Expectation
[src]

[src]

Formats the value using the given formatter. Read more