JVM_IR indy-SAM conversions, 1st passing tests

KT-44278 KT-26060 KT-42621
This commit is contained in:
Dmitry Petrov
2021-01-14 17:08:17 +03:00
parent c13949d322
commit 3140cca050
37 changed files with 1144 additions and 58 deletions
@@ -18379,6 +18379,74 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/invokedynamic")
@TestDataPath("$PROJECT_ROOT")
public class Invokedynamic extends AbstractFirBlackBoxCodegenTest {
@Test
public void testAllFilesPresentInInvokedynamic() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
@Nested
@TestMetadata("compiler/testData/codegen/box/invokedynamic/sam")
@TestDataPath("$PROJECT_ROOT")
public class Sam extends AbstractFirBlackBoxCodegenTest {
@Test
public void testAllFilesPresentInSam() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
@Test
@TestMetadata("boundReference.kt")
public void testBoundReference() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/boundReference.kt");
}
@Test
@TestMetadata("capturedDispatchReceiver.kt")
public void testCapturedDispatchReceiver() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/capturedDispatchReceiver.kt");
}
@Test
@TestMetadata("capturedExtensionReceiver.kt")
public void testCapturedExtensionReceiver() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/capturedExtensionReceiver.kt");
}
@Test
@TestMetadata("capturingIndyFunInterface.kt")
public void testCapturingIndyFunInterface() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/capturingIndyFunInterface.kt");
}
@Test
@TestMetadata("capturingIndySam.kt")
public void testCapturingIndySam() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/capturingIndySam.kt");
}
@Test
@TestMetadata("primitiveVsWrapperInSam.kt")
public void testPrimitiveVsWrapperInSam() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/primitiveVsWrapperInSam.kt");
}
@Test
@TestMetadata("simpleIndyFunInterface.kt")
public void testSimpleIndyFunInterface() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/simpleIndyFunInterface.kt");
}
@Test
@TestMetadata("simpleIndySam.kt")
public void testSimpleIndySam() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/simpleIndySam.kt");
}
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/ir")
@TestDataPath("$PROJECT_ROOT")