[box-tests] Add tests about anonymous classes uplifting

^KT-50175 Fixed by commits before
This commit is contained in:
Alexander Korepanov
2022-08-05 09:53:31 +02:00
committed by Space
parent c5eb6fb562
commit 794229d012
15 changed files with 174 additions and 0 deletions
@@ -56,6 +56,12 @@ public class JsCodegenInlineTestGenerated extends AbstractJsCodegenInlineTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
}
@Test
@TestMetadata("anonymousObjectInCallChildren.kt")
public void testAnonymousObjectInCallChildren() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectInCallChildren.kt");
}
@Test
@TestMetadata("anonymousObjectInDefault.kt")
public void testAnonymousObjectInDefault() throws Exception {
@@ -56,6 +56,12 @@ public class IrJsCodegenInlineTestGenerated extends AbstractIrJsCodegenInlineTes
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("anonymousObjectInCallChildren.kt")
public void testAnonymousObjectInCallChildren() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectInCallChildren.kt");
}
@Test
@TestMetadata("anonymousObjectInDefault.kt")
public void testAnonymousObjectInDefault() throws Exception {
@@ -65,6 +65,11 @@ public class IrCodegenBoxInlineWasmTestGenerated extends AbstractIrCodegenBoxInl
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.WASM, true);
}
@TestMetadata("anonymousObjectInCallChildren.kt")
public void testAnonymousObjectInCallChildren() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectInCallChildren.kt");
}
@TestMetadata("anonymousObjectInDefault.kt")
public void testAnonymousObjectInDefault() throws Exception {
runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectInDefault.kt");