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]

Creates a failed Expectation

Create a satisfied Expectation

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.

A method called when the value goes out of scope. Read more

impl Display for Expectation
[src]

Formats the value using the given formatter. Read more