koin_test library

Classes

CheckedComponent
CheckParameters

Extensions

KoinApplicationExt
KoinExt

Functions

checkModules(Level level, CheckParameters checkParameters, dynamic appDeclaration(KoinApplication app)) → void
checkParametersOf(Map<Type, dynamic> creators) CheckParameters
declare<T>(T instance, [Qualifier qualifier]) → T
Declare a instance to be loaded in the global context of koin
declareModule(dynamic moduleDeclaration(Module module)) → void
Declare a module to be loaded in the global context of koin
get<T>([Qualifier qualifier]) → T
Get an instance from Koin in the test environment.
inject<T>([Qualifier qualifier]) Lazy<T>
Lazy inject an instance from Koin in the test environment.
koinSetUp() → void
Register a setUp function that starts koin before tests.
koinTearDown() → void
Register a tearDown function that close Koin afters tests.
koinTest() → void
Koin Test tools @author Pedro Bissonho
runDefinition(Map<CheckedComponent, Parameter> allParameters, ProviderDefinition it, Scope scope) → void
testKoinDeclaration(String description, dynamic appDeclaration(KoinApplication app), {Level level, CheckParameters checkParameters, String testOn, Timeout timeout, dynamic skip, dynamic tags, Map<String, dynamic> onPlatform, int retry}) → void
testModule(String description, Module module, {Level level, CheckParameters checkParameters, String testOn, Timeout timeout, dynamic skip, dynamic tags, Map<String, dynamic> onPlatform, int retry}) → void
testModules(String description, List<Module> modules, {Level level, CheckParameters checkParameters, String testOn, Timeout timeout, dynamic skip, dynamic tags, Map<String, dynamic> onPlatform, int retry}) → void

Typedefs

ParameterCreator = Parameter Function(Qualifier qualifier)