JVM_IR KT-42260 add abstract overrides for generated stubs

This commit is contained in:
Dmitry Petrov
2020-09-29 12:08:12 +03:00
parent 445b2d6eb1
commit 1fc459ab4c
21 changed files with 323 additions and 19 deletions
@@ -4964,6 +4964,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("addCollectionStubWithCovariantOverride.kt")
public void testAddCollectionStubWithCovariantOverride() throws Exception {
runTest("compiler/testData/codegen/box/collections/addCollectionStubWithCovariantOverride.kt");
}
public void testAllFilesPresentInCollections() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/collections"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@@ -299,6 +299,26 @@ public class BytecodeListingTestGenerated extends AbstractBytecodeListingTest {
runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/observableMutableMap.kt");
}
@TestMetadata("stubForAbstractFun.kt")
public void testStubForAbstractFun() throws Exception {
runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubForAbstractFun.kt");
}
@TestMetadata("stubForAbstractFunInAbstractClass.kt")
public void testStubForAbstractFunInAbstractClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubForAbstractFunInAbstractClass.kt");
}
@TestMetadata("stubForAbstractFunInAbstractClassWithCovariantOverride.kt")
public void testStubForAbstractFunInAbstractClassWithCovariantOverride() throws Exception {
runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubForAbstractFunInAbstractClassWithCovariantOverride.kt");
}
@TestMetadata("stubForAbstractFunWithCovariantOverride.kt")
public void testStubForAbstractFunWithCovariantOverride() throws Exception {
runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubForAbstractFunWithCovariantOverride.kt");
}
@TestMetadata("stubsFromSuperclass.kt")
public void testStubsFromSuperclass() throws Exception {
runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubsFromSuperclass.kt");
@@ -4964,6 +4964,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("addCollectionStubWithCovariantOverride.kt")
public void testAddCollectionStubWithCovariantOverride() throws Exception {
runTest("compiler/testData/codegen/box/collections/addCollectionStubWithCovariantOverride.kt");
}
public void testAllFilesPresentInCollections() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/collections"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@@ -4934,6 +4934,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
}
@TestMetadata("addCollectionStubWithCovariantOverride.kt")
public void testAddCollectionStubWithCovariantOverride() throws Exception {
runTest("compiler/testData/codegen/box/collections/addCollectionStubWithCovariantOverride.kt");
}
public void testAllFilesPresentInCollections() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/collections"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
@@ -299,6 +299,26 @@ public class IrBytecodeListingTestGenerated extends AbstractIrBytecodeListingTes
runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/observableMutableMap.kt");
}
@TestMetadata("stubForAbstractFun.kt")
public void testStubForAbstractFun() throws Exception {
runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubForAbstractFun.kt");
}
@TestMetadata("stubForAbstractFunInAbstractClass.kt")
public void testStubForAbstractFunInAbstractClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubForAbstractFunInAbstractClass.kt");
}
@TestMetadata("stubForAbstractFunInAbstractClassWithCovariantOverride.kt")
public void testStubForAbstractFunInAbstractClassWithCovariantOverride() throws Exception {
runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubForAbstractFunInAbstractClassWithCovariantOverride.kt");
}
@TestMetadata("stubForAbstractFunWithCovariantOverride.kt")
public void testStubForAbstractFunWithCovariantOverride() throws Exception {
runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubForAbstractFunWithCovariantOverride.kt");
}
@TestMetadata("stubsFromSuperclass.kt")
public void testStubsFromSuperclass() throws Exception {
runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubsFromSuperclass.kt");