aboutsummaryrefslogtreecommitdiff
path: root/src/test_utils.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-11-06 19:03:56 +0100
committerHampusM <hampus@hampusmat.com>2022-11-06 19:03:56 +0100
commit56349a530811bbf0657fed14912c7e02001b2c8a (patch)
tree165247000ceef0ceeaf3d0b7dbe48f9a6af10f29 /src/test_utils.rs
parente282375de4ba75c69f7d619fc33c6250f6caba18 (diff)
test: split up cast unit tests into their respective modules
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")]