Struct ensc_testsuite::PlanRunner [−][src]
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]
F: FnOnce() -> R,
R: AsStatus,
D: Into<Desc>,
pub fn fail<D, F, R>(&self, desc: D, f: F) -> TestResult<R> where
F: FnOnce() -> R,
R: AsStatus,
D: Into<Desc>,
[src]
F: FnOnce() -> R,
R: AsStatus,
D: Into<Desc>,
pub fn fail_nopanic<D, F, R>(&self, desc: D, f: F) -> TestResult<R> where
F: FnOnce() -> R,
R: AsStatus,
D: Into<Desc>,
[src]
F: FnOnce() -> R,
R: AsStatus,
D: Into<Desc>,
pub fn panic<D, F, R>(&self, desc: D, f: F) -> TestResult<R> where
F: FnOnce() -> R,
R: AsStatus,
D: Into<Desc>,
[src]
F: FnOnce() -> R,
R: AsStatus,
D: Into<Desc>,
pub fn skip<D>(&self, desc: D) where
D: Into<Desc>,
[src]
D: Into<Desc>,
pub fn todo<D, F, R>(&self, desc: D, f: F) -> TestResult<R> where
F: FnOnce() -> R,
R: AsStatus,
D: Into<Desc>,
[src]
F: FnOnce() -> R,
R: AsStatus,
D: Into<Desc>,
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]
&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,
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]
T: Debug,
F: FnOnce() -> R,
R: PartialEq<T>,
R: Debug,
R: Clone,
D: Into<Desc>,
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]
T: Debug,
F: FnOnce() -> R,
R: PartialEq<T>,
R: Debug,
R: Clone,
D: Into<Desc>,
pub fn run<F>(&self, name: &str, f: F) -> TestStatus where
F: FnOnce(&Self),
[src]
F: FnOnce(&Self),
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,