aboutsummaryrefslogtreecommitdiff
path: root/src/test_utils.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test_utils.rs')
-rw-r--r--src/test_utils.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test_utils.rs b/src/test_utils.rs
index b4ec951..db055d4 100644
--- a/src/test_utils.rs
+++ b/src/test_utils.rs
@@ -10,6 +10,7 @@ pub mod subjects
use crate::dependency_history::IDependencyHistory;
use crate::di_container::blocking::IDIContainer;
use crate::interfaces::injectable::Injectable;
+ use crate::libs::intertrait::CastFromSync;
use crate::ptr::TransientPtr;
pub trait IUserManager
@@ -130,6 +131,13 @@ pub mod subjects
Ok(TransientPtr::new(Self::new()))
}
}
+
+ #[derive(Debug)]
+ pub struct Ninja;
+
+ pub trait INinja: CastFromSync {}
+
+ impl INinja for Ninja {}
}
#[cfg(feature = "async")]