Enum galvanic_assert::Expectation [] [src]

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

The result of a deferred assertion.


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.


impl Expectation


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

If the Expectation is dropped it is automatically verified.


Executes the destructor for this type. Read more

impl Display for Expectation


Formats the value using the given formatter. Read more