pub struct DynamicTestRegistration { /* private fields */ }
Implementations§
Source§impl DynamicTestRegistration
impl DynamicTestRegistration
pub fn new() -> DynamicTestRegistration
pub fn to_vec(self) -> Vec<GeneratedTest>
pub fn add_sync_test<R>(
&mut self,
name: impl AsRef<str>,
props: TestProperties,
run: impl Fn(Arc<dyn DependencyView + Send + Sync>) -> R + Send + Sync + Clone + 'static,
)where
R: TestReturnValue + 'static,
pub fn add_async_test<R>(
&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,
)where
R: TestReturnValue + 'static,
Trait Implementations§
Source§impl Default for DynamicTestRegistration
impl Default for DynamicTestRegistration
Source§fn default() -> DynamicTestRegistration
fn default() -> DynamicTestRegistration
Returns the “default value” for a type. Read more
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