JVM_IR indy-SAM conversions: add more tests

KT-44278 KT-26060 KT-42621
This commit is contained in:
Dmitry Petrov
2021-01-26 17:28:40 +03:00
parent 98b0c07b18
commit ad1d80d700
10 changed files with 151 additions and 0 deletions
@@ -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 {
@@ -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")