//Extensions for Dagger Hilt/it.czerwinski.android.hilt.annotations/TestFactoryMethod

TestFactoryMethod

[jvm] @Target(allowedTargets = [AnnotationTarget.FUNCTION])

annotation class TestFactoryMethod(component: KClass<*>)

Marks test factory method for the class returned by the annotated function.

The implementation will be provided in the given component.

Any annotations annotated with @Scope or @Qualifier will also annotate the resulting @Provides method.

If the annotated function is neither static nor a member of an object, the enclosing class will become the first parameter of the generated provide function.

Since

1.1.0

Constructors

Name Summary
TestFactoryMethod [jvm] fun TestFactoryMethod(component: KClass<*> = SingletonComponent::class)

Functions

Name Summary
equals [jvm]
Content
open operator fun equals(other: Any?): Boolean


hashCode [jvm]
Content
open fun hashCode(): Int


toString [jvm]
Content
open fun toString(): String


Properties

Name Summary
component [jvm] val component: KClass<*>Hilt component in which the provider should be installed.