Struct ensc_testsuite::PlanRunner[][src]

pub struct PlanRunner(_);

Implementations

impl Plan[src]

pub fn new() -> Self[src]

pub fn new_case(&self, name: &str) -> CaseProxy<'_>[src]

pub fn abort(&self, reason: &str)[src]

pub fn ok<D, F, R>(&self, desc: D, f: F) -> TestResult<R> where
    F: FnOnce() -> R,
    R: AsStatus,
    D: Into<Desc>, 
[src]

pub fn fail<D, F, R>(&self, desc: D, f: F) -> TestResult<R> where
    F: FnOnce() -> R,
    R: AsStatus,
    D: Into<Desc>, 
[src]

pub fn fail_nopanic<D, F, R>(&self, desc: D, f: F) -> TestResult<R> where
    F: FnOnce() -> R,
    R: AsStatus,
    D: Into<Desc>, 
[src]

pub fn panic<D, F, R>(&self, desc: D, f: F) -> TestResult<R> where
    F: FnOnce() -> R,
    R: AsStatus,
    D: Into<Desc>, 
[src]

pub fn skip<D>(&self, desc: D) where
    D: Into<Desc>, 
[src]

pub fn todo<D, F, R>(&self, desc: D, f: F) -> TestResult<R> where
    F: FnOnce() -> R,
    R: AsStatus,
    D: Into<Desc>, 
[src]

pub fn comment(&self, s: &str)[src]

pub fn cmp<D, T, F, R, C>(
    &self,
    desc: D,
    exp: T,
    f: F,
    cmp: C
) -> TestResult<()> where
    T: Debug,
    F: FnOnce() -> R,
    R: PartialEq<T>,
    R: Debug,
    R: Clone,
    D: Into<Desc>,
    C: FnOnce(&R, &T) -> bool
[src]

pub fn eq<D, T, F, R>(&self, desc: D, exp: T, f: F) -> TestResult<()> where
    T: Debug,
    F: FnOnce() -> R,
    R: PartialEq<T>,
    R: Debug,
    R: Clone,
    D: Into<Desc>, 
[src]

pub fn ne<D, T, F, R>(&self, desc: D, exp: T, f: F) -> TestResult<()> where
    T: Debug,
    F: FnOnce() -> R,
    R: PartialEq<T>,
    R: Debug,
    R: Clone,
    D: Into<Desc>, 
[src]

pub fn run<F>(&self, name: &str, f: F) -> TestStatus where
    F: FnOnce(&Self), 
[src]

pub fn new_plan<'a>(&'a self, name: &str) -> Opts<'a>[src]

pub unsafe fn override_status(&self, status: TestStatus) -> TestStatus[src]

pub fn is_ok(&self) -> bool[src]

Trait Implementations

impl Default for Plan[src]

Auto Trait Implementations

impl RefUnwindSafe for Plan

impl Send for Plan

impl Sync for Plan

impl Unpin for Plan

impl UnwindSafe for Plan

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,