ContributesTest

annotation class ContributesTest(source)

Annotate a test class with this to automatically contribute it to the AppScope multibinding. Equivalent to the following declaration in an application module:

@Module
@ContributesTo(AppScope::class)
object TestModule {
@Provides
@IntoMap
@ClassKey(MainTest::class)
@SingleIn(AppScope::class)
fun providesFirstScreenTest(injector: MembersInjector<MainTest>): SingleInstrumentedTestInjector {
return SingleInstrumentedTestInjector(injector)
}

The generated code created via the anvil-codegen module.