pub struct DynamicTestRegistration { /* private fields */ }
Implementations§
Source§impl DynamicTestRegistration
impl DynamicTestRegistration
pub fn new() -> Self
pub fn to_vec(self) -> Vec<GeneratedTest>
pub fn add_sync_test<R: TestReturnValue + 'static>( &mut self, name: impl AsRef<str>, props: TestProperties, run: impl Fn(Arc<dyn DependencyView + Send + Sync>) -> R + Send + Sync + Clone + 'static, )
pub fn add_async_test<R: TestReturnValue + 'static>( &mut self, name: impl AsRef<str>, props: TestProperties, run: impl Fn(Arc<dyn DependencyView + Send + Sync>) -> Pin<Box<dyn Future<Output = R> + Send>> + Send + Sync + Clone + 'static, )
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DynamicTestRegistration
impl !RefUnwindSafe for DynamicTestRegistration
impl Send for DynamicTestRegistration
impl Sync for DynamicTestRegistration
impl Unpin for DynamicTestRegistration
impl !UnwindSafe for DynamicTestRegistration
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