[LL FIR] add lazy body calculation tests for scripts

After KT-65344 we can effectively calculate lazy bodies in scripts,
so we can safely add the test

^KT-62840
This commit is contained in:
Dmitrii Gridin
2024-02-09 17:27:24 +01:00
committed by Space Team
parent f77c08a821
commit 898c8c002e
6 changed files with 144 additions and 31 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
@@ -36,11 +36,15 @@ import org.jetbrains.kotlin.test.utils.CUSTOM_TEST_DATA_EXTENSION_PATTERN
internal fun TestGroupSuite.generateFirLowLevelApiTests() {
testGroup("analysis/low-level-api-fir/tests", "compiler/fir/raw-fir/psi2fir/testData") {
testClass<AbstractFirSourceLazyBodiesCalculatorTest> {
model("rawBuilder", testMethod = "doTest")
model("rawBuilder", pattern = TestGeneratorUtil.KT)
}
testClass<AbstractFirOutOfContentRootLazyBodiesCalculatorTest> {
model("rawBuilder", testMethod = "doTest")
model("rawBuilder", pattern = TestGeneratorUtil.KT)
}
testClass<AbstractFirScriptLazyBodiesCalculatorTest> {
model("rawBuilder", pattern = TestGeneratorUtil.KTS)
}
}