[test] Move irJsText tests to irText directory

So that all irText tests could be found in one place
This commit is contained in:
Sergej Jaskiewicz
2023-03-09 19:00:54 +01:00
committed by Space Team
parent ebafdd3af0
commit 17a8fd2c0b
117 changed files with 3625 additions and 159 deletions
@@ -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);
}