Use separate logic for filtering and skipping in collectAndFilterRealOverrides [KT-43487] (#3921)

This commit is contained in:
LepilkinaElena
2020-11-20 19:10:41 +03:00
committed by GitHub
parent 362775b6b6
commit dd9c0c5c6e
10 changed files with 67 additions and 6 deletions
@@ -25410,6 +25410,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath);
}
@TestMetadata("abstractClassWithFakeOverride.kt")
public void testAbstractClassWithFakeOverride() throws Exception {
runTest("compiler/testData/codegen/box/traits/abstractClassWithFakeOverride.kt");
}
public void testAllFilesPresentInTraits() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/traits"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
}
@@ -25410,6 +25410,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
}
@TestMetadata("abstractClassWithFakeOverride.kt")
public void testAbstractClassWithFakeOverride() throws Exception {
runTest("compiler/testData/codegen/box/traits/abstractClassWithFakeOverride.kt");
}
public void testAllFilesPresentInTraits() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/traits"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@@ -25425,6 +25425,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
}
@TestMetadata("abstractClassWithFakeOverride.kt")
public void testAbstractClassWithFakeOverride() throws Exception {
runTest("compiler/testData/codegen/box/traits/abstractClassWithFakeOverride.kt");
}
public void testAllFilesPresentInTraits() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/traits"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
}
@@ -13828,6 +13828,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
KotlinTestUtils.runTest0(this::doTest, TargetBackend.WASM, testDataFilePath);
}
@TestMetadata("abstractClassWithFakeOverride.kt")
public void testAbstractClassWithFakeOverride() throws Exception {
runTest("compiler/testData/codegen/box/traits/abstractClassWithFakeOverride.kt");
}
public void testAllFilesPresentInTraits() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/traits"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
}