Minor, add a bit more tests for KT-12063

This commit is contained in:
Alexander Udalov
2021-03-31 00:07:00 +02:00
parent 66429cfb43
commit 1f7cef6f13
12 changed files with 238 additions and 23 deletions
@@ -23490,12 +23490,6 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/jvmStatic/companionObject.kt");
}
@Test
@TestMetadata("companionObjectProtected.kt")
public void testCompanionObjectProtected() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/companionObjectProtected.kt");
}
@Test
@TestMetadata("convention.kt")
public void testConvention() throws Exception {
@@ -23687,6 +23681,34 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
public void testSyntheticAccessor() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/syntheticAccessor.kt");
}
@Nested
@TestMetadata("compiler/testData/codegen/box/jvmStatic/protectedInSuperClass")
@TestDataPath("$PROJECT_ROOT")
public class ProtectedInSuperClass {
@Test
public void testAllFilesPresentInProtectedInSuperClass() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmStatic/protectedInSuperClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
@Test
@TestMetadata("defaultArguments.kt")
public void testDefaultArguments() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/protectedInSuperClass/defaultArguments.kt");
}
@Test
@TestMetadata("simpleFunction.kt")
public void testSimpleFunction() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/protectedInSuperClass/simpleFunction.kt");
}
@Test
@TestMetadata("simpleProperty.kt")
public void testSimpleProperty() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/protectedInSuperClass/simpleProperty.kt");
}
}
}
@Nested