Merge K2 box tests to main box tests

This commit is contained in:
Alexander Udalov
2023-03-23 12:28:07 +01:00
committed by Space Team
parent 14c2030595
commit d3be38476a
32 changed files with 584 additions and 402 deletions
@@ -13564,6 +13564,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/enum/javaEnumValues3.kt");
}
@TestMetadata("k54079.kt")
public void testK54079() throws Exception {
runTest("compiler/testData/codegen/box/enum/k54079.kt");
}
@TestMetadata("kt1119.kt")
public void testKt1119() throws Exception {
runTest("compiler/testData/codegen/box/enum/kt1119.kt");
@@ -29959,6 +29964,19 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
}
@TestMetadata("compiler/testData/codegen/box/properties/backingField")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class BackingField extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInBackingField() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
}
@TestMetadata("compiler/testData/codegen/box/properties/const")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
@@ -38994,6 +39012,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/syntheticExtensions/implicitReceiver.kt");
}
@TestMetadata("kt56072.kt")
public void testKt56072() throws Exception {
runTest("compiler/testData/codegen/box/syntheticExtensions/kt56072.kt");
}
@TestMetadata("overrideKotlinPropertyByJavaMethod.kt")
public void testOverrideKotlinPropertyByJavaMethod() throws Exception {
runTest("compiler/testData/codegen/box/syntheticExtensions/overrideKotlinPropertyByJavaMethod.kt");