JVM IR: (Un)mute tests and add more tests for bridge generation

This commit is contained in:
Steven Schäfer
2020-02-03 14:24:47 +01:00
committed by Georgy Bronnikov
parent 12e31a1760
commit 5f6af58aeb
30 changed files with 353 additions and 9 deletions
@@ -1373,6 +1373,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("abstractOverrideBridge.kt")
public void testAbstractOverrideBridge() throws Exception {
runTest("compiler/testData/codegen/box/bridges/abstractOverrideBridge.kt");
}
public void testAllFilesPresentInBridges() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/bridges"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@@ -1457,6 +1462,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/bridges/fakeOverrideOfTraitImpl.kt");
}
@TestMetadata("fakeOverrideThroughGenericSuperclass.kt")
public void testFakeOverrideThroughGenericSuperclass() throws Exception {
runTest("compiler/testData/codegen/box/bridges/fakeOverrideThroughGenericSuperclass.kt");
}
@TestMetadata("fakeOverrideWithSeveralSuperDeclarations.kt")
public void testFakeOverrideWithSeveralSuperDeclarations() throws Exception {
runTest("compiler/testData/codegen/box/bridges/fakeOverrideWithSeveralSuperDeclarations.kt");
@@ -13922,6 +13932,21 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("complexGenericMethodWithInlineClassOverride.kt")
public void testComplexGenericMethodWithInlineClassOverride() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride.kt");
}
@TestMetadata("complexGenericMethodWithInlineClassOverride2.kt")
public void testComplexGenericMethodWithInlineClassOverride2() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride2.kt");
}
@TestMetadata("complexGenericMethodWithInlineClassOverride3.kt")
public void testComplexGenericMethodWithInlineClassOverride3() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride3.kt");
}
@TestMetadata("defaultInterfaceExtensionFunCall.kt")
public void testDefaultInterfaceExtensionFunCall() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceExtensionFunCall.kt");
@@ -13947,6 +13972,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericInterfaceMethodCall.kt");
}
@TestMetadata("genericMethodWithInlineClassOverride.kt")
public void testGenericMethodWithInlineClassOverride() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverride.kt");
}
@TestMetadata("overriddenDefaultInterfaceMethodCall.kt")
public void testOverriddenDefaultInterfaceMethodCall() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCall.kt");