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
@@ -20196,6 +20196,52 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/inlineClasses/result")
@TestDataPath("$PROJECT_ROOT")
public class Result {
@Test
public void testAllFilesPresentInResult() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/result"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
@Test
@TestMetadata("directCall1.kt")
public void testDirectCall1() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/result/directCall1.kt");
}
@Test
@TestMetadata("directCall2.kt")
public void testDirectCall2() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/result/directCall2.kt");
}
@Test
@TestMetadata("doubleOverride.kt")
public void testDoubleOverride() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/result/doubleOverride.kt");
}
@Test
@TestMetadata("extensionOverride.kt")
public void testExtensionOverride() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/result/extensionOverride.kt");
}
@Test
@TestMetadata("inlineMethodOnResult.kt")
public void testInlineMethodOnResult() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/result/inlineMethodOnResult.kt");
}
@Test
@TestMetadata("lambdaTakesResultThroughBridge.kt")
public void testLambdaTakesResultThroughBridge() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/result/lambdaTakesResultThroughBridge.kt");
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/inlineClasses/returnResult")
@TestDataPath("$PROJECT_ROOT")