diff --git a/.space/CODEOWNERS b/.space/CODEOWNERS index 8c31b3d892f..9a1acb41bf8 100644 --- a/.space/CODEOWNERS +++ b/.space/CODEOWNERS @@ -139,7 +139,6 @@ /compiler/testData/ir/closureAnnotator/ "Kotlin JVM" /compiler/testData/ir/interpreter/ "Kotlin JVM" /compiler/testData/ir/irCfg/ "Kotlin JVM" -/compiler/testData/ir/irJsText/ "Kotlin Compiler Core" /compiler/testData/ir/irText/ "Kotlin Compiler Core" /compiler/testData/ir/klibLayout/ "Kotlin Native" /compiler/testData/ir/sourceRanges/ "Kotlin Compiler Core" diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirLightTreeJvmIrTextTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirLightTreeJvmIrTextTestGenerated.java index 41d246687df..8202865b639 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirLightTreeJvmIrTextTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirLightTreeJvmIrTextTestGenerated.java @@ -2841,6 +2841,190 @@ public class FirLightTreeJvmIrTextTestGenerated extends AbstractFirLightTreeJvmI } } + @Nested + @TestMetadata("compiler/testData/ir/irText/js") + @TestDataPath("$PROJECT_ROOT") + public class Js { + @Test + public void testAllFilesPresentInJs() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/js/dynamic") + @TestDataPath("$PROJECT_ROOT") + public class Dynamic { + @Test + public void testAllFilesPresentInDynamic() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/dynamic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("dynamicAndMembersOfAny.kt") + public void testDynamicAndMembersOfAny() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.kt"); + } + + @Test + @TestMetadata("dynamicArrayAccess.kt") + public void testDynamicArrayAccess() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAccess.kt"); + } + + @Test + @TestMetadata("dynamicArrayAssignment.kt") + public void testDynamicArrayAssignment() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.kt"); + } + + @Test + @TestMetadata("dynamicArrayAugmentedAssignment.kt") + public void testDynamicArrayAugmentedAssignment() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAugmentedAssignment.kt"); + } + + @Test + @TestMetadata("dynamicArrayIncrementDecrement.kt") + public void testDynamicArrayIncrementDecrement() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.kt"); + } + + @Test + @TestMetadata("dynamicBinaryEqualityOperator.kt") + public void testDynamicBinaryEqualityOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryEqualityOperator.kt"); + } + + @Test + @TestMetadata("dynamicBinaryLogicalOperator.kt") + public void testDynamicBinaryLogicalOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryLogicalOperator.kt"); + } + + @Test + @TestMetadata("dynamicBinaryOperator.kt") + public void testDynamicBinaryOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryOperator.kt"); + } + + @Test + @TestMetadata("dynamicBinaryRelationalOperator.kt") + public void testDynamicBinaryRelationalOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryRelationalOperator.kt"); + } + + @Test + @TestMetadata("dynamicCall.kt") + public void testDynamicCall() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicCall.kt"); + } + + @Test + @TestMetadata("dynamicElvisOperator.kt") + public void testDynamicElvisOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.kt"); + } + + @Test + @TestMetadata("dynamicExclExclOperator.kt") + public void testDynamicExclExclOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt"); + } + + @Test + @TestMetadata("dynamicInfixCall.kt") + public void testDynamicInfixCall() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicInfixCall.kt"); + } + + @Test + @TestMetadata("dynamicMemberAccess.kt") + public void testDynamicMemberAccess() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.kt"); + } + + @Test + @TestMetadata("dynamicMemberAssignment.kt") + public void testDynamicMemberAssignment() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.kt"); + } + + @Test + @TestMetadata("dynamicMemberAugmentedAssignment.kt") + public void testDynamicMemberAugmentedAssignment() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.kt"); + } + + @Test + @TestMetadata("dynamicMemberIncrementDecrement.kt") + public void testDynamicMemberIncrementDecrement() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.kt"); + } + + @Test + @TestMetadata("dynamicUnaryOperator.kt") + public void testDynamicUnaryOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicUnaryOperator.kt"); + } + + @Test + @TestMetadata("dynamicWithSmartCast.kt") + public void testDynamicWithSmartCast() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.kt"); + } + + @Test + @TestMetadata("implicitCastFromDynamic.kt") + public void testImplicitCastFromDynamic() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/implicitCastFromDynamic.kt"); + } + + @Test + @TestMetadata("implicitCastToDynamic.kt") + public void testImplicitCastToDynamic() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.kt"); + } + + @Test + @TestMetadata("invokeOperator.kt") + public void testInvokeOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/invokeOperator.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/js/external") + @TestDataPath("$PROJECT_ROOT") + public class External { + @Test + public void testAllFilesPresentInExternal() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/external"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt38765.kt") + public void testKt38765() throws Exception { + runTest("compiler/testData/ir/irText/js/external/kt38765.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/js/native") + @TestDataPath("$PROJECT_ROOT") + public class Native { + @Test + public void testAllFilesPresentInNative() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/native"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("nativeNativeKotlin.kt") + public void testNativeNativeKotlin() throws Exception { + runTest("compiler/testData/ir/irText/js/native/nativeNativeKotlin.kt"); + } + } + } + @Nested @TestMetadata("compiler/testData/ir/irText/lambdas") @TestDataPath("$PROJECT_ROOT") diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirPsiJvmIrTextTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirPsiJvmIrTextTestGenerated.java index 1300233ee3b..3008dccabdb 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirPsiJvmIrTextTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirPsiJvmIrTextTestGenerated.java @@ -2841,6 +2841,190 @@ public class FirPsiJvmIrTextTestGenerated extends AbstractFirPsiJvmIrTextTest { } } + @Nested + @TestMetadata("compiler/testData/ir/irText/js") + @TestDataPath("$PROJECT_ROOT") + public class Js { + @Test + public void testAllFilesPresentInJs() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/js/dynamic") + @TestDataPath("$PROJECT_ROOT") + public class Dynamic { + @Test + public void testAllFilesPresentInDynamic() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/dynamic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("dynamicAndMembersOfAny.kt") + public void testDynamicAndMembersOfAny() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.kt"); + } + + @Test + @TestMetadata("dynamicArrayAccess.kt") + public void testDynamicArrayAccess() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAccess.kt"); + } + + @Test + @TestMetadata("dynamicArrayAssignment.kt") + public void testDynamicArrayAssignment() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.kt"); + } + + @Test + @TestMetadata("dynamicArrayAugmentedAssignment.kt") + public void testDynamicArrayAugmentedAssignment() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAugmentedAssignment.kt"); + } + + @Test + @TestMetadata("dynamicArrayIncrementDecrement.kt") + public void testDynamicArrayIncrementDecrement() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.kt"); + } + + @Test + @TestMetadata("dynamicBinaryEqualityOperator.kt") + public void testDynamicBinaryEqualityOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryEqualityOperator.kt"); + } + + @Test + @TestMetadata("dynamicBinaryLogicalOperator.kt") + public void testDynamicBinaryLogicalOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryLogicalOperator.kt"); + } + + @Test + @TestMetadata("dynamicBinaryOperator.kt") + public void testDynamicBinaryOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryOperator.kt"); + } + + @Test + @TestMetadata("dynamicBinaryRelationalOperator.kt") + public void testDynamicBinaryRelationalOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryRelationalOperator.kt"); + } + + @Test + @TestMetadata("dynamicCall.kt") + public void testDynamicCall() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicCall.kt"); + } + + @Test + @TestMetadata("dynamicElvisOperator.kt") + public void testDynamicElvisOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.kt"); + } + + @Test + @TestMetadata("dynamicExclExclOperator.kt") + public void testDynamicExclExclOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt"); + } + + @Test + @TestMetadata("dynamicInfixCall.kt") + public void testDynamicInfixCall() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicInfixCall.kt"); + } + + @Test + @TestMetadata("dynamicMemberAccess.kt") + public void testDynamicMemberAccess() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.kt"); + } + + @Test + @TestMetadata("dynamicMemberAssignment.kt") + public void testDynamicMemberAssignment() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.kt"); + } + + @Test + @TestMetadata("dynamicMemberAugmentedAssignment.kt") + public void testDynamicMemberAugmentedAssignment() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.kt"); + } + + @Test + @TestMetadata("dynamicMemberIncrementDecrement.kt") + public void testDynamicMemberIncrementDecrement() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.kt"); + } + + @Test + @TestMetadata("dynamicUnaryOperator.kt") + public void testDynamicUnaryOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicUnaryOperator.kt"); + } + + @Test + @TestMetadata("dynamicWithSmartCast.kt") + public void testDynamicWithSmartCast() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.kt"); + } + + @Test + @TestMetadata("implicitCastFromDynamic.kt") + public void testImplicitCastFromDynamic() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/implicitCastFromDynamic.kt"); + } + + @Test + @TestMetadata("implicitCastToDynamic.kt") + public void testImplicitCastToDynamic() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.kt"); + } + + @Test + @TestMetadata("invokeOperator.kt") + public void testInvokeOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/invokeOperator.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/js/external") + @TestDataPath("$PROJECT_ROOT") + public class External { + @Test + public void testAllFilesPresentInExternal() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/external"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt38765.kt") + public void testKt38765() throws Exception { + runTest("compiler/testData/ir/irText/js/external/kt38765.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/js/native") + @TestDataPath("$PROJECT_ROOT") + public class Native { + @Test + public void testAllFilesPresentInNative() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/native"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("nativeNativeKotlin.kt") + public void testNativeNativeKotlin() throws Exception { + runTest("compiler/testData/ir/irText/js/native/nativeNativeKotlin.kt"); + } + } + } + @Nested @TestMetadata("compiler/testData/ir/irText/lambdas") @TestDataPath("$PROJECT_ROOT") diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicAndMembersOfAny.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.ir.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicAndMembersOfAny.ir.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.ir.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicAndMembersOfAny.kt b/compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.kt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicAndMembersOfAny.kt rename to compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.kt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicAndMembersOfAny.kt.txt b/compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicAndMembersOfAny.kt.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicAndMembersOfAny.txt b/compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicAndMembersOfAny.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicArrayAccess.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicArrayAccess.ir.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicArrayAccess.ir.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicArrayAccess.ir.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicArrayAccess.kt b/compiler/testData/ir/irText/js/dynamic/dynamicArrayAccess.kt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicArrayAccess.kt rename to compiler/testData/ir/irText/js/dynamic/dynamicArrayAccess.kt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicArrayAccess.kt.txt b/compiler/testData/ir/irText/js/dynamic/dynamicArrayAccess.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicArrayAccess.kt.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicArrayAccess.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicArrayAccess.txt b/compiler/testData/ir/irText/js/dynamic/dynamicArrayAccess.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicArrayAccess.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicArrayAccess.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicArrayAssignment.fir.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.fir.ir.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicArrayAssignment.fir.ir.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.fir.ir.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicArrayAssignment.fir.kt.txt b/compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.fir.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicArrayAssignment.fir.kt.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.fir.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicArrayAssignment.kt b/compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.kt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicArrayAssignment.kt rename to compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.kt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicArrayAssignment.kt.txt b/compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicArrayAssignment.kt.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicArrayAssignment.txt b/compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicArrayAssignment.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicArrayAugmentedAssignment.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicArrayAugmentedAssignment.ir.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicArrayAugmentedAssignment.ir.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicArrayAugmentedAssignment.ir.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicArrayAugmentedAssignment.kt b/compiler/testData/ir/irText/js/dynamic/dynamicArrayAugmentedAssignment.kt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicArrayAugmentedAssignment.kt rename to compiler/testData/ir/irText/js/dynamic/dynamicArrayAugmentedAssignment.kt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicArrayAugmentedAssignment.kt.txt b/compiler/testData/ir/irText/js/dynamic/dynamicArrayAugmentedAssignment.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicArrayAugmentedAssignment.kt.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicArrayAugmentedAssignment.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicArrayAugmentedAssignment.txt b/compiler/testData/ir/irText/js/dynamic/dynamicArrayAugmentedAssignment.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicArrayAugmentedAssignment.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicArrayAugmentedAssignment.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicArrayIncrementDecrement.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.ir.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicArrayIncrementDecrement.ir.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.ir.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicArrayIncrementDecrement.kt b/compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.kt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicArrayIncrementDecrement.kt rename to compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.kt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicArrayIncrementDecrement.kt.txt b/compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicArrayIncrementDecrement.kt.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicArrayIncrementDecrement.txt b/compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicArrayIncrementDecrement.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicBinaryEqualityOperator.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicBinaryEqualityOperator.ir.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicBinaryEqualityOperator.ir.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicBinaryEqualityOperator.ir.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicBinaryEqualityOperator.kt b/compiler/testData/ir/irText/js/dynamic/dynamicBinaryEqualityOperator.kt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicBinaryEqualityOperator.kt rename to compiler/testData/ir/irText/js/dynamic/dynamicBinaryEqualityOperator.kt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicBinaryEqualityOperator.kt.txt b/compiler/testData/ir/irText/js/dynamic/dynamicBinaryEqualityOperator.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicBinaryEqualityOperator.kt.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicBinaryEqualityOperator.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicBinaryEqualityOperator.txt b/compiler/testData/ir/irText/js/dynamic/dynamicBinaryEqualityOperator.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicBinaryEqualityOperator.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicBinaryEqualityOperator.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicBinaryLogicalOperator.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicBinaryLogicalOperator.ir.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicBinaryLogicalOperator.ir.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicBinaryLogicalOperator.ir.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicBinaryLogicalOperator.kt b/compiler/testData/ir/irText/js/dynamic/dynamicBinaryLogicalOperator.kt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicBinaryLogicalOperator.kt rename to compiler/testData/ir/irText/js/dynamic/dynamicBinaryLogicalOperator.kt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicBinaryLogicalOperator.kt.txt b/compiler/testData/ir/irText/js/dynamic/dynamicBinaryLogicalOperator.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicBinaryLogicalOperator.kt.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicBinaryLogicalOperator.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicBinaryLogicalOperator.txt b/compiler/testData/ir/irText/js/dynamic/dynamicBinaryLogicalOperator.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicBinaryLogicalOperator.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicBinaryLogicalOperator.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicBinaryOperator.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicBinaryOperator.ir.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicBinaryOperator.ir.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicBinaryOperator.ir.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicBinaryOperator.kt b/compiler/testData/ir/irText/js/dynamic/dynamicBinaryOperator.kt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicBinaryOperator.kt rename to compiler/testData/ir/irText/js/dynamic/dynamicBinaryOperator.kt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicBinaryOperator.kt.txt b/compiler/testData/ir/irText/js/dynamic/dynamicBinaryOperator.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicBinaryOperator.kt.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicBinaryOperator.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicBinaryOperator.txt b/compiler/testData/ir/irText/js/dynamic/dynamicBinaryOperator.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicBinaryOperator.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicBinaryOperator.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicBinaryRelationalOperator.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicBinaryRelationalOperator.ir.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicBinaryRelationalOperator.ir.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicBinaryRelationalOperator.ir.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicBinaryRelationalOperator.kt b/compiler/testData/ir/irText/js/dynamic/dynamicBinaryRelationalOperator.kt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicBinaryRelationalOperator.kt rename to compiler/testData/ir/irText/js/dynamic/dynamicBinaryRelationalOperator.kt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicBinaryRelationalOperator.kt.txt b/compiler/testData/ir/irText/js/dynamic/dynamicBinaryRelationalOperator.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicBinaryRelationalOperator.kt.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicBinaryRelationalOperator.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicBinaryRelationalOperator.txt b/compiler/testData/ir/irText/js/dynamic/dynamicBinaryRelationalOperator.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicBinaryRelationalOperator.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicBinaryRelationalOperator.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicCall.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicCall.ir.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicCall.ir.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicCall.ir.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicCall.kt b/compiler/testData/ir/irText/js/dynamic/dynamicCall.kt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicCall.kt rename to compiler/testData/ir/irText/js/dynamic/dynamicCall.kt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicCall.kt.txt b/compiler/testData/ir/irText/js/dynamic/dynamicCall.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicCall.kt.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicCall.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicCall.txt b/compiler/testData/ir/irText/js/dynamic/dynamicCall.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicCall.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicCall.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicElvisOperator.fir.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.fir.ir.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicElvisOperator.fir.ir.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.fir.ir.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicElvisOperator.fir.kt.txt b/compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.fir.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicElvisOperator.fir.kt.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.fir.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicElvisOperator.kt b/compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.kt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicElvisOperator.kt rename to compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.kt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicElvisOperator.kt.txt b/compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicElvisOperator.kt.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicElvisOperator.txt b/compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicElvisOperator.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicExclExclOperator.fir.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.fir.ir.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicExclExclOperator.fir.ir.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.fir.ir.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicExclExclOperator.fir.kt.txt b/compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.fir.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicExclExclOperator.fir.kt.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.fir.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicExclExclOperator.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.ir.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicExclExclOperator.ir.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.ir.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicExclExclOperator.kt b/compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicExclExclOperator.kt rename to compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicExclExclOperator.kt.txt b/compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicExclExclOperator.kt.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicExclExclOperator.txt b/compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicExclExclOperator.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicInfixCall.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicInfixCall.ir.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicInfixCall.ir.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicInfixCall.ir.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicInfixCall.kt b/compiler/testData/ir/irText/js/dynamic/dynamicInfixCall.kt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicInfixCall.kt rename to compiler/testData/ir/irText/js/dynamic/dynamicInfixCall.kt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicInfixCall.kt.txt b/compiler/testData/ir/irText/js/dynamic/dynamicInfixCall.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicInfixCall.kt.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicInfixCall.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicInfixCall.txt b/compiler/testData/ir/irText/js/dynamic/dynamicInfixCall.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicInfixCall.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicInfixCall.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicMemberAccess.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.ir.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicMemberAccess.ir.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.ir.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicMemberAccess.kt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.kt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicMemberAccess.kt rename to compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.kt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicMemberAccess.kt.txt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicMemberAccess.kt.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicMemberAccess.txt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicMemberAccess.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicMemberAssignment.fir.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.fir.ir.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicMemberAssignment.fir.ir.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.fir.ir.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicMemberAssignment.fir.kt.txt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.fir.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicMemberAssignment.fir.kt.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.fir.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicMemberAssignment.kt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.kt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicMemberAssignment.kt rename to compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.kt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicMemberAssignment.kt.txt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicMemberAssignment.kt.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicMemberAssignment.txt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicMemberAssignment.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicMemberAugmentedAssignment.fir.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.fir.ir.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicMemberAugmentedAssignment.fir.ir.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.fir.ir.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicMemberAugmentedAssignment.fir.kt.txt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.fir.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicMemberAugmentedAssignment.fir.kt.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.fir.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicMemberAugmentedAssignment.kt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.kt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicMemberAugmentedAssignment.kt rename to compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.kt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicMemberAugmentedAssignment.kt.txt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicMemberAugmentedAssignment.kt.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicMemberAugmentedAssignment.txt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicMemberAugmentedAssignment.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicMemberIncrementDecrement.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.ir.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicMemberIncrementDecrement.ir.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.ir.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicMemberIncrementDecrement.kt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.kt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicMemberIncrementDecrement.kt rename to compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.kt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicMemberIncrementDecrement.kt.txt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicMemberIncrementDecrement.kt.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicMemberIncrementDecrement.txt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicMemberIncrementDecrement.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicUnaryOperator.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicUnaryOperator.ir.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicUnaryOperator.ir.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicUnaryOperator.ir.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicUnaryOperator.kt b/compiler/testData/ir/irText/js/dynamic/dynamicUnaryOperator.kt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicUnaryOperator.kt rename to compiler/testData/ir/irText/js/dynamic/dynamicUnaryOperator.kt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicUnaryOperator.kt.txt b/compiler/testData/ir/irText/js/dynamic/dynamicUnaryOperator.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicUnaryOperator.kt.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicUnaryOperator.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicUnaryOperator.txt b/compiler/testData/ir/irText/js/dynamic/dynamicUnaryOperator.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicUnaryOperator.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicUnaryOperator.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicWithSmartCast.fir.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.fir.ir.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicWithSmartCast.fir.ir.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.fir.ir.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicWithSmartCast.fir.kt.txt b/compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.fir.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicWithSmartCast.fir.kt.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.fir.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicWithSmartCast.kt b/compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.kt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicWithSmartCast.kt rename to compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.kt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicWithSmartCast.kt.txt b/compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicWithSmartCast.kt.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicWithSmartCast.txt b/compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/dynamicWithSmartCast.txt rename to compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.txt diff --git a/compiler/testData/ir/irJsText/dynamic/implicitCastFromDynamic.ir.txt b/compiler/testData/ir/irText/js/dynamic/implicitCastFromDynamic.ir.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/implicitCastFromDynamic.ir.txt rename to compiler/testData/ir/irText/js/dynamic/implicitCastFromDynamic.ir.txt diff --git a/compiler/testData/ir/irJsText/dynamic/implicitCastFromDynamic.kt b/compiler/testData/ir/irText/js/dynamic/implicitCastFromDynamic.kt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/implicitCastFromDynamic.kt rename to compiler/testData/ir/irText/js/dynamic/implicitCastFromDynamic.kt diff --git a/compiler/testData/ir/irJsText/dynamic/implicitCastFromDynamic.kt.txt b/compiler/testData/ir/irText/js/dynamic/implicitCastFromDynamic.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/implicitCastFromDynamic.kt.txt rename to compiler/testData/ir/irText/js/dynamic/implicitCastFromDynamic.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/implicitCastFromDynamic.txt b/compiler/testData/ir/irText/js/dynamic/implicitCastFromDynamic.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/implicitCastFromDynamic.txt rename to compiler/testData/ir/irText/js/dynamic/implicitCastFromDynamic.txt diff --git a/compiler/testData/ir/irJsText/dynamic/implicitCastToDynamic.fir.ir.txt b/compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.fir.ir.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/implicitCastToDynamic.fir.ir.txt rename to compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.fir.ir.txt diff --git a/compiler/testData/ir/irJsText/dynamic/implicitCastToDynamic.fir.kt.txt b/compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.fir.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/implicitCastToDynamic.fir.kt.txt rename to compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.fir.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/implicitCastToDynamic.kt b/compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.kt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/implicitCastToDynamic.kt rename to compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.kt diff --git a/compiler/testData/ir/irJsText/dynamic/implicitCastToDynamic.kt.txt b/compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/implicitCastToDynamic.kt.txt rename to compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/implicitCastToDynamic.txt b/compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/implicitCastToDynamic.txt rename to compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.txt diff --git a/compiler/testData/ir/irJsText/dynamic/invokeOperator.ir.txt b/compiler/testData/ir/irText/js/dynamic/invokeOperator.ir.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/invokeOperator.ir.txt rename to compiler/testData/ir/irText/js/dynamic/invokeOperator.ir.txt diff --git a/compiler/testData/ir/irJsText/dynamic/invokeOperator.kt b/compiler/testData/ir/irText/js/dynamic/invokeOperator.kt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/invokeOperator.kt rename to compiler/testData/ir/irText/js/dynamic/invokeOperator.kt diff --git a/compiler/testData/ir/irJsText/dynamic/invokeOperator.kt.txt b/compiler/testData/ir/irText/js/dynamic/invokeOperator.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/invokeOperator.kt.txt rename to compiler/testData/ir/irText/js/dynamic/invokeOperator.kt.txt diff --git a/compiler/testData/ir/irJsText/dynamic/invokeOperator.txt b/compiler/testData/ir/irText/js/dynamic/invokeOperator.txt similarity index 100% rename from compiler/testData/ir/irJsText/dynamic/invokeOperator.txt rename to compiler/testData/ir/irText/js/dynamic/invokeOperator.txt diff --git a/compiler/testData/ir/irJsText/external/kt38765.fir.ir.txt b/compiler/testData/ir/irText/js/external/kt38765.fir.ir.txt similarity index 100% rename from compiler/testData/ir/irJsText/external/kt38765.fir.ir.txt rename to compiler/testData/ir/irText/js/external/kt38765.fir.ir.txt diff --git a/compiler/testData/ir/irJsText/external/kt38765.fir.kt.txt b/compiler/testData/ir/irText/js/external/kt38765.fir.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/external/kt38765.fir.kt.txt rename to compiler/testData/ir/irText/js/external/kt38765.fir.kt.txt diff --git a/compiler/testData/ir/irJsText/external/kt38765.kt b/compiler/testData/ir/irText/js/external/kt38765.kt similarity index 100% rename from compiler/testData/ir/irJsText/external/kt38765.kt rename to compiler/testData/ir/irText/js/external/kt38765.kt diff --git a/compiler/testData/ir/irJsText/external/kt38765.kt.txt b/compiler/testData/ir/irText/js/external/kt38765.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/external/kt38765.kt.txt rename to compiler/testData/ir/irText/js/external/kt38765.kt.txt diff --git a/compiler/testData/ir/irJsText/external/kt38765.txt b/compiler/testData/ir/irText/js/external/kt38765.txt similarity index 100% rename from compiler/testData/ir/irJsText/external/kt38765.txt rename to compiler/testData/ir/irText/js/external/kt38765.txt diff --git a/compiler/testData/ir/irJsText/native/nativeNativeKotlin.fir.ir.txt b/compiler/testData/ir/irText/js/native/nativeNativeKotlin.fir.ir.txt similarity index 100% rename from compiler/testData/ir/irJsText/native/nativeNativeKotlin.fir.ir.txt rename to compiler/testData/ir/irText/js/native/nativeNativeKotlin.fir.ir.txt diff --git a/compiler/testData/ir/irJsText/native/nativeNativeKotlin.fir.kt.txt b/compiler/testData/ir/irText/js/native/nativeNativeKotlin.fir.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/native/nativeNativeKotlin.fir.kt.txt rename to compiler/testData/ir/irText/js/native/nativeNativeKotlin.fir.kt.txt diff --git a/compiler/testData/ir/irJsText/native/nativeNativeKotlin.kt b/compiler/testData/ir/irText/js/native/nativeNativeKotlin.kt similarity index 100% rename from compiler/testData/ir/irJsText/native/nativeNativeKotlin.kt rename to compiler/testData/ir/irText/js/native/nativeNativeKotlin.kt diff --git a/compiler/testData/ir/irJsText/native/nativeNativeKotlin.kt.txt b/compiler/testData/ir/irText/js/native/nativeNativeKotlin.kt.txt similarity index 100% rename from compiler/testData/ir/irJsText/native/nativeNativeKotlin.kt.txt rename to compiler/testData/ir/irText/js/native/nativeNativeKotlin.kt.txt diff --git a/compiler/testData/ir/irJsText/native/nativeNativeKotlin.txt b/compiler/testData/ir/irText/js/native/nativeNativeKotlin.txt similarity index 100% rename from compiler/testData/ir/irJsText/native/nativeNativeKotlin.txt rename to compiler/testData/ir/irText/js/native/nativeNativeKotlin.txt diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ir/ClassicJvmIrTextTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ir/ClassicJvmIrTextTestGenerated.java index 95497c2e5ab..64c599a7bc7 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ir/ClassicJvmIrTextTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ir/ClassicJvmIrTextTestGenerated.java @@ -2841,6 +2841,190 @@ public class ClassicJvmIrTextTestGenerated extends AbstractClassicJvmIrTextTest } } + @Nested + @TestMetadata("compiler/testData/ir/irText/js") + @TestDataPath("$PROJECT_ROOT") + public class Js { + @Test + public void testAllFilesPresentInJs() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/js/dynamic") + @TestDataPath("$PROJECT_ROOT") + public class Dynamic { + @Test + public void testAllFilesPresentInDynamic() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/dynamic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("dynamicAndMembersOfAny.kt") + public void testDynamicAndMembersOfAny() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.kt"); + } + + @Test + @TestMetadata("dynamicArrayAccess.kt") + public void testDynamicArrayAccess() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAccess.kt"); + } + + @Test + @TestMetadata("dynamicArrayAssignment.kt") + public void testDynamicArrayAssignment() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.kt"); + } + + @Test + @TestMetadata("dynamicArrayAugmentedAssignment.kt") + public void testDynamicArrayAugmentedAssignment() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAugmentedAssignment.kt"); + } + + @Test + @TestMetadata("dynamicArrayIncrementDecrement.kt") + public void testDynamicArrayIncrementDecrement() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.kt"); + } + + @Test + @TestMetadata("dynamicBinaryEqualityOperator.kt") + public void testDynamicBinaryEqualityOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryEqualityOperator.kt"); + } + + @Test + @TestMetadata("dynamicBinaryLogicalOperator.kt") + public void testDynamicBinaryLogicalOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryLogicalOperator.kt"); + } + + @Test + @TestMetadata("dynamicBinaryOperator.kt") + public void testDynamicBinaryOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryOperator.kt"); + } + + @Test + @TestMetadata("dynamicBinaryRelationalOperator.kt") + public void testDynamicBinaryRelationalOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryRelationalOperator.kt"); + } + + @Test + @TestMetadata("dynamicCall.kt") + public void testDynamicCall() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicCall.kt"); + } + + @Test + @TestMetadata("dynamicElvisOperator.kt") + public void testDynamicElvisOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.kt"); + } + + @Test + @TestMetadata("dynamicExclExclOperator.kt") + public void testDynamicExclExclOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt"); + } + + @Test + @TestMetadata("dynamicInfixCall.kt") + public void testDynamicInfixCall() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicInfixCall.kt"); + } + + @Test + @TestMetadata("dynamicMemberAccess.kt") + public void testDynamicMemberAccess() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.kt"); + } + + @Test + @TestMetadata("dynamicMemberAssignment.kt") + public void testDynamicMemberAssignment() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.kt"); + } + + @Test + @TestMetadata("dynamicMemberAugmentedAssignment.kt") + public void testDynamicMemberAugmentedAssignment() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.kt"); + } + + @Test + @TestMetadata("dynamicMemberIncrementDecrement.kt") + public void testDynamicMemberIncrementDecrement() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.kt"); + } + + @Test + @TestMetadata("dynamicUnaryOperator.kt") + public void testDynamicUnaryOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicUnaryOperator.kt"); + } + + @Test + @TestMetadata("dynamicWithSmartCast.kt") + public void testDynamicWithSmartCast() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.kt"); + } + + @Test + @TestMetadata("implicitCastFromDynamic.kt") + public void testImplicitCastFromDynamic() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/implicitCastFromDynamic.kt"); + } + + @Test + @TestMetadata("implicitCastToDynamic.kt") + public void testImplicitCastToDynamic() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.kt"); + } + + @Test + @TestMetadata("invokeOperator.kt") + public void testInvokeOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/invokeOperator.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/js/external") + @TestDataPath("$PROJECT_ROOT") + public class External { + @Test + public void testAllFilesPresentInExternal() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/external"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kt38765.kt") + public void testKt38765() throws Exception { + runTest("compiler/testData/ir/irText/js/external/kt38765.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/js/native") + @TestDataPath("$PROJECT_ROOT") + public class Native { + @Test + public void testAllFilesPresentInNative() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/native"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("nativeNativeKotlin.kt") + public void testNativeNativeKotlin() throws Exception { + runTest("compiler/testData/ir/irText/js/native/nativeNativeKotlin.kt"); + } + } + } + @Nested @TestMetadata("compiler/testData/ir/irText/lambdas") @TestDataPath("$PROJECT_ROOT") diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/ir/AbstractIrTextTest.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/ir/AbstractIrTextTest.kt index b430a23a235..a210b5eef79 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/ir/AbstractIrTextTest.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/ir/AbstractIrTextTest.kt @@ -20,6 +20,7 @@ import org.jetbrains.kotlin.test.directives.CodegenTestDirectives.DUMP_IR import org.jetbrains.kotlin.test.directives.CodegenTestDirectives.DUMP_KT_IR import org.jetbrains.kotlin.test.FirParser import org.jetbrains.kotlin.test.directives.LanguageSettingsDirectives +import org.jetbrains.kotlin.test.directives.ModuleStructureDirectives import org.jetbrains.kotlin.test.directives.configureFirParser import org.jetbrains.kotlin.test.frontend.classic.ClassicFrontend2IrConverter import org.jetbrains.kotlin.test.frontend.classic.ClassicFrontendFacade @@ -96,6 +97,12 @@ abstract class AbstractIrTextTestBase>(t ::IrPrettyKotlinDumpHandler ) } + + forTestsMatching("compiler/testData/ir/irText/js/*") { + defaultDirectives { + ModuleStructureDirectives.TARGET_BACKEND_KIND with TargetBackend.JS_IR + } + } } } diff --git a/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt b/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt index 6899c3ccbaf..06dd1cb0035 100644 --- a/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt +++ b/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt @@ -117,11 +117,11 @@ fun generateJUnit3CompilerTests(args: Array) { } testClass { - model("ir/irJsText", pattern = "^(.+)\\.kt(s)?\$") + model("ir/irText/js", pattern = "^(.+)\\.kt(s)?\$") } testClass { - model("ir/irJsText", pattern = "^(.+)\\.kt\$", targetBackend = TargetBackend.JS_IR) + model("ir/irText/js", pattern = "^(.+)\\.kt\$", targetBackend = TargetBackend.JS_IR) } testClass { diff --git a/compiler/tests-gen/org/jetbrains/kotlin/ir/ClassicJsIrTextTestCaseGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/ir/ClassicJsIrTextTestCaseGenerated.java index 44c9605d822..d408f5d7b46 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/ir/ClassicJsIrTextTestCaseGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/ir/ClassicJsIrTextTestCaseGenerated.java @@ -17,7 +17,7 @@ import java.util.regex.Pattern; /** This class is generated by {@link org.jetbrains.kotlin.test.generators.GenerateCompilerTestsKt}. DO NOT MODIFY MANUALLY */ @SuppressWarnings("all") -@TestMetadata("compiler/testData/ir/irJsText") +@TestMetadata("compiler/testData/ir/irText/js") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public class ClassicJsIrTextTestCaseGenerated extends AbstractClassicJsIrTextTestCase { @@ -25,11 +25,11 @@ public class ClassicJsIrTextTestCaseGenerated extends AbstractClassicJsIrTextTes KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); } - public void testAllFilesPresentInIrJsText() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irJsText"), Pattern.compile("^(.+)\\.kt(s)?$"), null, true); + public void testAllFilesPresentInJs() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js"), Pattern.compile("^(.+)\\.kt(s)?$"), null, true); } - @TestMetadata("compiler/testData/ir/irJsText/dynamic") + @TestMetadata("compiler/testData/ir/irText/js/dynamic") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Dynamic extends AbstractClassicJsIrTextTestCase { @@ -38,121 +38,121 @@ public class ClassicJsIrTextTestCaseGenerated extends AbstractClassicJsIrTextTes } public void testAllFilesPresentInDynamic() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irJsText/dynamic"), Pattern.compile("^(.+)\\.kt(s)?$"), null, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/dynamic"), Pattern.compile("^(.+)\\.kt(s)?$"), null, true); } @TestMetadata("dynamicAndMembersOfAny.kt") public void testDynamicAndMembersOfAny() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicAndMembersOfAny.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.kt"); } @TestMetadata("dynamicArrayAccess.kt") public void testDynamicArrayAccess() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicArrayAccess.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAccess.kt"); } @TestMetadata("dynamicArrayAssignment.kt") public void testDynamicArrayAssignment() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicArrayAssignment.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.kt"); } @TestMetadata("dynamicArrayAugmentedAssignment.kt") public void testDynamicArrayAugmentedAssignment() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicArrayAugmentedAssignment.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAugmentedAssignment.kt"); } @TestMetadata("dynamicArrayIncrementDecrement.kt") public void testDynamicArrayIncrementDecrement() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicArrayIncrementDecrement.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.kt"); } @TestMetadata("dynamicBinaryEqualityOperator.kt") public void testDynamicBinaryEqualityOperator() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicBinaryEqualityOperator.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryEqualityOperator.kt"); } @TestMetadata("dynamicBinaryLogicalOperator.kt") public void testDynamicBinaryLogicalOperator() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicBinaryLogicalOperator.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryLogicalOperator.kt"); } @TestMetadata("dynamicBinaryOperator.kt") public void testDynamicBinaryOperator() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicBinaryOperator.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryOperator.kt"); } @TestMetadata("dynamicBinaryRelationalOperator.kt") public void testDynamicBinaryRelationalOperator() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicBinaryRelationalOperator.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryRelationalOperator.kt"); } @TestMetadata("dynamicCall.kt") public void testDynamicCall() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicCall.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicCall.kt"); } @TestMetadata("dynamicElvisOperator.kt") public void testDynamicElvisOperator() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicElvisOperator.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.kt"); } @TestMetadata("dynamicExclExclOperator.kt") public void testDynamicExclExclOperator() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicExclExclOperator.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt"); } @TestMetadata("dynamicInfixCall.kt") public void testDynamicInfixCall() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicInfixCall.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicInfixCall.kt"); } @TestMetadata("dynamicMemberAccess.kt") public void testDynamicMemberAccess() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicMemberAccess.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.kt"); } @TestMetadata("dynamicMemberAssignment.kt") public void testDynamicMemberAssignment() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicMemberAssignment.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.kt"); } @TestMetadata("dynamicMemberAugmentedAssignment.kt") public void testDynamicMemberAugmentedAssignment() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicMemberAugmentedAssignment.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.kt"); } @TestMetadata("dynamicMemberIncrementDecrement.kt") public void testDynamicMemberIncrementDecrement() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicMemberIncrementDecrement.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.kt"); } @TestMetadata("dynamicUnaryOperator.kt") public void testDynamicUnaryOperator() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicUnaryOperator.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicUnaryOperator.kt"); } @TestMetadata("dynamicWithSmartCast.kt") public void testDynamicWithSmartCast() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicWithSmartCast.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.kt"); } @TestMetadata("implicitCastFromDynamic.kt") public void testImplicitCastFromDynamic() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/implicitCastFromDynamic.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/implicitCastFromDynamic.kt"); } @TestMetadata("implicitCastToDynamic.kt") public void testImplicitCastToDynamic() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/implicitCastToDynamic.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.kt"); } @TestMetadata("invokeOperator.kt") public void testInvokeOperator() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/invokeOperator.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/invokeOperator.kt"); } } - @TestMetadata("compiler/testData/ir/irJsText/external") + @TestMetadata("compiler/testData/ir/irText/js/external") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class External extends AbstractClassicJsIrTextTestCase { @@ -161,16 +161,16 @@ public class ClassicJsIrTextTestCaseGenerated extends AbstractClassicJsIrTextTes } public void testAllFilesPresentInExternal() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irJsText/external"), Pattern.compile("^(.+)\\.kt(s)?$"), null, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/external"), Pattern.compile("^(.+)\\.kt(s)?$"), null, true); } @TestMetadata("kt38765.kt") public void testKt38765() throws Exception { - runTest("compiler/testData/ir/irJsText/external/kt38765.kt"); + runTest("compiler/testData/ir/irText/js/external/kt38765.kt"); } } - @TestMetadata("compiler/testData/ir/irJsText/native") + @TestMetadata("compiler/testData/ir/irText/js/native") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Native extends AbstractClassicJsIrTextTestCase { @@ -179,12 +179,12 @@ public class ClassicJsIrTextTestCaseGenerated extends AbstractClassicJsIrTextTes } public void testAllFilesPresentInNative() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irJsText/native"), Pattern.compile("^(.+)\\.kt(s)?$"), null, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/native"), Pattern.compile("^(.+)\\.kt(s)?$"), null, true); } @TestMetadata("nativeNativeKotlin.kt") public void testNativeNativeKotlin() throws Exception { - runTest("compiler/testData/ir/irJsText/native/nativeNativeKotlin.kt"); + runTest("compiler/testData/ir/irText/js/native/nativeNativeKotlin.kt"); } } } diff --git a/compiler/tests-gen/org/jetbrains/kotlin/klib/KlibIrTextTestCaseGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/klib/KlibIrTextTestCaseGenerated.java index 4622a13648b..b2b8235408d 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/klib/KlibIrTextTestCaseGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/klib/KlibIrTextTestCaseGenerated.java @@ -2051,6 +2051,178 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase { } } + @TestMetadata("compiler/testData/ir/irText/js") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Js extends AbstractKlibIrTextTestCase { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JS_IR, testDataFilePath); + } + + public void testAllFilesPresentInJs() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @TestMetadata("compiler/testData/ir/irText/js/dynamic") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Dynamic extends AbstractKlibIrTextTestCase { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JS_IR, testDataFilePath); + } + + public void testAllFilesPresentInDynamic() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/dynamic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @TestMetadata("dynamicAndMembersOfAny.kt") + public void testDynamicAndMembersOfAny() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.kt"); + } + + @TestMetadata("dynamicArrayAccess.kt") + public void testDynamicArrayAccess() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAccess.kt"); + } + + @TestMetadata("dynamicArrayAssignment.kt") + public void testDynamicArrayAssignment() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.kt"); + } + + @TestMetadata("dynamicArrayAugmentedAssignment.kt") + public void testDynamicArrayAugmentedAssignment() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAugmentedAssignment.kt"); + } + + @TestMetadata("dynamicArrayIncrementDecrement.kt") + public void testDynamicArrayIncrementDecrement() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.kt"); + } + + @TestMetadata("dynamicBinaryEqualityOperator.kt") + public void testDynamicBinaryEqualityOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryEqualityOperator.kt"); + } + + @TestMetadata("dynamicBinaryLogicalOperator.kt") + public void testDynamicBinaryLogicalOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryLogicalOperator.kt"); + } + + @TestMetadata("dynamicBinaryOperator.kt") + public void testDynamicBinaryOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryOperator.kt"); + } + + @TestMetadata("dynamicBinaryRelationalOperator.kt") + public void testDynamicBinaryRelationalOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryRelationalOperator.kt"); + } + + @TestMetadata("dynamicCall.kt") + public void testDynamicCall() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicCall.kt"); + } + + @TestMetadata("dynamicElvisOperator.kt") + public void testDynamicElvisOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.kt"); + } + + @TestMetadata("dynamicExclExclOperator.kt") + public void testDynamicExclExclOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt"); + } + + @TestMetadata("dynamicInfixCall.kt") + public void testDynamicInfixCall() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicInfixCall.kt"); + } + + @TestMetadata("dynamicMemberAccess.kt") + public void testDynamicMemberAccess() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.kt"); + } + + @TestMetadata("dynamicMemberAssignment.kt") + public void testDynamicMemberAssignment() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.kt"); + } + + @TestMetadata("dynamicMemberAugmentedAssignment.kt") + public void testDynamicMemberAugmentedAssignment() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.kt"); + } + + @TestMetadata("dynamicMemberIncrementDecrement.kt") + public void testDynamicMemberIncrementDecrement() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.kt"); + } + + @TestMetadata("dynamicUnaryOperator.kt") + public void testDynamicUnaryOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicUnaryOperator.kt"); + } + + @TestMetadata("dynamicWithSmartCast.kt") + public void testDynamicWithSmartCast() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.kt"); + } + + @TestMetadata("implicitCastFromDynamic.kt") + public void testImplicitCastFromDynamic() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/implicitCastFromDynamic.kt"); + } + + @TestMetadata("implicitCastToDynamic.kt") + public void testImplicitCastToDynamic() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.kt"); + } + + @TestMetadata("invokeOperator.kt") + public void testInvokeOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/invokeOperator.kt"); + } + } + + @TestMetadata("compiler/testData/ir/irText/js/external") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class External extends AbstractKlibIrTextTestCase { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JS_IR, testDataFilePath); + } + + public void testAllFilesPresentInExternal() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/external"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @TestMetadata("kt38765.kt") + public void testKt38765() throws Exception { + runTest("compiler/testData/ir/irText/js/external/kt38765.kt"); + } + } + + @TestMetadata("compiler/testData/ir/irText/js/native") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Native extends AbstractKlibIrTextTestCase { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JS_IR, testDataFilePath); + } + + public void testAllFilesPresentInNative() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/native"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @TestMetadata("nativeNativeKotlin.kt") + public void testNativeNativeKotlin() throws Exception { + runTest("compiler/testData/ir/irText/js/native/nativeNativeKotlin.kt"); + } + } + } + @TestMetadata("compiler/testData/ir/irText/lambdas") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -2107,7 +2279,7 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase { @TestMetadata("compiler/testData/ir/irText/properties") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) - public static class Properties extends AbstractKlibTextTestCase { + public static class Properties extends AbstractKlibIrTextTestCase { private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, TargetBackend.JS_IR, testDataFilePath); } @@ -2119,7 +2291,7 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase { @TestMetadata("compiler/testData/ir/irText/properties/backingField") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) - public static class BackingField extends AbstractKlibTextTestCase { + public static class BackingField extends AbstractKlibIrTextTestCase { private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, TargetBackend.JS_IR, testDataFilePath); } diff --git a/compiler/tests-gen/org/jetbrains/kotlin/klib/KlibJsIrTextTestCaseGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/klib/KlibJsIrTextTestCaseGenerated.java index 6c09a98dfa4..eeb14f3962f 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/klib/KlibJsIrTextTestCaseGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/klib/KlibJsIrTextTestCaseGenerated.java @@ -18,7 +18,7 @@ import java.util.regex.Pattern; /** This class is generated by {@link org.jetbrains.kotlin.test.generators.GenerateCompilerTestsKt}. DO NOT MODIFY MANUALLY */ @SuppressWarnings("all") -@TestMetadata("compiler/testData/ir/irJsText") +@TestMetadata("compiler/testData/ir/irText/js") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public class KlibJsIrTextTestCaseGenerated extends AbstractKlibJsIrTextTestCase { @@ -26,11 +26,11 @@ public class KlibJsIrTextTestCaseGenerated extends AbstractKlibJsIrTextTestCase KotlinTestUtils.runTest(this::doTest, TargetBackend.JS_IR, testDataFilePath); } - public void testAllFilesPresentInIrJsText() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irJsText"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + public void testAllFilesPresentInJs() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } - @TestMetadata("compiler/testData/ir/irJsText/dynamic") + @TestMetadata("compiler/testData/ir/irText/js/dynamic") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Dynamic extends AbstractKlibJsIrTextTestCase { @@ -39,121 +39,121 @@ public class KlibJsIrTextTestCaseGenerated extends AbstractKlibJsIrTextTestCase } public void testAllFilesPresentInDynamic() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irJsText/dynamic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/dynamic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } @TestMetadata("dynamicAndMembersOfAny.kt") public void testDynamicAndMembersOfAny() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicAndMembersOfAny.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.kt"); } @TestMetadata("dynamicArrayAccess.kt") public void testDynamicArrayAccess() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicArrayAccess.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAccess.kt"); } @TestMetadata("dynamicArrayAssignment.kt") public void testDynamicArrayAssignment() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicArrayAssignment.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.kt"); } @TestMetadata("dynamicArrayAugmentedAssignment.kt") public void testDynamicArrayAugmentedAssignment() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicArrayAugmentedAssignment.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAugmentedAssignment.kt"); } @TestMetadata("dynamicArrayIncrementDecrement.kt") public void testDynamicArrayIncrementDecrement() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicArrayIncrementDecrement.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.kt"); } @TestMetadata("dynamicBinaryEqualityOperator.kt") public void testDynamicBinaryEqualityOperator() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicBinaryEqualityOperator.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryEqualityOperator.kt"); } @TestMetadata("dynamicBinaryLogicalOperator.kt") public void testDynamicBinaryLogicalOperator() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicBinaryLogicalOperator.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryLogicalOperator.kt"); } @TestMetadata("dynamicBinaryOperator.kt") public void testDynamicBinaryOperator() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicBinaryOperator.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryOperator.kt"); } @TestMetadata("dynamicBinaryRelationalOperator.kt") public void testDynamicBinaryRelationalOperator() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicBinaryRelationalOperator.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryRelationalOperator.kt"); } @TestMetadata("dynamicCall.kt") public void testDynamicCall() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicCall.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicCall.kt"); } @TestMetadata("dynamicElvisOperator.kt") public void testDynamicElvisOperator() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicElvisOperator.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.kt"); } @TestMetadata("dynamicExclExclOperator.kt") public void testDynamicExclExclOperator() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicExclExclOperator.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt"); } @TestMetadata("dynamicInfixCall.kt") public void testDynamicInfixCall() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicInfixCall.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicInfixCall.kt"); } @TestMetadata("dynamicMemberAccess.kt") public void testDynamicMemberAccess() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicMemberAccess.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.kt"); } @TestMetadata("dynamicMemberAssignment.kt") public void testDynamicMemberAssignment() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicMemberAssignment.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.kt"); } @TestMetadata("dynamicMemberAugmentedAssignment.kt") public void testDynamicMemberAugmentedAssignment() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicMemberAugmentedAssignment.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.kt"); } @TestMetadata("dynamicMemberIncrementDecrement.kt") public void testDynamicMemberIncrementDecrement() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicMemberIncrementDecrement.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.kt"); } @TestMetadata("dynamicUnaryOperator.kt") public void testDynamicUnaryOperator() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicUnaryOperator.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicUnaryOperator.kt"); } @TestMetadata("dynamicWithSmartCast.kt") public void testDynamicWithSmartCast() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicWithSmartCast.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.kt"); } @TestMetadata("implicitCastFromDynamic.kt") public void testImplicitCastFromDynamic() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/implicitCastFromDynamic.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/implicitCastFromDynamic.kt"); } @TestMetadata("implicitCastToDynamic.kt") public void testImplicitCastToDynamic() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/implicitCastToDynamic.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.kt"); } @TestMetadata("invokeOperator.kt") public void testInvokeOperator() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/invokeOperator.kt"); + runTest("compiler/testData/ir/irText/js/dynamic/invokeOperator.kt"); } } - @TestMetadata("compiler/testData/ir/irJsText/external") + @TestMetadata("compiler/testData/ir/irText/js/external") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class External extends AbstractKlibJsIrTextTestCase { @@ -162,16 +162,16 @@ public class KlibJsIrTextTestCaseGenerated extends AbstractKlibJsIrTextTestCase } public void testAllFilesPresentInExternal() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irJsText/external"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/external"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } @TestMetadata("kt38765.kt") public void testKt38765() throws Exception { - runTest("compiler/testData/ir/irJsText/external/kt38765.kt"); + runTest("compiler/testData/ir/irText/js/external/kt38765.kt"); } } - @TestMetadata("compiler/testData/ir/irJsText/native") + @TestMetadata("compiler/testData/ir/irText/js/native") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Native extends AbstractKlibJsIrTextTestCase { @@ -180,12 +180,12 @@ public class KlibJsIrTextTestCaseGenerated extends AbstractKlibJsIrTextTestCase } public void testAllFilesPresentInNative() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irJsText/native"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/native"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } @TestMetadata("nativeNativeKotlin.kt") public void testNativeNativeKotlin() throws Exception { - runTest("compiler/testData/ir/irJsText/native/nativeNativeKotlin.kt"); + runTest("compiler/testData/ir/irText/js/native/nativeNativeKotlin.kt"); } } } diff --git a/js/js.tests/test/org/jetbrains/kotlin/generators/tests/GenerateJsTests.kt b/js/js.tests/test/org/jetbrains/kotlin/generators/tests/GenerateJsTests.kt index dd8f48fc462..54aeb268ff5 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/generators/tests/GenerateJsTests.kt +++ b/js/js.tests/test/org/jetbrains/kotlin/generators/tests/GenerateJsTests.kt @@ -182,7 +182,7 @@ fun main(args: Array) { testClass( suiteTestClassName = "FirLightTreeJsIrTextTestGenerated" ) { - model("ir/irJsText") + model("ir/irText") } testClass { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirLightTreeJsIrTextTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirLightTreeJsIrTextTestGenerated.java index f2ac2fb75d5..7ff579bcf36 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirLightTreeJsIrTextTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirLightTreeJsIrTextTestGenerated.java @@ -17,185 +17,2921 @@ import java.util.regex.Pattern; /** This class is generated by {@link org.jetbrains.kotlin.generators.tests.GenerateJsTestsKt}. DO NOT MODIFY MANUALLY */ @SuppressWarnings("all") -@TestMetadata("compiler/testData/ir/irJsText") +@TestMetadata("compiler/testData/ir/irText") @TestDataPath("$PROJECT_ROOT") public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrTextTest { @Test - public void testAllFilesPresentInIrJsText() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irJsText"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + public void testAllFilesPresentInIrText() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } @Nested - @TestMetadata("compiler/testData/ir/irJsText/dynamic") + @TestMetadata("compiler/testData/ir/irText/classes") @TestDataPath("$PROJECT_ROOT") - public class Dynamic { + public class Classes { @Test - public void testAllFilesPresentInDynamic() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irJsText/dynamic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + @TestMetadata("47424.kt") + public void test47424() throws Exception { + runTest("compiler/testData/ir/irText/classes/47424.kt"); } @Test - @TestMetadata("dynamicAndMembersOfAny.kt") - public void testDynamicAndMembersOfAny() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicAndMembersOfAny.kt"); + @TestMetadata("abstractMembers.kt") + public void testAbstractMembers() throws Exception { + runTest("compiler/testData/ir/irText/classes/abstractMembers.kt"); } @Test - @TestMetadata("dynamicArrayAccess.kt") - public void testDynamicArrayAccess() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicArrayAccess.kt"); + public void testAllFilesPresentInClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/classes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } @Test - @TestMetadata("dynamicArrayAssignment.kt") - public void testDynamicArrayAssignment() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicArrayAssignment.kt"); + @TestMetadata("annotationClasses.kt") + public void testAnnotationClasses() throws Exception { + runTest("compiler/testData/ir/irText/classes/annotationClasses.kt"); } @Test - @TestMetadata("dynamicArrayAugmentedAssignment.kt") - public void testDynamicArrayAugmentedAssignment() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicArrayAugmentedAssignment.kt"); + @TestMetadata("argumentReorderingInDelegatingConstructorCall.kt") + public void testArgumentReorderingInDelegatingConstructorCall() throws Exception { + runTest("compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.kt"); } @Test - @TestMetadata("dynamicArrayIncrementDecrement.kt") - public void testDynamicArrayIncrementDecrement() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicArrayIncrementDecrement.kt"); + @TestMetadata("clashingFakeOverrideSignatures.kt") + public void testClashingFakeOverrideSignatures() throws Exception { + runTest("compiler/testData/ir/irText/classes/clashingFakeOverrideSignatures.kt"); } @Test - @TestMetadata("dynamicBinaryEqualityOperator.kt") - public void testDynamicBinaryEqualityOperator() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicBinaryEqualityOperator.kt"); + @TestMetadata("classMembers.kt") + public void testClassMembers() throws Exception { + runTest("compiler/testData/ir/irText/classes/classMembers.kt"); } @Test - @TestMetadata("dynamicBinaryLogicalOperator.kt") - public void testDynamicBinaryLogicalOperator() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicBinaryLogicalOperator.kt"); + @TestMetadata("classes.kt") + public void testClasses() throws Exception { + runTest("compiler/testData/ir/irText/classes/classes.kt"); } @Test - @TestMetadata("dynamicBinaryOperator.kt") - public void testDynamicBinaryOperator() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicBinaryOperator.kt"); + @TestMetadata("cloneable.kt") + public void testCloneable() throws Exception { + runTest("compiler/testData/ir/irText/classes/cloneable.kt"); } @Test - @TestMetadata("dynamicBinaryRelationalOperator.kt") - public void testDynamicBinaryRelationalOperator() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicBinaryRelationalOperator.kt"); + @TestMetadata("companionObject.kt") + public void testCompanionObject() throws Exception { + runTest("compiler/testData/ir/irText/classes/companionObject.kt"); } @Test - @TestMetadata("dynamicCall.kt") - public void testDynamicCall() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicCall.kt"); + @TestMetadata("delegatedGenericImplementation.kt") + public void testDelegatedGenericImplementation() throws Exception { + runTest("compiler/testData/ir/irText/classes/delegatedGenericImplementation.kt"); } @Test - @TestMetadata("dynamicElvisOperator.kt") - public void testDynamicElvisOperator() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicElvisOperator.kt"); + @TestMetadata("delegatedImplementation.kt") + public void testDelegatedImplementation() throws Exception { + runTest("compiler/testData/ir/irText/classes/delegatedImplementation.kt"); } @Test - @TestMetadata("dynamicExclExclOperator.kt") - public void testDynamicExclExclOperator() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicExclExclOperator.kt"); + @TestMetadata("delegatedImplementationWithExplicitOverride.kt") + public void testDelegatedImplementationWithExplicitOverride() throws Exception { + runTest("compiler/testData/ir/irText/classes/delegatedImplementationWithExplicitOverride.kt"); } @Test - @TestMetadata("dynamicInfixCall.kt") - public void testDynamicInfixCall() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicInfixCall.kt"); + @TestMetadata("delegatingConstructorCallToTypeAliasConstructor.kt") + public void testDelegatingConstructorCallToTypeAliasConstructor() throws Exception { + runTest("compiler/testData/ir/irText/classes/delegatingConstructorCallToTypeAliasConstructor.kt"); } @Test - @TestMetadata("dynamicMemberAccess.kt") - public void testDynamicMemberAccess() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicMemberAccess.kt"); + @TestMetadata("delegatingConstructorCallsInSecondaryConstructors.kt") + public void testDelegatingConstructorCallsInSecondaryConstructors() throws Exception { + runTest("compiler/testData/ir/irText/classes/delegatingConstructorCallsInSecondaryConstructors.kt"); } @Test - @TestMetadata("dynamicMemberAssignment.kt") - public void testDynamicMemberAssignment() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicMemberAssignment.kt"); + @TestMetadata("enum.kt") + public void testEnum() throws Exception { + runTest("compiler/testData/ir/irText/classes/enum.kt"); } @Test - @TestMetadata("dynamicMemberAugmentedAssignment.kt") - public void testDynamicMemberAugmentedAssignment() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicMemberAugmentedAssignment.kt"); + @TestMetadata("enumClassModality.kt") + public void testEnumClassModality() throws Exception { + runTest("compiler/testData/ir/irText/classes/enumClassModality.kt"); } @Test - @TestMetadata("dynamicMemberIncrementDecrement.kt") - public void testDynamicMemberIncrementDecrement() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicMemberIncrementDecrement.kt"); + @TestMetadata("enumWithMultipleCtors.kt") + public void testEnumWithMultipleCtors() throws Exception { + runTest("compiler/testData/ir/irText/classes/enumWithMultipleCtors.kt"); } @Test - @TestMetadata("dynamicUnaryOperator.kt") - public void testDynamicUnaryOperator() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicUnaryOperator.kt"); + @TestMetadata("enumWithSecondaryCtor.kt") + public void testEnumWithSecondaryCtor() throws Exception { + runTest("compiler/testData/ir/irText/classes/enumWithSecondaryCtor.kt"); } @Test - @TestMetadata("dynamicWithSmartCast.kt") - public void testDynamicWithSmartCast() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/dynamicWithSmartCast.kt"); + @TestMetadata("initBlock.kt") + public void testInitBlock() throws Exception { + runTest("compiler/testData/ir/irText/classes/initBlock.kt"); } @Test - @TestMetadata("implicitCastFromDynamic.kt") - public void testImplicitCastFromDynamic() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/implicitCastFromDynamic.kt"); + @TestMetadata("initVal.kt") + public void testInitVal() throws Exception { + runTest("compiler/testData/ir/irText/classes/initVal.kt"); } @Test - @TestMetadata("implicitCastToDynamic.kt") - public void testImplicitCastToDynamic() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/implicitCastToDynamic.kt"); + @TestMetadata("initValInLambda.kt") + public void testInitValInLambda() throws Exception { + runTest("compiler/testData/ir/irText/classes/initValInLambda.kt"); } @Test - @TestMetadata("invokeOperator.kt") - public void testInvokeOperator() throws Exception { - runTest("compiler/testData/ir/irJsText/dynamic/invokeOperator.kt"); + @TestMetadata("initVar.kt") + public void testInitVar() throws Exception { + runTest("compiler/testData/ir/irText/classes/initVar.kt"); + } + + @Test + @TestMetadata("inlineClass.kt") + public void testInlineClass() throws Exception { + runTest("compiler/testData/ir/irText/classes/inlineClass.kt"); + } + + @Test + @TestMetadata("inlineClassSyntheticMethods.kt") + public void testInlineClassSyntheticMethods() throws Exception { + runTest("compiler/testData/ir/irText/classes/inlineClassSyntheticMethods.kt"); + } + + @Test + @TestMetadata("innerClass.kt") + public void testInnerClass() throws Exception { + runTest("compiler/testData/ir/irText/classes/innerClass.kt"); + } + + @Test + @TestMetadata("innerClassWithDelegatingConstructor.kt") + public void testInnerClassWithDelegatingConstructor() throws Exception { + runTest("compiler/testData/ir/irText/classes/innerClassWithDelegatingConstructor.kt"); + } + + @Test + @TestMetadata("kt19306.kt") + public void testKt19306() throws Exception { + runTest("compiler/testData/ir/irText/classes/kt19306.kt"); + } + + @Test + @TestMetadata("localClasses.kt") + public void testLocalClasses() throws Exception { + runTest("compiler/testData/ir/irText/classes/localClasses.kt"); + } + + @Test + @TestMetadata("objectLiteralExpressions.kt") + public void testObjectLiteralExpressions() throws Exception { + runTest("compiler/testData/ir/irText/classes/objectLiteralExpressions.kt"); + } + + @Test + @TestMetadata("objectWithInitializers.kt") + public void testObjectWithInitializers() throws Exception { + runTest("compiler/testData/ir/irText/classes/objectWithInitializers.kt"); + } + + @Test + @TestMetadata("outerClassAccess.kt") + public void testOuterClassAccess() throws Exception { + runTest("compiler/testData/ir/irText/classes/outerClassAccess.kt"); + } + + @Test + @TestMetadata("primaryConstructor.kt") + public void testPrimaryConstructor() throws Exception { + runTest("compiler/testData/ir/irText/classes/primaryConstructor.kt"); + } + + @Test + @TestMetadata("primaryConstructorWithSuperConstructorCall.kt") + public void testPrimaryConstructorWithSuperConstructorCall() throws Exception { + runTest("compiler/testData/ir/irText/classes/primaryConstructorWithSuperConstructorCall.kt"); + } + + @Test + @TestMetadata("qualifiedSuperCalls.kt") + public void testQualifiedSuperCalls() throws Exception { + runTest("compiler/testData/ir/irText/classes/qualifiedSuperCalls.kt"); + } + + @Test + @TestMetadata("sealedClasses.kt") + public void testSealedClasses() throws Exception { + runTest("compiler/testData/ir/irText/classes/sealedClasses.kt"); + } + + @Test + @TestMetadata("secondaryConstructorWithInitializersFromClassBody.kt") + public void testSecondaryConstructorWithInitializersFromClassBody() throws Exception { + runTest("compiler/testData/ir/irText/classes/secondaryConstructorWithInitializersFromClassBody.kt"); + } + + @Test + @TestMetadata("secondaryConstructors.kt") + public void testSecondaryConstructors() throws Exception { + runTest("compiler/testData/ir/irText/classes/secondaryConstructors.kt"); + } + + @Test + @TestMetadata("smartCastInValInitialization.kt") + public void testSmartCastInValInitialization() throws Exception { + runTest("compiler/testData/ir/irText/classes/smartCastInValInitialization.kt"); + } + + @Test + @TestMetadata("superCalls.kt") + public void testSuperCalls() throws Exception { + runTest("compiler/testData/ir/irText/classes/superCalls.kt"); + } + + @Test + @TestMetadata("superCallsComposed.kt") + public void testSuperCallsComposed() throws Exception { + runTest("compiler/testData/ir/irText/classes/superCallsComposed.kt"); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/classes/dataClasses") + @TestDataPath("$PROJECT_ROOT") + public class DataClasses { + @Test + public void testAllFilesPresentInDataClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/classes/dataClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("dataClassWithArrayMembers.kt") + public void testDataClassWithArrayMembers() throws Exception { + runTest("compiler/testData/ir/irText/classes/dataClasses/dataClassWithArrayMembers.kt"); + } + + @Test + @TestMetadata("dataClasses.kt") + public void testDataClasses() throws Exception { + runTest("compiler/testData/ir/irText/classes/dataClasses/dataClasses.kt"); + } + + @Test + @TestMetadata("dataClassesGeneric.kt") + public void testDataClassesGeneric() throws Exception { + runTest("compiler/testData/ir/irText/classes/dataClasses/dataClassesGeneric.kt"); + } + + @Test + @TestMetadata("delegationInSealed.kt") + public void testDelegationInSealed() throws Exception { + runTest("compiler/testData/ir/irText/classes/dataClasses/delegationInSealed.kt"); + } + + @Test + @TestMetadata("kt31649.kt") + public void testKt31649() throws Exception { + runTest("compiler/testData/ir/irText/classes/dataClasses/kt31649.kt"); + } + + @Test + @TestMetadata("kt49936.kt") + public void testKt49936() throws Exception { + runTest("compiler/testData/ir/irText/classes/dataClasses/kt49936.kt"); + } + + @Test + @TestMetadata("lambdaInDataClassDefaultParameter.kt") + public void testLambdaInDataClassDefaultParameter() throws Exception { + runTest("compiler/testData/ir/irText/classes/dataClasses/lambdaInDataClassDefaultParameter.kt"); + } + + @Test + @TestMetadata("openDataClass.kt") + public void testOpenDataClass() throws Exception { + runTest("compiler/testData/ir/irText/classes/dataClasses/openDataClass.kt"); + } } } @Nested - @TestMetadata("compiler/testData/ir/irJsText/external") + @TestMetadata("compiler/testData/ir/irText/declarations") @TestDataPath("$PROJECT_ROOT") - public class External { + public class Declarations { @Test - public void testAllFilesPresentInExternal() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irJsText/external"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + public void testAllFilesPresentInDeclarations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } @Test - @TestMetadata("kt38765.kt") - public void testKt38765() throws Exception { - runTest("compiler/testData/ir/irJsText/external/kt38765.kt"); + @TestMetadata("catchParameterInTopLevelProperty.kt") + public void testCatchParameterInTopLevelProperty() throws Exception { + runTest("compiler/testData/ir/irText/declarations/catchParameterInTopLevelProperty.kt"); + } + + @Test + @TestMetadata("classLevelProperties.kt") + public void testClassLevelProperties() throws Exception { + runTest("compiler/testData/ir/irText/declarations/classLevelProperties.kt"); + } + + @Test + @TestMetadata("constValInitializers.kt") + public void testConstValInitializers() throws Exception { + runTest("compiler/testData/ir/irText/declarations/constValInitializers.kt"); + } + + @Test + @TestMetadata("defaultArguments.kt") + public void testDefaultArguments() throws Exception { + runTest("compiler/testData/ir/irText/declarations/defaultArguments.kt"); + } + + @Test + @TestMetadata("delegatedProperties.kt") + public void testDelegatedProperties() throws Exception { + runTest("compiler/testData/ir/irText/declarations/delegatedProperties.kt"); + } + + @Test + @TestMetadata("deprecatedProperty.kt") + public void testDeprecatedProperty() throws Exception { + runTest("compiler/testData/ir/irText/declarations/deprecatedProperty.kt"); + } + + @Test + @TestMetadata("extensionProperties.kt") + public void testExtensionProperties() throws Exception { + runTest("compiler/testData/ir/irText/declarations/extensionProperties.kt"); + } + + @Test + @TestMetadata("fakeOverrides.kt") + public void testFakeOverrides() throws Exception { + runTest("compiler/testData/ir/irText/declarations/fakeOverrides.kt"); + } + + @Test + @TestMetadata("fileWithTypeAliasesOnly.kt") + public void testFileWithTypeAliasesOnly() throws Exception { + runTest("compiler/testData/ir/irText/declarations/fileWithTypeAliasesOnly.kt"); + } + + @Test + @TestMetadata("genericDelegatedProperty.kt") + public void testGenericDelegatedProperty() throws Exception { + runTest("compiler/testData/ir/irText/declarations/genericDelegatedProperty.kt"); + } + + @Test + @TestMetadata("inlineCollectionOfInlineClass.kt") + public void testInlineCollectionOfInlineClass() throws Exception { + runTest("compiler/testData/ir/irText/declarations/inlineCollectionOfInlineClass.kt"); + } + + @Test + @TestMetadata("interfaceProperties.kt") + public void testInterfaceProperties() throws Exception { + runTest("compiler/testData/ir/irText/declarations/interfaceProperties.kt"); + } + + @Test + @TestMetadata("kt27005.kt") + public void testKt27005() throws Exception { + runTest("compiler/testData/ir/irText/declarations/kt27005.kt"); + } + + @Test + @TestMetadata("kt35550.kt") + public void testKt35550() throws Exception { + runTest("compiler/testData/ir/irText/declarations/kt35550.kt"); + } + + @Test + @TestMetadata("kt45308.kt") + public void testKt45308() throws Exception { + runTest("compiler/testData/ir/irText/declarations/kt45308.kt"); + } + + @Test + @TestMetadata("kt47527.kt") + public void testKt47527() throws Exception { + runTest("compiler/testData/ir/irText/declarations/kt47527.kt"); + } + + @Test + @TestMetadata("kt52677.kt") + public void testKt52677() throws Exception { + runTest("compiler/testData/ir/irText/declarations/kt52677.kt"); + } + + @Test + @TestMetadata("localClassWithOverrides.kt") + public void testLocalClassWithOverrides() throws Exception { + runTest("compiler/testData/ir/irText/declarations/localClassWithOverrides.kt"); + } + + @Test + @TestMetadata("localDelegatedProperties.kt") + public void testLocalDelegatedProperties() throws Exception { + runTest("compiler/testData/ir/irText/declarations/localDelegatedProperties.kt"); + } + + @Test + @TestMetadata("localVarInDoWhile.kt") + public void testLocalVarInDoWhile() throws Exception { + runTest("compiler/testData/ir/irText/declarations/localVarInDoWhile.kt"); + } + + @Test + @TestMetadata("packageLevelProperties.kt") + public void testPackageLevelProperties() throws Exception { + runTest("compiler/testData/ir/irText/declarations/packageLevelProperties.kt"); + } + + @Test + @TestMetadata("primaryCtorDefaultArguments.kt") + public void testPrimaryCtorDefaultArguments() throws Exception { + runTest("compiler/testData/ir/irText/declarations/primaryCtorDefaultArguments.kt"); + } + + @Test + @TestMetadata("primaryCtorProperties.kt") + public void testPrimaryCtorProperties() throws Exception { + runTest("compiler/testData/ir/irText/declarations/primaryCtorProperties.kt"); + } + + @Test + @TestMetadata("typeAlias.kt") + public void testTypeAlias() throws Exception { + runTest("compiler/testData/ir/irText/declarations/typeAlias.kt"); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/declarations/annotations") + @TestDataPath("$PROJECT_ROOT") + public class Annotations { + @Test + public void testAllFilesPresentInAnnotations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("annotationOnClassWithInitializer.kt") + public void testAnnotationOnClassWithInitializer() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/annotationOnClassWithInitializer.kt"); + } + + @Test + @TestMetadata("annotationsInAnnotationArguments.kt") + public void testAnnotationsInAnnotationArguments() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/annotationsInAnnotationArguments.kt"); + } + + @Test + @TestMetadata("annotationsOnDelegatedMembers.kt") + public void testAnnotationsOnDelegatedMembers() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/annotationsOnDelegatedMembers.kt"); + } + + @Test + @TestMetadata("annotationsWithDefaultParameterValues.kt") + public void testAnnotationsWithDefaultParameterValues() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/annotationsWithDefaultParameterValues.kt"); + } + + @Test + @TestMetadata("annotationsWithVarargParameters.kt") + public void testAnnotationsWithVarargParameters() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/annotationsWithVarargParameters.kt"); + } + + @Test + @TestMetadata("arrayInAnnotationArguments.kt") + public void testArrayInAnnotationArguments() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/arrayInAnnotationArguments.kt"); + } + + @Test + @TestMetadata("classLiteralInAnnotation.kt") + public void testClassLiteralInAnnotation() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/classLiteralInAnnotation.kt"); + } + + @Test + @TestMetadata("classesWithAnnotations.kt") + public void testClassesWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/classesWithAnnotations.kt"); + } + + @Test + @TestMetadata("constExpressionsInAnnotationArguments.kt") + public void testConstExpressionsInAnnotationArguments() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/constExpressionsInAnnotationArguments.kt"); + } + + @Test + @TestMetadata("constructorsWithAnnotations.kt") + public void testConstructorsWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/constructorsWithAnnotations.kt"); + } + + @Test + @TestMetadata("delegateFieldWithAnnotations.kt") + public void testDelegateFieldWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.kt"); + } + + @Test + @TestMetadata("delegatedPropertyAccessorsWithAnnotations.kt") + public void testDelegatedPropertyAccessorsWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/delegatedPropertyAccessorsWithAnnotations.kt"); + } + + @Test + @TestMetadata("enumEntriesWithAnnotations.kt") + public void testEnumEntriesWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/enumEntriesWithAnnotations.kt"); + } + + @Test + @TestMetadata("enumsInAnnotationArguments.kt") + public void testEnumsInAnnotationArguments() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/enumsInAnnotationArguments.kt"); + } + + @Test + @TestMetadata("fieldsWithAnnotations.kt") + public void testFieldsWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/fieldsWithAnnotations.kt"); + } + + @Test + @TestMetadata("fileAnnotations.kt") + public void testFileAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/fileAnnotations.kt"); + } + + @Test + @TestMetadata("functionsWithAnnotations.kt") + public void testFunctionsWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/functionsWithAnnotations.kt"); + } + + @Test + @TestMetadata("genericAnnotationClasses.kt") + public void testGenericAnnotationClasses() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/genericAnnotationClasses.kt"); + } + + @Test + @TestMetadata("inheritingDeprecation.kt") + public void testInheritingDeprecation() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/inheritingDeprecation.kt"); + } + + @Test + @TestMetadata("localDelegatedPropertiesWithAnnotations.kt") + public void testLocalDelegatedPropertiesWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.kt"); + } + + @Test + @TestMetadata("multipleAnnotationsInSquareBrackets.kt") + public void testMultipleAnnotationsInSquareBrackets() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/multipleAnnotationsInSquareBrackets.kt"); + } + + @Test + @TestMetadata("primaryConstructorParameterWithAnnotations.kt") + public void testPrimaryConstructorParameterWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/primaryConstructorParameterWithAnnotations.kt"); + } + + @Test + @TestMetadata("propertiesWithAnnotations.kt") + public void testPropertiesWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/propertiesWithAnnotations.kt"); + } + + @Test + @TestMetadata("propertyAccessorsFromClassHeaderWithAnnotations.kt") + public void testPropertyAccessorsFromClassHeaderWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/propertyAccessorsFromClassHeaderWithAnnotations.kt"); + } + + @Test + @TestMetadata("propertyAccessorsWithAnnotations.kt") + public void testPropertyAccessorsWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/propertyAccessorsWithAnnotations.kt"); + } + + @Test + @TestMetadata("propertySetterParameterWithAnnotations.kt") + public void testPropertySetterParameterWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/propertySetterParameterWithAnnotations.kt"); + } + + @Test + @TestMetadata("receiverParameterWithAnnotations.kt") + public void testReceiverParameterWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/receiverParameterWithAnnotations.kt"); + } + + @Test + @TestMetadata("spreadOperatorInAnnotationArguments.kt") + public void testSpreadOperatorInAnnotationArguments() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/spreadOperatorInAnnotationArguments.kt"); + } + + @Test + @TestMetadata("typeAliasesWithAnnotations.kt") + public void testTypeAliasesWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/typeAliasesWithAnnotations.kt"); + } + + @Test + @TestMetadata("typeParametersWithAnnotations.kt") + public void testTypeParametersWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/typeParametersWithAnnotations.kt"); + } + + @Test + @TestMetadata("valueParametersWithAnnotations.kt") + public void testValueParametersWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/valueParametersWithAnnotations.kt"); + } + + @Test + @TestMetadata("varargsInAnnotationArguments.kt") + public void testVarargsInAnnotationArguments() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/varargsInAnnotationArguments.kt"); + } + + @Test + @TestMetadata("variablesWithAnnotations.kt") + public void testVariablesWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/variablesWithAnnotations.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/declarations/contextReceivers") + @TestDataPath("$PROJECT_ROOT") + public class ContextReceivers { + @Test + public void testAllFilesPresentInContextReceivers() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/contextReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("class.kt") + public void testClass() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/class.kt"); + } + + @Test + @TestMetadata("contextReceiverMethod.kt") + public void testContextReceiverMethod() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextReceiverMethod.kt"); + } + + @Test + @TestMetadata("contextualPrimaryConstructorWithParams.kt") + public void testContextualPrimaryConstructorWithParams() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.kt"); + } + + @Test + @TestMetadata("function.kt") + public void testFunction() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/function.kt"); + } + + @Test + @TestMetadata("functionalType.kt") + public void testFunctionalType() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/functionalType.kt"); + } + + @Test + @TestMetadata("genericOuterClass.kt") + public void testGenericOuterClass() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.kt"); + } + + @Test + @TestMetadata("lazy.kt") + public void testLazy() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/lazy.kt"); + } + + @Test + @TestMetadata("overloadPriority.kt") + public void testOverloadPriority() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/overloadPriority.kt"); + } + + @Test + @TestMetadata("overloading.kt") + public void testOverloading() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/overloading.kt"); + } + + @Test + @TestMetadata("plusMatrix.kt") + public void testPlusMatrix() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.kt"); + } + + @Test + @TestMetadata("property.kt") + public void testProperty() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/property.kt"); + } + + @Test + @TestMetadata("thisWithCustomLabel.kt") + public void testThisWithCustomLabel() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/thisWithCustomLabel.kt"); + } + + @Test + @TestMetadata("typeParameterAsContextReceiver.kt") + public void testTypeParameterAsContextReceiver() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.kt"); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP") + @TestDataPath("$PROJECT_ROOT") + public class FromKEEP { + @Test + public void testAllFilesPresentInFromKEEP() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/declarations/jvmRecord") + @TestDataPath("$PROJECT_ROOT") + public class JvmRecord { + @Test + public void testAllFilesPresentInJvmRecord() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/jvmRecord"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/declarations/multiplatform") + @TestDataPath("$PROJECT_ROOT") + public class Multiplatform { + @Test + public void testAllFilesPresentInMultiplatform() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("expectClassInherited.kt") + public void testExpectClassInherited() throws Exception { + runTest("compiler/testData/ir/irText/declarations/multiplatform/expectClassInherited.kt"); + } + + @Test + @TestMetadata("expectedEnumClass.kt") + public void testExpectedEnumClass() throws Exception { + runTest("compiler/testData/ir/irText/declarations/multiplatform/expectedEnumClass.kt"); + } + + @Test + @TestMetadata("expectedEnumClass2.kt") + public void testExpectedEnumClass2() throws Exception { + runTest("compiler/testData/ir/irText/declarations/multiplatform/expectedEnumClass2.kt"); + } + + @Test + @TestMetadata("expectedSealedClass.kt") + public void testExpectedSealedClass() throws Exception { + runTest("compiler/testData/ir/irText/declarations/multiplatform/expectedSealedClass.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/declarations/parameters") + @TestDataPath("$PROJECT_ROOT") + public class Parameters { + @Test + public void testAllFilesPresentInParameters() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/parameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("class.kt") + public void testClass() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/class.kt"); + } + + @Test + @TestMetadata("constructor.kt") + public void testConstructor() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/constructor.kt"); + } + + @Test + @TestMetadata("dataClassMembers.kt") + public void testDataClassMembers() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/dataClassMembers.kt"); + } + + @Test + @TestMetadata("defaultPropertyAccessors.kt") + public void testDefaultPropertyAccessors() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/defaultPropertyAccessors.kt"); + } + + @Test + @TestMetadata("delegatedMembers.kt") + public void testDelegatedMembers() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/delegatedMembers.kt"); + } + + @Test + @TestMetadata("fun.kt") + public void testFun() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/fun.kt"); + } + + @Test + @TestMetadata("genericInnerClass.kt") + public void testGenericInnerClass() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/genericInnerClass.kt"); + } + + @Test + @TestMetadata("lambdas.kt") + public void testLambdas() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/lambdas.kt"); + } + + @Test + @TestMetadata("localFun.kt") + public void testLocalFun() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/localFun.kt"); + } + + @Test + @TestMetadata("propertyAccessors.kt") + public void testPropertyAccessors() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/propertyAccessors.kt"); + } + + @Test + @TestMetadata("typeParameterBeforeBound.kt") + public void testTypeParameterBeforeBound() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/typeParameterBeforeBound.kt"); + } + + @Test + @TestMetadata("typeParameterBoundedBySubclass.kt") + public void testTypeParameterBoundedBySubclass() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/typeParameterBoundedBySubclass.kt"); + } + + @Test + @TestMetadata("useNextParamInLambda.kt") + public void testUseNextParamInLambda() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/useNextParamInLambda.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/declarations/provideDelegate") + @TestDataPath("$PROJECT_ROOT") + public class ProvideDelegate { + @Test + public void testAllFilesPresentInProvideDelegate() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("differentReceivers.kt") + public void testDifferentReceivers() throws Exception { + runTest("compiler/testData/ir/irText/declarations/provideDelegate/differentReceivers.kt"); + } + + @Test + @TestMetadata("local.kt") + public void testLocal() throws Exception { + runTest("compiler/testData/ir/irText/declarations/provideDelegate/local.kt"); + } + + @Test + @TestMetadata("localDifferentReceivers.kt") + public void testLocalDifferentReceivers() throws Exception { + runTest("compiler/testData/ir/irText/declarations/provideDelegate/localDifferentReceivers.kt"); + } + + @Test + @TestMetadata("member.kt") + public void testMember() throws Exception { + runTest("compiler/testData/ir/irText/declarations/provideDelegate/member.kt"); + } + + @Test + @TestMetadata("memberExtension.kt") + public void testMemberExtension() throws Exception { + runTest("compiler/testData/ir/irText/declarations/provideDelegate/memberExtension.kt"); + } + + @Test + @TestMetadata("topLevel.kt") + public void testTopLevel() throws Exception { + runTest("compiler/testData/ir/irText/declarations/provideDelegate/topLevel.kt"); + } } } @Nested - @TestMetadata("compiler/testData/ir/irJsText/native") + @TestMetadata("compiler/testData/ir/irText/errors") @TestDataPath("$PROJECT_ROOT") - public class Native { + public class Errors { @Test - public void testAllFilesPresentInNative() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irJsText/native"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + public void testAllFilesPresentInErrors() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/errors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } @Test - @TestMetadata("nativeNativeKotlin.kt") - public void testNativeNativeKotlin() throws Exception { - runTest("compiler/testData/ir/irJsText/native/nativeNativeKotlin.kt"); + @TestMetadata("suppressedNonPublicCall.kt") + public void testSuppressedNonPublicCall() throws Exception { + runTest("compiler/testData/ir/irText/errors/suppressedNonPublicCall.kt"); + } + + @Test + @TestMetadata("unresolvedReference.kt") + public void testUnresolvedReference() throws Exception { + runTest("compiler/testData/ir/irText/errors/unresolvedReference.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/expressions") + @TestDataPath("$PROJECT_ROOT") + public class Expressions { + @Test + public void testAllFilesPresentInExpressions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/expressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("ambiguousFieldAccess.kt") + public void testAmbiguousFieldAccess() throws Exception { + runTest("compiler/testData/ir/irText/expressions/ambiguousFieldAccess.kt"); + } + + @Test + @TestMetadata("argumentMappedWithError.kt") + public void testArgumentMappedWithError() throws Exception { + runTest("compiler/testData/ir/irText/expressions/argumentMappedWithError.kt"); + } + + @Test + @TestMetadata("arrayAccess.kt") + public void testArrayAccess() throws Exception { + runTest("compiler/testData/ir/irText/expressions/arrayAccess.kt"); + } + + @Test + @TestMetadata("arrayAssignment.kt") + public void testArrayAssignment() throws Exception { + runTest("compiler/testData/ir/irText/expressions/arrayAssignment.kt"); + } + + @Test + @TestMetadata("arrayAugmentedAssignment1.kt") + public void testArrayAugmentedAssignment1() throws Exception { + runTest("compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.kt"); + } + + @Test + @TestMetadata("arrayAugmentedAssignment2.kt") + public void testArrayAugmentedAssignment2() throws Exception { + runTest("compiler/testData/ir/irText/expressions/arrayAugmentedAssignment2.kt"); + } + + @Test + @TestMetadata("assignments.kt") + public void testAssignments() throws Exception { + runTest("compiler/testData/ir/irText/expressions/assignments.kt"); + } + + @Test + @TestMetadata("augmentedAssignment1.kt") + public void testAugmentedAssignment1() throws Exception { + runTest("compiler/testData/ir/irText/expressions/augmentedAssignment1.kt"); + } + + @Test + @TestMetadata("augmentedAssignment2.kt") + public void testAugmentedAssignment2() throws Exception { + runTest("compiler/testData/ir/irText/expressions/augmentedAssignment2.kt"); + } + + @Test + @TestMetadata("augmentedAssignmentWithExpression.kt") + public void testAugmentedAssignmentWithExpression() throws Exception { + runTest("compiler/testData/ir/irText/expressions/augmentedAssignmentWithExpression.kt"); + } + + @Test + @TestMetadata("badBreakContinue.kt") + public void testBadBreakContinue() throws Exception { + runTest("compiler/testData/ir/irText/expressions/badBreakContinue.kt"); + } + + @Test + @TestMetadata("badInlinedBreakContinue.kt") + public void testBadInlinedBreakContinue() throws Exception { + runTest("compiler/testData/ir/irText/expressions/badInlinedBreakContinue.kt"); + } + + @Test + @TestMetadata("bangbang.kt") + public void testBangbang() throws Exception { + runTest("compiler/testData/ir/irText/expressions/bangbang.kt"); + } + + @Test + @TestMetadata("booleanConstsInAndAndOrOr.kt") + public void testBooleanConstsInAndAndOrOr() throws Exception { + runTest("compiler/testData/ir/irText/expressions/booleanConstsInAndAndOrOr.kt"); + } + + @Test + @TestMetadata("booleanOperators.kt") + public void testBooleanOperators() throws Exception { + runTest("compiler/testData/ir/irText/expressions/booleanOperators.kt"); + } + + @Test + @TestMetadata("boundCallableReferences.kt") + public void testBoundCallableReferences() throws Exception { + runTest("compiler/testData/ir/irText/expressions/boundCallableReferences.kt"); + } + + @Test + @TestMetadata("boxOk.kt") + public void testBoxOk() throws Exception { + runTest("compiler/testData/ir/irText/expressions/boxOk.kt"); + } + + @Test + @TestMetadata("breakContinue.kt") + public void testBreakContinue() throws Exception { + runTest("compiler/testData/ir/irText/expressions/breakContinue.kt"); + } + + @Test + @TestMetadata("breakContinueInLoopHeader.kt") + public void testBreakContinueInLoopHeader() throws Exception { + runTest("compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.kt"); + } + + @Test + @TestMetadata("breakContinueInWhen.kt") + public void testBreakContinueInWhen() throws Exception { + runTest("compiler/testData/ir/irText/expressions/breakContinueInWhen.kt"); + } + + @Test + @TestMetadata("builtinOperators.kt") + public void testBuiltinOperators() throws Exception { + runTest("compiler/testData/ir/irText/expressions/builtinOperators.kt"); + } + + @Test + @TestMetadata("callWithReorderedArguments.kt") + public void testCallWithReorderedArguments() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callWithReorderedArguments.kt"); + } + + @Test + @TestMetadata("calls.kt") + public void testCalls() throws Exception { + runTest("compiler/testData/ir/irText/expressions/calls.kt"); + } + + @Test + @TestMetadata("castToTypeParameter.kt") + public void testCastToTypeParameter() throws Exception { + runTest("compiler/testData/ir/irText/expressions/castToTypeParameter.kt"); + } + + @Test + @TestMetadata("catchParameterAccess.kt") + public void testCatchParameterAccess() throws Exception { + runTest("compiler/testData/ir/irText/expressions/catchParameterAccess.kt"); + } + + @Test + @TestMetadata("chainOfSafeCalls.kt") + public void testChainOfSafeCalls() throws Exception { + runTest("compiler/testData/ir/irText/expressions/chainOfSafeCalls.kt"); + } + + @Test + @TestMetadata("chainedFunSuspendConversionForSimpleExpression.kt") + public void testChainedFunSuspendConversionForSimpleExpression() throws Exception { + runTest("compiler/testData/ir/irText/expressions/chainedFunSuspendConversionForSimpleExpression.kt"); + } + + @Test + @TestMetadata("complexAugmentedAssignment.kt") + public void testComplexAugmentedAssignment() throws Exception { + runTest("compiler/testData/ir/irText/expressions/complexAugmentedAssignment.kt"); + } + + @Test + @TestMetadata("contructorCall.kt") + public void testContructorCall() throws Exception { + runTest("compiler/testData/ir/irText/expressions/contructorCall.kt"); + } + + @Test + @TestMetadata("conventionComparisons.kt") + public void testConventionComparisons() throws Exception { + runTest("compiler/testData/ir/irText/expressions/conventionComparisons.kt"); + } + + @Test + @TestMetadata("destructuring1.kt") + public void testDestructuring1() throws Exception { + runTest("compiler/testData/ir/irText/expressions/destructuring1.kt"); + } + + @Test + @TestMetadata("destructuringWithUnderscore.kt") + public void testDestructuringWithUnderscore() throws Exception { + runTest("compiler/testData/ir/irText/expressions/destructuringWithUnderscore.kt"); + } + + @Test + @TestMetadata("dotQualified.kt") + public void testDotQualified() throws Exception { + runTest("compiler/testData/ir/irText/expressions/dotQualified.kt"); + } + + @Test + @TestMetadata("elvis.kt") + public void testElvis() throws Exception { + runTest("compiler/testData/ir/irText/expressions/elvis.kt"); + } + + @Test + @TestMetadata("enumEntryAsReceiver.kt") + public void testEnumEntryAsReceiver() throws Exception { + runTest("compiler/testData/ir/irText/expressions/enumEntryAsReceiver.kt"); + } + + @Test + @TestMetadata("enumEntryReferenceFromEnumEntryClass.kt") + public void testEnumEntryReferenceFromEnumEntryClass() throws Exception { + runTest("compiler/testData/ir/irText/expressions/enumEntryReferenceFromEnumEntryClass.kt"); + } + + @Test + @TestMetadata("equality.kt") + public void testEquality() throws Exception { + runTest("compiler/testData/ir/irText/expressions/equality.kt"); + } + + @Test + @TestMetadata("exhaustiveWhenElseBranch.kt") + public void testExhaustiveWhenElseBranch() throws Exception { + runTest("compiler/testData/ir/irText/expressions/exhaustiveWhenElseBranch.kt"); + } + + @Test + @TestMetadata("extFunInvokeAsFun.kt") + public void testExtFunInvokeAsFun() throws Exception { + runTest("compiler/testData/ir/irText/expressions/extFunInvokeAsFun.kt"); + } + + @Test + @TestMetadata("extFunSafeInvoke.kt") + public void testExtFunSafeInvoke() throws Exception { + runTest("compiler/testData/ir/irText/expressions/extFunSafeInvoke.kt"); + } + + @Test + @TestMetadata("extensionPropertyGetterCall.kt") + public void testExtensionPropertyGetterCall() throws Exception { + runTest("compiler/testData/ir/irText/expressions/extensionPropertyGetterCall.kt"); + } + + @Test + @TestMetadata("field.kt") + public void testField() throws Exception { + runTest("compiler/testData/ir/irText/expressions/field.kt"); + } + + @Test + @TestMetadata("for.kt") + public void testFor() throws Exception { + runTest("compiler/testData/ir/irText/expressions/for.kt"); + } + + @Test + @TestMetadata("forWithBreakContinue.kt") + public void testForWithBreakContinue() throws Exception { + runTest("compiler/testData/ir/irText/expressions/forWithBreakContinue.kt"); + } + + @Test + @TestMetadata("forWithImplicitReceivers.kt") + public void testForWithImplicitReceivers() throws Exception { + runTest("compiler/testData/ir/irText/expressions/forWithImplicitReceivers.kt"); + } + + @Test + @TestMetadata("funImportedFromObject.kt") + public void testFunImportedFromObject() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funImportedFromObject.kt"); + } + + @Test + @TestMetadata("funInterfaceConstructorReference.kt") + public void testFunInterfaceConstructorReference() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funInterfaceConstructorReference.kt"); + } + + @Test + @TestMetadata("genericConstructorCallWithTypeArguments.kt") + public void testGenericConstructorCallWithTypeArguments() throws Exception { + runTest("compiler/testData/ir/irText/expressions/genericConstructorCallWithTypeArguments.kt"); + } + + @Test + @TestMetadata("genericPropertyCall.kt") + public void testGenericPropertyCall() throws Exception { + runTest("compiler/testData/ir/irText/expressions/genericPropertyCall.kt"); + } + + @Test + @TestMetadata("genericPropertyRef.kt") + public void testGenericPropertyRef() throws Exception { + runTest("compiler/testData/ir/irText/expressions/genericPropertyRef.kt"); + } + + @Test + @TestMetadata("identity.kt") + public void testIdentity() throws Exception { + runTest("compiler/testData/ir/irText/expressions/identity.kt"); + } + + @Test + @TestMetadata("ifElseIf.kt") + public void testIfElseIf() throws Exception { + runTest("compiler/testData/ir/irText/expressions/ifElseIf.kt"); + } + + @Test + @TestMetadata("implicitCastInReturnFromConstructor.kt") + public void testImplicitCastInReturnFromConstructor() throws Exception { + runTest("compiler/testData/ir/irText/expressions/implicitCastInReturnFromConstructor.kt"); + } + + @Test + @TestMetadata("implicitCastToNonNull.kt") + public void testImplicitCastToNonNull() throws Exception { + runTest("compiler/testData/ir/irText/expressions/implicitCastToNonNull.kt"); + } + + @Test + @TestMetadata("implicitCastToTypeParameter.kt") + public void testImplicitCastToTypeParameter() throws Exception { + runTest("compiler/testData/ir/irText/expressions/implicitCastToTypeParameter.kt"); + } + + @Test + @TestMetadata("in.kt") + public void testIn() throws Exception { + runTest("compiler/testData/ir/irText/expressions/in.kt"); + } + + @Test + @TestMetadata("incrementDecrement.kt") + public void testIncrementDecrement() throws Exception { + runTest("compiler/testData/ir/irText/expressions/incrementDecrement.kt"); + } + + @Test + @TestMetadata("interfaceThisRef.kt") + public void testInterfaceThisRef() throws Exception { + runTest("compiler/testData/ir/irText/expressions/interfaceThisRef.kt"); + } + + @Test + @TestMetadata("kt16905.kt") + public void testKt16905() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt16905.kt"); + } + + @Test + @TestMetadata("kt23030.kt") + public void testKt23030() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt23030.kt"); + } + + @Test + @TestMetadata("kt24804.kt") + public void testKt24804() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt24804.kt"); + } + + @Test + @TestMetadata("kt27933.kt") + public void testKt27933() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt27933.kt"); + } + + @Test + @TestMetadata("kt28006.kt") + public void testKt28006() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt28006.kt"); + } + + @Test + @TestMetadata("kt28456.kt") + public void testKt28456() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt28456.kt"); + } + + @Test + @TestMetadata("kt28456a.kt") + public void testKt28456a() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt28456a.kt"); + } + + @Test + @TestMetadata("kt28456b.kt") + public void testKt28456b() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt28456b.kt"); + } + + @Test + @TestMetadata("kt30020.kt") + public void testKt30020() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt30020.kt"); + } + + @Test + @TestMetadata("kt30796.kt") + public void testKt30796() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt30796.kt"); + } + + @Test + @TestMetadata("kt35730.kt") + public void testKt35730() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt35730.kt"); + } + + @Test + @TestMetadata("kt36956.kt") + public void testKt36956() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt36956.kt"); + } + + @Test + @TestMetadata("kt36963.kt") + public void testKt36963() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt36963.kt"); + } + + @Test + @TestMetadata("kt37570.kt") + public void testKt37570() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt37570.kt"); + } + + @Test + @TestMetadata("kt37779.kt") + public void testKt37779() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt37779.kt"); + } + + @Test + @TestMetadata("kt42321.kt") + public void testKt42321() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt42321.kt"); + } + + @Test + @TestMetadata("kt45022.kt") + public void testKt45022() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt45022.kt"); + } + + @Test + @TestMetadata("kt47245.kt") + public void testKt47245() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt47245.kt"); + } + + @Test + @TestMetadata("kt47328.kt") + public void testKt47328() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt47328.kt"); + } + + @Test + @TestMetadata("kt47450.kt") + public void testKt47450() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt47450.kt"); + } + + @Test + @TestMetadata("kt48708.kt") + public void testKt48708() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt48708.kt"); + } + + @Test + @TestMetadata("kt48806.kt") + public void testKt48806() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt48806.kt"); + } + + @Test + @TestMetadata("kt49203.kt") + public void testKt49203() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt49203.kt"); + } + + @Test + @TestMetadata("kt50028.kt") + public void testKt50028() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt50028.kt"); + } + + @Test + @TestMetadata("kt51036.kt") + public void testKt51036() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt51036.kt"); + } + + @Test + @TestMetadata("lambdaInCAO.kt") + public void testLambdaInCAO() throws Exception { + runTest("compiler/testData/ir/irText/expressions/lambdaInCAO.kt"); + } + + @Test + @TestMetadata("literals.kt") + public void testLiterals() throws Exception { + runTest("compiler/testData/ir/irText/expressions/literals.kt"); + } + + @Test + @TestMetadata("memberTypeArguments.kt") + public void testMemberTypeArguments() throws Exception { + runTest("compiler/testData/ir/irText/expressions/memberTypeArguments.kt"); + } + + @Test + @TestMetadata("membersImportedFromObject.kt") + public void testMembersImportedFromObject() throws Exception { + runTest("compiler/testData/ir/irText/expressions/membersImportedFromObject.kt"); + } + + @Test + @TestMetadata("multipleSmartCasts.kt") + public void testMultipleSmartCasts() throws Exception { + runTest("compiler/testData/ir/irText/expressions/multipleSmartCasts.kt"); + } + + @Test + @TestMetadata("multipleThisReferences.kt") + public void testMultipleThisReferences() throws Exception { + runTest("compiler/testData/ir/irText/expressions/multipleThisReferences.kt"); + } + + @Test + @TestMetadata("objectAsCallable.kt") + public void testObjectAsCallable() throws Exception { + runTest("compiler/testData/ir/irText/expressions/objectAsCallable.kt"); + } + + @Test + @TestMetadata("objectByNameInsideObject.kt") + public void testObjectByNameInsideObject() throws Exception { + runTest("compiler/testData/ir/irText/expressions/objectByNameInsideObject.kt"); + } + + @Test + @TestMetadata("objectReference.kt") + public void testObjectReference() throws Exception { + runTest("compiler/testData/ir/irText/expressions/objectReference.kt"); + } + + @Test + @TestMetadata("objectReferenceInClosureInSuperConstructorCall.kt") + public void testObjectReferenceInClosureInSuperConstructorCall() throws Exception { + runTest("compiler/testData/ir/irText/expressions/objectReferenceInClosureInSuperConstructorCall.kt"); + } + + @Test + @TestMetadata("objectReferenceInFieldInitializer.kt") + public void testObjectReferenceInFieldInitializer() throws Exception { + runTest("compiler/testData/ir/irText/expressions/objectReferenceInFieldInitializer.kt"); + } + + @Test + @TestMetadata("outerClassInstanceReference.kt") + public void testOuterClassInstanceReference() throws Exception { + runTest("compiler/testData/ir/irText/expressions/outerClassInstanceReference.kt"); + } + + @Test + @TestMetadata("primitiveComparisons.kt") + public void testPrimitiveComparisons() throws Exception { + runTest("compiler/testData/ir/irText/expressions/primitiveComparisons.kt"); + } + + @Test + @TestMetadata("primitivesImplicitConversions.kt") + public void testPrimitivesImplicitConversions() throws Exception { + runTest("compiler/testData/ir/irText/expressions/primitivesImplicitConversions.kt"); + } + + @Test + @TestMetadata("references.kt") + public void testReferences() throws Exception { + runTest("compiler/testData/ir/irText/expressions/references.kt"); + } + + @Test + @TestMetadata("reflectionLiterals.kt") + public void testReflectionLiterals() throws Exception { + runTest("compiler/testData/ir/irText/expressions/reflectionLiterals.kt"); + } + + @Test + @TestMetadata("safeAssignment.kt") + public void testSafeAssignment() throws Exception { + runTest("compiler/testData/ir/irText/expressions/safeAssignment.kt"); + } + + @Test + @TestMetadata("safeCallWithIncrementDecrement.kt") + public void testSafeCallWithIncrementDecrement() throws Exception { + runTest("compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.kt"); + } + + @Test + @TestMetadata("safeCalls.kt") + public void testSafeCalls() throws Exception { + runTest("compiler/testData/ir/irText/expressions/safeCalls.kt"); + } + + @Test + @TestMetadata("signedToUnsignedConversions.kt") + public void testSignedToUnsignedConversions() throws Exception { + runTest("compiler/testData/ir/irText/expressions/signedToUnsignedConversions.kt"); + } + + @Test + @TestMetadata("simpleOperators.kt") + public void testSimpleOperators() throws Exception { + runTest("compiler/testData/ir/irText/expressions/simpleOperators.kt"); + } + + @Test + @TestMetadata("simpleUnaryOperators.kt") + public void testSimpleUnaryOperators() throws Exception { + runTest("compiler/testData/ir/irText/expressions/simpleUnaryOperators.kt"); + } + + @Test + @TestMetadata("smartCasts.kt") + public void testSmartCasts() throws Exception { + runTest("compiler/testData/ir/irText/expressions/smartCasts.kt"); + } + + @Test + @TestMetadata("smartCastsWithDestructuring.kt") + public void testSmartCastsWithDestructuring() throws Exception { + runTest("compiler/testData/ir/irText/expressions/smartCastsWithDestructuring.kt"); + } + + @Test + @TestMetadata("specializedTypeAliasConstructorCall.kt") + public void testSpecializedTypeAliasConstructorCall() throws Exception { + runTest("compiler/testData/ir/irText/expressions/specializedTypeAliasConstructorCall.kt"); + } + + @Test + @TestMetadata("stringComparisons.kt") + public void testStringComparisons() throws Exception { + runTest("compiler/testData/ir/irText/expressions/stringComparisons.kt"); + } + + @Test + @TestMetadata("stringPlus.kt") + public void testStringPlus() throws Exception { + runTest("compiler/testData/ir/irText/expressions/stringPlus.kt"); + } + + @Test + @TestMetadata("stringTemplates.kt") + public void testStringTemplates() throws Exception { + runTest("compiler/testData/ir/irText/expressions/stringTemplates.kt"); + } + + @Test + @TestMetadata("suspendConversionForExtensionFunction.kt") + public void testSuspendConversionForExtensionFunction() throws Exception { + runTest("compiler/testData/ir/irText/expressions/suspendConversionForExtensionFunction.kt"); + } + + @Test + @TestMetadata("suspendConversionInVararg.kt") + public void testSuspendConversionInVararg() throws Exception { + runTest("compiler/testData/ir/irText/expressions/suspendConversionInVararg.kt"); + } + + @Test + @TestMetadata("suspendConversionOnArbitraryExpression.kt") + public void testSuspendConversionOnArbitraryExpression() throws Exception { + runTest("compiler/testData/ir/irText/expressions/suspendConversionOnArbitraryExpression.kt"); + } + + @Test + @TestMetadata("suspendConversionWithFunInterfaces.kt") + public void testSuspendConversionWithFunInterfaces() throws Exception { + runTest("compiler/testData/ir/irText/expressions/suspendConversionWithFunInterfaces.kt"); + } + + @Test + @TestMetadata("temporaryInEnumEntryInitializer.kt") + public void testTemporaryInEnumEntryInitializer() throws Exception { + runTest("compiler/testData/ir/irText/expressions/temporaryInEnumEntryInitializer.kt"); + } + + @Test + @TestMetadata("temporaryInInitBlock.kt") + public void testTemporaryInInitBlock() throws Exception { + runTest("compiler/testData/ir/irText/expressions/temporaryInInitBlock.kt"); + } + + @Test + @TestMetadata("thisOfGenericOuterClass.kt") + public void testThisOfGenericOuterClass() throws Exception { + runTest("compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.kt"); + } + + @Test + @TestMetadata("thisRefToObjectInNestedClassConstructorCall.kt") + public void testThisRefToObjectInNestedClassConstructorCall() throws Exception { + runTest("compiler/testData/ir/irText/expressions/thisRefToObjectInNestedClassConstructorCall.kt"); + } + + @Test + @TestMetadata("thisReferenceBeforeClassDeclared.kt") + public void testThisReferenceBeforeClassDeclared() throws Exception { + runTest("compiler/testData/ir/irText/expressions/thisReferenceBeforeClassDeclared.kt"); + } + + @Test + @TestMetadata("throw.kt") + public void testThrow() throws Exception { + runTest("compiler/testData/ir/irText/expressions/throw.kt"); + } + + @Test + @TestMetadata("tryCatch.kt") + public void testTryCatch() throws Exception { + runTest("compiler/testData/ir/irText/expressions/tryCatch.kt"); + } + + @Test + @TestMetadata("tryCatchWithImplicitCast.kt") + public void testTryCatchWithImplicitCast() throws Exception { + runTest("compiler/testData/ir/irText/expressions/tryCatchWithImplicitCast.kt"); + } + + @Test + @TestMetadata("typeAliasConstructorReference.kt") + public void testTypeAliasConstructorReference() throws Exception { + runTest("compiler/testData/ir/irText/expressions/typeAliasConstructorReference.kt"); + } + + @Test + @TestMetadata("typeOperators.kt") + public void testTypeOperators() throws Exception { + runTest("compiler/testData/ir/irText/expressions/typeOperators.kt"); + } + + @Test + @TestMetadata("typeParameterClassLiteral.kt") + public void testTypeParameterClassLiteral() throws Exception { + runTest("compiler/testData/ir/irText/expressions/typeParameterClassLiteral.kt"); + } + + @Test + @TestMetadata("unsignedIntegerLiterals.kt") + public void testUnsignedIntegerLiterals() throws Exception { + runTest("compiler/testData/ir/irText/expressions/unsignedIntegerLiterals.kt"); + } + + @Test + @TestMetadata("useImportedMember.kt") + public void testUseImportedMember() throws Exception { + runTest("compiler/testData/ir/irText/expressions/useImportedMember.kt"); + } + + @Test + @TestMetadata("values.kt") + public void testValues() throws Exception { + runTest("compiler/testData/ir/irText/expressions/values.kt"); + } + + @Test + @TestMetadata("vararg.kt") + public void testVararg() throws Exception { + runTest("compiler/testData/ir/irText/expressions/vararg.kt"); + } + + @Test + @TestMetadata("varargWithImplicitCast.kt") + public void testVarargWithImplicitCast() throws Exception { + runTest("compiler/testData/ir/irText/expressions/varargWithImplicitCast.kt"); + } + + @Test + @TestMetadata("variableAsFunctionCall.kt") + public void testVariableAsFunctionCall() throws Exception { + runTest("compiler/testData/ir/irText/expressions/variableAsFunctionCall.kt"); + } + + @Test + @TestMetadata("variableAsFunctionCallWithGenerics.kt") + public void testVariableAsFunctionCallWithGenerics() throws Exception { + runTest("compiler/testData/ir/irText/expressions/variableAsFunctionCallWithGenerics.kt"); + } + + @Test + @TestMetadata("when.kt") + public void testWhen() throws Exception { + runTest("compiler/testData/ir/irText/expressions/when.kt"); + } + + @Test + @TestMetadata("whenCoercedToUnit.kt") + public void testWhenCoercedToUnit() throws Exception { + runTest("compiler/testData/ir/irText/expressions/whenCoercedToUnit.kt"); + } + + @Test + @TestMetadata("whenElse.kt") + public void testWhenElse() throws Exception { + runTest("compiler/testData/ir/irText/expressions/whenElse.kt"); + } + + @Test + @TestMetadata("whenReturn.kt") + public void testWhenReturn() throws Exception { + runTest("compiler/testData/ir/irText/expressions/whenReturn.kt"); + } + + @Test + @TestMetadata("whenReturnUnit.kt") + public void testWhenReturnUnit() throws Exception { + runTest("compiler/testData/ir/irText/expressions/whenReturnUnit.kt"); + } + + @Test + @TestMetadata("whenSmartCastToEnum.kt") + public void testWhenSmartCastToEnum() throws Exception { + runTest("compiler/testData/ir/irText/expressions/whenSmartCastToEnum.kt"); + } + + @Test + @TestMetadata("whenUnusedExpression.kt") + public void testWhenUnusedExpression() throws Exception { + runTest("compiler/testData/ir/irText/expressions/whenUnusedExpression.kt"); + } + + @Test + @TestMetadata("whenWithSubjectVariable.kt") + public void testWhenWithSubjectVariable() throws Exception { + runTest("compiler/testData/ir/irText/expressions/whenWithSubjectVariable.kt"); + } + + @Test + @TestMetadata("whileDoWhile.kt") + public void testWhileDoWhile() throws Exception { + runTest("compiler/testData/ir/irText/expressions/whileDoWhile.kt"); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/expressions/callableReferences") + @TestDataPath("$PROJECT_ROOT") + public class CallableReferences { + @Test + @TestMetadata("adaptedExtensionFunctions.kt") + public void testAdaptedExtensionFunctions() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/adaptedExtensionFunctions.kt"); + } + + @Test + @TestMetadata("adaptedWithCoercionToUnit.kt") + public void testAdaptedWithCoercionToUnit() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/adaptedWithCoercionToUnit.kt"); + } + + @Test + public void testAllFilesPresentInCallableReferences() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/expressions/callableReferences"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("boundInlineAdaptedReference.kt") + public void testBoundInlineAdaptedReference() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/boundInlineAdaptedReference.kt"); + } + + @Test + @TestMetadata("boundInnerGenericConstructor.kt") + public void testBoundInnerGenericConstructor() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/boundInnerGenericConstructor.kt"); + } + + @Test + @TestMetadata("caoWithAdaptationForSam.kt") + public void testCaoWithAdaptationForSam() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/caoWithAdaptationForSam.kt"); + } + + @Test + @TestMetadata("constructorWithAdaptedArguments.kt") + public void testConstructorWithAdaptedArguments() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/constructorWithAdaptedArguments.kt"); + } + + @Test + @TestMetadata("funWithDefaultParametersAsKCallableStar.kt") + public void testFunWithDefaultParametersAsKCallableStar() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/funWithDefaultParametersAsKCallableStar.kt"); + } + + @Test + @TestMetadata("genericLocalClassConstructorReference.kt") + public void testGenericLocalClassConstructorReference() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/genericLocalClassConstructorReference.kt"); + } + + @Test + @TestMetadata("genericMember.kt") + public void testGenericMember() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/genericMember.kt"); + } + + @Test + @TestMetadata("importedFromObject.kt") + public void testImportedFromObject() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/importedFromObject.kt"); + } + + @Test + @TestMetadata("kt37131.kt") + public void testKt37131() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/kt37131.kt"); + } + + @Test + @TestMetadata("kt46069.kt") + public void testKt46069() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/kt46069.kt"); + } + + @Test + @TestMetadata("suspendConversion.kt") + public void testSuspendConversion() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/suspendConversion.kt"); + } + + @Test + @TestMetadata("typeArguments.kt") + public void testTypeArguments() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/typeArguments.kt"); + } + + @Test + @TestMetadata("unboundMemberReferenceWithAdaptedArguments.kt") + public void testUnboundMemberReferenceWithAdaptedArguments() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/unboundMemberReferenceWithAdaptedArguments.kt"); + } + + @Test + @TestMetadata("varargFunImportedFromObject.kt") + public void testVarargFunImportedFromObject() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/varargFunImportedFromObject.kt"); + } + + @Test + @TestMetadata("withAdaptationForSam.kt") + public void testWithAdaptationForSam() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/withAdaptationForSam.kt"); + } + + @Test + @TestMetadata("withAdaptedArguments.kt") + public void testWithAdaptedArguments() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/withAdaptedArguments.kt"); + } + + @Test + @TestMetadata("withArgumentAdaptationAndReceiver.kt") + public void testWithArgumentAdaptationAndReceiver() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/withArgumentAdaptationAndReceiver.kt"); + } + + @Test + @TestMetadata("withVarargViewedAsArray.kt") + public void testWithVarargViewedAsArray() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/withVarargViewedAsArray.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/expressions/floatingPointComparisons") + @TestDataPath("$PROJECT_ROOT") + public class FloatingPointComparisons { + @Test + public void testAllFilesPresentInFloatingPointComparisons() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/expressions/floatingPointComparisons"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("comparableWithDoubleOrFloat.kt") + public void testComparableWithDoubleOrFloat() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/comparableWithDoubleOrFloat.kt"); + } + + @Test + @TestMetadata("eqeqRhsConditionPossiblyAffectingLhs.kt") + public void testEqeqRhsConditionPossiblyAffectingLhs() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/eqeqRhsConditionPossiblyAffectingLhs.kt"); + } + + @Test + @TestMetadata("floatingPointCompareTo.kt") + public void testFloatingPointCompareTo() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointCompareTo.kt"); + } + + @Test + @TestMetadata("floatingPointEqeq.kt") + public void testFloatingPointEqeq() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointEqeq.kt"); + } + + @Test + @TestMetadata("floatingPointEquals.kt") + public void testFloatingPointEquals() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointEquals.kt"); + } + + @Test + @TestMetadata("floatingPointExcleq.kt") + public void testFloatingPointExcleq() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointExcleq.kt"); + } + + @Test + @TestMetadata("floatingPointLess.kt") + public void testFloatingPointLess() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointLess.kt"); + } + + @Test + @TestMetadata("nullableAnyAsIntToDouble.kt") + public void testNullableAnyAsIntToDouble() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableAnyAsIntToDouble.kt"); + } + + @Test + @TestMetadata("nullableFloatingPointEqeq.kt") + public void testNullableFloatingPointEqeq() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableFloatingPointEqeq.kt"); + } + + @Test + @TestMetadata("typeParameterWithPrimitiveNumericSupertype.kt") + public void testTypeParameterWithPrimitiveNumericSupertype() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/typeParameterWithPrimitiveNumericSupertype.kt"); + } + + @Test + @TestMetadata("whenByFloatingPoint.kt") + public void testWhenByFloatingPoint() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/expressions/funInterface") + @TestDataPath("$PROJECT_ROOT") + public class FunInterface { + @Test + public void testAllFilesPresentInFunInterface() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/expressions/funInterface"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("arrayAsVarargAfterSamArgument_fi.kt") + public void testArrayAsVarargAfterSamArgument_fi() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funInterface/arrayAsVarargAfterSamArgument_fi.kt"); + } + + @Test + @TestMetadata("basicFunInterfaceConversion.kt") + public void testBasicFunInterfaceConversion() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funInterface/basicFunInterfaceConversion.kt"); + } + + @Test + @TestMetadata("castFromAny.kt") + public void testCastFromAny() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funInterface/castFromAny.kt"); + } + + @Test + @TestMetadata("functionSupertype.kt") + public void testFunctionSupertype() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funInterface/functionSupertype.kt"); + } + + @Test + @TestMetadata("partialSam.kt") + public void testPartialSam() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funInterface/partialSam.kt"); + } + + @Test + @TestMetadata("samConversionInVarargs.kt") + public void testSamConversionInVarargs() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargs.kt"); + } + + @Test + @TestMetadata("samConversionInVarargsMixed.kt") + public void testSamConversionInVarargsMixed() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargsMixed.kt"); + } + + @Test + @TestMetadata("samConversionOnCallableReference.kt") + public void testSamConversionOnCallableReference() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funInterface/samConversionOnCallableReference.kt"); + } + + @Test + @TestMetadata("samConversionsWithSmartCasts.kt") + public void testSamConversionsWithSmartCasts() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funInterface/samConversionsWithSmartCasts.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/expressions/sam") + @TestDataPath("$PROJECT_ROOT") + public class Sam { + @Test + public void testAllFilesPresentInSam() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/expressions/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/firProblems") + @TestDataPath("$PROJECT_ROOT") + public class FirProblems { + @Test + @TestMetadata("AbstractMutableMap.kt") + public void testAbstractMutableMap() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/AbstractMutableMap.kt"); + } + + @Test + public void testAllFilesPresentInFirProblems() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/firProblems"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("AnnotationLoader.kt") + public void testAnnotationLoader() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/AnnotationLoader.kt"); + } + + @Test + @TestMetadata("ArrayListOverrides.kt") + public void testArrayListOverrides() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/ArrayListOverrides.kt"); + } + + @Test + @TestMetadata("ArrayMap.kt") + public void testArrayMap() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/ArrayMap.kt"); + } + + @Test + @TestMetadata("candidateSymbol.kt") + public void testCandidateSymbol() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/candidateSymbol.kt"); + } + + @Test + @TestMetadata("cannotCastToFunction.kt") + public void testCannotCastToFunction() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/cannotCastToFunction.kt"); + } + + @Test + @TestMetadata("DeepCopyIrTree.kt") + public void testDeepCopyIrTree() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/DeepCopyIrTree.kt"); + } + + @Test + @TestMetadata("deprecated.kt") + public void testDeprecated() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/deprecated.kt"); + } + + @Test + @TestMetadata("emptyWhen.kt") + public void testEmptyWhen() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/emptyWhen.kt"); + } + + @Test + @TestMetadata("ErrorInDefaultValue.kt") + public void testErrorInDefaultValue() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/ErrorInDefaultValue.kt"); + } + + @Test + @TestMetadata("Fir2IrClassifierStorage.kt") + public void testFir2IrClassifierStorage() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/Fir2IrClassifierStorage.kt"); + } + + @Test + @TestMetadata("FirBuilder.kt") + public void testFirBuilder() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/FirBuilder.kt"); + } + + @Test + @TestMetadata("FlushFromAnonymous.kt") + public void testFlushFromAnonymous() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/FlushFromAnonymous.kt"); + } + + @Test + @TestMetadata("functionLiteralGenericSignature.kt") + public void testFunctionLiteralGenericSignature() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/functionLiteralGenericSignature.kt"); + } + + @Test + @TestMetadata("ImplicitReceiverStack.kt") + public void testImplicitReceiverStack() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.kt"); + } + + @Test + @TestMetadata("inapplicableCollectionSet.kt") + public void testInapplicableCollectionSet() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.kt"); + } + + @Test + @TestMetadata("InnerClassInAnonymous.kt") + public void testInnerClassInAnonymous() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/InnerClassInAnonymous.kt"); + } + + @Test + @TestMetadata("integerLiteralWithExpectedTypealiasType.kt") + public void testIntegerLiteralWithExpectedTypealiasType() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/integerLiteralWithExpectedTypealiasType.kt"); + } + + @Test + @TestMetadata("kt43342.kt") + public void testKt43342() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/kt43342.kt"); + } + + @Test + @TestMetadata("kt55458.kt") + public void testKt55458() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/kt55458.kt"); + } + + @Test + @TestMetadata("lambdaInEnumEntryConstructorCall.kt") + public void testLambdaInEnumEntryConstructorCall() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/lambdaInEnumEntryConstructorCall.kt"); + } + + @Test + @TestMetadata("localClassUsedBeforeDeclaration.kt") + public void testLocalClassUsedBeforeDeclaration() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/localClassUsedBeforeDeclaration.kt"); + } + + @Test + @TestMetadata("localCompanion.kt") + public void testLocalCompanion() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/localCompanion.kt"); + } + + @Test + @TestMetadata("readWriteProperty.kt") + public void testReadWriteProperty() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/readWriteProperty.kt"); + } + + @Test + @TestMetadata("recursiveCapturedTypeInPropertyReference.kt") + public void testRecursiveCapturedTypeInPropertyReference() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.kt"); + } + + @Test + @TestMetadata("reflectFindAnnotationOnDefaultMethodParameter.kt") + public void testReflectFindAnnotationOnDefaultMethodParameter() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/reflectFindAnnotationOnDefaultMethodParameter.kt"); + } + + @Test + @TestMetadata("reflectGetOnNullableTypeAlias.kt") + public void testReflectGetOnNullableTypeAlias() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/reflectGetOnNullableTypeAlias.kt"); + } + + @Test + @TestMetadata("SafeLetWithReturn.kt") + public void testSafeLetWithReturn() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/SafeLetWithReturn.kt"); + } + + @Test + @TestMetadata("SignatureClash.kt") + public void testSignatureClash() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/SignatureClash.kt"); + } + + @Test + @TestMetadata("SimpleTypeMarker.kt") + public void testSimpleTypeMarker() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/SimpleTypeMarker.kt"); + } + + @Test + @TestMetadata("thisInEnumConstructor.kt") + public void testThisInEnumConstructor() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/thisInEnumConstructor.kt"); + } + + @Test + @TestMetadata("TypeParameterBounds.kt") + public void testTypeParameterBounds() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/TypeParameterBounds.kt"); + } + + @Test + @TestMetadata("typeVariableAfterBuildMap.kt") + public void testTypeVariableAfterBuildMap() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.kt"); + } + + @Test + @TestMetadata("VarInInit.kt") + public void testVarInInit() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/VarInInit.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/js") + @TestDataPath("$PROJECT_ROOT") + public class Js { + @Test + public void testAllFilesPresentInJs() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/js/dynamic") + @TestDataPath("$PROJECT_ROOT") + public class Dynamic { + @Test + public void testAllFilesPresentInDynamic() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/dynamic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("dynamicAndMembersOfAny.kt") + public void testDynamicAndMembersOfAny() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.kt"); + } + + @Test + @TestMetadata("dynamicArrayAccess.kt") + public void testDynamicArrayAccess() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAccess.kt"); + } + + @Test + @TestMetadata("dynamicArrayAssignment.kt") + public void testDynamicArrayAssignment() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.kt"); + } + + @Test + @TestMetadata("dynamicArrayAugmentedAssignment.kt") + public void testDynamicArrayAugmentedAssignment() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAugmentedAssignment.kt"); + } + + @Test + @TestMetadata("dynamicArrayIncrementDecrement.kt") + public void testDynamicArrayIncrementDecrement() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.kt"); + } + + @Test + @TestMetadata("dynamicBinaryEqualityOperator.kt") + public void testDynamicBinaryEqualityOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryEqualityOperator.kt"); + } + + @Test + @TestMetadata("dynamicBinaryLogicalOperator.kt") + public void testDynamicBinaryLogicalOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryLogicalOperator.kt"); + } + + @Test + @TestMetadata("dynamicBinaryOperator.kt") + public void testDynamicBinaryOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryOperator.kt"); + } + + @Test + @TestMetadata("dynamicBinaryRelationalOperator.kt") + public void testDynamicBinaryRelationalOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryRelationalOperator.kt"); + } + + @Test + @TestMetadata("dynamicCall.kt") + public void testDynamicCall() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicCall.kt"); + } + + @Test + @TestMetadata("dynamicElvisOperator.kt") + public void testDynamicElvisOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.kt"); + } + + @Test + @TestMetadata("dynamicExclExclOperator.kt") + public void testDynamicExclExclOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt"); + } + + @Test + @TestMetadata("dynamicInfixCall.kt") + public void testDynamicInfixCall() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicInfixCall.kt"); + } + + @Test + @TestMetadata("dynamicMemberAccess.kt") + public void testDynamicMemberAccess() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.kt"); + } + + @Test + @TestMetadata("dynamicMemberAssignment.kt") + public void testDynamicMemberAssignment() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.kt"); + } + + @Test + @TestMetadata("dynamicMemberAugmentedAssignment.kt") + public void testDynamicMemberAugmentedAssignment() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.kt"); + } + + @Test + @TestMetadata("dynamicMemberIncrementDecrement.kt") + public void testDynamicMemberIncrementDecrement() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.kt"); + } + + @Test + @TestMetadata("dynamicUnaryOperator.kt") + public void testDynamicUnaryOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicUnaryOperator.kt"); + } + + @Test + @TestMetadata("dynamicWithSmartCast.kt") + public void testDynamicWithSmartCast() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.kt"); + } + + @Test + @TestMetadata("implicitCastFromDynamic.kt") + public void testImplicitCastFromDynamic() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/implicitCastFromDynamic.kt"); + } + + @Test + @TestMetadata("implicitCastToDynamic.kt") + public void testImplicitCastToDynamic() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.kt"); + } + + @Test + @TestMetadata("invokeOperator.kt") + public void testInvokeOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/invokeOperator.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/js/external") + @TestDataPath("$PROJECT_ROOT") + public class External { + @Test + public void testAllFilesPresentInExternal() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/external"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("kt38765.kt") + public void testKt38765() throws Exception { + runTest("compiler/testData/ir/irText/js/external/kt38765.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/js/native") + @TestDataPath("$PROJECT_ROOT") + public class Native { + @Test + public void testAllFilesPresentInNative() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/native"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("nativeNativeKotlin.kt") + public void testNativeNativeKotlin() throws Exception { + runTest("compiler/testData/ir/irText/js/native/nativeNativeKotlin.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/lambdas") + @TestDataPath("$PROJECT_ROOT") + public class Lambdas { + @Test + public void testAllFilesPresentInLambdas() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/lambdas"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("anonymousFunction.kt") + public void testAnonymousFunction() throws Exception { + runTest("compiler/testData/ir/irText/lambdas/anonymousFunction.kt"); + } + + @Test + @TestMetadata("destructuringInLambda.kt") + public void testDestructuringInLambda() throws Exception { + runTest("compiler/testData/ir/irText/lambdas/destructuringInLambda.kt"); + } + + @Test + @TestMetadata("extensionLambda.kt") + public void testExtensionLambda() throws Exception { + runTest("compiler/testData/ir/irText/lambdas/extensionLambda.kt"); + } + + @Test + @TestMetadata("justLambda.kt") + public void testJustLambda() throws Exception { + runTest("compiler/testData/ir/irText/lambdas/justLambda.kt"); + } + + @Test + @TestMetadata("lambdaReturningUnit.kt") + public void testLambdaReturningUnit() throws Exception { + runTest("compiler/testData/ir/irText/lambdas/lambdaReturningUnit.kt"); + } + + @Test + @TestMetadata("localFunction.kt") + public void testLocalFunction() throws Exception { + runTest("compiler/testData/ir/irText/lambdas/localFunction.kt"); + } + + @Test + @TestMetadata("multipleImplicitReceivers.kt") + public void testMultipleImplicitReceivers() throws Exception { + runTest("compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.kt"); + } + + @Test + @TestMetadata("nonLocalReturn.kt") + public void testNonLocalReturn() throws Exception { + runTest("compiler/testData/ir/irText/lambdas/nonLocalReturn.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/properties") + @TestDataPath("$PROJECT_ROOT") + public class Properties { + @Test + public void testAllFilesPresentInProperties() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/properties/backingField") + @TestDataPath("$PROJECT_ROOT") + public class BackingField { + @Test + public void testAllFilesPresentInBackingField() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("backingFieldVisibility.kt") + public void testBackingFieldVisibility() throws Exception { + runTest("compiler/testData/ir/irText/properties/backingField/backingFieldVisibility.kt"); + } + + @Test + @TestMetadata("explicitBackingFieldType.kt") + public void testExplicitBackingFieldType() throws Exception { + runTest("compiler/testData/ir/irText/properties/backingField/explicitBackingFieldType.kt"); + } + + @Test + @TestMetadata("independentBackingFieldType.kt") + public void testIndependentBackingFieldType() throws Exception { + runTest("compiler/testData/ir/irText/properties/backingField/independentBackingFieldType.kt"); + } + + @Test + @TestMetadata("propertyTypeNarrowing.kt") + public void testPropertyTypeNarrowing() throws Exception { + runTest("compiler/testData/ir/irText/properties/backingField/propertyTypeNarrowing.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/regressions") + @TestDataPath("$PROJECT_ROOT") + public class Regressions { + @Test + public void testAllFilesPresentInRegressions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/regressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("coercionInLoop.kt") + public void testCoercionInLoop() throws Exception { + runTest("compiler/testData/ir/irText/regressions/coercionInLoop.kt"); + } + + @Test + @TestMetadata("integerCoercionToT.kt") + public void testIntegerCoercionToT() throws Exception { + runTest("compiler/testData/ir/irText/regressions/integerCoercionToT.kt"); + } + + @Test + @TestMetadata("kt24114.kt") + public void testKt24114() throws Exception { + runTest("compiler/testData/ir/irText/regressions/kt24114.kt"); + } + + @Test + @TestMetadata("kt45236.kt") + public void testKt45236() throws Exception { + runTest("compiler/testData/ir/irText/regressions/kt45236.kt"); + } + + @Test + @TestMetadata("newInferenceFixationOrder1.kt") + public void testNewInferenceFixationOrder1() throws Exception { + runTest("compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.kt"); + } + + @Test + @TestMetadata("typeAliasCtorForGenericClass.kt") + public void testTypeAliasCtorForGenericClass() throws Exception { + runTest("compiler/testData/ir/irText/regressions/typeAliasCtorForGenericClass.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/singletons") + @TestDataPath("$PROJECT_ROOT") + public class Singletons { + @Test + public void testAllFilesPresentInSingletons() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/singletons"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("companion.kt") + public void testCompanion() throws Exception { + runTest("compiler/testData/ir/irText/singletons/companion.kt"); + } + + @Test + @TestMetadata("enumEntry.kt") + public void testEnumEntry() throws Exception { + runTest("compiler/testData/ir/irText/singletons/enumEntry.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() throws Exception { + runTest("compiler/testData/ir/irText/singletons/object.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/stubs") + @TestDataPath("$PROJECT_ROOT") + public class Stubs { + @Test + public void testAllFilesPresentInStubs() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/stubs"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("builtinMap.kt") + public void testBuiltinMap() throws Exception { + runTest("compiler/testData/ir/irText/stubs/builtinMap.kt"); + } + + @Test + @TestMetadata("constFromBuiltins.kt") + public void testConstFromBuiltins() throws Exception { + runTest("compiler/testData/ir/irText/stubs/constFromBuiltins.kt"); + } + + @Test + @TestMetadata("genericClassInDifferentModule.kt") + public void testGenericClassInDifferentModule() throws Exception { + runTest("compiler/testData/ir/irText/stubs/genericClassInDifferentModule.kt"); + } + + @Test + @TestMetadata("kotlinInnerClass.kt") + public void testKotlinInnerClass() throws Exception { + runTest("compiler/testData/ir/irText/stubs/kotlinInnerClass.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/ir/irText/stubs/simple.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/types") + @TestDataPath("$PROJECT_ROOT") + public class Types { + @Test + @TestMetadata("abbreviatedTypes.kt") + public void testAbbreviatedTypes() throws Exception { + runTest("compiler/testData/ir/irText/types/abbreviatedTypes.kt"); + } + + @Test + public void testAllFilesPresentInTypes() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/types"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("castsInsideCoroutineInference.kt") + public void testCastsInsideCoroutineInference() throws Exception { + runTest("compiler/testData/ir/irText/types/castsInsideCoroutineInference.kt"); + } + + @Test + @TestMetadata("coercionToUnitInLambdaReturnValue.kt") + public void testCoercionToUnitInLambdaReturnValue() throws Exception { + runTest("compiler/testData/ir/irText/types/coercionToUnitInLambdaReturnValue.kt"); + } + + @Test + @TestMetadata("definitelyNonNull.kt") + public void testDefinitelyNonNull() throws Exception { + runTest("compiler/testData/ir/irText/types/definitelyNonNull.kt"); + } + + @Test + @TestMetadata("definitelyNonNullOverride.kt") + public void testDefinitelyNonNullOverride() throws Exception { + runTest("compiler/testData/ir/irText/types/definitelyNonNullOverride.kt"); + } + + @Test + @TestMetadata("definitelyNonNullSAM.kt") + public void testDefinitelyNonNullSAM() throws Exception { + runTest("compiler/testData/ir/irText/types/definitelyNonNullSAM.kt"); + } + + @Test + @TestMetadata("definitelyNotNullAsArgument.kt") + public void testDefinitelyNotNullAsArgument() throws Exception { + runTest("compiler/testData/ir/irText/types/definitelyNotNullAsArgument.kt"); + } + + @Test + @TestMetadata("definitelyNotNullAsReceiver.kt") + public void testDefinitelyNotNullAsReceiver() throws Exception { + runTest("compiler/testData/ir/irText/types/definitelyNotNullAsReceiver.kt"); + } + + @Test + @TestMetadata("definitelyNotNullWithIntersection1.kt") + public void testDefinitelyNotNullWithIntersection1() throws Exception { + runTest("compiler/testData/ir/irText/types/definitelyNotNullWithIntersection1.kt"); + } + + @Test + @TestMetadata("dontLeaveStubTypesInSetter.kt") + public void testDontLeaveStubTypesInSetter() throws Exception { + runTest("compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.kt"); + } + + @Test + @TestMetadata("genericDelegatedDeepProperty.kt") + public void testGenericDelegatedDeepProperty() throws Exception { + runTest("compiler/testData/ir/irText/types/genericDelegatedDeepProperty.kt"); + } + + @Test + @TestMetadata("genericFunWithStar.kt") + public void testGenericFunWithStar() throws Exception { + runTest("compiler/testData/ir/irText/types/genericFunWithStar.kt"); + } + + @Test + @TestMetadata("genericPropertyReferenceType.kt") + public void testGenericPropertyReferenceType() throws Exception { + runTest("compiler/testData/ir/irText/types/genericPropertyReferenceType.kt"); + } + + @Test + @TestMetadata("inStarProjectionInReceiverType.kt") + public void testInStarProjectionInReceiverType() throws Exception { + runTest("compiler/testData/ir/irText/types/inStarProjectionInReceiverType.kt"); + } + + @Test + @TestMetadata("intersectionType1.kt") + public void testIntersectionType1() throws Exception { + runTest("compiler/testData/ir/irText/types/intersectionType1.kt"); + } + + @Test + @TestMetadata("intersectionType2.kt") + public void testIntersectionType2() throws Exception { + runTest("compiler/testData/ir/irText/types/intersectionType2.kt"); + } + + @Test + @TestMetadata("intersectionType3.kt") + public void testIntersectionType3() throws Exception { + runTest("compiler/testData/ir/irText/types/intersectionType3.kt"); + } + + @Test + @TestMetadata("intersectionTypeInSamType.kt") + public void testIntersectionTypeInSamType() throws Exception { + runTest("compiler/testData/ir/irText/types/intersectionTypeInSamType.kt"); + } + + @Test + @TestMetadata("kt36143.kt") + public void testKt36143() throws Exception { + runTest("compiler/testData/ir/irText/types/kt36143.kt"); + } + + @Test + @TestMetadata("kt49526.kt") + public void testKt49526() throws Exception { + runTest("compiler/testData/ir/irText/types/kt49526.kt"); + } + + @Test + @TestMetadata("localVariableOfIntersectionType.kt") + public void testLocalVariableOfIntersectionType() throws Exception { + runTest("compiler/testData/ir/irText/types/localVariableOfIntersectionType.kt"); + } + + @Test + @TestMetadata("smartCastOnFakeOverrideReceiver.kt") + public void testSmartCastOnFakeOverrideReceiver() throws Exception { + runTest("compiler/testData/ir/irText/types/smartCastOnFakeOverrideReceiver.kt"); + } + + @Test + @TestMetadata("smartCastOnReceiverOfGenericType.kt") + public void testSmartCastOnReceiverOfGenericType() throws Exception { + runTest("compiler/testData/ir/irText/types/smartCastOnReceiverOfGenericType.kt"); + } + + @Test + @TestMetadata("starProjection.kt") + public void testStarProjection() throws Exception { + runTest("compiler/testData/ir/irText/types/starProjection.kt"); + } + + @Test + @TestMetadata("typeAliasWithUnsafeVariance.kt") + public void testTypeAliasWithUnsafeVariance() throws Exception { + runTest("compiler/testData/ir/irText/types/typeAliasWithUnsafeVariance.kt"); + } + + @Test + @TestMetadata("typeCheckOnDefinitelyNotNull.kt") + public void testTypeCheckOnDefinitelyNotNull() throws Exception { + runTest("compiler/testData/ir/irText/types/typeCheckOnDefinitelyNotNull.kt"); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/types/nullChecks") + @TestDataPath("$PROJECT_ROOT") + public class NullChecks { + @Test + public void testAllFilesPresentInNullChecks() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/types/nullChecks"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult") + @TestDataPath("$PROJECT_ROOT") + public class NullCheckOnLambdaResult { + @Test + public void testAllFilesPresentInNullCheckOnLambdaResult() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + } } } }