[LL FIR] pass correct phase to AbstractLazyBodyIsNotTouchedTest test

We have lazy expressions on ARGUMENTS_OF_ANNOTATIONS,
so we should decrease the phase to it

^KT-56543
This commit is contained in:
Dmitrii Gridin
2023-03-22 14:07:49 +01:00
parent 956682d1ca
commit a5e5e093c3
3 changed files with 71 additions and 68 deletions
@@ -20,7 +20,7 @@ import java.util.regex.Pattern;
@TestMetadata("compiler/fir/analysis-tests/testData/resolve") @TestMetadata("compiler/fir/analysis-tests/testData/resolve")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public class LazyBodyIsNotTouchedTestGenerated extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -607,7 +607,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/annotations") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/annotations")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Annotations extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Annotations extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -635,7 +635,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/arguments") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/arguments")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Arguments extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Arguments extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -838,7 +838,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/arrays") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/arrays")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Arrays extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Arrays extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -861,7 +861,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/builtins") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/builtins")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Builtins extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Builtins extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -879,7 +879,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/callResolution") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/callResolution")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class CallResolution extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class CallResolution extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -1017,7 +1017,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/cfa") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/cfa")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Cfa extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Cfa extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -1055,7 +1055,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/cfg") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/cfg")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Cfg extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Cfg extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -1233,7 +1233,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/checkers") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/checkers")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Checkers extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Checkers extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -1306,7 +1306,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/constVal") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/constVal")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class ConstVal extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class ConstVal extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -1339,7 +1339,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/constructors") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/constructors")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Constructors extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Constructors extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -1362,7 +1362,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/contracts") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/contracts")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Contracts extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Contracts extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -1405,7 +1405,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/delegates") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/delegates")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Delegates extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Delegates extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -1463,7 +1463,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/diagnostics") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/diagnostics")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Diagnostics extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Diagnostics extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -1735,7 +1735,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/diagnostics/functionAsExpression") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/diagnostics/functionAsExpression")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class FunctionAsExpression extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class FunctionAsExpression extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -1754,7 +1754,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/exhaustiveness") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/exhaustiveness")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Exhaustiveness extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Exhaustiveness extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -1766,7 +1766,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/exhaustiveness/negative") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/exhaustiveness/negative")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Negative extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Negative extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -1804,7 +1804,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/exhaustiveness/positive") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/exhaustiveness/positive")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Positive extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Positive extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -1888,7 +1888,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/expresssions") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/expresssions")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Expresssions extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Expresssions extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -2215,7 +2215,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/expresssions/inference") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/expresssions/inference")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Inference extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Inference extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -2243,7 +2243,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Invoke extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Invoke extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -2331,7 +2331,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/expresssions/operators") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/expresssions/operators")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Operators extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Operators extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -2360,7 +2360,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/extendedCheckers") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/extendedCheckers")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class ExtendedCheckers extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class ExtendedCheckers extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -2427,7 +2427,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class CanBeReplacedWithOperatorAssignment extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class CanBeReplacedWithOperatorAssignment extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -2535,7 +2535,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/emptyRangeChecker") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/emptyRangeChecker")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class EmptyRangeChecker extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class EmptyRangeChecker extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -2558,7 +2558,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class RedundantCallOfConversionMethod extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class RedundantCallOfConversionMethod extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -2671,7 +2671,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/unused") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/unused")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Unused extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Unused extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -2724,7 +2724,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/UselessCallOnNotNullChecker") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/UselessCallOnNotNullChecker")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class UselessCallOnNotNullChecker extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class UselessCallOnNotNullChecker extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -2793,7 +2793,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/fromBuilder") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/fromBuilder")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class FromBuilder extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class FromBuilder extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -2831,7 +2831,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/inference") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/inference")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Inference extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Inference extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -2998,7 +2998,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/inference/builderInference") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/inference/builderInference")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class BuilderInference extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class BuilderInference extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -3017,7 +3017,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/inlineClasses") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/inlineClasses")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class InlineClasses extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class InlineClasses extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -3045,7 +3045,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/innerClasses") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/innerClasses")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class InnerClasses extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class InnerClasses extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -3078,7 +3078,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/localClasses") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/localClasses")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class LocalClasses extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class LocalClasses extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -3121,7 +3121,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/multifile") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/multifile")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Multifile extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Multifile extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -3189,7 +3189,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/overrides") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/overrides")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Overrides extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Overrides extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -3247,7 +3247,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/problems") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/problems")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Problems extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Problems extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -3395,7 +3395,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/properties") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/properties")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Properties extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Properties extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -3453,7 +3453,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/propertyVsField") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/propertyVsField")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class PropertyVsField extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class PropertyVsField extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -3486,7 +3486,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/references") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/references")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class References extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class References extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -3549,7 +3549,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/samConstructors") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/samConstructors")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class SamConstructors extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class SamConstructors extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -3597,7 +3597,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/samConversions") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/samConversions")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class SamConversions extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class SamConversions extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -3660,7 +3660,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/scopes") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/scopes")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Scopes extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Scopes extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -3743,7 +3743,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Smartcasts extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Smartcasts extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -3900,7 +3900,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/booleans") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/booleans")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Booleans extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Booleans extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -3933,7 +3933,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/boundSmartcasts") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/boundSmartcasts")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class BoundSmartcasts extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class BoundSmartcasts extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -3976,7 +3976,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class ControlStructures extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class ControlStructures extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -4029,7 +4029,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/lambdas") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/lambdas")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Lambdas extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Lambdas extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -4057,7 +4057,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/loops") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/loops")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Loops extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Loops extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -4085,7 +4085,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/problems") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/problems")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Problems extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Problems extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -4113,7 +4113,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/receivers") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/receivers")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Receivers extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Receivers extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -4146,7 +4146,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class SafeCalls extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class SafeCalls extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -4189,7 +4189,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/stability") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/stability")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Stability extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Stability extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -4207,7 +4207,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/variables") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/variables")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Variables extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Variables extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -4231,7 +4231,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/stdlib") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/stdlib")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Stdlib extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Stdlib extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -4243,7 +4243,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/stdlib/j+k") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/stdlib/j+k")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class J_k extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class J_k extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -4267,7 +4267,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/suppress") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/suppress")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Suppress extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Suppress extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -4310,7 +4310,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/typeParameters") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/typeParameters")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class TypeParameters extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class TypeParameters extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -4333,7 +4333,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/types") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/types")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Types extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Types extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -4376,7 +4376,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/unqualifiedEnum") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/unqualifiedEnum")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class UnqualifiedEnum extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class UnqualifiedEnum extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -4424,7 +4424,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/visibility") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/visibility")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class Visibility extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class Visibility extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -4507,7 +4507,7 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/withAllowedKotlinPackage") @TestMetadata("compiler/fir/analysis-tests/testData/resolve/withAllowedKotlinPackage")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class WithAllowedKotlinPackage extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest { public static class WithAllowedKotlinPackage extends AbstractLazyBodyIsNotTouchedTest {
private void runTest(String testDataFilePath) throws Exception { private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
} }
@@ -1,5 +1,5 @@
/* /*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. * Copyright 2010-2023 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. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/ */
@@ -11,15 +11,18 @@ import org.jetbrains.kotlin.fir.resolve.ScopeSession
import org.jetbrains.kotlin.fir.resolve.transformers.createCompilerProcessorByPhase import org.jetbrains.kotlin.fir.resolve.transformers.createCompilerProcessorByPhase
import java.io.File import java.io.File
abstract class AbstractLazyBodyIsNotTouchedTilContractsPhaseTest : AbstractFirBaseDiagnosticsTest() { abstract class AbstractLazyBodyIsNotTouchedTest : AbstractFirBaseDiagnosticsTest() {
override val useLazyBodiesModeForRawFir: Boolean get() = true override val useLazyBodiesModeForRawFir: Boolean get() = true
override fun runAnalysis(testDataFile: File, testFiles: List<TestFile>, firFilesPerSession: Map<FirSession, List<FirFile>>) { override fun runAnalysis(testDataFile: File, testFiles: List<TestFile>, firFilesPerSession: Map<FirSession, List<FirFile>>) {
val phases = FirResolvePhase.values().filter { phase -> phase != FirResolvePhase.RAW_FIR && phase < FirResolvePhase.CONTRACTS } val phases = FirResolvePhase.values()
.dropWhile { it <= FirResolvePhase.RAW_FIR }
.takeWhile { it < FirResolvePhase.ARGUMENTS_OF_ANNOTATIONS }
for ((session, firFiles) in firFilesPerSession) { for ((session, firFiles) in firFilesPerSession) {
val scopeSession = ScopeSession() val scopeSession = ScopeSession()
/* /*
Test that we are not touching lazy bodies & lazy expressions during phases < CONTRACTS Test that we are not touching lazy bodies & lazy expressions during phases < ARGUMENTS_OF_ANNOTATIONS
If we try to access them, the exception will be thrown and test will fail If we try to access them, the exception will be thrown and test will fail
*/ */
doFirResolveTestBench( doFirResolveTestBench(
@@ -16,7 +16,7 @@ import org.jetbrains.kotlin.codegen.defaultConstructor.AbstractDefaultArgumentsR
import org.jetbrains.kotlin.codegen.flags.AbstractWriteFlagsTest import org.jetbrains.kotlin.codegen.flags.AbstractWriteFlagsTest
import org.jetbrains.kotlin.codegen.ir.* import org.jetbrains.kotlin.codegen.ir.*
import org.jetbrains.kotlin.fir.AbstractFirLoadCompiledKotlin import org.jetbrains.kotlin.fir.AbstractFirLoadCompiledKotlin
import org.jetbrains.kotlin.fir.AbstractLazyBodyIsNotTouchedTilContractsPhaseTest import org.jetbrains.kotlin.fir.AbstractLazyBodyIsNotTouchedTest
import org.jetbrains.kotlin.fir.builder.AbstractRawFirBuilderLazyBodiesTestCase import org.jetbrains.kotlin.fir.builder.AbstractRawFirBuilderLazyBodiesTestCase
import org.jetbrains.kotlin.fir.builder.AbstractRawFirBuilderSourceElementMappingTestCase import org.jetbrains.kotlin.fir.builder.AbstractRawFirBuilderSourceElementMappingTestCase
import org.jetbrains.kotlin.fir.builder.AbstractRawFirBuilderTestCase import org.jetbrains.kotlin.fir.builder.AbstractRawFirBuilderTestCase
@@ -418,7 +418,7 @@ fun generateJUnit3CompilerTests(args: Array<String>) {
} }
testGroup("compiler/fir/analysis-tests/legacy-fir-tests/tests-gen", "compiler/fir/analysis-tests/testData") { testGroup("compiler/fir/analysis-tests/legacy-fir-tests/tests-gen", "compiler/fir/analysis-tests/testData") {
testClass<AbstractLazyBodyIsNotTouchedTilContractsPhaseTest> { testClass<AbstractLazyBodyIsNotTouchedTest> {
model("resolve", pattern = KT_WITHOUT_DOTS_IN_NAME) model("resolve", pattern = KT_WITHOUT_DOTS_IN_NAME)
} }
} }