JVM_IR KT-47984 add test for argument reordering

This commit is contained in:
Dmitry Petrov
2021-08-10 15:02:35 +03:00
committed by TeamCityServer
parent edd2ca775b
commit 15c41b2610
12 changed files with 199 additions and 0 deletions
@@ -2299,6 +2299,22 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
}
}
@Nested
@TestMetadata("compiler/testData/codegen/boxInline/inlineArgsInplace")
@TestDataPath("$PROJECT_ROOT")
public class InlineArgsInplace {
@Test
public void testAllFilesPresentInInlineArgsInplace() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineArgsInplace"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@Test
@TestMetadata("callArgumentReordering.kt")
public void testCallArgumentReordering() throws Exception {
runTest("compiler/testData/codegen/boxInline/inlineArgsInplace/callArgumentReordering.kt");
}
}
@Nested
@TestMetadata("compiler/testData/codegen/boxInline/inlineClasses")
@TestDataPath("$PROJECT_ROOT")
@@ -2299,6 +2299,22 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
}
}
@Nested
@TestMetadata("compiler/testData/codegen/boxInline/inlineArgsInplace")
@TestDataPath("$PROJECT_ROOT")
public class InlineArgsInplace {
@Test
public void testAllFilesPresentInInlineArgsInplace() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineArgsInplace"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@Test
@TestMetadata("callArgumentReordering.kt")
public void testCallArgumentReordering() throws Exception {
runTest("compiler/testData/codegen/boxInline/inlineArgsInplace/callArgumentReordering.kt");
}
}
@Nested
@TestMetadata("compiler/testData/codegen/boxInline/inlineClasses")
@TestDataPath("$PROJECT_ROOT")
@@ -2311,6 +2311,22 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli
}
}
@Nested
@TestMetadata("compiler/testData/codegen/boxInline/inlineArgsInplace")
@TestDataPath("$PROJECT_ROOT")
public class InlineArgsInplace {
@Test
public void testAllFilesPresentInInlineArgsInplace() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineArgsInplace"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
@Test
@TestMetadata("callArgumentReordering.kt")
public void testCallArgumentReordering() throws Exception {
runTest("compiler/testData/codegen/boxInline/inlineArgsInplace/callArgumentReordering.kt");
}
}
@Nested
@TestMetadata("compiler/testData/codegen/boxInline/inlineClasses")
@TestDataPath("$PROJECT_ROOT")
@@ -2311,6 +2311,22 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC
}
}
@Nested
@TestMetadata("compiler/testData/codegen/boxInline/inlineArgsInplace")
@TestDataPath("$PROJECT_ROOT")
public class InlineArgsInplace {
@Test
public void testAllFilesPresentInInlineArgsInplace() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineArgsInplace"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
@Test
@TestMetadata("callArgumentReordering.kt")
public void testCallArgumentReordering() throws Exception {
runTest("compiler/testData/codegen/boxInline/inlineArgsInplace/callArgumentReordering.kt");
}
}
@Nested
@TestMetadata("compiler/testData/codegen/boxInline/inlineClasses")
@TestDataPath("$PROJECT_ROOT")
@@ -2311,6 +2311,22 @@ public class IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated extends Ab
}
}
@Nested
@TestMetadata("compiler/testData/codegen/boxInline/inlineArgsInplace")
@TestDataPath("$PROJECT_ROOT")
public class InlineArgsInplace {
@Test
public void testAllFilesPresentInInlineArgsInplace() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineArgsInplace"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
@Test
@TestMetadata("callArgumentReordering.kt")
public void testCallArgumentReordering() throws Exception {
runTest("compiler/testData/codegen/boxInline/inlineArgsInplace/callArgumentReordering.kt");
}
}
@Nested
@TestMetadata("compiler/testData/codegen/boxInline/inlineClasses")
@TestDataPath("$PROJECT_ROOT")
@@ -2311,6 +2311,22 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO
}
}
@Nested
@TestMetadata("compiler/testData/codegen/boxInline/inlineArgsInplace")
@TestDataPath("$PROJECT_ROOT")
public class InlineArgsInplace {
@Test
public void testAllFilesPresentInInlineArgsInplace() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineArgsInplace"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true);
}
@Test
@TestMetadata("callArgumentReordering.kt")
public void testCallArgumentReordering() throws Exception {
runTest("compiler/testData/codegen/boxInline/inlineArgsInplace/callArgumentReordering.kt");
}
}
@Nested
@TestMetadata("compiler/testData/codegen/boxInline/inlineClasses")
@TestDataPath("$PROJECT_ROOT")
@@ -2299,6 +2299,22 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst
}
}
@Nested
@TestMetadata("compiler/testData/codegen/boxInline/inlineArgsInplace")
@TestDataPath("$PROJECT_ROOT")
public class InlineArgsInplace {
@Test
public void testAllFilesPresentInInlineArgsInplace() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineArgsInplace"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true);
}
@Test
@TestMetadata("callArgumentReordering.kt")
public void testCallArgumentReordering() throws Exception {
runTest("compiler/testData/codegen/boxInline/inlineArgsInplace/callArgumentReordering.kt");
}
}
@Nested
@TestMetadata("compiler/testData/codegen/boxInline/inlineClasses")
@TestDataPath("$PROJECT_ROOT")