[][src]Struct qutonium::core::tester::TestCase

pub struct TestCase {
    pub test: Box<ClosureResult>,
    pub diagnostic: Option<String>,
    pub location: Option<Location>,
    pub name: &'static str,
    pub only: bool,
    pub pass: bool,
    pub skip: bool,
    pub time: Time,
}

Fields

test: Box<ClosureResult>diagnostic: Option<String>location: Option<Location>name: &'static stronly: boolpass: boolskip: booltime: Time

Implementations

impl TestCase[src]

pub fn new<T>(name: &'static str, test: T) -> Self where
    T: Fn() -> Result<Expect, Expect> + 'static + Copy + Clone
[src]

pub fn only(self) -> Self[src]

pub fn render(&mut self)[src]

pub fn result(&self) -> Test[src]

Trait Implementations

impl Debug for TestCase[src]

Auto Trait Implementations

impl !RefUnwindSafe for TestCase

impl !Send for TestCase

impl !Sync for TestCase

impl Unpin for TestCase

impl !UnwindSafe for TestCase

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.