Minor. Add tests to check returning Result from functions
Mainly, that virtual functions, returning Result, are mangled. #KT-45855
This commit is contained in:
committed by
TeamCityServer
parent
613eda5016
commit
bce92d824a
+43
@@ -16206,6 +16206,49 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/inlineClasses/returnResult")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ReturnResult extends AbstractLightAnalysisModeTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInReturnResult() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/returnResult"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("class.kt")
|
||||
public void testClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/returnResult/class.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classAnyOverride.kt")
|
||||
public void testClassAnyOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/returnResult/classAnyOverride.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classGenericOverride.kt")
|
||||
public void testClassGenericOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/returnResult/classGenericOverride.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classResultOverride.kt")
|
||||
public void testClassResultOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/returnResult/classResultOverride.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("interface.kt")
|
||||
public void testInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/returnResult/interface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevel.kt")
|
||||
public void testTopLevel() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/returnResult/topLevel.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
Reference in New Issue
Block a user