From 81790fee9b858aabe83c65a08b8f7df2ad0df3b9 Mon Sep 17 00:00:00 2001 From: Dmitriy Novozhilov Date: Thu, 9 Sep 2021 12:45:12 +0300 Subject: [PATCH] [FIR IDE] Add `@TestDataFile` to AbstractLowLevelApiTest This is needed to correct work of `Go to testdata` action --- .../fir/low/level/api/test/base/AbstractLowLevelApiTest.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/idea/idea-frontend-fir/idea-fir-low-level-api/tests/org/jetbrains/kotlin/idea/fir/low/level/api/test/base/AbstractLowLevelApiTest.kt b/idea/idea-frontend-fir/idea-fir-low-level-api/tests/org/jetbrains/kotlin/idea/fir/low/level/api/test/base/AbstractLowLevelApiTest.kt index 3d1159b4d11..e7d77ab6a61 100644 --- a/idea/idea-frontend-fir/idea-fir-low-level-api/tests/org/jetbrains/kotlin/idea/fir/low/level/api/test/base/AbstractLowLevelApiTest.kt +++ b/idea/idea-frontend-fir/idea-fir-low-level-api/tests/org/jetbrains/kotlin/idea/fir/low/level/api/test/base/AbstractLowLevelApiTest.kt @@ -9,6 +9,8 @@ import com.intellij.mock.MockApplication import com.intellij.mock.MockProject import com.intellij.openapi.application.ApplicationManager import com.intellij.openapi.util.Disposer +import com.intellij.testFramework.TestDataFile +import com.intellij.testFramework.TestDataPath import org.jetbrains.kotlin.analysis.providers.KotlinModuleInfoProvider import org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment import org.jetbrains.kotlin.idea.fir.low.level.api.compiler.based.ModuleRegistrarPreAnalysisHandler @@ -74,7 +76,7 @@ abstract class AbstractLowLevelApiTest : TestWithDisposable() { open fun configureTest(builder: TestConfigurationBuilder) {} - protected fun runTest(path: String) { + protected fun runTest(@TestDataFile path: String) { testDataPath = Paths.get(path) val testConfiguration = testConfiguration(path, configure) Disposer.register(disposable, testConfiguration.rootDisposable)