[AA] Add TestModule.getKtModule convenience function

^KT-56288
This commit is contained in:
Marco Pennekamp
2024-01-24 22:43:08 +01:00
committed by Space Team
parent 1435fcc50f
commit 3044941201
@@ -57,6 +57,8 @@ fun TestServices.allKtFiles(): List<KtFile> = moduleStructure.modules.flatMap(kt
val TestServices.ktModuleProvider: AnalysisApiKtModuleProvider by TestServices.testServiceAccessor()
fun TestModule.getKtModule(testServices: TestServices): KtModule = testServices.ktModuleProvider.getModule(name)
fun List<KtTestModule>.associateByName(): Map<String, KtTestModule> {
return associateBy { ktTestModule ->
when (val ktModule = ktTestModule.ktModule) {