AA: rename test api for better clarification
Many sub tests are implementing the same name, doTestByFileStructure, which indeed are based on the list of KtFile in a single module. Rather, this one should be named after "ModuleStructure".
This commit is contained in:
committed by
Ilya Kirillov
parent
96e789098f
commit
5bca3c6841
+1
-1
@@ -11,7 +11,7 @@ import org.jetbrains.kotlin.test.services.TestModuleStructure
|
||||
import org.jetbrains.kotlin.test.services.TestServices
|
||||
|
||||
abstract class AbstractLowLevelApiSingleFileTest : AbstractLowLevelApiSingleModuleTest() {
|
||||
final override fun doTestByFileStructure(moduleStructure: TestModuleStructure, testServices: TestServices) {
|
||||
final override fun doTestByModuleStructure(moduleStructure: TestModuleStructure, testServices: TestServices) {
|
||||
val singleModule = moduleStructure.modules.single()
|
||||
val singleFile = testServices.ktModuleProvider.getModuleFiles(singleModule).filterIsInstance<KtFile>().single()
|
||||
doTestByFileStructure(singleFile, moduleStructure, testServices)
|
||||
|
||||
Reference in New Issue
Block a user