Merge pull request #6043 from element-hq/renovate/metro

fix(deps): update metro to v0.10.0
This commit is contained in:
ganfra 2026-01-21 17:01:42 +01:00 committed by GitHub
commit 9ae97048a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 26 additions and 50 deletions

View file

@ -15,6 +15,8 @@ import com.lemonappdev.konsist.api.verify.assertFalse
import com.lemonappdev.konsist.api.verify.assertTrue
import dev.zacsweers.metro.Assisted
import dev.zacsweers.metro.ContributesBinding
import dev.zacsweers.metro.ContributesIntoMap
import dev.zacsweers.metro.ContributesIntoSet
import dev.zacsweers.metro.Inject
import org.junit.Test
@ -46,4 +48,26 @@ class KonsistDiTest {
classDeclaration.hasAnnotationOf(Inject::class)
}
}
@Test
fun `class annotated with @ContributesIntoSet does not need to be annotated with @Inject anymore`() {
Konsist
.scopeFromProject()
.classes()
.withAnnotationOf(ContributesIntoSet::class)
.assertFalse { classDeclaration ->
classDeclaration.hasAnnotationOf(Inject::class)
}
}
@Test
fun `class annotated with @ContributesIntoMap does not need to be annotated with @Inject anymore`() {
Konsist
.scopeFromProject()
.classes()
.withAnnotationOf(ContributesIntoMap::class)
.assertFalse { classDeclaration ->
classDeclaration.hasAnnotationOf(Inject::class)
}
}
}