Add regression tests for KT-46890 and other stuff

This commit is contained in:
pyos
2021-06-02 15:30:13 +02:00
committed by teamcityserver
parent ada4c48eba
commit d5d3d9f112
15 changed files with 428 additions and 4 deletions
@@ -16785,6 +16785,49 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
}
}
@TestMetadata("compiler/testData/codegen/box/inlineClasses/result")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Result extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInResult() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/result"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("directCall1.kt")
public void testDirectCall1() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/result/directCall1.kt");
}
@TestMetadata("directCall2.kt")
public void testDirectCall2() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/result/directCall2.kt");
}
@TestMetadata("doubleOverride.kt")
public void testDoubleOverride() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/result/doubleOverride.kt");
}
@TestMetadata("extensionOverride.kt")
public void testExtensionOverride() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/result/extensionOverride.kt");
}
@TestMetadata("inlineMethodOnResult.kt")
public void testInlineMethodOnResult() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/result/inlineMethodOnResult.kt");
}
@TestMetadata("lambdaTakesResultThroughBridge.kt")
public void testLambdaTakesResultThroughBridge() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/result/lambdaTakesResultThroughBridge.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/inlineClasses/returnResult")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)