Added multi-module test on inline functions

This commit is contained in:
Igor Chevdar
2019-12-17 17:14:46 +03:00
parent bd805d71b1
commit cca3f13e48
10 changed files with 183 additions and 1 deletions
@@ -1972,6 +1972,24 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
}
}
@TestMetadata("compiler/testData/codegen/boxInline/multiModule")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class MultiModule extends AbstractBlackBoxInlineCodegenTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInMultiModule() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiModule"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("tryCatchWithRecursiveInline.kt")
public void testTryCatchWithRecursiveInline() throws Exception {
runTest("compiler/testData/codegen/boxInline/multiModule/tryCatchWithRecursiveInline.kt");
}
}
@TestMetadata("compiler/testData/codegen/boxInline/multifileClasses")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)