Struct psp::test_runner::TestRunner
source · [−]pub struct TestRunner<'a> { /* private fields */ }
Implementations
sourceimpl<'a> TestRunner<'a>
impl<'a> TestRunner<'a>
pub fn new_fifo_runner() -> Self
pub fn new_file_runner() -> Self
pub fn new_dprintln_runner() -> Self
pub fn run<F: Fn(&mut TestRunner<'_>)>(&mut self, f: F)
pub fn start_run(&self)
pub fn finish_run(self)
pub fn check_fns_do_not_panic(&self, tests: &[(&str, &dyn Fn())])
pub fn check<T>(&mut self, testcase_name: &'a str, l: T, r: T) where
T: Debug + PartialEq,
pub fn check_large_collection<T>(
&mut self,
testcase_name: &'a str,
l: &[T],
r: &[T]
) where
T: Debug + PartialEq + Eq,
pub fn check_silent<T>(&mut self, testcase_name: &'a str, l: T, r: T) where
T: Debug + PartialEq,
pub fn check_list<T>(&mut self, val_pairs: &[(&'a str, T, T)]) where
T: Debug + PartialEq,
pub fn _check_return_values<T>(
&mut self,
val_pairs: &[(&'a str, &dyn Fn() -> T, T)]
) where
T: Debug + PartialEq + Eq + Clone,
pub fn pass(&self, testcase_name: &str, msg: &str)
pub fn dbg(&self, testcase_name: &str, msg: &str)
pub fn fail(&mut self, testcase_name: &'a str, msg: &str)
pub fn write_args(&self, args: Arguments<'_>)
Auto Trait Implementations
impl<'a> RefUnwindSafe for TestRunner<'a>
impl<'a> Send for TestRunner<'a>
impl<'a> Sync for TestRunner<'a>
impl<'a> Unpin for TestRunner<'a>
impl<'a> UnwindSafe for TestRunner<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more