JVM_IR indy-SAM conversions: add more tests
KT-44278 KT-26060 KT-42621
This commit is contained in:
+12
@@ -18481,6 +18481,18 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/invokedynamic/sam/simpleIndySam.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("streamApi1.kt")
|
||||
public void testStreamApi1() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/invokedynamic/sam/streamApi1.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("streamApi2.kt")
|
||||
public void testStreamApi2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/invokedynamic/sam/streamApi2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("suspendFunInterface.kt")
|
||||
public void testSuspendFunInterface() throws Exception {
|
||||
|
||||
+16
@@ -3923,6 +3923,22 @@ public class FirBytecodeTextTestGenerated extends AbstractFirBytecodeTextTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/bytecodeText/invokedynamic")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Invokedynamic extends AbstractFirBytecodeTextTest {
|
||||
@Test
|
||||
public void testAllFilesPresentInInvokedynamic() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/invokedynamic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("streamApi.kt")
|
||||
public void testStreamApi() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/invokedynamic/streamApi.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/bytecodeText/jvm8")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
Reference in New Issue
Block a user