Trait forge::Test

source ·
pub trait Test: Send + Sync {
    // Required method
    fn name(&self) -> &'static str;

    // Provided methods
    fn ignored(&self) -> bool { ... }
    fn should_fail(&self) -> ShouldFail { ... }
}
Expand description

Represents a Test in Forge

This is meant to be a super trait of the other test interfaces.

Required Methods§

source

fn name(&self) -> &'static str

Returns the name of the Test

Provided Methods§

source

fn ignored(&self) -> bool

Indicates if the Test should be ignored

source

fn should_fail(&self) -> ShouldFail

Indicates if the Test should fail

Implementations on Foreign Types§

source§

impl<T: Test + ?Sized> Test for &T

source§

fn name(&self) -> &'static str

source§

fn ignored(&self) -> bool

source§

fn should_fail(&self) -> ShouldFail

Implementors§