Coverage Summary for Class: StrategiesModuleKt (com.javiersc.samples.strategies.di)
Class |
Method, %
|
Branch, %
|
Line, %
|
Instruction, %
|
StrategiesModuleKt |
0%
(0/1)
|
|
0%
(0/1)
|
0%
(0/8)
|
StrategiesModuleKt$strategiesModule$1 |
0%
(0/1)
|
|
0%
(0/4)
|
0%
(0/16)
|
StrategiesModuleKt$strategiesModule$1$1 |
0%
(0/1)
|
|
0%
(0/1)
|
0%
(0/2)
|
StrategiesModuleKt$strategiesModule$1$2 |
0%
(0/1)
|
|
0%
(0/1)
|
0%
(0/2)
|
StrategiesModuleKt$strategiesModule$1$invoke$$inlined$singleOf$default$1 |
|
StrategiesModuleKt$strategiesModule$1$invoke$$inlined$singleOf$default$2 |
|
Total |
0%
(0/4)
|
|
0%
(0/7)
|
0%
(0/28)
|
package com.javiersc.samples.strategies.di
import com.javiersc.kaari.samples.strategies.internal.KaariDatabase
import com.javiersc.samples.strategies.characters.AddCharacter
import com.javiersc.samples.strategies.characters.AddCharacterImpl
import com.javiersc.samples.strategies.characters.GetCharacters
import com.javiersc.samples.strategies.characters.GetCharactersImpl
import org.koin.core.module.dsl.singleOf
import org.koin.dsl.bind
import org.koin.dsl.module
val strategiesModule = module {
single { KaariDatabase(get()) }
single { KaariDatabase.Schema }
singleOf(::AddCharacterImpl).bind<AddCharacter>()
singleOf(::GetCharactersImpl).bind<GetCharacters>()
}