tegralDiCheck
DSL for checking your Tegral DI modules.
Imagine that we have three modules, web
, db
and generate
. A typical use case would look like:
@Test
fun `Tegral DI checks`() = tegralDiCheck {
modules(web, db, generate)
+complete
+noCycle
+safeInjection
}
Content copied to clipboard
Note that running checks will instantiate the classes within the modules in order to trigger the by scope()
injections.