ContributesTest
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)
}
Content copied to clipboard
The generated code created via the anvil-codegen module.