pub struct TestCollection {}Expand description
A global collection of tests. Tests can be added to the collection from different modules and then run.
Implementations§
Source§impl TestCollection
impl TestCollection
Sourcepub fn collect_tests() -> Vec<Trial>
pub fn collect_tests() -> Vec<Trial>
Returns the collected tests and clears the storage.
Sourcepub fn run_with_args(args: Arguments)
pub fn run_with_args(args: Arguments)
Runs all the collected tests with the provided arguments.
Trait Implementations§
Source§impl ConvertResult<()> for TestCollection
impl ConvertResult<()> for TestCollection
Source§impl ConvertResult<Result<(), &str>> for TestCollection
impl ConvertResult<Result<(), &str>> for TestCollection
Source§impl ConvertResult<Result<(), Failed>> for TestCollection
impl ConvertResult<Result<(), Failed>> for TestCollection
Auto Trait Implementations§
impl Freeze for TestCollection
impl RefUnwindSafe for TestCollection
impl Send for TestCollection
impl Sync for TestCollection
impl Unpin for TestCollection
impl UnwindSafe for TestCollection
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