pub struct TestContainer { /* private fields */ }Expand description
Test container with enhanced testing capabilities
Implementations§
Source§impl TestContainer
impl TestContainer
Sourcepub fn register_mock<T: Provider + Clone + 'static>(&self, mock: T)
pub fn register_mock<T: Provider + Clone + 'static>(&self, mock: T)
Register a mock provider
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TestContainer
impl !UnwindSafe for TestContainer
impl Freeze for TestContainer
impl Send for TestContainer
impl Sync for TestContainer
impl Unpin for TestContainer
impl UnsafeUnpin for TestContainer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<R, D> DepsPresent<D> for R
Source§impl<T> Injectable for T
impl<T> Injectable for T
Source§fn type_id_of() -> TypeIdwhere
Self: Sized,
fn type_id_of() -> TypeIdwhere
Self: Sized,
Returns the TypeId of this type (for internal use)
Source§fn type_name_of() -> &'static strwhere
Self: Sized,
fn type_name_of() -> &'static strwhere
Self: Sized,
Returns the type name for debugging