pub struct TestRunner<'a> { /* private fields */ }Implementations§
Source§impl<'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)
pub fn check_true(&mut self, testcase_name: &'a str, pred: bool)
pub fn check_large_collection<T>( &mut self, testcase_name: &'a str, l: &[T], r: &[T], )
pub fn check_silent<T>(&mut self, testcase_name: &'a str, l: T, r: T)
pub fn check_list<T>(&mut self, val_pairs: &[(&'a str, T, T)])
pub fn _check_return_values<T>( &mut self, val_pairs: &[(&'a str, &dyn Fn() -> T, T)], )
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> Freeze for TestRunner<'a>
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> UnsafeUnpin for TestRunner<'a>
impl<'a> UnwindSafe for TestRunner<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more