From 3a0eee64b87526a504380d9f2bf08466e525d939 Mon Sep 17 00:00:00 2001 From: Dmitriy Novozhilov Date: Wed, 27 Jan 2021 12:07:06 +0300 Subject: [PATCH] [Test] Migrate all jvm tests runners for boxInline tests --- ...FirBlackBoxInlineCodegenTestGenerated.java | 1454 +++++++++++------ .../kotlin/test/TestConfiguration.kt | 5 + .../org/jetbrains/kotlin/test/TestRunner.kt | 28 +- .../services/ModuleStructureTransformer.kt | 5 + .../BlackBoxInlineCodegenTestGenerated.java | 1454 +++++++++++------ ...otlinAgainstInlineKotlinTestGenerated.java | 1454 +++++++++++------ .../IrBlackBoxInlineCodegenTestGenerated.java | 1454 +++++++++++------ ...otlinAgainstInlineKotlinTestGenerated.java | 1454 +++++++++++------ ...JvmIrAgainstOldBoxInlineTestGenerated.java | 1454 +++++++++++------ ...JvmOldAgainstIrBoxInlineTestGenerated.java | 1454 +++++++++++------ .../test/backend/BlackBoxCodegenSuppressor.kt | 27 +- .../handlers/BytecodeInliningHandler.kt | 25 +- .../test/backend/handlers/SMAPDumpHandler.kt | 5 +- .../test/directives/CodegenTestDirectives.kt | 5 + .../AbstractBlackBoxInlineCodegenTest.kt | 29 + ...actCompileKotlinAgainstInlineKotlinTest.kt | 67 + .../AbstractJvmBlackBoxCodegenTestBase.kt | 17 +- .../codegen/AbstractJvmIrAgainstOldBoxTest.kt | 62 + .../codegen/BaseCodegenConfiguration.kt | 20 + .../ModuleTransformerForTwoFilesBoxTests.kt | 4 +- .../impl/ModuleStructureExtractorImpl.kt | 6 +- ...actCompileKotlinAgainstInlineKotlinTest.kt | 46 - ...tIrCompileKotlinAgainstInlineKotlinTest.kt | 27 - .../generators/GenerateJUnit3CompilerTests.kt | 34 - .../generators/GenerateJUnit5CompilerTests.kt | 28 + 25 files changed, 7119 insertions(+), 3499 deletions(-) rename compiler/fir/{fir2ir/tests-gen/org/jetbrains/kotlin/codegen/ir => analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/codegen}/FirBlackBoxInlineCodegenTestGenerated.java (87%) rename compiler/{tests-gen/org/jetbrains/kotlin => tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners}/codegen/BlackBoxInlineCodegenTestGenerated.java (89%) rename compiler/{tests-gen/org/jetbrains/kotlin => tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners}/codegen/CompileKotlinAgainstInlineKotlinTestGenerated.java (87%) rename compiler/{tests-gen/org/jetbrains/kotlin/codegen/ir => tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen}/IrBlackBoxInlineCodegenTestGenerated.java (89%) rename compiler/{tests-gen/org/jetbrains/kotlin/codegen/ir => tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen}/IrCompileKotlinAgainstInlineKotlinTestGenerated.java (87%) rename compiler/{tests-gen/org/jetbrains/kotlin/codegen/ir => tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen}/JvmIrAgainstOldBoxInlineTestGenerated.java (86%) rename compiler/{tests-gen/org/jetbrains/kotlin/codegen/ir => tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen}/JvmOldAgainstIrBoxInlineTestGenerated.java (86%) create mode 100644 compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/AbstractBlackBoxInlineCodegenTest.kt create mode 100644 compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/AbstractCompileKotlinAgainstInlineKotlinTest.kt create mode 100644 compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/AbstractJvmIrAgainstOldBoxTest.kt delete mode 100644 compiler/tests-common/tests/org/jetbrains/kotlin/codegen/AbstractCompileKotlinAgainstInlineKotlinTest.kt delete mode 100644 compiler/tests-common/tests/org/jetbrains/kotlin/codegen/ir/AbstractIrCompileKotlinAgainstInlineKotlinTest.kt diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/codegen/ir/FirBlackBoxInlineCodegenTestGenerated.java b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxInlineCodegenTestGenerated.java similarity index 87% rename from compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/codegen/ir/FirBlackBoxInlineCodegenTestGenerated.java rename to compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxInlineCodegenTestGenerated.java index b73838b8baf..20909c46f46 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/codegen/ir/FirBlackBoxInlineCodegenTestGenerated.java +++ b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxInlineCodegenTestGenerated.java @@ -3,579 +3,651 @@ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ -package org.jetbrains.kotlin.codegen.ir; +package org.jetbrains.kotlin.test.runners.codegen; import com.intellij.testFramework.TestDataPath; -import org.jetbrains.kotlin.test.JUnit3RunnerWithInners; -import org.jetbrains.kotlin.test.KotlinTestUtils; import org.jetbrains.kotlin.test.util.KtTestUtil; import org.jetbrains.kotlin.test.TargetBackend; import org.jetbrains.kotlin.test.TestMetadata; -import org.junit.runner.RunWith; +import org.junit.jupiter.api.Nested; +import org.junit.jupiter.api.Test; import java.io.File; import java.util.regex.Pattern; -/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */ +/** This class is generated by {@link GenerateNewCompilerTests.kt}. DO NOT MODIFY MANUALLY */ @SuppressWarnings("all") @TestMetadata("compiler/testData/codegen/boxInline") @TestDataPath("$PROJECT_ROOT") -@RunWith(JUnit3RunnerWithInners.class) public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + @Test public void testAllFilesPresentInBoxInline() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true, "oldLanguageVersions"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class AnonymousObject extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class AnonymousObject extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInAnonymousObject() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("anonymousObjectInDefault.kt") public void testAnonymousObjectInDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectInDefault.kt"); } + @Test @TestMetadata("anonymousObjectOnCallSite.kt") public void testAnonymousObjectOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnCallSite.kt"); } + @Test @TestMetadata("anonymousObjectOnCallSiteSuperParams.kt") public void testAnonymousObjectOnCallSiteSuperParams() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnCallSiteSuperParams.kt"); } + @Test @TestMetadata("anonymousObjectOnDeclarationSite.kt") public void testAnonymousObjectOnDeclarationSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnDeclarationSite.kt"); } + @Test @TestMetadata("anonymousObjectOnDeclarationSiteSuperParams.kt") public void testAnonymousObjectOnDeclarationSiteSuperParams() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnDeclarationSiteSuperParams.kt"); } + @Test @TestMetadata("capturedLambdaInInline.kt") public void testCapturedLambdaInInline() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline.kt"); } + @Test @TestMetadata("capturedLambdaInInline2.kt") public void testCapturedLambdaInInline2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline2.kt"); } + @Test @TestMetadata("capturedLambdaInInline3.kt") public void testCapturedLambdaInInline3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline3.kt"); } + @Test @TestMetadata("capturedLambdaInInlineObject.kt") public void testCapturedLambdaInInlineObject() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInlineObject.kt"); } + @Test @TestMetadata("capturedLocalFun.kt") public void testCapturedLocalFun() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLocalFun.kt"); } + @Test @TestMetadata("capturedLocalFunRef.kt") public void testCapturedLocalFunRef() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLocalFunRef.kt"); } + @Test @TestMetadata("changingReturnType.kt") public void testChangingReturnType() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/changingReturnType.kt"); } + @Test @TestMetadata("constructOriginalInRegenerated.kt") public void testConstructOriginalInRegenerated() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/constructOriginalInRegenerated.kt"); } + @Test @TestMetadata("constructorVisibility.kt") public void testConstructorVisibility() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/constructorVisibility.kt"); } + @Test @TestMetadata("constructorVisibilityInConstLambda.kt") public void testConstructorVisibilityInConstLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/constructorVisibilityInConstLambda.kt"); } + @Test @TestMetadata("constructorVisibilityInLambda.kt") public void testConstructorVisibilityInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/constructorVisibilityInLambda.kt"); } + @Test @TestMetadata("defineClass.kt") public void testDefineClass() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt"); } + @Test @TestMetadata("functionExpression.kt") public void testFunctionExpression() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/functionExpression.kt"); } + @Test @TestMetadata("inlineCallInsideInlineLambda.kt") public void testInlineCallInsideInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/inlineCallInsideInlineLambda.kt"); } + @Test @TestMetadata("kt13133.kt") public void testKt13133() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt13133.kt"); } + @Test @TestMetadata("kt13182.kt") public void testKt13182() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt13182.kt"); } + @Test @TestMetadata("kt13374.kt") public void testKt13374() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt13374.kt"); } + @Test @TestMetadata("kt14011.kt") public void testKt14011() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt14011.kt"); } + @Test @TestMetadata("kt14011_2.kt") public void testKt14011_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt14011_2.kt"); } + @Test @TestMetadata("kt14011_3.kt") public void testKt14011_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt14011_3.kt"); } + @Test @TestMetadata("kt15751.kt") public void testKt15751() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt15751.kt"); } + @Test @TestMetadata("kt16193.kt") public void testKt16193() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt16193.kt"); } + @Test @TestMetadata("kt17972.kt") public void testKt17972() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972.kt"); } + @Test @TestMetadata("kt17972_2.kt") public void testKt17972_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_2.kt"); } + @Test @TestMetadata("kt17972_3.kt") public void testKt17972_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_3.kt"); } + @Test @TestMetadata("kt17972_4.kt") public void testKt17972_4() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_4.kt"); } + @Test @TestMetadata("kt17972_5.kt") public void testKt17972_5() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_5.kt"); } + @Test @TestMetadata("kt17972_super.kt") public void testKt17972_super() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_super.kt"); } + @Test @TestMetadata("kt17972_super2.kt") public void testKt17972_super2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_super2.kt"); } + @Test @TestMetadata("kt17972_super3.kt") public void testKt17972_super3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_super3.kt"); } + @Test @TestMetadata("kt19389.kt") public void testKt19389() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19389.kt"); } + @Test @TestMetadata("kt19399.kt") public void testKt19399() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19399.kt"); } + @Test @TestMetadata("kt19434.kt") public void testKt19434() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19434.kt"); } + @Test @TestMetadata("kt19434_2.kt") public void testKt19434_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19434_2.kt"); } + @Test @TestMetadata("kt19723.kt") public void testKt19723() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19723.kt"); } + @Test @TestMetadata("kt29595.kt") public void testKt29595() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt29595.kt"); } + @Test @TestMetadata("kt34656.kt") public void testKt34656() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt34656.kt"); } + @Test @TestMetadata("kt38197.kt") public void testKt38197() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt"); } + @Test @TestMetadata("kt42815.kt") public void testKt42815() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt42815.kt"); } + @Test @TestMetadata("kt42815_delegated.kt") public void testKt42815_delegated() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt42815_delegated.kt"); } + @Test @TestMetadata("kt6007.kt") public void testKt6007() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6007.kt"); } + @Test @TestMetadata("kt6552.kt") public void testKt6552() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6552.kt"); } + @Test @TestMetadata("kt8133.kt") public void testKt8133() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt8133.kt"); } + @Test @TestMetadata("kt9064.kt") public void testKt9064() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9064.kt"); } + @Test @TestMetadata("kt9064v2.kt") public void testKt9064v2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9064v2.kt"); } + @Test @TestMetadata("kt9591.kt") public void testKt9591() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9591.kt"); } + @Test @TestMetadata("kt9877.kt") public void testKt9877() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9877.kt"); } + @Test @TestMetadata("kt9877_2.kt") public void testKt9877_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9877_2.kt"); } + @Test @TestMetadata("objectInLambdaCapturesAnotherObject.kt") public void testObjectInLambdaCapturesAnotherObject() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/objectInLambdaCapturesAnotherObject.kt"); } + @Test @TestMetadata("safeCall.kt") public void testSafeCall() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/safeCall.kt"); } + @Test @TestMetadata("safeCall_2.kt") public void testSafeCall_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/safeCall_2.kt"); } + @Test @TestMetadata("sam.kt") public void testSam() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam.kt"); } + @Test @TestMetadata("sharedFromCrossinline.kt") public void testSharedFromCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sharedFromCrossinline.kt"); } + @Test @TestMetadata("superConstructorWithObjectParameter.kt") public void testSuperConstructorWithObjectParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/superConstructorWithObjectParameter.kt"); } + @Test @TestMetadata("typeInfo.kt") public void testTypeInfo() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/typeInfo.kt"); } + @Test @TestMetadata("withInlineMethod.kt") public void testWithInlineMethod() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/withInlineMethod.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/enumWhen") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class EnumWhen extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class EnumWhen extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInEnumWhen() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/enumWhen"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("callSite.kt") public void testCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/callSite.kt"); } + @Test @TestMetadata("declSite.kt") public void testDeclSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/declSite.kt"); } + @Test @TestMetadata("declSiteSeveralMappings.kt") public void testDeclSiteSeveralMappings() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/declSiteSeveralMappings.kt"); } + @Test @TestMetadata("declSiteSeveralMappingsDifOrder.kt") public void testDeclSiteSeveralMappingsDifOrder() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/declSiteSeveralMappingsDifOrder.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ProperRecapturing extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class ProperRecapturing extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInProperRecapturing() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("inlineChain.kt") public void testInlineChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/inlineChain.kt"); } + @Test @TestMetadata("lambdaChain.kt") public void testLambdaChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChain.kt"); } + @Test @TestMetadata("lambdaChainSimple.kt") public void testLambdaChainSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChainSimple.kt"); } + @Test @TestMetadata("lambdaChain_2.kt") public void testLambdaChain_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChain_2.kt"); } + @Test @TestMetadata("lambdaChain_3.kt") public void testLambdaChain_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChain_3.kt"); } + @Test @TestMetadata("noInlineLambda.kt") public void testNoInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/noInlineLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ProperRecapturingInClass extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class ProperRecapturingInClass extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInProperRecapturingInClass() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("inlineChain.kt") public void testInlineChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/inlineChain.kt"); } + @Test @TestMetadata("inlinelambdaChain.kt") public void testInlinelambdaChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/inlinelambdaChain.kt"); } + @Test @TestMetadata("lambdaChain.kt") public void testLambdaChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain.kt"); } + @Test @TestMetadata("lambdaChainSimple.kt") public void testLambdaChainSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChainSimple.kt"); } + @Test @TestMetadata("lambdaChainSimple_2.kt") public void testLambdaChainSimple_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChainSimple_2.kt"); } + @Test @TestMetadata("lambdaChain_2.kt") public void testLambdaChain_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain_2.kt"); } + @Test @TestMetadata("lambdaChain_3.kt") public void testLambdaChain_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain_3.kt"); } + @Test @TestMetadata("noCapturedThisOnCallSite.kt") public void testNoCapturedThisOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/noCapturedThisOnCallSite.kt"); } + @Test @TestMetadata("noInlineLambda.kt") public void testNoInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/noInlineLambda.kt"); } + @Test @TestMetadata("twoInlineLambda.kt") public void testTwoInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/twoInlineLambda.kt"); } + @Test @TestMetadata("twoInlineLambdaComplex.kt") public void testTwoInlineLambdaComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/twoInlineLambdaComplex.kt"); } + @Test @TestMetadata("twoInlineLambdaComplex_2.kt") public void testTwoInlineLambdaComplex_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/twoInlineLambdaComplex_2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/sam") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Sam extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class Sam extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInSam() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("anonymousObjectToSam.kt") public void testAnonymousObjectToSam() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/anonymousObjectToSam.kt"); } + @Test @TestMetadata("kt17091.kt") public void testKt17091() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt17091.kt"); } + @Test @TestMetadata("kt21671.kt") public void testKt21671() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671.kt"); } + @Test @TestMetadata("kt21671_2.kt") public void testKt21671_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671_2.kt"); } + @Test @TestMetadata("kt21671_3.kt") public void testKt21671_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671_3.kt"); } + @Test @TestMetadata("kt22304.kt") public void testKt22304() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt22304.kt"); } + @Test @TestMetadata("samOnCallSite.kt") public void testSamOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/samOnCallSite.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class TwoCapturedReceivers extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class TwoCapturedReceivers extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInTwoCapturedReceivers() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt8668.kt") public void testKt8668() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668.kt"); } + @Test @TestMetadata("kt8668_2.kt") public void testKt8668_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_2.kt"); } + @Test @TestMetadata("kt8668_3.kt") public void testKt8668_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_3.kt"); } + @Test @TestMetadata("twoDifferentDispatchReceivers.kt") public void testTwoDifferentDispatchReceivers() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/twoDifferentDispatchReceivers.kt"); } + @Test @TestMetadata("twoExtensionReceivers.kt") public void testTwoExtensionReceivers() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/twoExtensionReceivers.kt"); @@ -583,470 +655,525 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/argumentOrder") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ArgumentOrder extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class ArgumentOrder extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInArgumentOrder() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/argumentOrder"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("boundFunctionReference.kt") public void testBoundFunctionReference() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/boundFunctionReference.kt"); } + @Test @TestMetadata("boundFunctionReference2.kt") public void testBoundFunctionReference2() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/boundFunctionReference2.kt"); } + @Test @TestMetadata("captured.kt") public void testCaptured() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/captured.kt"); } + @Test @TestMetadata("capturedInExtension.kt") public void testCapturedInExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/capturedInExtension.kt"); } + @Test @TestMetadata("defaultParametersAndLastVararg.kt") public void testDefaultParametersAndLastVararg() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/defaultParametersAndLastVararg.kt"); } + @Test @TestMetadata("defaultParametersAndLastVarargWithCorrectOrder.kt") public void testDefaultParametersAndLastVarargWithCorrectOrder() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/defaultParametersAndLastVarargWithCorrectOrder.kt"); } + @Test @TestMetadata("extension.kt") public void testExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/extension.kt"); } + @Test @TestMetadata("extensionInClass.kt") public void testExtensionInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/extensionInClass.kt"); } + @Test @TestMetadata("lambdaMigration.kt") public void testLambdaMigration() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/lambdaMigration.kt"); } + @Test @TestMetadata("lambdaMigrationInClass.kt") public void testLambdaMigrationInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/lambdaMigrationInClass.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/simple.kt"); } + @Test @TestMetadata("simpleInClass.kt") public void testSimpleInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/simpleInClass.kt"); } + @Test @TestMetadata("varargAndDefaultParameters.kt") public void testVarargAndDefaultParameters() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/varargAndDefaultParameters.kt"); } + @Test @TestMetadata("varargAndDefaultParametersWithCorrectOrder.kt") public void testVarargAndDefaultParametersWithCorrectOrder() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/varargAndDefaultParametersWithCorrectOrder.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/arrayConvention") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ArrayConvention extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class ArrayConvention extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInArrayConvention() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/arrayConvention"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("simpleAccess.kt") public void testSimpleAccess() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccess.kt"); } + @Test @TestMetadata("simpleAccessInClass.kt") public void testSimpleAccessInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessInClass.kt"); } + @Test @TestMetadata("simpleAccessWithDefault.kt") public void testSimpleAccessWithDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithDefault.kt"); } + @Test @TestMetadata("simpleAccessWithDefaultInClass.kt") public void testSimpleAccessWithDefaultInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithDefaultInClass.kt"); } + @Test @TestMetadata("simpleAccessWithLambda.kt") public void testSimpleAccessWithLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithLambda.kt"); } + @Test @TestMetadata("simpleAccessWithLambdaInClass.kt") public void testSimpleAccessWithLambdaInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithLambdaInClass.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/assert") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Assert extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class Assert extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInAssert() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/assert"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("jvmAssertInlineFunctionAssertionsDisabled.kt") public void testJvmAssertInlineFunctionAssertionsDisabled() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmAssertInlineFunctionAssertionsDisabled.kt"); } + @Test @TestMetadata("jvmAssertInlineFunctionAssertionsEnabled.kt") public void testJvmAssertInlineFunctionAssertionsEnabled() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmAssertInlineFunctionAssertionsEnabled.kt"); } + @Test @TestMetadata("jvmAssertInlineLambda.kt") public void testJvmAssertInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmAssertInlineLambda.kt"); } + @Test @TestMetadata("jvmClassInitializer.kt") public void testJvmClassInitializer() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmClassInitializer.kt"); } + @Test @TestMetadata("jvmCompanion.kt") public void testJvmCompanion() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCompanion.kt"); } + @Test @TestMetadata("jvmCrossinlineLambda.kt") public void testJvmCrossinlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambda.kt"); } + @Test @TestMetadata("jvmCrossinlineLambda2.kt") public void testJvmCrossinlineLambda2() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambda2.kt"); } + @Test @TestMetadata("jvmCrossinlineLambdaDeclarationSite.kt") public void testJvmCrossinlineLambdaDeclarationSite() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambdaDeclarationSite.kt"); } + @Test @TestMetadata("jvmCrossinlineLambdaDeclarationSiteOnly.kt") public void testJvmCrossinlineLambdaDeclarationSiteOnly() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambdaDeclarationSiteOnly.kt"); } + @Test @TestMetadata("jvmCrossinlineSAMDeclarationSite.kt") public void testJvmCrossinlineSAMDeclarationSite() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineSAMDeclarationSite.kt"); } + @Test @TestMetadata("jvmDoubleInline.kt") public void testJvmDoubleInline() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmDoubleInline.kt"); } + @Test @TestMetadata("jvmInlineUsedAsNoinline.kt") public void testJvmInlineUsedAsNoinline() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmInlineUsedAsNoinline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/builders") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Builders extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class Builders extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInBuilders() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/builders"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("builders.kt") public void testBuilders() throws Exception { runTest("compiler/testData/codegen/boxInline/builders/builders.kt"); } + @Test @TestMetadata("buildersAndLambdaCapturing.kt") public void testBuildersAndLambdaCapturing() throws Exception { runTest("compiler/testData/codegen/boxInline/builders/buildersAndLambdaCapturing.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/bytecodePreprocessing") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class BytecodePreprocessing extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class BytecodePreprocessing extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInBytecodePreprocessing() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/bytecodePreprocessing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("apiVersionAtLeast1.kt") public void testApiVersionAtLeast1() throws Exception { runTest("compiler/testData/codegen/boxInline/bytecodePreprocessing/apiVersionAtLeast1.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/callableReference") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CallableReference extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class CallableReference extends AbstractFirBlackBoxInlineCodegenTest { + @Test @TestMetadata("adapted.kt") public void testAdapted() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/adapted.kt"); } + @Test public void testAllFilesPresentInCallableReference() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("classLevel.kt") public void testClassLevel() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/classLevel.kt"); } + @Test @TestMetadata("classLevel2.kt") public void testClassLevel2() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/classLevel2.kt"); } + @Test @TestMetadata("constructor.kt") public void testConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/constructor.kt"); } + @Test @TestMetadata("innerGenericConstuctor.kt") public void testInnerGenericConstuctor() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/innerGenericConstuctor.kt"); } + @Test @TestMetadata("intrinsic.kt") public void testIntrinsic() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/intrinsic.kt"); } + @Test @TestMetadata("jvmFieldProperty.kt") public void testJvmFieldProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/jvmFieldProperty.kt"); } + @Test @TestMetadata("kt15449.kt") public void testKt15449() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/kt15449.kt"); } + @Test @TestMetadata("kt15751_2.kt") public void testKt15751_2() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/kt15751_2.kt"); } + @Test @TestMetadata("kt16411.kt") public void testKt16411() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/kt16411.kt"); } + @Test @TestMetadata("kt35101.kt") public void testKt35101() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/kt35101.kt"); } + @Test @TestMetadata("propertyIntrinsic.kt") public void testPropertyIntrinsic() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/propertyIntrinsic.kt"); } + @Test @TestMetadata("propertyReference.kt") public void testPropertyReference() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/propertyReference.kt"); } + @Test @TestMetadata("topLevel.kt") public void testTopLevel() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/topLevel.kt"); } + @Test @TestMetadata("topLevelExtension.kt") public void testTopLevelExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/topLevelExtension.kt"); } + @Test @TestMetadata("topLevelProperty.kt") public void testTopLevelProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/topLevelProperty.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/callableReference/bound") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Bound extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class Bound extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInBound() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/callableReference/bound"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("classProperty.kt") public void testClassProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/classProperty.kt"); } + @Test @TestMetadata("emptyLhsFunction.kt") public void testEmptyLhsFunction() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsFunction.kt"); } + @Test @TestMetadata("emptyLhsOnInlineProperty.kt") public void testEmptyLhsOnInlineProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsOnInlineProperty.kt"); } + @Test @TestMetadata("emptyLhsProperty.kt") public void testEmptyLhsProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsProperty.kt"); } + @Test @TestMetadata("expression.kt") public void testExpression() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/expression.kt"); } + @Test @TestMetadata("extensionReceiver.kt") public void testExtensionReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/extensionReceiver.kt"); } + @Test @TestMetadata("filter.kt") public void testFilter() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/filter.kt"); } + @Test @TestMetadata("inlineValueParameterInsteadOfReceiver.kt") public void testInlineValueParameterInsteadOfReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/inlineValueParameterInsteadOfReceiver.kt"); } + @Test @TestMetadata("innerGenericConstuctor.kt") public void testInnerGenericConstuctor() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/innerGenericConstuctor.kt"); } + @Test @TestMetadata("intrinsic.kt") public void testIntrinsic() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/intrinsic.kt"); } + @Test @TestMetadata("jvmFieldProperty.kt") public void testJvmFieldProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/jvmFieldProperty.kt"); } + @Test @TestMetadata("kt18728.kt") public void testKt18728() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728.kt"); } + @Test @TestMetadata("kt18728_2.kt") public void testKt18728_2() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_2.kt"); } + @Test @TestMetadata("kt18728_3.kt") public void testKt18728_3() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_3.kt"); } + @Test @TestMetadata("kt18728_4.kt") public void testKt18728_4() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_4.kt"); } + @Test @TestMetadata("lambdaOnLhs.kt") public void testLambdaOnLhs() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/lambdaOnLhs.kt"); } + @Test @TestMetadata("map.kt") public void testMap() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/map.kt"); } + @Test @TestMetadata("mixed.kt") public void testMixed() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/mixed.kt"); } + @Test @TestMetadata("objectProperty.kt") public void testObjectProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/objectProperty.kt"); } + @Test @TestMetadata("propertyImportedFromObject.kt") public void testPropertyImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/propertyImportedFromObject.kt"); } + @Test @TestMetadata("sideEffect.kt") public void testSideEffect() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/sideEffect.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/simple.kt"); } + @Test @TestMetadata("simpleVal.kt") public void testSimpleVal() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/simpleVal.kt"); } + @Test @TestMetadata("simpleVal2.kt") public void testSimpleVal2() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/simpleVal2.kt"); } + @Test @TestMetadata("topLevelExtensionProperty.kt") public void testTopLevelExtensionProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/topLevelExtensionProperty.kt"); @@ -1054,649 +1181,740 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/capture") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Capture extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class Capture extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInCapture() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/capture"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("captureInlinable.kt") public void testCaptureInlinable() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/captureInlinable.kt"); } + @Test @TestMetadata("captureInlinableAndOther.kt") public void testCaptureInlinableAndOther() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/captureInlinableAndOther.kt"); } + @Test @TestMetadata("captureThisAndReceiver.kt") public void testCaptureThisAndReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/captureThisAndReceiver.kt"); } + @Test @TestMetadata("generics.kt") public void testGenerics() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/generics.kt"); } + @Test @TestMetadata("simpleCapturingInClass.kt") public void testSimpleCapturingInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/simpleCapturingInClass.kt"); } + @Test @TestMetadata("simpleCapturingInPackage.kt") public void testSimpleCapturingInPackage() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/simpleCapturingInPackage.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/complex") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Complex extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class Complex extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInComplex() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/complex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("closureChain.kt") public void testClosureChain() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/closureChain.kt"); } + @Test @TestMetadata("forEachLine.kt") public void testForEachLine() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/forEachLine.kt"); } + @Test @TestMetadata("kt44429.kt") public void testKt44429() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/kt44429.kt"); } + @Test @TestMetadata("lambdaInLambda.kt") public void testLambdaInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/lambdaInLambda.kt"); } + @Test @TestMetadata("swapAndWith.kt") public void testSwapAndWith() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/swapAndWith.kt"); } + @Test @TestMetadata("swapAndWith2.kt") public void testSwapAndWith2() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/swapAndWith2.kt"); } + @Test @TestMetadata("use.kt") public void testUse() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/use.kt"); } + @Test @TestMetadata("with.kt") public void testWith() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/with.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/complexStack") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ComplexStack extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class ComplexStack extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInComplexStack() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/complexStack"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("asCheck.kt") public void testAsCheck() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/asCheck.kt"); } + @Test @TestMetadata("asCheck2.kt") public void testAsCheck2() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/asCheck2.kt"); } + @Test @TestMetadata("breakContinueInInlineLambdaArgument.kt") public void testBreakContinueInInlineLambdaArgument() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/breakContinueInInlineLambdaArgument.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simple.kt"); } + @Test @TestMetadata("simple2.kt") public void testSimple2() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simple2.kt"); } + @Test @TestMetadata("simple3.kt") public void testSimple3() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simple3.kt"); } + @Test @TestMetadata("simple4.kt") public void testSimple4() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simple4.kt"); } + @Test @TestMetadata("simpleExtension.kt") public void testSimpleExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simpleExtension.kt"); } + @Test @TestMetadata("spillConstructorArgumentsAndInlineLambdaParameter.kt") public void testSpillConstructorArgumentsAndInlineLambdaParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/spillConstructorArgumentsAndInlineLambdaParameter.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/contracts") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Contracts extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class Contracts extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInContracts() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/contracts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("cfgDependendValInitialization.kt") public void testCfgDependendValInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/cfgDependendValInitialization.kt"); } + @Test @TestMetadata("complexInitializer.kt") public void testComplexInitializer() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/complexInitializer.kt"); } + @Test @TestMetadata("complexInitializerWithStackTransformation.kt") public void testComplexInitializerWithStackTransformation() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/complexInitializerWithStackTransformation.kt"); } + @Test @TestMetadata("crossinlineCallableReference.kt") public void testCrossinlineCallableReference() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/crossinlineCallableReference.kt"); } + @Test @TestMetadata("definiteLongValInitialization.kt") public void testDefiniteLongValInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/definiteLongValInitialization.kt"); } + @Test @TestMetadata("definiteNestedValInitialization.kt") public void testDefiniteNestedValInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/definiteNestedValInitialization.kt"); } + @Test @TestMetadata("definiteValInitInInitializer.kt") public void testDefiniteValInitInInitializer() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/definiteValInitInInitializer.kt"); } + @Test @TestMetadata("definiteValInitialization.kt") public void testDefiniteValInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/definiteValInitialization.kt"); } + @Test @TestMetadata("exactlyOnceCrossinline.kt") public void testExactlyOnceCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline.kt"); } + @Test @TestMetadata("exactlyOnceCrossinline2.kt") public void testExactlyOnceCrossinline2() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline2.kt"); } + @Test @TestMetadata("exactlyOnceNoinline.kt") public void testExactlyOnceNoinline() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceNoinline.kt"); } + @Test @TestMetadata("nonLocalReturn.kt") public void testNonLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/nonLocalReturn.kt"); } + @Test @TestMetadata("nonLocalReturnWithCycle.kt") public void testNonLocalReturnWithCycle() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/nonLocalReturnWithCycle.kt"); } + @Test @TestMetadata("propertyInitialization.kt") public void testPropertyInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/propertyInitialization.kt"); } + @Test @TestMetadata("valInitializationAndUsageInNestedLambda.kt") public void testValInitializationAndUsageInNestedLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/valInitializationAndUsageInNestedLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/defaultValues") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultValues extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class DefaultValues extends AbstractFirBlackBoxInlineCodegenTest { + @Test @TestMetadata("33Parameters.kt") public void test33Parameters() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/33Parameters.kt"); } + @Test @TestMetadata("33ParametersInConstructor.kt") public void test33ParametersInConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/33ParametersInConstructor.kt"); } + @Test public void testAllFilesPresentInDefaultValues() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("defaultInExtension.kt") public void testDefaultInExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/defaultInExtension.kt"); } + @Test @TestMetadata("defaultMethod.kt") public void testDefaultMethod() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/defaultMethod.kt"); } + @Test @TestMetadata("defaultMethodInClass.kt") public void testDefaultMethodInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/defaultMethodInClass.kt"); } + @Test @TestMetadata("defaultParamRemapping.kt") public void testDefaultParamRemapping() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/defaultParamRemapping.kt"); } + @Test @TestMetadata("inlineInDefaultParameter.kt") public void testInlineInDefaultParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/inlineInDefaultParameter.kt"); } + @Test @TestMetadata("inlineLambdaInNoInlineDefault.kt") public void testInlineLambdaInNoInlineDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/inlineLambdaInNoInlineDefault.kt"); } + @Test @TestMetadata("kt11479.kt") public void testKt11479() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt11479.kt"); } + @Test @TestMetadata("kt11479InlinedDefaultParameter.kt") public void testKt11479InlinedDefaultParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt11479InlinedDefaultParameter.kt"); } + @Test @TestMetadata("kt14564.kt") public void testKt14564() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564.kt"); } + @Test @TestMetadata("kt14564_2.kt") public void testKt14564_2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564_2.kt"); } + @Test @TestMetadata("kt16496.kt") public void testKt16496() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt16496.kt"); } + @Test @TestMetadata("kt18689.kt") public void testKt18689() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689.kt"); } + @Test @TestMetadata("kt18689_2.kt") public void testKt18689_2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_2.kt"); } + @Test @TestMetadata("kt18689_3.kt") public void testKt18689_3() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_3.kt"); } + @Test @TestMetadata("kt18689_4.kt") public void testKt18689_4() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_4.kt"); } + @Test @TestMetadata("kt5685.kt") public void testKt5685() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt5685.kt"); } + @Test @TestMetadata("simpleDefaultMethod.kt") public void testSimpleDefaultMethod() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/simpleDefaultMethod.kt"); } + @Test @TestMetadata("varArgNoInline.kt") public void testVarArgNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/varArgNoInline.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LambdaInlining extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class LambdaInlining extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInLambdaInlining() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("checkLambdaClassIsPresent.kt") public void testCheckLambdaClassIsPresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkLambdaClassIsPresent.kt"); } + @Test @TestMetadata("checkLambdaClassesArePresent.kt") public void testCheckLambdaClassesArePresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkLambdaClassesArePresent.kt"); } + @Test @TestMetadata("checkObjectClassIsPresent.kt") public void testCheckObjectClassIsPresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkObjectClassIsPresent.kt"); } + @Test @TestMetadata("checkStaticLambdaClassIsPresent.kt") public void testCheckStaticLambdaClassIsPresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticLambdaClassIsPresent.kt"); } + @Test @TestMetadata("checkStaticLambdaClassesArePresent.kt") public void testCheckStaticLambdaClassesArePresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticLambdaClassesArePresent.kt"); } + @Test @TestMetadata("checkStaticObjectClassIsPresent.kt") public void testCheckStaticObjectClassIsPresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticObjectClassIsPresent.kt"); } + @Test @TestMetadata("defaultCallInDefaultLambda.kt") public void testDefaultCallInDefaultLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultCallInDefaultLambda.kt"); } + @Test @TestMetadata("defaultLambdaInNoInline.kt") public void testDefaultLambdaInNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultLambdaInNoInline.kt"); } + @Test @TestMetadata("differentInvokeSignature.kt") public void testDifferentInvokeSignature() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/differentInvokeSignature.kt"); } + @Test @TestMetadata("genericLambda.kt") public void testGenericLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/genericLambda.kt"); } + @Test @TestMetadata("instanceCapturedInClass.kt") public void testInstanceCapturedInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInClass.kt"); } + @Test @TestMetadata("instanceCapturedInInterface.kt") public void testInstanceCapturedInInterface() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInInterface.kt"); } + @Test @TestMetadata("jvmStaticDefault.kt") public void testJvmStaticDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/jvmStaticDefault.kt"); } + @Test @TestMetadata("kt21827.kt") public void testKt21827() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21827.kt"); } + @Test @TestMetadata("kt21946.kt") public void testKt21946() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21946.kt"); } + @Test @TestMetadata("kt24477.kt") public void testKt24477() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt24477.kt"); } + @Test @TestMetadata("kt25106.kt") public void testKt25106() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt25106.kt"); } + @Test @TestMetadata("kt26636.kt") public void testKt26636() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt26636.kt"); } + @Test @TestMetadata("noInline.kt") public void testNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/noInline.kt"); } + @Test @TestMetadata("nonDefaultInlineInNoInline.kt") public void testNonDefaultInlineInNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/nonDefaultInlineInNoInline.kt"); } + @Test @TestMetadata("receiverClash.kt") public void testReceiverClash() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash.kt"); } + @Test @TestMetadata("receiverClash2.kt") public void testReceiverClash2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash2.kt"); } + @Test @TestMetadata("receiverClashInClass.kt") public void testReceiverClashInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass.kt"); } + @Test @TestMetadata("receiverClashInClass2.kt") public void testReceiverClashInClass2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass2.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simple.kt"); } + @Test @TestMetadata("simpleErased.kt") public void testSimpleErased() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErased.kt"); } + @Test @TestMetadata("simpleErasedStaticInstance.kt") public void testSimpleErasedStaticInstance() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErasedStaticInstance.kt"); } + @Test @TestMetadata("simpleExtension.kt") public void testSimpleExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleExtension.kt"); } + @Test @TestMetadata("simpleGeneric.kt") public void testSimpleGeneric() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleGeneric.kt"); } + @Test @TestMetadata("simpleStaticInstance.kt") public void testSimpleStaticInstance() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleStaticInstance.kt"); } + @Test @TestMetadata("thisClash.kt") public void testThisClash() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClash.kt"); } + @Test @TestMetadata("thisClashInClass.kt") public void testThisClashInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClashInClass.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CallableReferences extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class CallableReferences extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInCallableReferences() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("boundFunctionReference.kt") public void testBoundFunctionReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReference.kt"); } + @Test @TestMetadata("boundFunctionReferenceOnInt.kt") public void testBoundFunctionReferenceOnInt() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnInt.kt"); } + @Test @TestMetadata("boundFunctionReferenceOnLong.kt") public void testBoundFunctionReferenceOnLong() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnLong.kt"); } + @Test @TestMetadata("boundPropertyReference.kt") public void testBoundPropertyReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReference.kt"); } + @Test @TestMetadata("boundPropertyReferenceOnInt.kt") public void testBoundPropertyReferenceOnInt() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnInt.kt"); } + @Test @TestMetadata("boundPropertyReferenceOnLong.kt") public void testBoundPropertyReferenceOnLong() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnLong.kt"); } + @Test @TestMetadata("constuctorReference.kt") public void testConstuctorReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/constuctorReference.kt"); } + @Test @TestMetadata("differentInvokeSignature.kt") public void testDifferentInvokeSignature() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature.kt"); } + @Test @TestMetadata("differentInvokeSignature2.kt") public void testDifferentInvokeSignature2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature2.kt"); } + @Test @TestMetadata("functionImportedFromObject.kt") public void testFunctionImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionImportedFromObject.kt"); } + @Test @TestMetadata("functionReference.kt") public void testFunctionReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReference.kt"); } + @Test @TestMetadata("functionReferenceFromClass.kt") public void testFunctionReferenceFromClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromClass.kt"); } + @Test @TestMetadata("functionReferenceFromObject.kt") public void testFunctionReferenceFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromObject.kt"); } + @Test @TestMetadata("innerClassConstuctorReference.kt") public void testInnerClassConstuctorReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/innerClassConstuctorReference.kt"); } + @Test @TestMetadata("mutableBoundPropertyReferenceFromClass.kt") public void testMutableBoundPropertyReferenceFromClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutableBoundPropertyReferenceFromClass.kt"); } + @Test @TestMetadata("mutablePropertyReferenceFromClass.kt") public void testMutablePropertyReferenceFromClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutablePropertyReferenceFromClass.kt"); } + @Test @TestMetadata("privateFunctionReference.kt") public void testPrivateFunctionReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privateFunctionReference.kt"); } + @Test @TestMetadata("privatePropertyReference.kt") public void testPrivatePropertyReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privatePropertyReference.kt"); } + @Test @TestMetadata("propertyImportedFromObject.kt") public void testPropertyImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyImportedFromObject.kt"); } + @Test @TestMetadata("propertyReference.kt") public void testPropertyReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReference.kt"); } + @Test @TestMetadata("propertyReferenceFromClass.kt") public void testPropertyReferenceFromClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromClass.kt"); } + @Test @TestMetadata("propertyReferenceFromObject.kt") public void testPropertyReferenceFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromObject.kt"); @@ -1704,48 +1922,52 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/defaultValues/maskElimination") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MaskElimination extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class MaskElimination extends AbstractFirBlackBoxInlineCodegenTest { + @Test @TestMetadata("32Parameters.kt") public void test32Parameters() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/32Parameters.kt"); } + @Test @TestMetadata("33Parameters.kt") public void test33Parameters() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/33Parameters.kt"); } + @Test public void testAllFilesPresentInMaskElimination() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/maskElimination"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt18792.kt") public void testKt18792() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt18792.kt"); } + @Test @TestMetadata("kt19679.kt") public void testKt19679() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679.kt"); } + @Test @TestMetadata("kt19679_2.kt") public void testKt19679_2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_2.kt"); } + @Test @TestMetadata("kt19679_3.kt") public void testKt19679_3() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_3.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/simple.kt"); @@ -1753,375 +1975,400 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/delegatedProperty") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DelegatedProperty extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class DelegatedProperty extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInDelegatedProperty() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/delegatedProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt16864.kt") public void testKt16864() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt16864.kt"); } + @Test @TestMetadata("local.kt") public void testLocal() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/local.kt"); } + @Test @TestMetadata("localDeclaredInLambda.kt") public void testLocalDeclaredInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/localDeclaredInLambda.kt"); } + @Test @TestMetadata("localInAnonymousObject.kt") public void testLocalInAnonymousObject() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/localInAnonymousObject.kt"); } + @Test @TestMetadata("localInLambda.kt") public void testLocalInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/localInLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/enclosingInfo") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class EnclosingInfo extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class EnclosingInfo extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInEnclosingInfo() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/enclosingInfo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("anonymousInLambda.kt") public void testAnonymousInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/anonymousInLambda.kt"); } + @Test @TestMetadata("inlineChain.kt") public void testInlineChain() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/inlineChain.kt"); } + @Test @TestMetadata("inlineChain2.kt") public void testInlineChain2() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/inlineChain2.kt"); } + @Test @TestMetadata("objectInInlineFun.kt") public void testObjectInInlineFun() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/objectInInlineFun.kt"); } + @Test @TestMetadata("transformedConstructor.kt") public void testTransformedConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/transformedConstructor.kt"); } + @Test @TestMetadata("transformedConstructorWithAdditionalObject.kt") public void testTransformedConstructorWithAdditionalObject() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/transformedConstructorWithAdditionalObject.kt"); } + @Test @TestMetadata("transformedConstructorWithNestedInline.kt") public void testTransformedConstructorWithNestedInline() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/transformedConstructorWithNestedInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/enum") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Enum extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class Enum extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInEnum() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/enum"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt10569.kt") public void testKt10569() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/kt10569.kt"); } + @Test @TestMetadata("kt18254.kt") public void testKt18254() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/kt18254.kt"); } + @Test @TestMetadata("valueOf.kt") public void testValueOf() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOf.kt"); } + @Test @TestMetadata("valueOfCapturedType.kt") public void testValueOfCapturedType() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOfCapturedType.kt"); } + @Test @TestMetadata("valueOfChain.kt") public void testValueOfChain() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOfChain.kt"); } + @Test @TestMetadata("valueOfChainCapturedType.kt") public void testValueOfChainCapturedType() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOfChainCapturedType.kt"); } + @Test @TestMetadata("valueOfNonReified.kt") public void testValueOfNonReified() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOfNonReified.kt"); } + @Test @TestMetadata("values.kt") public void testValues() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/values.kt"); } + @Test @TestMetadata("valuesAsArray.kt") public void testValuesAsArray() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesAsArray.kt"); } + @Test @TestMetadata("valuesCapturedType.kt") public void testValuesCapturedType() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesCapturedType.kt"); } + @Test @TestMetadata("valuesChain.kt") public void testValuesChain() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesChain.kt"); } + @Test @TestMetadata("valuesChainCapturedType.kt") public void testValuesChainCapturedType() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesChainCapturedType.kt"); } + @Test @TestMetadata("valuesNonReified.kt") public void testValuesNonReified() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesNonReified.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/functionExpression") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class FunctionExpression extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class FunctionExpression extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInFunctionExpression() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/functionExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("extension.kt") public void testExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/functionExpression/extension.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineClasses extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class InlineClasses extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInInlineClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("inlineClassWithInlineValReturningInlineClass.kt") public void testInlineClassWithInlineValReturningInlineClass() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineClassWithInlineValReturningInlineClass.kt"); } + @Test @TestMetadata("inlineFunctionInsideInlineClassesBox.kt") public void testInlineFunctionInsideInlineClassesBox() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt"); } + @Test @TestMetadata("noReturnTypeManglingFun.kt") public void testNoReturnTypeManglingFun() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/noReturnTypeManglingFun.kt"); } + @Test @TestMetadata("noReturnTypeManglingFunJvmName.kt") public void testNoReturnTypeManglingFunJvmName() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/noReturnTypeManglingFunJvmName.kt"); } + @Test @TestMetadata("noReturnTypeManglingVal.kt") public void testNoReturnTypeManglingVal() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/noReturnTypeManglingVal.kt"); } + @Test @TestMetadata("withReturnTypeManglingFun.kt") public void testWithReturnTypeManglingFun() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/withReturnTypeManglingFun.kt"); } + @Test @TestMetadata("withReturnTypeManglingFunJvmName.kt") public void testWithReturnTypeManglingFunJvmName() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/withReturnTypeManglingFunJvmName.kt"); } + @Test @TestMetadata("withReturnTypeManglingVal.kt") public void testWithReturnTypeManglingVal() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/withReturnTypeManglingVal.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class UnboxGenericParameter extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class UnboxGenericParameter extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInUnboxGenericParameter() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class FunInterface extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class FunInterface extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInFunInterface() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("any.kt") public void testAny() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/any.kt"); } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/anyN.kt"); } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/iface.kt"); } + @Test @TestMetadata("ifaceChild.kt") public void testIfaceChild() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/ifaceChild.kt"); } + @Test @TestMetadata("primitive.kt") public void testPrimitive() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/primitive.kt"); } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/string.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Lambda extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class Lambda extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("any.kt") public void testAny() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/any.kt"); } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/anyN.kt"); } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/iface.kt"); } + @Test @TestMetadata("ifaceChild.kt") public void testIfaceChild() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/ifaceChild.kt"); } + @Test @TestMetadata("primitive.kt") public void testPrimitive() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/primitive.kt"); } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/string.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ObjectLiteral extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class ObjectLiteral extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInObjectLiteral() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("any.kt") public void testAny() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/any.kt"); } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/anyN.kt"); } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/iface.kt"); } + @Test @TestMetadata("ifaceChild.kt") public void testIfaceChild() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChild.kt"); } + @Test @TestMetadata("primitive.kt") public void testPrimitive() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/primitive.kt"); } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/string.kt"); @@ -2130,239 +2377,231 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/innerClasses") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InnerClasses extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class InnerClasses extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInInnerClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/innerClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("captureThisAndOuter.kt") public void testCaptureThisAndOuter() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/captureThisAndOuter.kt"); } + @Test @TestMetadata("innerLambda.kt") public void testInnerLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/innerLambda.kt"); } + @Test @TestMetadata("kt10259.kt") public void testKt10259() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/kt10259.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/jvmName") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class JvmName extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class JvmName extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInJvmName() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/jvmName"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/jvmName/simple.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/jvmPackageName") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class JvmPackageName extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class JvmPackageName extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInJvmPackageName() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/jvmPackageName"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/jvmPackageName/simple.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/lambdaClassClash") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LambdaClassClash extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class LambdaClassClash extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInLambdaClassClash() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/lambdaClassClash"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("lambdaClassClash.kt") public void testLambdaClassClash() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaClassClash/lambdaClassClash.kt"); } + @Test @TestMetadata("noInlineLambdaX2.kt") public void testNoInlineLambdaX2() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaClassClash/noInlineLambdaX2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/lambdaTransformation") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LambdaTransformation extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class LambdaTransformation extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInLambdaTransformation() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/lambdaTransformation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("lambdaCloning.kt") public void testLambdaCloning() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/lambdaCloning.kt"); } + @Test @TestMetadata("lambdaInLambda2.kt") public void testLambdaInLambda2() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/lambdaInLambda2.kt"); } + @Test @TestMetadata("lambdaInLambdaNoInline.kt") public void testLambdaInLambdaNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/lambdaInLambdaNoInline.kt"); } + @Test @TestMetadata("regeneratedLambdaName.kt") public void testRegeneratedLambdaName() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/regeneratedLambdaName.kt"); } + @Test @TestMetadata("regeneratedLambdaName2.kt") public void testRegeneratedLambdaName2() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/regeneratedLambdaName2.kt"); } + @Test @TestMetadata("sameCaptured.kt") public void testSameCaptured() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/sameCaptured.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/localFunInLambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LocalFunInLambda extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class LocalFunInLambda extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInLocalFunInLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/localFunInLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("defaultParam.kt") public void testDefaultParam() throws Exception { runTest("compiler/testData/codegen/boxInline/localFunInLambda/defaultParam.kt"); } + @Test @TestMetadata("lambdaInLambdaCapturesAnotherFun.kt") public void testLambdaInLambdaCapturesAnotherFun() throws Exception { runTest("compiler/testData/codegen/boxInline/localFunInLambda/lambdaInLambdaCapturesAnotherFun.kt"); } + @Test @TestMetadata("localFunInLambda.kt") public void testLocalFunInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/localFunInLambda/localFunInLambda.kt"); } + @Test @TestMetadata("localFunInLambdaCapturesAnotherFun.kt") public void testLocalFunInLambdaCapturesAnotherFun() throws Exception { runTest("compiler/testData/codegen/boxInline/localFunInLambda/localFunInLambdaCapturesAnotherFun.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/multiModule") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MultiModule extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class MultiModule extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInMultiModule() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiModule"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("tryCatchWithRecursiveInline.kt") public void testTryCatchWithRecursiveInline() throws Exception { runTest("compiler/testData/codegen/boxInline/multiModule/tryCatchWithRecursiveInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/multifileClasses") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MultifileClasses extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class MultifileClasses extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInMultifileClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multifileClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("defaultArguments.kt") public void testDefaultArguments() throws Exception { runTest("compiler/testData/codegen/boxInline/multifileClasses/defaultArguments.kt"); } + @Test @TestMetadata("inlineFromOptimizedMultifileClass.kt") public void testInlineFromOptimizedMultifileClass() throws Exception { runTest("compiler/testData/codegen/boxInline/multifileClasses/inlineFromOptimizedMultifileClass.kt"); } + @Test @TestMetadata("inlineFromOtherPackage.kt") public void testInlineFromOtherPackage() throws Exception { runTest("compiler/testData/codegen/boxInline/multifileClasses/inlineFromOtherPackage.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/multiplatform") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Multiplatform extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class Multiplatform extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInMultiplatform() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/multiplatform/defaultArguments") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultArguments extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class DefaultArguments extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInDefaultArguments() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiplatform/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("receiversAndParametersInLambda.kt") public void testReceiversAndParametersInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/multiplatform/defaultArguments/receiversAndParametersInLambda.kt"); @@ -2370,575 +2609,640 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/noInline") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class NoInline extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class NoInline extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInNoInline() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/noInline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("extensionReceiver.kt") public void testExtensionReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/extensionReceiver.kt"); } + @Test @TestMetadata("lambdaAsGeneric.kt") public void testLambdaAsGeneric() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/lambdaAsGeneric.kt"); } + @Test @TestMetadata("lambdaAsNonFunction.kt") public void testLambdaAsNonFunction() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/lambdaAsNonFunction.kt"); } + @Test @TestMetadata("noInline.kt") public void testNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/noInline.kt"); } + @Test @TestMetadata("noInlineLambdaChain.kt") public void testNoInlineLambdaChain() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/noInlineLambdaChain.kt"); } + @Test @TestMetadata("noInlineLambdaChainWithCapturedInline.kt") public void testNoInlineLambdaChainWithCapturedInline() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/noInlineLambdaChainWithCapturedInline.kt"); } + @Test @TestMetadata("withoutInline.kt") public void testWithoutInline() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/withoutInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class NonLocalReturns extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class NonLocalReturns extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInNonLocalReturns() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("explicitLocalReturn.kt") public void testExplicitLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/explicitLocalReturn.kt"); } + @Test @TestMetadata("fromArrayGenerator.kt") public void testFromArrayGenerator() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGenerator.kt"); } + @Test @TestMetadata("fromArrayGeneratorCatch.kt") public void testFromArrayGeneratorCatch() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorCatch.kt"); } + @Test @TestMetadata("fromArrayGeneratorNested.kt") public void testFromArrayGeneratorNested() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorNested.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithCapture.kt") public void testFromArrayGeneratorWithCapture() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithCapture.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithCatch.kt") public void testFromArrayGeneratorWithCatch() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithCatch.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithFinally.kt") public void testFromArrayGeneratorWithFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithFinally.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithFinallyX2.kt") public void testFromArrayGeneratorWithFinallyX2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithFinallyX2.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithFinallyX2_2.kt") public void testFromArrayGeneratorWithFinallyX2_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithFinallyX2_2.kt"); } + @Test @TestMetadata("fromInterfaceDefaultGetter.kt") public void testFromInterfaceDefaultGetter() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromInterfaceDefaultGetter.kt"); } + @Test @TestMetadata("justReturnInLambda.kt") public void testJustReturnInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/justReturnInLambda.kt"); } + @Test @TestMetadata("kt5199.kt") public void testKt5199() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt5199.kt"); } + @Test @TestMetadata("kt8948.kt") public void testKt8948() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948.kt"); } + @Test @TestMetadata("kt8948v2.kt") public void testKt8948v2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt"); } + @Test @TestMetadata("nestedNonLocals.kt") public void testNestedNonLocals() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/nestedNonLocals.kt"); } + @Test @TestMetadata("noInlineLocalReturn.kt") public void testNoInlineLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/noInlineLocalReturn.kt"); } + @Test @TestMetadata("nonLocalReturnFromOuterLambda.kt") public void testNonLocalReturnFromOuterLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/nonLocalReturnFromOuterLambda.kt"); } + @Test @TestMetadata("propertyAccessors.kt") public void testPropertyAccessors() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/propertyAccessors.kt"); } + @Test @TestMetadata("returnFromFunctionExpr.kt") public void testReturnFromFunctionExpr() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/returnFromFunctionExpr.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simple.kt"); } + @Test @TestMetadata("simpleFunctional.kt") public void testSimpleFunctional() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simpleFunctional.kt"); } + @Test @TestMetadata("simpleVoid.kt") public void testSimpleVoid() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simpleVoid.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Deparenthesize extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class Deparenthesize extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInDeparenthesize() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("bracket.kt") public void testBracket() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize/bracket.kt"); } + @Test @TestMetadata("labeled.kt") public void testLabeled() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize/labeled.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class TryFinally extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class TryFinally extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInTryFinally() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt16417.kt") public void testKt16417() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt16417.kt"); } + @Test @TestMetadata("kt20433.kt") public void testKt20433() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433.kt"); } + @Test @TestMetadata("kt20433_2.kt") public void testKt20433_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2.kt"); } + @Test @TestMetadata("kt20433_2_void.kt") public void testKt20433_2_void() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2_void.kt"); } + @Test @TestMetadata("kt20433_void.kt") public void testKt20433_void() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_void.kt"); } + @Test @TestMetadata("kt26384.kt") public void testKt26384() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384.kt"); } + @Test @TestMetadata("kt26384_2.kt") public void testKt26384_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384_2.kt"); } + @Test @TestMetadata("kt28546.kt") public void testKt28546() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt28546.kt"); } + @Test @TestMetadata("kt6956.kt") public void testKt6956() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt6956.kt"); } + @Test @TestMetadata("kt7273.kt") public void testKt7273() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt7273.kt"); } + @Test @TestMetadata("nonLocalReturnFromCatchBlock.kt") public void testNonLocalReturnFromCatchBlock() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromCatchBlock.kt"); } + @Test @TestMetadata("nonLocalReturnFromOuterLambda.kt") public void testNonLocalReturnFromOuterLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromOuterLambda.kt"); } + @Test @TestMetadata("nonLocalReturnToCatchBlock.kt") public void testNonLocalReturnToCatchBlock() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnToCatchBlock.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CallSite extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class CallSite extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInCallSite() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("callSite.kt") public void testCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/callSite.kt"); } + @Test @TestMetadata("callSiteComplex.kt") public void testCallSiteComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/callSiteComplex.kt"); } + @Test @TestMetadata("exceptionTableSplit.kt") public void testExceptionTableSplit() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplit.kt"); } + @Test @TestMetadata("exceptionTableSplitNoReturn.kt") public void testExceptionTableSplitNoReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplitNoReturn.kt"); } + @Test @TestMetadata("finallyInFinally.kt") public void testFinallyInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/finallyInFinally.kt"); } + @Test @TestMetadata("wrongVarInterval.kt") public void testWrongVarInterval() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/wrongVarInterval.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Chained extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class Chained extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInChained() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("finallyInFinally.kt") public void testFinallyInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally.kt"); } + @Test @TestMetadata("finallyInFinally2.kt") public void testFinallyInFinally2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally2.kt"); } + @Test @TestMetadata("intReturn.kt") public void testIntReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturn.kt"); } + @Test @TestMetadata("intReturnComplex.kt") public void testIntReturnComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex.kt"); } + @Test @TestMetadata("intReturnComplex2.kt") public void testIntReturnComplex2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex2.kt"); } + @Test @TestMetadata("intReturnComplex3.kt") public void testIntReturnComplex3() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex3.kt"); } + @Test @TestMetadata("intReturnComplex4.kt") public void testIntReturnComplex4() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex4.kt"); } + @Test @TestMetadata("nestedLambda.kt") public void testNestedLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/nestedLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DeclSite extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class DeclSite extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInDeclSite() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("complex.kt") public void testComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/complex.kt"); } + @Test @TestMetadata("intReturn.kt") public void testIntReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturn.kt"); } + @Test @TestMetadata("intReturnComplex.kt") public void testIntReturnComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturnComplex.kt"); } + @Test @TestMetadata("longReturn.kt") public void testLongReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/longReturn.kt"); } + @Test @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/nested.kt"); } + @Test @TestMetadata("returnInFinally.kt") public void testReturnInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInFinally.kt"); } + @Test @TestMetadata("returnInTry.kt") public void testReturnInTry() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTry.kt"); } + @Test @TestMetadata("returnInTryAndFinally.kt") public void testReturnInTryAndFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTryAndFinally.kt"); } + @Test @TestMetadata("severalInTry.kt") public void testSeveralInTry() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTry.kt"); } + @Test @TestMetadata("severalInTryComplex.kt") public void testSeveralInTryComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTryComplex.kt"); } + @Test @TestMetadata("voidInlineFun.kt") public void testVoidInlineFun() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidInlineFun.kt"); } + @Test @TestMetadata("voidNonLocal.kt") public void testVoidNonLocal() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidNonLocal.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ExceptionTable extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class ExceptionTable extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInExceptionTable() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("break.kt") public void testBreak() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/break.kt"); } + @Test @TestMetadata("continue.kt") public void testContinue() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/continue.kt"); } + @Test @TestMetadata("exceptionInFinally.kt") public void testExceptionInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/exceptionInFinally.kt"); } + @Test @TestMetadata("forInFinally.kt") public void testForInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/forInFinally.kt"); } + @Test @TestMetadata("innerAndExternal.kt") public void testInnerAndExternal() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternal.kt"); } + @Test @TestMetadata("innerAndExternalNested.kt") public void testInnerAndExternalNested() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalNested.kt"); } + @Test @TestMetadata("innerAndExternalSimple.kt") public void testInnerAndExternalSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalSimple.kt"); } + @Test @TestMetadata("kt31653.kt") public void testKt31653() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653.kt"); } + @Test @TestMetadata("kt31653_2.kt") public void testKt31653_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653_2.kt"); } + @Test @TestMetadata("kt31923.kt") public void testKt31923() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923.kt"); } + @Test @TestMetadata("kt31923_2.kt") public void testKt31923_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923_2.kt"); } + @Test @TestMetadata("kt31923_wrong.kt") public void testKt31923_wrong() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923_wrong.kt"); } + @Test @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nested.kt"); } + @Test @TestMetadata("nestedWithReturns.kt") public void testNestedWithReturns() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturns.kt"); } + @Test @TestMetadata("nestedWithReturnsSimple.kt") public void testNestedWithReturnsSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturnsSimple.kt"); } + @Test @TestMetadata("noFinally.kt") public void testNoFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/noFinally.kt"); } + @Test @TestMetadata("severalCatchClause.kt") public void testSeveralCatchClause() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/severalCatchClause.kt"); } + @Test @TestMetadata("simpleThrow.kt") public void testSimpleThrow() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/simpleThrow.kt"); } + @Test @TestMetadata("synchonized.kt") public void testSynchonized() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/synchonized.kt"); } + @Test @TestMetadata("throwInFinally.kt") public void testThrowInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/throwInFinally.kt"); } + @Test @TestMetadata("tryCatchInFinally.kt") public void testTryCatchInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/tryCatchInFinally.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Variables extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class Variables extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInVariables() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt7792.kt") public void testKt7792() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables/kt7792.kt"); @@ -2947,450 +3251,501 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/optimizations") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Optimizations extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class Optimizations extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInOptimizations() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/optimizations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt20844.kt") public void testKt20844() throws Exception { runTest("compiler/testData/codegen/boxInline/optimizations/kt20844.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/private") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Private extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class Private extends AbstractFirBlackBoxInlineCodegenTest { + @Test @TestMetadata("accessorForConst.kt") public void testAccessorForConst() throws Exception { runTest("compiler/testData/codegen/boxInline/private/accessorForConst.kt"); } + @Test @TestMetadata("accessorStability.kt") public void testAccessorStability() throws Exception { runTest("compiler/testData/codegen/boxInline/private/accessorStability.kt"); } + @Test @TestMetadata("accessorStabilityInClass.kt") public void testAccessorStabilityInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/private/accessorStabilityInClass.kt"); } + @Test public void testAllFilesPresentInPrivate() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/private"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("effectivePrivate.kt") public void testEffectivePrivate() throws Exception { runTest("compiler/testData/codegen/boxInline/private/effectivePrivate.kt"); } + @Test @TestMetadata("kt6453.kt") public void testKt6453() throws Exception { runTest("compiler/testData/codegen/boxInline/private/kt6453.kt"); } + @Test @TestMetadata("kt8094.kt") public void testKt8094() throws Exception { runTest("compiler/testData/codegen/boxInline/private/kt8094.kt"); } + @Test @TestMetadata("kt8095.kt") public void testKt8095() throws Exception { runTest("compiler/testData/codegen/boxInline/private/kt8095.kt"); } + @Test @TestMetadata("nestedInPrivateClass.kt") public void testNestedInPrivateClass() throws Exception { runTest("compiler/testData/codegen/boxInline/private/nestedInPrivateClass.kt"); } + @Test @TestMetadata("privateClass.kt") public void testPrivateClass() throws Exception { runTest("compiler/testData/codegen/boxInline/private/privateClass.kt"); } + @Test @TestMetadata("privateClassExtensionLambda.kt") public void testPrivateClassExtensionLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/private/privateClassExtensionLambda.kt"); } + @Test @TestMetadata("privateInInlineInMultiFileFacade.kt") public void testPrivateInInlineInMultiFileFacade() throws Exception { runTest("compiler/testData/codegen/boxInline/private/privateInInlineInMultiFileFacade.kt"); } + @Test @TestMetadata("privateInline.kt") public void testPrivateInline() throws Exception { runTest("compiler/testData/codegen/boxInline/private/privateInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/property") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Property extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class Property extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInProperty() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/property"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("augAssignmentAndInc.kt") public void testAugAssignmentAndInc() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndInc.kt"); } + @Test @TestMetadata("augAssignmentAndIncInClass.kt") public void testAugAssignmentAndIncInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClass.kt"); } + @Test @TestMetadata("augAssignmentAndIncInClassViaConvention.kt") public void testAugAssignmentAndIncInClassViaConvention() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClassViaConvention.kt"); } + @Test @TestMetadata("augAssignmentAndIncOnExtension.kt") public void testAugAssignmentAndIncOnExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtension.kt"); } + @Test @TestMetadata("augAssignmentAndIncOnExtensionInClass.kt") public void testAugAssignmentAndIncOnExtensionInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtensionInClass.kt"); } + @Test @TestMetadata("augAssignmentAndIncViaConvention.kt") public void testAugAssignmentAndIncViaConvention() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncViaConvention.kt"); } + @Test @TestMetadata("fromObject.kt") public void testFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/property/fromObject.kt"); } + @Test @TestMetadata("kt22649.kt") public void testKt22649() throws Exception { runTest("compiler/testData/codegen/boxInline/property/kt22649.kt"); } + @Test @TestMetadata("property.kt") public void testProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/property/property.kt"); } + @Test @TestMetadata("reifiedVal.kt") public void testReifiedVal() throws Exception { runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt"); } + @Test @TestMetadata("reifiedVar.kt") public void testReifiedVar() throws Exception { runTest("compiler/testData/codegen/boxInline/property/reifiedVar.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/property/simple.kt"); } + @Test @TestMetadata("simpleExtension.kt") public void testSimpleExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/property/simpleExtension.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/reified") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Reified extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class Reified extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInReified() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("arrayConstructor.kt") public void testArrayConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/arrayConstructor.kt"); } + @Test @TestMetadata("arrayOf.kt") public void testArrayOf() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/arrayOf.kt"); } + @Test @TestMetadata("capturedLambda.kt") public void testCapturedLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/capturedLambda.kt"); } + @Test @TestMetadata("capturedLambda2.kt") public void testCapturedLambda2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/capturedLambda2.kt"); } + @Test @TestMetadata("dontSubstituteNonReified.kt") public void testDontSubstituteNonReified() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/dontSubstituteNonReified.kt"); } + @Test @TestMetadata("kt11081.kt") public void testKt11081() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt11081.kt"); } + @Test @TestMetadata("kt11677.kt") public void testKt11677() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt11677.kt"); } + @Test @TestMetadata("kt15956.kt") public void testKt15956() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt15956.kt"); } + @Test @TestMetadata("kt15997.kt") public void testKt15997() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt15997.kt"); } + @Test @TestMetadata("kt15997_2.kt") public void testKt15997_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt15997_2.kt"); } + @Test @TestMetadata("kt18977.kt") public void testKt18977() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt"); } + @Test @TestMetadata("kt35511.kt") public void testKt35511() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511.kt"); } + @Test @TestMetadata("kt35511_try.kt") public void testKt35511_try() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511_try.kt"); } + @Test @TestMetadata("kt35511_try_valueOf.kt") public void testKt35511_try_valueOf() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511_try_valueOf.kt"); } + @Test @TestMetadata("kt35511_try_values.kt") public void testKt35511_try_values() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511_try_values.kt"); } + @Test @TestMetadata("kt6988.kt") public void testKt6988() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt6988.kt"); } + @Test @TestMetadata("kt6988_2.kt") public void testKt6988_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt6988_2.kt"); } + @Test @TestMetadata("kt6990.kt") public void testKt6990() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt6990.kt"); } + @Test @TestMetadata("kt7017.kt") public void testKt7017() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt7017.kt"); } + @Test @TestMetadata("kt8047.kt") public void testKt8047() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt8047.kt"); } + @Test @TestMetadata("kt8047_2.kt") public void testKt8047_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt8047_2.kt"); } + @Test @TestMetadata("kt9637.kt") public void testKt9637() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt9637.kt"); } + @Test @TestMetadata("kt9637_2.kt") public void testKt9637_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt9637_2.kt"); } + @Test @TestMetadata("nonCapturingObjectInLambda.kt") public void testNonCapturingObjectInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/nonCapturingObjectInLambda.kt"); } + @Test @TestMetadata("packages.kt") public void testPackages() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/packages.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/reified/checkCast") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CheckCast extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class CheckCast extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInCheckCast() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified/checkCast"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("chain.kt") public void testChain() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/chain.kt"); } + @Test @TestMetadata("kt26435.kt") public void testKt26435() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt26435.kt"); } + @Test @TestMetadata("kt26435_2.kt") public void testKt26435_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt26435_2.kt"); } + @Test @TestMetadata("kt26435_3.kt") public void testKt26435_3() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt26435_3.kt"); } + @Test @TestMetadata("kt8043.kt") public void testKt8043() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt8043.kt"); } + @Test @TestMetadata("maxStack.kt") public void testMaxStack() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/maxStack.kt"); } + @Test @TestMetadata("nullable.kt") public void testNullable() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/nullable.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/simple.kt"); } + @Test @TestMetadata("simpleSafe.kt") public void testSimpleSafe() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/simpleSafe.kt"); } + @Test @TestMetadata("simple_1_3.kt") public void testSimple_1_3() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/simple_1_3.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/reified/defaultLambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultLambda extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class DefaultLambda extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInDefaultLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified/defaultLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("chain.kt") public void testChain() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/chain.kt"); } + @Test @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nested.kt"); } + @Test @TestMetadata("nested2.kt") public void testNested2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nested2.kt"); } + @Test @TestMetadata("nested2Static.kt") public void testNested2Static() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nested2Static.kt"); } + @Test @TestMetadata("nestedStatic.kt") public void testNestedStatic() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nestedStatic.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/simple.kt"); } + @Test @TestMetadata("transitiveChain.kt") public void testTransitiveChain() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/transitiveChain.kt"); } + @Test @TestMetadata("transitiveChainStatic.kt") public void testTransitiveChainStatic() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/transitiveChainStatic.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/reified/isCheck") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class IsCheck extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class IsCheck extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInIsCheck() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified/isCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("chain.kt") public void testChain() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/isCheck/chain.kt"); } + @Test @TestMetadata("nullable.kt") public void testNullable() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/isCheck/nullable.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/isCheck/simple.kt"); @@ -3398,518 +3753,577 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/signature") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Signature extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class Signature extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInSignature() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/signature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("inProjectionSubstitution.kt") public void testInProjectionSubstitution() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/inProjectionSubstitution.kt"); } + @Test @TestMetadata("outProjectionSubstitution.kt") public void testOutProjectionSubstitution() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/outProjectionSubstitution.kt"); } + @Test @TestMetadata("recursion.kt") public void testRecursion() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/recursion.kt"); } + @Test @TestMetadata("sameFormalParameterName.kt") public void testSameFormalParameterName() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/sameFormalParameterName.kt"); } + @Test @TestMetadata("sameReifiedFormalParameterName.kt") public void testSameReifiedFormalParameterName() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/sameReifiedFormalParameterName.kt"); } + @Test @TestMetadata("starProjectionSubstitution.kt") public void testStarProjectionSubstitution() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/starProjectionSubstitution.kt"); } + @Test @TestMetadata("typeParameterInLambda.kt") public void testTypeParameterInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/typeParameterInLambda.kt"); } + @Test @TestMetadata("typeParametersSubstitution.kt") public void testTypeParametersSubstitution() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/typeParametersSubstitution.kt"); } + @Test @TestMetadata("typeParametersSubstitution2.kt") public void testTypeParametersSubstitution2() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/typeParametersSubstitution2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/simple") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Simple extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class Simple extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInSimple() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/simple"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("captureAndArgumentIncompatibleTypes.kt") public void testCaptureAndArgumentIncompatibleTypes() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/captureAndArgumentIncompatibleTypes.kt"); } + @Test @TestMetadata("classObject.kt") public void testClassObject() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/classObject.kt"); } + @Test @TestMetadata("destructuring.kt") public void testDestructuring() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/destructuring.kt"); } + @Test @TestMetadata("destructuringIndexClash.kt") public void testDestructuringIndexClash() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/destructuringIndexClash.kt"); } + @Test @TestMetadata("extension.kt") public void testExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/extension.kt"); } + @Test @TestMetadata("extensionLambda.kt") public void testExtensionLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/extensionLambda.kt"); } + @Test @TestMetadata("funImportedFromObject.kt") public void testFunImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/funImportedFromObject.kt"); } + @Test @TestMetadata("inlineCallInInlineLambda.kt") public void testInlineCallInInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/inlineCallInInlineLambda.kt"); } + @Test @TestMetadata("kt17431.kt") public void testKt17431() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/kt17431.kt"); } + @Test @TestMetadata("kt28547.kt") public void testKt28547() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/kt28547.kt"); } + @Test @TestMetadata("kt28547_2.kt") public void testKt28547_2() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/kt28547_2.kt"); } + @Test @TestMetadata("params.kt") public void testParams() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/params.kt"); } + @Test @TestMetadata("propImportedFromObject.kt") public void testPropImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/propImportedFromObject.kt"); } + @Test @TestMetadata("rootConstructor.kt") public void testRootConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/rootConstructor.kt"); } + @Test @TestMetadata("safeCall.kt") public void testSafeCall() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/safeCall.kt"); } + @Test @TestMetadata("severalClosures.kt") public void testSeveralClosures() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/severalClosures.kt"); } + @Test @TestMetadata("severalUsage.kt") public void testSeveralUsage() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/severalUsage.kt"); } + @Test @TestMetadata("simpleDouble.kt") public void testSimpleDouble() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleDouble.kt"); } + @Test @TestMetadata("simpleEnum.kt") public void testSimpleEnum() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleEnum.kt"); } + @Test @TestMetadata("simpleGenerics.kt") public void testSimpleGenerics() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleGenerics.kt"); } + @Test @TestMetadata("simpleInt.kt") public void testSimpleInt() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleInt.kt"); } + @Test @TestMetadata("simpleLambda.kt") public void testSimpleLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleLambda.kt"); } + @Test @TestMetadata("simpleObject.kt") public void testSimpleObject() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleObject.kt"); } + @Test @TestMetadata("vararg.kt") public void testVararg() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/vararg.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Smap extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class Smap extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInSmap() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("assertion.kt") public void testAssertion() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/assertion.kt"); } + @Test @TestMetadata("classCycle.kt") public void testClassCycle() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/classCycle.kt"); } + @Test @TestMetadata("classFromDefaultPackage.kt") public void testClassFromDefaultPackage() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/classFromDefaultPackage.kt"); } + @Test @TestMetadata("crossroutines.kt") public void testCrossroutines() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/crossroutines.kt"); } + @Test @TestMetadata("defaultFunction.kt") public void testDefaultFunction() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultFunction.kt"); } + @Test @TestMetadata("defaultFunctionWithInlineCall.kt") public void testDefaultFunctionWithInlineCall() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultFunctionWithInlineCall.kt"); } + @Test @TestMetadata("forInline.kt") public void testForInline() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/forInline.kt"); } + @Test @TestMetadata("interleavedFiles.kt") public void testInterleavedFiles() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/interleavedFiles.kt"); } + @Test @TestMetadata("kt23369.kt") public void testKt23369() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/kt23369.kt"); } + @Test @TestMetadata("kt23369_2.kt") public void testKt23369_2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/kt23369_2.kt"); } + @Test @TestMetadata("kt23369_3.kt") public void testKt23369_3() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/kt23369_3.kt"); } + @Test @TestMetadata("kt35006.kt") public void testKt35006() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/kt35006.kt"); } + @Test @TestMetadata("multiFileFacade.kt") public void testMultiFileFacade() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/multiFileFacade.kt"); } + @Test @TestMetadata("oneFile.kt") public void testOneFile() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/oneFile.kt"); } + @Test @TestMetadata("rangeFolding.kt") public void testRangeFolding() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/rangeFolding.kt"); } + @Test @TestMetadata("rangeFoldingInClass.kt") public void testRangeFoldingInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/rangeFoldingInClass.kt"); } + @Test @TestMetadata("smap.kt") public void testSmap() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/smap.kt"); } + @Test @TestMetadata("smapWithNewSyntax.kt") public void testSmapWithNewSyntax() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/smapWithNewSyntax.kt"); } + @Test @TestMetadata("smapWithOldSyntax.kt") public void testSmapWithOldSyntax() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/smapWithOldSyntax.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/anonymous") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Anonymous extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class Anonymous extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInAnonymous() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt19175.kt") public void testKt19175() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/kt19175.kt"); } + @Test @TestMetadata("lambda.kt") public void testLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/lambda.kt"); } + @Test @TestMetadata("lambdaOnCallSite.kt") public void testLambdaOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/lambdaOnCallSite.kt"); } + @Test @TestMetadata("lambdaOnInlineCallSite.kt") public void testLambdaOnInlineCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/lambdaOnInlineCallSite.kt"); } + @Test @TestMetadata("object.kt") public void testObject() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/object.kt"); } + @Test @TestMetadata("objectOnCallSite.kt") public void testObjectOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnCallSite.kt"); } + @Test @TestMetadata("objectOnInlineCallSite.kt") public void testObjectOnInlineCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSite.kt"); } + @Test @TestMetadata("objectOnInlineCallSite2.kt") public void testObjectOnInlineCallSite2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSite2.kt"); } + @Test @TestMetadata("objectOnInlineCallSiteWithCapture.kt") public void testObjectOnInlineCallSiteWithCapture() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSiteWithCapture.kt"); } + @Test @TestMetadata("severalMappingsForDefaultFile.kt") public void testSeveralMappingsForDefaultFile() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/severalMappingsForDefaultFile.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/defaultLambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultLambda extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class DefaultLambda extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInDefaultLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/defaultLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("defaultLambdaInAnonymous.kt") public void testDefaultLambdaInAnonymous() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/defaultLambdaInAnonymous.kt"); } + @Test @TestMetadata("inlinInDefault.kt") public void testInlinInDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlinInDefault.kt"); } + @Test @TestMetadata("inlinInDefault2.kt") public void testInlinInDefault2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlinInDefault2.kt"); } + @Test @TestMetadata("inlineAnonymousInDefault.kt") public void testInlineAnonymousInDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlineAnonymousInDefault.kt"); } + @Test @TestMetadata("inlineAnonymousInDefault2.kt") public void testInlineAnonymousInDefault2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlineAnonymousInDefault2.kt"); } + @Test @TestMetadata("kt21827.kt") public void testKt21827() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/kt21827.kt"); } + @Test @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/nested.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/simple.kt"); } + @Test @TestMetadata("simple2.kt") public void testSimple2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/simple2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/inlineOnly") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineOnly extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class InlineOnly extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInInlineOnly() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/inlineOnly"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("noSmap.kt") public void testNoSmap() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/noSmap.kt"); } + @Test @TestMetadata("noSmapWithProperty.kt") public void testNoSmapWithProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/noSmapWithProperty.kt"); } + @Test @TestMetadata("reified.kt") public void testReified() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/reified.kt"); } + @Test @TestMetadata("reifiedProperty.kt") public void testReifiedProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/reifiedProperty.kt"); } + @Test @TestMetadata("stdlibInlineOnly.kt") public void testStdlibInlineOnly() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/stdlibInlineOnly.kt"); } + @Test @TestMetadata("stdlibInlineOnlyOneLine.kt") public void testStdlibInlineOnlyOneLine() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/stdlibInlineOnlyOneLine.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/newsmap") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Newsmap extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class Newsmap extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInNewsmap() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/newsmap"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("differentMapping.kt") public void testDifferentMapping() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/newsmap/differentMapping.kt"); } + @Test @TestMetadata("mappingInInlineFunLambda.kt") public void testMappingInInlineFunLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/newsmap/mappingInInlineFunLambda.kt"); } + @Test @TestMetadata("mappingInSubInlineLambda.kt") public void testMappingInSubInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/newsmap/mappingInSubInlineLambda.kt"); } + @Test @TestMetadata("mappingInSubInlineLambdaSameFileInline.kt") public void testMappingInSubInlineLambdaSameFileInline() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/newsmap/mappingInSubInlineLambdaSameFileInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/resolve") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Resolve extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class Resolve extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInResolve() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/resolve"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("inlineComponent.kt") public void testInlineComponent() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/resolve/inlineComponent.kt"); } + @Test @TestMetadata("inlineIterator.kt") public void testInlineIterator() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/resolve/inlineIterator.kt"); @@ -3917,621 +4331,695 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/special") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Special extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class Special extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInSpecial() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/special"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("identityCheck.kt") public void testIdentityCheck() throws Exception { runTest("compiler/testData/codegen/boxInline/special/identityCheck.kt"); } + @Test @TestMetadata("ifBranches.kt") public void testIfBranches() throws Exception { runTest("compiler/testData/codegen/boxInline/special/ifBranches.kt"); } + @Test @TestMetadata("iinc.kt") public void testIinc() throws Exception { runTest("compiler/testData/codegen/boxInline/special/iinc.kt"); } + @Test @TestMetadata("inlineChain.kt") public void testInlineChain() throws Exception { runTest("compiler/testData/codegen/boxInline/special/inlineChain.kt"); } + @Test @TestMetadata("loopInStoreLoadChains.kt") public void testLoopInStoreLoadChains() throws Exception { runTest("compiler/testData/codegen/boxInline/special/loopInStoreLoadChains.kt"); } + @Test @TestMetadata("loopInStoreLoadChains2.kt") public void testLoopInStoreLoadChains2() throws Exception { runTest("compiler/testData/codegen/boxInline/special/loopInStoreLoadChains2.kt"); } + @Test @TestMetadata("plusAssign.kt") public void testPlusAssign() throws Exception { runTest("compiler/testData/codegen/boxInline/special/plusAssign.kt"); } + @Test @TestMetadata("stackHeightBug.kt") public void testStackHeightBug() throws Exception { runTest("compiler/testData/codegen/boxInline/special/stackHeightBug.kt"); } + @Test @TestMetadata("unusedInlineLambda.kt") public void testUnusedInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/special/unusedInlineLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/stackOnReturn") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class StackOnReturn extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class StackOnReturn extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInStackOnReturn() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/stackOnReturn"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("elvis.kt") public void testElvis() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/elvis.kt"); } + @Test @TestMetadata("ifThenElse.kt") public void testIfThenElse() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/ifThenElse.kt"); } + @Test @TestMetadata("kt11499.kt") public void testKt11499() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt11499.kt"); } + @Test @TestMetadata("kt17591.kt") public void testKt17591() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt17591.kt"); } + @Test @TestMetadata("kt17591a.kt") public void testKt17591a() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt17591a.kt"); } + @Test @TestMetadata("kt17591b.kt") public void testKt17591b() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt17591b.kt"); } + @Test @TestMetadata("mixedTypesOnStack1.kt") public void testMixedTypesOnStack1() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack1.kt"); } + @Test @TestMetadata("mixedTypesOnStack2.kt") public void testMixedTypesOnStack2() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack2.kt"); } + @Test @TestMetadata("mixedTypesOnStack3.kt") public void testMixedTypesOnStack3() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack3.kt"); } + @Test @TestMetadata("nonLocalReturn1.kt") public void testNonLocalReturn1() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn1.kt"); } + @Test @TestMetadata("nonLocalReturn2.kt") public void testNonLocalReturn2() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn2.kt"); } + @Test @TestMetadata("nonLocalReturn3.kt") public void testNonLocalReturn3() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn3.kt"); } + @Test @TestMetadata("poppedLocalReturn.kt") public void testPoppedLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/poppedLocalReturn.kt"); } + @Test @TestMetadata("poppedLocalReturn2.kt") public void testPoppedLocalReturn2() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/poppedLocalReturn2.kt"); } + @Test @TestMetadata("returnLong.kt") public void testReturnLong() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/returnLong.kt"); } + @Test @TestMetadata("tryFinally.kt") public void testTryFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/tryFinally.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Suspend extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class Suspend extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInSuspend() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("capturedVariables.kt") public void testCapturedVariables() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/capturedVariables.kt"); } + @Test @TestMetadata("crossinlineSuspendLambdaInsideCrossinlineSuspendLambda.kt") public void testCrossinlineSuspendLambdaInsideCrossinlineSuspendLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/crossinlineSuspendLambdaInsideCrossinlineSuspendLambda.kt"); } + @Test @TestMetadata("debugMetadataCrossinline.kt") public void testDebugMetadataCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/debugMetadataCrossinline.kt"); } + @Test @TestMetadata("delegatedProperties.kt") public void testDelegatedProperties() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/delegatedProperties.kt"); } + @Test @TestMetadata("doubleRegenerationWithNonSuspendingLambda.kt") public void testDoubleRegenerationWithNonSuspendingLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/doubleRegenerationWithNonSuspendingLambda.kt"); } + @Test @TestMetadata("enclodingMethod.kt") public void testEnclodingMethod() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/enclodingMethod.kt"); } + @Test @TestMetadata("fileNameInMetadata.kt") public void testFileNameInMetadata() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/fileNameInMetadata.kt"); } + @Test @TestMetadata("inlineOrdinaryOfCrossinlineSuspend.kt") public void testInlineOrdinaryOfCrossinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfCrossinlineSuspend.kt"); } + @Test @TestMetadata("inlineOrdinaryOfNoinlineSuspend.kt") public void testInlineOrdinaryOfNoinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfNoinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendContinuation.kt") public void testInlineSuspendContinuation() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendContinuation.kt"); } + @Test @TestMetadata("inlineSuspendInMultifileClass.kt") public void testInlineSuspendInMultifileClass() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendInMultifileClass.kt"); } + @Test @TestMetadata("inlineSuspendOfCrossinlineOrdinary.kt") public void testInlineSuspendOfCrossinlineOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfCrossinlineSuspend.kt") public void testInlineSuspendOfCrossinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfNoinlineOrdinary.kt") public void testInlineSuspendOfNoinlineOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfNoinlineSuspend.kt") public void testInlineSuspendOfNoinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfOrdinary.kt") public void testInlineSuspendOfOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfSuspend.kt") public void testInlineSuspendOfSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfSuspend.kt"); } + @Test @TestMetadata("jvmName.kt") public void testJvmName() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/jvmName.kt"); } + @Test @TestMetadata("kt26658.kt") public void testKt26658() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/kt26658.kt"); } + @Test @TestMetadata("maxStackWithCrossinline.kt") public void testMaxStackWithCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/maxStackWithCrossinline.kt"); } + @Test @TestMetadata("multipleLocals.kt") public void testMultipleLocals() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/multipleLocals.kt"); } + @Test @TestMetadata("multipleSuspensionPoints.kt") public void testMultipleSuspensionPoints() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/multipleSuspensionPoints.kt"); } + @Test @TestMetadata("nestedMethodWith2XParameter.kt") public void testNestedMethodWith2XParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/nestedMethodWith2XParameter.kt"); } + @Test @TestMetadata("nonLocalReturn.kt") public void testNonLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/nonLocalReturn.kt"); } + @Test @TestMetadata("nonSuspendCrossinline.kt") public void testNonSuspendCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/nonSuspendCrossinline.kt"); } + @Test @TestMetadata("returnValue.kt") public void testReturnValue() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/returnValue.kt"); } + @Test @TestMetadata("tryCatchReceiver.kt") public void testTryCatchReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/tryCatchReceiver.kt"); } + @Test @TestMetadata("tryCatchStackTransform.kt") public void testTryCatchStackTransform() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/tryCatchStackTransform.kt"); } + @Test @TestMetadata("twiceRegeneratedAnonymousObject.kt") public void testTwiceRegeneratedAnonymousObject() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/twiceRegeneratedAnonymousObject.kt"); } + @Test @TestMetadata("twiceRegeneratedSuspendLambda.kt") public void testTwiceRegeneratedSuspendLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/twiceRegeneratedSuspendLambda.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/callableReference") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CallableReference extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class CallableReference extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInCallableReference() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("isAsReified.kt") public void testIsAsReified() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/isAsReified.kt"); } + @Test @TestMetadata("isAsReified2.kt") public void testIsAsReified2() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/isAsReified2.kt"); } + @Test @TestMetadata("nonTailCall.kt") public void testNonTailCall() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/nonTailCall.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/simple.kt"); } + @Test @TestMetadata("unitReturn.kt") public void testUnitReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/unitReturn.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/defaultParameter") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultParameter extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class DefaultParameter extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInDefaultParameter() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/defaultParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("defaultValueCrossinline.kt") public void testDefaultValueCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueCrossinline.kt"); } + @Test @TestMetadata("defaultValueInClass.kt") public void testDefaultValueInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInClass.kt"); } + @Test @TestMetadata("defaultValueInline.kt") public void testDefaultValueInline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInline.kt"); } + @Test @TestMetadata("defaultValueInlineFromMultiFileFacade.kt") public void testDefaultValueInlineFromMultiFileFacade() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInlineFromMultiFileFacade.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/inlineClass") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineClass extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class InlineClass extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInInlineClass() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("returnUnboxedDirect.kt") public void testReturnUnboxedDirect() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineClass/returnUnboxedDirect.kt"); } + @Test @TestMetadata("returnUnboxedResume.kt") public void testReturnUnboxedResume() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineClass/returnUnboxedResume.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineUsedAsNoinline extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class InlineUsedAsNoinline extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInInlineUsedAsNoinline() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("inlineOnly.kt") public void testInlineOnly() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/inlineOnly.kt"); } + @Test @TestMetadata("simpleNamed.kt") public void testSimpleNamed() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/simpleNamed.kt"); } + @Test @TestMetadata("withCapturedInlineLambda.kt") public void testWithCapturedInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/withCapturedInlineLambda.kt"); } + @Test @TestMetadata("withCapturedInlineLambda2.kt") public void testWithCapturedInlineLambda2() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/withCapturedInlineLambda2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/receiver") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Receiver extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class Receiver extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInReceiver() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/receiver"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("inlineOrdinaryOfCrossinlineSuspend.kt") public void testInlineOrdinaryOfCrossinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfCrossinlineSuspend.kt"); } + @Test @TestMetadata("inlineOrdinaryOfNoinlineSuspend.kt") public void testInlineOrdinaryOfNoinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfNoinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfCrossinlineOrdinary.kt") public void testInlineSuspendOfCrossinlineOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfCrossinlineSuspend.kt") public void testInlineSuspendOfCrossinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfNoinlineOrdinary.kt") public void testInlineSuspendOfNoinlineOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfNoinlineSuspend.kt") public void testInlineSuspendOfNoinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfOrdinary.kt") public void testInlineSuspendOfOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfSuspend.kt") public void testInlineSuspendOfSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfSuspend.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/stateMachine") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class StateMachine extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class StateMachine extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInStateMachine() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/stateMachine"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("crossingCoroutineBoundaries.kt") public void testCrossingCoroutineBoundaries() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/crossingCoroutineBoundaries.kt"); } + @Test @TestMetadata("independentInline.kt") public void testIndependentInline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/independentInline.kt"); } + @Test @TestMetadata("innerLambda.kt") public void testInnerLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambda.kt"); } + @Test @TestMetadata("innerLambdaInsideLambda.kt") public void testInnerLambdaInsideLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaInsideLambda.kt"); } + @Test @TestMetadata("innerLambdaWithoutCrossinline.kt") public void testInnerLambdaWithoutCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaWithoutCrossinline.kt"); } + @Test @TestMetadata("innerMadness.kt") public void testInnerMadness() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadness.kt"); } + @Test @TestMetadata("innerMadnessCallSite.kt") public void testInnerMadnessCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadnessCallSite.kt"); } + @Test @TestMetadata("innerObject.kt") public void testInnerObject() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObject.kt"); } + @Test @TestMetadata("innerObjectInsideInnerObject.kt") public void testInnerObjectInsideInnerObject() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectInsideInnerObject.kt"); } + @Test @TestMetadata("innerObjectRetransformation.kt") public void testInnerObjectRetransformation() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectRetransformation.kt"); } + @Test @TestMetadata("innerObjectSeveralFunctions.kt") public void testInnerObjectSeveralFunctions() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectSeveralFunctions.kt"); } + @Test @TestMetadata("innerObjectWithoutCapturingCrossinline.kt") public void testInnerObjectWithoutCapturingCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectWithoutCapturingCrossinline.kt"); } + @Test @TestMetadata("insideObject.kt") public void testInsideObject() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/insideObject.kt"); } + @Test @TestMetadata("kt30708.kt") public void testKt30708() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/kt30708.kt"); } + @Test @TestMetadata("lambdaTransformation.kt") public void testLambdaTransformation() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/lambdaTransformation.kt"); } + @Test @TestMetadata("normalInline.kt") public void testNormalInline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/normalInline.kt"); } + @Test @TestMetadata("numberOfSuspentions.kt") public void testNumberOfSuspentions() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/numberOfSuspentions.kt"); } + @Test @TestMetadata("objectInsideLambdas.kt") public void testObjectInsideLambdas() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/objectInsideLambdas.kt"); } + @Test @TestMetadata("oneInlineTwoCaptures.kt") public void testOneInlineTwoCaptures() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/oneInlineTwoCaptures.kt"); } + @Test @TestMetadata("passLambda.kt") public void testPassLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/passLambda.kt"); } + @Test @TestMetadata("passParameter.kt") public void testPassParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/passParameter.kt"); } + @Test @TestMetadata("passParameterLambda.kt") public void testPassParameterLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/passParameterLambda.kt"); } + @Test @TestMetadata("unreachableSuspendMarker.kt") public void testUnreachableSuspendMarker() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/unreachableSuspendMarker.kt"); @@ -4539,110 +5027,121 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/syntheticAccessors") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class SyntheticAccessors extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class SyntheticAccessors extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInSyntheticAccessors() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/syntheticAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("constField.kt") public void testConstField() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/constField.kt"); } + @Test @TestMetadata("packagePrivateMembers.kt") public void testPackagePrivateMembers() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/packagePrivateMembers.kt"); } + @Test @TestMetadata("propertyModifiers.kt") public void testPropertyModifiers() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/propertyModifiers.kt"); } + @Test @TestMetadata("protectedMembers.kt") public void testProtectedMembers() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/protectedMembers.kt"); } + @Test @TestMetadata("protectedMembersFromSuper.kt") public void testProtectedMembersFromSuper() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/protectedMembersFromSuper.kt"); } + @Test @TestMetadata("superCall.kt") public void testSuperCall() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/superCall.kt"); } + @Test @TestMetadata("superCallFromMultipleSubclasses.kt") public void testSuperCallFromMultipleSubclasses() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/superCallFromMultipleSubclasses.kt"); } + @Test @TestMetadata("superProperty.kt") public void testSuperProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/superProperty.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class WithinInlineLambda extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class WithinInlineLambda extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInWithinInlineLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("directFieldAccess.kt") public void testDirectFieldAccess() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/directFieldAccess.kt"); } + @Test @TestMetadata("directFieldAccessInCrossInline.kt") public void testDirectFieldAccessInCrossInline() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/directFieldAccessInCrossInline.kt"); } + @Test @TestMetadata("privateCall.kt") public void testPrivateCall() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateCall.kt"); } + @Test @TestMetadata("privateInCrossInline.kt") public void testPrivateInCrossInline() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInCrossInline.kt"); } + @Test @TestMetadata("privateInDefaultStubArgument.kt") public void testPrivateInDefaultStubArgument() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInDefaultStubArgument.kt"); } + @Test @TestMetadata("protectedInCrossinline.kt") public void testProtectedInCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/protectedInCrossinline.kt"); } + @Test @TestMetadata("protectedMembersFromSuper.kt") public void testProtectedMembersFromSuper() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/protectedMembersFromSuper.kt"); } + @Test @TestMetadata("superCall.kt") public void testSuperCall() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superCall.kt"); } + @Test @TestMetadata("superInCrossInline.kt") public void testSuperInCrossInline() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superInCrossInline.kt"); @@ -4650,79 +5149,78 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/trait") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Trait extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class Trait extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInTrait() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/trait"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("trait.kt") public void testTrait() throws Exception { runTest("compiler/testData/codegen/boxInline/trait/trait.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/tryCatchFinally") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class TryCatchFinally extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class TryCatchFinally extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInTryCatchFinally() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/tryCatchFinally"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt5863.kt") public void testKt5863() throws Exception { runTest("compiler/testData/codegen/boxInline/tryCatchFinally/kt5863.kt"); } + @Test @TestMetadata("tryCatch.kt") public void testTryCatch() throws Exception { runTest("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch.kt"); } + @Test @TestMetadata("tryCatch2.kt") public void testTryCatch2() throws Exception { runTest("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch2.kt"); } + @Test @TestMetadata("tryCatchFinally.kt") public void testTryCatchFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatchFinally.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/varargs") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Varargs extends AbstractFirBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: "); - } - + public class Varargs extends AbstractFirBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInVarargs() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/varargs"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt17653.kt") public void testKt17653() throws Exception { runTest("compiler/testData/codegen/boxInline/varargs/kt17653.kt"); } + @Test @TestMetadata("varargAndDefaultParameters.kt") public void testVarargAndDefaultParameters() throws Exception { runTest("compiler/testData/codegen/boxInline/varargs/varargAndDefaultParameters.kt"); } + @Test @TestMetadata("varargAndDefaultParameters2.kt") public void testVarargAndDefaultParameters2() throws Exception { runTest("compiler/testData/codegen/boxInline/varargs/varargAndDefaultParameters2.kt"); diff --git a/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/TestConfiguration.kt b/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/TestConfiguration.kt index 3c0b5c35fd6..d0dd7bfb70f 100644 --- a/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/TestConfiguration.kt +++ b/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/TestConfiguration.kt @@ -42,3 +42,8 @@ abstract class TestConfiguration { abstract fun getAllHandlers(): List> } +// ---------------------------- Utils ---------------------------- + +fun ((TestServices, T) -> R).bind(value: T): Constructor { + return { this.invoke(it, value) } +} diff --git a/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/TestRunner.kt b/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/TestRunner.kt index e5f6dba88e4..bd5a38164cf 100644 --- a/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/TestRunner.kt +++ b/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/TestRunner.kt @@ -35,11 +35,17 @@ class TestRunner(private val testConfiguration: TestConfiguration) { configurator.transformTestDataPath(fileName) } - val moduleStructure = testConfiguration.moduleStructureExtractor.splitTestDataByModules( - testDataFileName, - testConfiguration.directives, - ).also { - services.register(TestModuleStructure::class, it) + val moduleStructure = try { + testConfiguration.moduleStructureExtractor.splitTestDataByModules( + testDataFileName, + testConfiguration.directives, + ).also { + services.register(TestModuleStructure::class, it) + } + } catch (e: ExceptionFromModuleStructureTransformer) { + services.register(TestModuleStructure::class, e.alreadyParsedModuleStructure) + val exception = filterFailedExceptions(listOf(e.cause)).singleOrNull() ?: return + throw exception } testConfiguration.metaTestConfigurators.forEach { @@ -84,15 +90,17 @@ class TestRunner(private val testConfiguration: TestConfiguration) { } } - val filteredFailedAssertions = testConfiguration.afterAnalysisCheckers - .fold>(failedAssertions) { assertions, checker -> - checker.suppressIfNeeded(assertions) - } - .map { if (it is ExceptionFromTestError) it.cause else it } + val filteredFailedAssertions = filterFailedExceptions(failedAssertions) services.assertions.assertAll(filteredFailedAssertions) } + private fun filterFailedExceptions(failedExceptions: List): List = testConfiguration.afterAnalysisCheckers + .fold(failedExceptions) { assertions, checker -> + checker.suppressIfNeeded(assertions) + } + .map { if (it is ExceptionFromTestError) it.cause else it } + private fun processModule( services: TestServices, module: TestModule, diff --git a/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/services/ModuleStructureTransformer.kt b/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/services/ModuleStructureTransformer.kt index ff077417d37..644478191d5 100644 --- a/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/services/ModuleStructureTransformer.kt +++ b/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/services/ModuleStructureTransformer.kt @@ -11,3 +11,8 @@ import org.jetbrains.kotlin.test.TestInfrastructureInternals abstract class ModuleStructureTransformer { abstract fun transformModuleStructure(moduleStructure: TestModuleStructure): TestModuleStructure } + +class ExceptionFromModuleStructureTransformer( + override val cause: Throwable, + val alreadyParsedModuleStructure: TestModuleStructure +) : Exception(cause) diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/BlackBoxInlineCodegenTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxInlineCodegenTestGenerated.java similarity index 89% rename from compiler/tests-gen/org/jetbrains/kotlin/codegen/BlackBoxInlineCodegenTestGenerated.java rename to compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxInlineCodegenTestGenerated.java index a9df0cd2606..da4e81e75df 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/BlackBoxInlineCodegenTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxInlineCodegenTestGenerated.java @@ -3,579 +3,651 @@ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ -package org.jetbrains.kotlin.codegen; +package org.jetbrains.kotlin.test.runners.codegen; import com.intellij.testFramework.TestDataPath; -import org.jetbrains.kotlin.test.JUnit3RunnerWithInners; -import org.jetbrains.kotlin.test.KotlinTestUtils; import org.jetbrains.kotlin.test.util.KtTestUtil; import org.jetbrains.kotlin.test.TargetBackend; import org.jetbrains.kotlin.test.TestMetadata; -import org.junit.runner.RunWith; +import org.junit.jupiter.api.Nested; +import org.junit.jupiter.api.Test; import java.io.File; import java.util.regex.Pattern; -/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */ +/** This class is generated by {@link GenerateNewCompilerTests.kt}. DO NOT MODIFY MANUALLY */ @SuppressWarnings("all") @TestMetadata("compiler/testData/codegen/boxInline") @TestDataPath("$PROJECT_ROOT") -@RunWith(JUnit3RunnerWithInners.class) public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + @Test public void testAllFilesPresentInBoxInline() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class AnonymousObject extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class AnonymousObject extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInAnonymousObject() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("anonymousObjectInDefault.kt") public void testAnonymousObjectInDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectInDefault.kt"); } + @Test @TestMetadata("anonymousObjectOnCallSite.kt") public void testAnonymousObjectOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnCallSite.kt"); } + @Test @TestMetadata("anonymousObjectOnCallSiteSuperParams.kt") public void testAnonymousObjectOnCallSiteSuperParams() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnCallSiteSuperParams.kt"); } + @Test @TestMetadata("anonymousObjectOnDeclarationSite.kt") public void testAnonymousObjectOnDeclarationSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnDeclarationSite.kt"); } + @Test @TestMetadata("anonymousObjectOnDeclarationSiteSuperParams.kt") public void testAnonymousObjectOnDeclarationSiteSuperParams() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnDeclarationSiteSuperParams.kt"); } + @Test @TestMetadata("capturedLambdaInInline.kt") public void testCapturedLambdaInInline() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline.kt"); } + @Test @TestMetadata("capturedLambdaInInline2.kt") public void testCapturedLambdaInInline2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline2.kt"); } + @Test @TestMetadata("capturedLambdaInInline3.kt") public void testCapturedLambdaInInline3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline3.kt"); } + @Test @TestMetadata("capturedLambdaInInlineObject.kt") public void testCapturedLambdaInInlineObject() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInlineObject.kt"); } + @Test @TestMetadata("capturedLocalFun.kt") public void testCapturedLocalFun() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLocalFun.kt"); } + @Test @TestMetadata("capturedLocalFunRef.kt") public void testCapturedLocalFunRef() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLocalFunRef.kt"); } + @Test @TestMetadata("changingReturnType.kt") public void testChangingReturnType() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/changingReturnType.kt"); } + @Test @TestMetadata("constructOriginalInRegenerated.kt") public void testConstructOriginalInRegenerated() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/constructOriginalInRegenerated.kt"); } + @Test @TestMetadata("constructorVisibility.kt") public void testConstructorVisibility() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/constructorVisibility.kt"); } + @Test @TestMetadata("constructorVisibilityInConstLambda.kt") public void testConstructorVisibilityInConstLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/constructorVisibilityInConstLambda.kt"); } + @Test @TestMetadata("constructorVisibilityInLambda.kt") public void testConstructorVisibilityInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/constructorVisibilityInLambda.kt"); } + @Test @TestMetadata("defineClass.kt") public void testDefineClass() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt"); } + @Test @TestMetadata("functionExpression.kt") public void testFunctionExpression() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/functionExpression.kt"); } + @Test @TestMetadata("inlineCallInsideInlineLambda.kt") public void testInlineCallInsideInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/inlineCallInsideInlineLambda.kt"); } + @Test @TestMetadata("kt13133.kt") public void testKt13133() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt13133.kt"); } + @Test @TestMetadata("kt13182.kt") public void testKt13182() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt13182.kt"); } + @Test @TestMetadata("kt13374.kt") public void testKt13374() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt13374.kt"); } + @Test @TestMetadata("kt14011.kt") public void testKt14011() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt14011.kt"); } + @Test @TestMetadata("kt14011_2.kt") public void testKt14011_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt14011_2.kt"); } + @Test @TestMetadata("kt14011_3.kt") public void testKt14011_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt14011_3.kt"); } + @Test @TestMetadata("kt15751.kt") public void testKt15751() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt15751.kt"); } + @Test @TestMetadata("kt16193.kt") public void testKt16193() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt16193.kt"); } + @Test @TestMetadata("kt17972.kt") public void testKt17972() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972.kt"); } + @Test @TestMetadata("kt17972_2.kt") public void testKt17972_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_2.kt"); } + @Test @TestMetadata("kt17972_3.kt") public void testKt17972_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_3.kt"); } + @Test @TestMetadata("kt17972_4.kt") public void testKt17972_4() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_4.kt"); } + @Test @TestMetadata("kt17972_5.kt") public void testKt17972_5() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_5.kt"); } + @Test @TestMetadata("kt17972_super.kt") public void testKt17972_super() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_super.kt"); } + @Test @TestMetadata("kt17972_super2.kt") public void testKt17972_super2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_super2.kt"); } + @Test @TestMetadata("kt17972_super3.kt") public void testKt17972_super3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_super3.kt"); } + @Test @TestMetadata("kt19389.kt") public void testKt19389() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19389.kt"); } + @Test @TestMetadata("kt19399.kt") public void testKt19399() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19399.kt"); } + @Test @TestMetadata("kt19434.kt") public void testKt19434() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19434.kt"); } + @Test @TestMetadata("kt19434_2.kt") public void testKt19434_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19434_2.kt"); } + @Test @TestMetadata("kt19723.kt") public void testKt19723() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19723.kt"); } + @Test @TestMetadata("kt29595.kt") public void testKt29595() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt29595.kt"); } + @Test @TestMetadata("kt34656.kt") public void testKt34656() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt34656.kt"); } + @Test @TestMetadata("kt38197.kt") public void testKt38197() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt"); } + @Test @TestMetadata("kt42815.kt") public void testKt42815() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt42815.kt"); } + @Test @TestMetadata("kt42815_delegated.kt") public void testKt42815_delegated() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt42815_delegated.kt"); } + @Test @TestMetadata("kt6007.kt") public void testKt6007() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6007.kt"); } + @Test @TestMetadata("kt6552.kt") public void testKt6552() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6552.kt"); } + @Test @TestMetadata("kt8133.kt") public void testKt8133() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt8133.kt"); } + @Test @TestMetadata("kt9064.kt") public void testKt9064() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9064.kt"); } + @Test @TestMetadata("kt9064v2.kt") public void testKt9064v2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9064v2.kt"); } + @Test @TestMetadata("kt9591.kt") public void testKt9591() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9591.kt"); } + @Test @TestMetadata("kt9877.kt") public void testKt9877() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9877.kt"); } + @Test @TestMetadata("kt9877_2.kt") public void testKt9877_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9877_2.kt"); } + @Test @TestMetadata("objectInLambdaCapturesAnotherObject.kt") public void testObjectInLambdaCapturesAnotherObject() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/objectInLambdaCapturesAnotherObject.kt"); } + @Test @TestMetadata("safeCall.kt") public void testSafeCall() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/safeCall.kt"); } + @Test @TestMetadata("safeCall_2.kt") public void testSafeCall_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/safeCall_2.kt"); } + @Test @TestMetadata("sam.kt") public void testSam() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam.kt"); } + @Test @TestMetadata("sharedFromCrossinline.kt") public void testSharedFromCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sharedFromCrossinline.kt"); } + @Test @TestMetadata("superConstructorWithObjectParameter.kt") public void testSuperConstructorWithObjectParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/superConstructorWithObjectParameter.kt"); } + @Test @TestMetadata("typeInfo.kt") public void testTypeInfo() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/typeInfo.kt"); } + @Test @TestMetadata("withInlineMethod.kt") public void testWithInlineMethod() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/withInlineMethod.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/enumWhen") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class EnumWhen extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class EnumWhen extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInEnumWhen() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/enumWhen"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("callSite.kt") public void testCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/callSite.kt"); } + @Test @TestMetadata("declSite.kt") public void testDeclSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/declSite.kt"); } + @Test @TestMetadata("declSiteSeveralMappings.kt") public void testDeclSiteSeveralMappings() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/declSiteSeveralMappings.kt"); } + @Test @TestMetadata("declSiteSeveralMappingsDifOrder.kt") public void testDeclSiteSeveralMappingsDifOrder() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/declSiteSeveralMappingsDifOrder.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ProperRecapturing extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class ProperRecapturing extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInProperRecapturing() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("inlineChain.kt") public void testInlineChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/inlineChain.kt"); } + @Test @TestMetadata("lambdaChain.kt") public void testLambdaChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChain.kt"); } + @Test @TestMetadata("lambdaChainSimple.kt") public void testLambdaChainSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChainSimple.kt"); } + @Test @TestMetadata("lambdaChain_2.kt") public void testLambdaChain_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChain_2.kt"); } + @Test @TestMetadata("lambdaChain_3.kt") public void testLambdaChain_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChain_3.kt"); } + @Test @TestMetadata("noInlineLambda.kt") public void testNoInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/noInlineLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ProperRecapturingInClass extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class ProperRecapturingInClass extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInProperRecapturingInClass() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("inlineChain.kt") public void testInlineChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/inlineChain.kt"); } + @Test @TestMetadata("inlinelambdaChain.kt") public void testInlinelambdaChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/inlinelambdaChain.kt"); } + @Test @TestMetadata("lambdaChain.kt") public void testLambdaChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain.kt"); } + @Test @TestMetadata("lambdaChainSimple.kt") public void testLambdaChainSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChainSimple.kt"); } + @Test @TestMetadata("lambdaChainSimple_2.kt") public void testLambdaChainSimple_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChainSimple_2.kt"); } + @Test @TestMetadata("lambdaChain_2.kt") public void testLambdaChain_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain_2.kt"); } + @Test @TestMetadata("lambdaChain_3.kt") public void testLambdaChain_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain_3.kt"); } + @Test @TestMetadata("noCapturedThisOnCallSite.kt") public void testNoCapturedThisOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/noCapturedThisOnCallSite.kt"); } + @Test @TestMetadata("noInlineLambda.kt") public void testNoInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/noInlineLambda.kt"); } + @Test @TestMetadata("twoInlineLambda.kt") public void testTwoInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/twoInlineLambda.kt"); } + @Test @TestMetadata("twoInlineLambdaComplex.kt") public void testTwoInlineLambdaComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/twoInlineLambdaComplex.kt"); } + @Test @TestMetadata("twoInlineLambdaComplex_2.kt") public void testTwoInlineLambdaComplex_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/twoInlineLambdaComplex_2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/sam") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Sam extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Sam extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInSam() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("anonymousObjectToSam.kt") public void testAnonymousObjectToSam() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/anonymousObjectToSam.kt"); } + @Test @TestMetadata("kt17091.kt") public void testKt17091() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt17091.kt"); } + @Test @TestMetadata("kt21671.kt") public void testKt21671() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671.kt"); } + @Test @TestMetadata("kt21671_2.kt") public void testKt21671_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671_2.kt"); } + @Test @TestMetadata("kt21671_3.kt") public void testKt21671_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671_3.kt"); } + @Test @TestMetadata("kt22304.kt") public void testKt22304() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt22304.kt"); } + @Test @TestMetadata("samOnCallSite.kt") public void testSamOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/samOnCallSite.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class TwoCapturedReceivers extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class TwoCapturedReceivers extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInTwoCapturedReceivers() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("kt8668.kt") public void testKt8668() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668.kt"); } + @Test @TestMetadata("kt8668_2.kt") public void testKt8668_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_2.kt"); } + @Test @TestMetadata("kt8668_3.kt") public void testKt8668_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_3.kt"); } + @Test @TestMetadata("twoDifferentDispatchReceivers.kt") public void testTwoDifferentDispatchReceivers() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/twoDifferentDispatchReceivers.kt"); } + @Test @TestMetadata("twoExtensionReceivers.kt") public void testTwoExtensionReceivers() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/twoExtensionReceivers.kt"); @@ -583,470 +655,525 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/argumentOrder") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ArgumentOrder extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class ArgumentOrder extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInArgumentOrder() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/argumentOrder"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("boundFunctionReference.kt") public void testBoundFunctionReference() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/boundFunctionReference.kt"); } + @Test @TestMetadata("boundFunctionReference2.kt") public void testBoundFunctionReference2() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/boundFunctionReference2.kt"); } + @Test @TestMetadata("captured.kt") public void testCaptured() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/captured.kt"); } + @Test @TestMetadata("capturedInExtension.kt") public void testCapturedInExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/capturedInExtension.kt"); } + @Test @TestMetadata("defaultParametersAndLastVararg.kt") public void testDefaultParametersAndLastVararg() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/defaultParametersAndLastVararg.kt"); } + @Test @TestMetadata("defaultParametersAndLastVarargWithCorrectOrder.kt") public void testDefaultParametersAndLastVarargWithCorrectOrder() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/defaultParametersAndLastVarargWithCorrectOrder.kt"); } + @Test @TestMetadata("extension.kt") public void testExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/extension.kt"); } + @Test @TestMetadata("extensionInClass.kt") public void testExtensionInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/extensionInClass.kt"); } + @Test @TestMetadata("lambdaMigration.kt") public void testLambdaMigration() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/lambdaMigration.kt"); } + @Test @TestMetadata("lambdaMigrationInClass.kt") public void testLambdaMigrationInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/lambdaMigrationInClass.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/simple.kt"); } + @Test @TestMetadata("simpleInClass.kt") public void testSimpleInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/simpleInClass.kt"); } + @Test @TestMetadata("varargAndDefaultParameters.kt") public void testVarargAndDefaultParameters() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/varargAndDefaultParameters.kt"); } + @Test @TestMetadata("varargAndDefaultParametersWithCorrectOrder.kt") public void testVarargAndDefaultParametersWithCorrectOrder() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/varargAndDefaultParametersWithCorrectOrder.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/arrayConvention") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ArrayConvention extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class ArrayConvention extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInArrayConvention() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/arrayConvention"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("simpleAccess.kt") public void testSimpleAccess() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccess.kt"); } + @Test @TestMetadata("simpleAccessInClass.kt") public void testSimpleAccessInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessInClass.kt"); } + @Test @TestMetadata("simpleAccessWithDefault.kt") public void testSimpleAccessWithDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithDefault.kt"); } + @Test @TestMetadata("simpleAccessWithDefaultInClass.kt") public void testSimpleAccessWithDefaultInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithDefaultInClass.kt"); } + @Test @TestMetadata("simpleAccessWithLambda.kt") public void testSimpleAccessWithLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithLambda.kt"); } + @Test @TestMetadata("simpleAccessWithLambdaInClass.kt") public void testSimpleAccessWithLambdaInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithLambdaInClass.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/assert") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Assert extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Assert extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInAssert() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/assert"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("jvmAssertInlineFunctionAssertionsDisabled.kt") public void testJvmAssertInlineFunctionAssertionsDisabled() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmAssertInlineFunctionAssertionsDisabled.kt"); } + @Test @TestMetadata("jvmAssertInlineFunctionAssertionsEnabled.kt") public void testJvmAssertInlineFunctionAssertionsEnabled() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmAssertInlineFunctionAssertionsEnabled.kt"); } + @Test @TestMetadata("jvmAssertInlineLambda.kt") public void testJvmAssertInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmAssertInlineLambda.kt"); } + @Test @TestMetadata("jvmClassInitializer.kt") public void testJvmClassInitializer() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmClassInitializer.kt"); } + @Test @TestMetadata("jvmCompanion.kt") public void testJvmCompanion() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCompanion.kt"); } + @Test @TestMetadata("jvmCrossinlineLambda.kt") public void testJvmCrossinlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambda.kt"); } + @Test @TestMetadata("jvmCrossinlineLambda2.kt") public void testJvmCrossinlineLambda2() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambda2.kt"); } + @Test @TestMetadata("jvmCrossinlineLambdaDeclarationSite.kt") public void testJvmCrossinlineLambdaDeclarationSite() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambdaDeclarationSite.kt"); } + @Test @TestMetadata("jvmCrossinlineLambdaDeclarationSiteOnly.kt") public void testJvmCrossinlineLambdaDeclarationSiteOnly() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambdaDeclarationSiteOnly.kt"); } + @Test @TestMetadata("jvmCrossinlineSAMDeclarationSite.kt") public void testJvmCrossinlineSAMDeclarationSite() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineSAMDeclarationSite.kt"); } + @Test @TestMetadata("jvmDoubleInline.kt") public void testJvmDoubleInline() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmDoubleInline.kt"); } + @Test @TestMetadata("jvmInlineUsedAsNoinline.kt") public void testJvmInlineUsedAsNoinline() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmInlineUsedAsNoinline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/builders") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Builders extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Builders extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInBuilders() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/builders"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("builders.kt") public void testBuilders() throws Exception { runTest("compiler/testData/codegen/boxInline/builders/builders.kt"); } + @Test @TestMetadata("buildersAndLambdaCapturing.kt") public void testBuildersAndLambdaCapturing() throws Exception { runTest("compiler/testData/codegen/boxInline/builders/buildersAndLambdaCapturing.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/bytecodePreprocessing") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class BytecodePreprocessing extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class BytecodePreprocessing extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInBytecodePreprocessing() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/bytecodePreprocessing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("apiVersionAtLeast1.kt") public void testApiVersionAtLeast1() throws Exception { runTest("compiler/testData/codegen/boxInline/bytecodePreprocessing/apiVersionAtLeast1.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/callableReference") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CallableReference extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class CallableReference extends AbstractBlackBoxInlineCodegenTest { + @Test @TestMetadata("adapted.kt") public void testAdapted() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/adapted.kt"); } + @Test public void testAllFilesPresentInCallableReference() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("classLevel.kt") public void testClassLevel() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/classLevel.kt"); } + @Test @TestMetadata("classLevel2.kt") public void testClassLevel2() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/classLevel2.kt"); } + @Test @TestMetadata("constructor.kt") public void testConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/constructor.kt"); } + @Test @TestMetadata("innerGenericConstuctor.kt") public void testInnerGenericConstuctor() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/innerGenericConstuctor.kt"); } + @Test @TestMetadata("intrinsic.kt") public void testIntrinsic() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/intrinsic.kt"); } + @Test @TestMetadata("jvmFieldProperty.kt") public void testJvmFieldProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/jvmFieldProperty.kt"); } + @Test @TestMetadata("kt15449.kt") public void testKt15449() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/kt15449.kt"); } + @Test @TestMetadata("kt15751_2.kt") public void testKt15751_2() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/kt15751_2.kt"); } + @Test @TestMetadata("kt16411.kt") public void testKt16411() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/kt16411.kt"); } + @Test @TestMetadata("kt35101.kt") public void testKt35101() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/kt35101.kt"); } + @Test @TestMetadata("propertyIntrinsic.kt") public void testPropertyIntrinsic() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/propertyIntrinsic.kt"); } + @Test @TestMetadata("propertyReference.kt") public void testPropertyReference() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/propertyReference.kt"); } + @Test @TestMetadata("topLevel.kt") public void testTopLevel() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/topLevel.kt"); } + @Test @TestMetadata("topLevelExtension.kt") public void testTopLevelExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/topLevelExtension.kt"); } + @Test @TestMetadata("topLevelProperty.kt") public void testTopLevelProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/topLevelProperty.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/callableReference/bound") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Bound extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Bound extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInBound() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/callableReference/bound"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("classProperty.kt") public void testClassProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/classProperty.kt"); } + @Test @TestMetadata("emptyLhsFunction.kt") public void testEmptyLhsFunction() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsFunction.kt"); } + @Test @TestMetadata("emptyLhsOnInlineProperty.kt") public void testEmptyLhsOnInlineProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsOnInlineProperty.kt"); } + @Test @TestMetadata("emptyLhsProperty.kt") public void testEmptyLhsProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsProperty.kt"); } + @Test @TestMetadata("expression.kt") public void testExpression() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/expression.kt"); } + @Test @TestMetadata("extensionReceiver.kt") public void testExtensionReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/extensionReceiver.kt"); } + @Test @TestMetadata("filter.kt") public void testFilter() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/filter.kt"); } + @Test @TestMetadata("inlineValueParameterInsteadOfReceiver.kt") public void testInlineValueParameterInsteadOfReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/inlineValueParameterInsteadOfReceiver.kt"); } + @Test @TestMetadata("innerGenericConstuctor.kt") public void testInnerGenericConstuctor() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/innerGenericConstuctor.kt"); } + @Test @TestMetadata("intrinsic.kt") public void testIntrinsic() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/intrinsic.kt"); } + @Test @TestMetadata("jvmFieldProperty.kt") public void testJvmFieldProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/jvmFieldProperty.kt"); } + @Test @TestMetadata("kt18728.kt") public void testKt18728() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728.kt"); } + @Test @TestMetadata("kt18728_2.kt") public void testKt18728_2() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_2.kt"); } + @Test @TestMetadata("kt18728_3.kt") public void testKt18728_3() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_3.kt"); } + @Test @TestMetadata("kt18728_4.kt") public void testKt18728_4() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_4.kt"); } + @Test @TestMetadata("lambdaOnLhs.kt") public void testLambdaOnLhs() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/lambdaOnLhs.kt"); } + @Test @TestMetadata("map.kt") public void testMap() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/map.kt"); } + @Test @TestMetadata("mixed.kt") public void testMixed() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/mixed.kt"); } + @Test @TestMetadata("objectProperty.kt") public void testObjectProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/objectProperty.kt"); } + @Test @TestMetadata("propertyImportedFromObject.kt") public void testPropertyImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/propertyImportedFromObject.kt"); } + @Test @TestMetadata("sideEffect.kt") public void testSideEffect() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/sideEffect.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/simple.kt"); } + @Test @TestMetadata("simpleVal.kt") public void testSimpleVal() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/simpleVal.kt"); } + @Test @TestMetadata("simpleVal2.kt") public void testSimpleVal2() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/simpleVal2.kt"); } + @Test @TestMetadata("topLevelExtensionProperty.kt") public void testTopLevelExtensionProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/topLevelExtensionProperty.kt"); @@ -1054,649 +1181,740 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/capture") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Capture extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Capture extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInCapture() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/capture"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("captureInlinable.kt") public void testCaptureInlinable() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/captureInlinable.kt"); } + @Test @TestMetadata("captureInlinableAndOther.kt") public void testCaptureInlinableAndOther() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/captureInlinableAndOther.kt"); } + @Test @TestMetadata("captureThisAndReceiver.kt") public void testCaptureThisAndReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/captureThisAndReceiver.kt"); } + @Test @TestMetadata("generics.kt") public void testGenerics() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/generics.kt"); } + @Test @TestMetadata("simpleCapturingInClass.kt") public void testSimpleCapturingInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/simpleCapturingInClass.kt"); } + @Test @TestMetadata("simpleCapturingInPackage.kt") public void testSimpleCapturingInPackage() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/simpleCapturingInPackage.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/complex") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Complex extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Complex extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInComplex() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/complex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("closureChain.kt") public void testClosureChain() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/closureChain.kt"); } + @Test @TestMetadata("forEachLine.kt") public void testForEachLine() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/forEachLine.kt"); } + @Test @TestMetadata("kt44429.kt") public void testKt44429() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/kt44429.kt"); } + @Test @TestMetadata("lambdaInLambda.kt") public void testLambdaInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/lambdaInLambda.kt"); } + @Test @TestMetadata("swapAndWith.kt") public void testSwapAndWith() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/swapAndWith.kt"); } + @Test @TestMetadata("swapAndWith2.kt") public void testSwapAndWith2() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/swapAndWith2.kt"); } + @Test @TestMetadata("use.kt") public void testUse() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/use.kt"); } + @Test @TestMetadata("with.kt") public void testWith() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/with.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/complexStack") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ComplexStack extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class ComplexStack extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInComplexStack() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/complexStack"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("asCheck.kt") public void testAsCheck() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/asCheck.kt"); } + @Test @TestMetadata("asCheck2.kt") public void testAsCheck2() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/asCheck2.kt"); } + @Test @TestMetadata("breakContinueInInlineLambdaArgument.kt") public void testBreakContinueInInlineLambdaArgument() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/breakContinueInInlineLambdaArgument.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simple.kt"); } + @Test @TestMetadata("simple2.kt") public void testSimple2() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simple2.kt"); } + @Test @TestMetadata("simple3.kt") public void testSimple3() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simple3.kt"); } + @Test @TestMetadata("simple4.kt") public void testSimple4() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simple4.kt"); } + @Test @TestMetadata("simpleExtension.kt") public void testSimpleExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simpleExtension.kt"); } + @Test @TestMetadata("spillConstructorArgumentsAndInlineLambdaParameter.kt") public void testSpillConstructorArgumentsAndInlineLambdaParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/spillConstructorArgumentsAndInlineLambdaParameter.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/contracts") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Contracts extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Contracts extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInContracts() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/contracts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("cfgDependendValInitialization.kt") public void testCfgDependendValInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/cfgDependendValInitialization.kt"); } + @Test @TestMetadata("complexInitializer.kt") public void testComplexInitializer() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/complexInitializer.kt"); } + @Test @TestMetadata("complexInitializerWithStackTransformation.kt") public void testComplexInitializerWithStackTransformation() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/complexInitializerWithStackTransformation.kt"); } + @Test @TestMetadata("crossinlineCallableReference.kt") public void testCrossinlineCallableReference() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/crossinlineCallableReference.kt"); } + @Test @TestMetadata("definiteLongValInitialization.kt") public void testDefiniteLongValInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/definiteLongValInitialization.kt"); } + @Test @TestMetadata("definiteNestedValInitialization.kt") public void testDefiniteNestedValInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/definiteNestedValInitialization.kt"); } + @Test @TestMetadata("definiteValInitInInitializer.kt") public void testDefiniteValInitInInitializer() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/definiteValInitInInitializer.kt"); } + @Test @TestMetadata("definiteValInitialization.kt") public void testDefiniteValInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/definiteValInitialization.kt"); } + @Test @TestMetadata("exactlyOnceCrossinline.kt") public void testExactlyOnceCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline.kt"); } + @Test @TestMetadata("exactlyOnceCrossinline2.kt") public void testExactlyOnceCrossinline2() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline2.kt"); } + @Test @TestMetadata("exactlyOnceNoinline.kt") public void testExactlyOnceNoinline() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceNoinline.kt"); } + @Test @TestMetadata("nonLocalReturn.kt") public void testNonLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/nonLocalReturn.kt"); } + @Test @TestMetadata("nonLocalReturnWithCycle.kt") public void testNonLocalReturnWithCycle() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/nonLocalReturnWithCycle.kt"); } + @Test @TestMetadata("propertyInitialization.kt") public void testPropertyInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/propertyInitialization.kt"); } + @Test @TestMetadata("valInitializationAndUsageInNestedLambda.kt") public void testValInitializationAndUsageInNestedLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/valInitializationAndUsageInNestedLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/defaultValues") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultValues extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class DefaultValues extends AbstractBlackBoxInlineCodegenTest { + @Test @TestMetadata("33Parameters.kt") public void test33Parameters() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/33Parameters.kt"); } + @Test @TestMetadata("33ParametersInConstructor.kt") public void test33ParametersInConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/33ParametersInConstructor.kt"); } + @Test public void testAllFilesPresentInDefaultValues() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("defaultInExtension.kt") public void testDefaultInExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/defaultInExtension.kt"); } + @Test @TestMetadata("defaultMethod.kt") public void testDefaultMethod() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/defaultMethod.kt"); } + @Test @TestMetadata("defaultMethodInClass.kt") public void testDefaultMethodInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/defaultMethodInClass.kt"); } + @Test @TestMetadata("defaultParamRemapping.kt") public void testDefaultParamRemapping() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/defaultParamRemapping.kt"); } + @Test @TestMetadata("inlineInDefaultParameter.kt") public void testInlineInDefaultParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/inlineInDefaultParameter.kt"); } + @Test @TestMetadata("inlineLambdaInNoInlineDefault.kt") public void testInlineLambdaInNoInlineDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/inlineLambdaInNoInlineDefault.kt"); } + @Test @TestMetadata("kt11479.kt") public void testKt11479() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt11479.kt"); } + @Test @TestMetadata("kt11479InlinedDefaultParameter.kt") public void testKt11479InlinedDefaultParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt11479InlinedDefaultParameter.kt"); } + @Test @TestMetadata("kt14564.kt") public void testKt14564() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564.kt"); } + @Test @TestMetadata("kt14564_2.kt") public void testKt14564_2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564_2.kt"); } + @Test @TestMetadata("kt16496.kt") public void testKt16496() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt16496.kt"); } + @Test @TestMetadata("kt18689.kt") public void testKt18689() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689.kt"); } + @Test @TestMetadata("kt18689_2.kt") public void testKt18689_2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_2.kt"); } + @Test @TestMetadata("kt18689_3.kt") public void testKt18689_3() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_3.kt"); } + @Test @TestMetadata("kt18689_4.kt") public void testKt18689_4() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_4.kt"); } + @Test @TestMetadata("kt5685.kt") public void testKt5685() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt5685.kt"); } + @Test @TestMetadata("simpleDefaultMethod.kt") public void testSimpleDefaultMethod() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/simpleDefaultMethod.kt"); } + @Test @TestMetadata("varArgNoInline.kt") public void testVarArgNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/varArgNoInline.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LambdaInlining extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class LambdaInlining extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInLambdaInlining() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("checkLambdaClassIsPresent.kt") public void testCheckLambdaClassIsPresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkLambdaClassIsPresent.kt"); } + @Test @TestMetadata("checkLambdaClassesArePresent.kt") public void testCheckLambdaClassesArePresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkLambdaClassesArePresent.kt"); } + @Test @TestMetadata("checkObjectClassIsPresent.kt") public void testCheckObjectClassIsPresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkObjectClassIsPresent.kt"); } + @Test @TestMetadata("checkStaticLambdaClassIsPresent.kt") public void testCheckStaticLambdaClassIsPresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticLambdaClassIsPresent.kt"); } + @Test @TestMetadata("checkStaticLambdaClassesArePresent.kt") public void testCheckStaticLambdaClassesArePresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticLambdaClassesArePresent.kt"); } + @Test @TestMetadata("checkStaticObjectClassIsPresent.kt") public void testCheckStaticObjectClassIsPresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticObjectClassIsPresent.kt"); } + @Test @TestMetadata("defaultCallInDefaultLambda.kt") public void testDefaultCallInDefaultLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultCallInDefaultLambda.kt"); } + @Test @TestMetadata("defaultLambdaInNoInline.kt") public void testDefaultLambdaInNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultLambdaInNoInline.kt"); } + @Test @TestMetadata("differentInvokeSignature.kt") public void testDifferentInvokeSignature() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/differentInvokeSignature.kt"); } + @Test @TestMetadata("genericLambda.kt") public void testGenericLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/genericLambda.kt"); } + @Test @TestMetadata("instanceCapturedInClass.kt") public void testInstanceCapturedInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInClass.kt"); } + @Test @TestMetadata("instanceCapturedInInterface.kt") public void testInstanceCapturedInInterface() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInInterface.kt"); } + @Test @TestMetadata("jvmStaticDefault.kt") public void testJvmStaticDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/jvmStaticDefault.kt"); } + @Test @TestMetadata("kt21827.kt") public void testKt21827() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21827.kt"); } + @Test @TestMetadata("kt21946.kt") public void testKt21946() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21946.kt"); } + @Test @TestMetadata("kt24477.kt") public void testKt24477() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt24477.kt"); } + @Test @TestMetadata("kt25106.kt") public void testKt25106() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt25106.kt"); } + @Test @TestMetadata("kt26636.kt") public void testKt26636() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt26636.kt"); } + @Test @TestMetadata("noInline.kt") public void testNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/noInline.kt"); } + @Test @TestMetadata("nonDefaultInlineInNoInline.kt") public void testNonDefaultInlineInNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/nonDefaultInlineInNoInline.kt"); } + @Test @TestMetadata("receiverClash.kt") public void testReceiverClash() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash.kt"); } + @Test @TestMetadata("receiverClash2.kt") public void testReceiverClash2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash2.kt"); } + @Test @TestMetadata("receiverClashInClass.kt") public void testReceiverClashInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass.kt"); } + @Test @TestMetadata("receiverClashInClass2.kt") public void testReceiverClashInClass2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass2.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simple.kt"); } + @Test @TestMetadata("simpleErased.kt") public void testSimpleErased() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErased.kt"); } + @Test @TestMetadata("simpleErasedStaticInstance.kt") public void testSimpleErasedStaticInstance() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErasedStaticInstance.kt"); } + @Test @TestMetadata("simpleExtension.kt") public void testSimpleExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleExtension.kt"); } + @Test @TestMetadata("simpleGeneric.kt") public void testSimpleGeneric() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleGeneric.kt"); } + @Test @TestMetadata("simpleStaticInstance.kt") public void testSimpleStaticInstance() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleStaticInstance.kt"); } + @Test @TestMetadata("thisClash.kt") public void testThisClash() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClash.kt"); } + @Test @TestMetadata("thisClashInClass.kt") public void testThisClashInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClashInClass.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CallableReferences extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class CallableReferences extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInCallableReferences() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("boundFunctionReference.kt") public void testBoundFunctionReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReference.kt"); } + @Test @TestMetadata("boundFunctionReferenceOnInt.kt") public void testBoundFunctionReferenceOnInt() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnInt.kt"); } + @Test @TestMetadata("boundFunctionReferenceOnLong.kt") public void testBoundFunctionReferenceOnLong() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnLong.kt"); } + @Test @TestMetadata("boundPropertyReference.kt") public void testBoundPropertyReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReference.kt"); } + @Test @TestMetadata("boundPropertyReferenceOnInt.kt") public void testBoundPropertyReferenceOnInt() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnInt.kt"); } + @Test @TestMetadata("boundPropertyReferenceOnLong.kt") public void testBoundPropertyReferenceOnLong() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnLong.kt"); } + @Test @TestMetadata("constuctorReference.kt") public void testConstuctorReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/constuctorReference.kt"); } + @Test @TestMetadata("differentInvokeSignature.kt") public void testDifferentInvokeSignature() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature.kt"); } + @Test @TestMetadata("differentInvokeSignature2.kt") public void testDifferentInvokeSignature2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature2.kt"); } + @Test @TestMetadata("functionImportedFromObject.kt") public void testFunctionImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionImportedFromObject.kt"); } + @Test @TestMetadata("functionReference.kt") public void testFunctionReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReference.kt"); } + @Test @TestMetadata("functionReferenceFromClass.kt") public void testFunctionReferenceFromClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromClass.kt"); } + @Test @TestMetadata("functionReferenceFromObject.kt") public void testFunctionReferenceFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromObject.kt"); } + @Test @TestMetadata("innerClassConstuctorReference.kt") public void testInnerClassConstuctorReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/innerClassConstuctorReference.kt"); } + @Test @TestMetadata("mutableBoundPropertyReferenceFromClass.kt") public void testMutableBoundPropertyReferenceFromClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutableBoundPropertyReferenceFromClass.kt"); } + @Test @TestMetadata("mutablePropertyReferenceFromClass.kt") public void testMutablePropertyReferenceFromClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutablePropertyReferenceFromClass.kt"); } + @Test @TestMetadata("privateFunctionReference.kt") public void testPrivateFunctionReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privateFunctionReference.kt"); } + @Test @TestMetadata("privatePropertyReference.kt") public void testPrivatePropertyReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privatePropertyReference.kt"); } + @Test @TestMetadata("propertyImportedFromObject.kt") public void testPropertyImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyImportedFromObject.kt"); } + @Test @TestMetadata("propertyReference.kt") public void testPropertyReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReference.kt"); } + @Test @TestMetadata("propertyReferenceFromClass.kt") public void testPropertyReferenceFromClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromClass.kt"); } + @Test @TestMetadata("propertyReferenceFromObject.kt") public void testPropertyReferenceFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromObject.kt"); @@ -1704,48 +1922,52 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/defaultValues/maskElimination") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MaskElimination extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class MaskElimination extends AbstractBlackBoxInlineCodegenTest { + @Test @TestMetadata("32Parameters.kt") public void test32Parameters() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/32Parameters.kt"); } + @Test @TestMetadata("33Parameters.kt") public void test33Parameters() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/33Parameters.kt"); } + @Test public void testAllFilesPresentInMaskElimination() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/maskElimination"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("kt18792.kt") public void testKt18792() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt18792.kt"); } + @Test @TestMetadata("kt19679.kt") public void testKt19679() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679.kt"); } + @Test @TestMetadata("kt19679_2.kt") public void testKt19679_2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_2.kt"); } + @Test @TestMetadata("kt19679_3.kt") public void testKt19679_3() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_3.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/simple.kt"); @@ -1753,375 +1975,400 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/delegatedProperty") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DelegatedProperty extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class DelegatedProperty extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInDelegatedProperty() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/delegatedProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("kt16864.kt") public void testKt16864() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt16864.kt"); } + @Test @TestMetadata("local.kt") public void testLocal() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/local.kt"); } + @Test @TestMetadata("localDeclaredInLambda.kt") public void testLocalDeclaredInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/localDeclaredInLambda.kt"); } + @Test @TestMetadata("localInAnonymousObject.kt") public void testLocalInAnonymousObject() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/localInAnonymousObject.kt"); } + @Test @TestMetadata("localInLambda.kt") public void testLocalInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/localInLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/enclosingInfo") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class EnclosingInfo extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class EnclosingInfo extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInEnclosingInfo() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/enclosingInfo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("anonymousInLambda.kt") public void testAnonymousInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/anonymousInLambda.kt"); } + @Test @TestMetadata("inlineChain.kt") public void testInlineChain() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/inlineChain.kt"); } + @Test @TestMetadata("inlineChain2.kt") public void testInlineChain2() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/inlineChain2.kt"); } + @Test @TestMetadata("objectInInlineFun.kt") public void testObjectInInlineFun() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/objectInInlineFun.kt"); } + @Test @TestMetadata("transformedConstructor.kt") public void testTransformedConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/transformedConstructor.kt"); } + @Test @TestMetadata("transformedConstructorWithAdditionalObject.kt") public void testTransformedConstructorWithAdditionalObject() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/transformedConstructorWithAdditionalObject.kt"); } + @Test @TestMetadata("transformedConstructorWithNestedInline.kt") public void testTransformedConstructorWithNestedInline() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/transformedConstructorWithNestedInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/enum") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Enum extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Enum extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInEnum() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/enum"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("kt10569.kt") public void testKt10569() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/kt10569.kt"); } + @Test @TestMetadata("kt18254.kt") public void testKt18254() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/kt18254.kt"); } + @Test @TestMetadata("valueOf.kt") public void testValueOf() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOf.kt"); } + @Test @TestMetadata("valueOfCapturedType.kt") public void testValueOfCapturedType() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOfCapturedType.kt"); } + @Test @TestMetadata("valueOfChain.kt") public void testValueOfChain() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOfChain.kt"); } + @Test @TestMetadata("valueOfChainCapturedType.kt") public void testValueOfChainCapturedType() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOfChainCapturedType.kt"); } + @Test @TestMetadata("valueOfNonReified.kt") public void testValueOfNonReified() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOfNonReified.kt"); } + @Test @TestMetadata("values.kt") public void testValues() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/values.kt"); } + @Test @TestMetadata("valuesAsArray.kt") public void testValuesAsArray() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesAsArray.kt"); } + @Test @TestMetadata("valuesCapturedType.kt") public void testValuesCapturedType() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesCapturedType.kt"); } + @Test @TestMetadata("valuesChain.kt") public void testValuesChain() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesChain.kt"); } + @Test @TestMetadata("valuesChainCapturedType.kt") public void testValuesChainCapturedType() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesChainCapturedType.kt"); } + @Test @TestMetadata("valuesNonReified.kt") public void testValuesNonReified() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesNonReified.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/functionExpression") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class FunctionExpression extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class FunctionExpression extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInFunctionExpression() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/functionExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("extension.kt") public void testExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/functionExpression/extension.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineClasses extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class InlineClasses extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInInlineClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("inlineClassWithInlineValReturningInlineClass.kt") public void testInlineClassWithInlineValReturningInlineClass() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineClassWithInlineValReturningInlineClass.kt"); } + @Test @TestMetadata("inlineFunctionInsideInlineClassesBox.kt") public void testInlineFunctionInsideInlineClassesBox() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt"); } + @Test @TestMetadata("noReturnTypeManglingFun.kt") public void testNoReturnTypeManglingFun() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/noReturnTypeManglingFun.kt"); } + @Test @TestMetadata("noReturnTypeManglingFunJvmName.kt") public void testNoReturnTypeManglingFunJvmName() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/noReturnTypeManglingFunJvmName.kt"); } + @Test @TestMetadata("noReturnTypeManglingVal.kt") public void testNoReturnTypeManglingVal() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/noReturnTypeManglingVal.kt"); } + @Test @TestMetadata("withReturnTypeManglingFun.kt") public void testWithReturnTypeManglingFun() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/withReturnTypeManglingFun.kt"); } + @Test @TestMetadata("withReturnTypeManglingFunJvmName.kt") public void testWithReturnTypeManglingFunJvmName() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/withReturnTypeManglingFunJvmName.kt"); } + @Test @TestMetadata("withReturnTypeManglingVal.kt") public void testWithReturnTypeManglingVal() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/withReturnTypeManglingVal.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class UnboxGenericParameter extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class UnboxGenericParameter extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInUnboxGenericParameter() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class FunInterface extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class FunInterface extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInFunInterface() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("any.kt") public void testAny() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/any.kt"); } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/anyN.kt"); } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/iface.kt"); } + @Test @TestMetadata("ifaceChild.kt") public void testIfaceChild() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/ifaceChild.kt"); } + @Test @TestMetadata("primitive.kt") public void testPrimitive() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/primitive.kt"); } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/string.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Lambda extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Lambda extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("any.kt") public void testAny() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/any.kt"); } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/anyN.kt"); } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/iface.kt"); } + @Test @TestMetadata("ifaceChild.kt") public void testIfaceChild() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/ifaceChild.kt"); } + @Test @TestMetadata("primitive.kt") public void testPrimitive() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/primitive.kt"); } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/string.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ObjectLiteral extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class ObjectLiteral extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInObjectLiteral() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("any.kt") public void testAny() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/any.kt"); } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/anyN.kt"); } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/iface.kt"); } + @Test @TestMetadata("ifaceChild.kt") public void testIfaceChild() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChild.kt"); } + @Test @TestMetadata("primitive.kt") public void testPrimitive() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/primitive.kt"); } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/string.kt"); @@ -2130,239 +2377,231 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/innerClasses") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InnerClasses extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class InnerClasses extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInInnerClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/innerClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("captureThisAndOuter.kt") public void testCaptureThisAndOuter() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/captureThisAndOuter.kt"); } + @Test @TestMetadata("innerLambda.kt") public void testInnerLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/innerLambda.kt"); } + @Test @TestMetadata("kt10259.kt") public void testKt10259() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/kt10259.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/jvmName") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class JvmName extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class JvmName extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInJvmName() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/jvmName"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/jvmName/simple.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/jvmPackageName") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class JvmPackageName extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class JvmPackageName extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInJvmPackageName() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/jvmPackageName"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/jvmPackageName/simple.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/lambdaClassClash") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LambdaClassClash extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class LambdaClassClash extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInLambdaClassClash() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/lambdaClassClash"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("lambdaClassClash.kt") public void testLambdaClassClash() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaClassClash/lambdaClassClash.kt"); } + @Test @TestMetadata("noInlineLambdaX2.kt") public void testNoInlineLambdaX2() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaClassClash/noInlineLambdaX2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/lambdaTransformation") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LambdaTransformation extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class LambdaTransformation extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInLambdaTransformation() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/lambdaTransformation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("lambdaCloning.kt") public void testLambdaCloning() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/lambdaCloning.kt"); } + @Test @TestMetadata("lambdaInLambda2.kt") public void testLambdaInLambda2() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/lambdaInLambda2.kt"); } + @Test @TestMetadata("lambdaInLambdaNoInline.kt") public void testLambdaInLambdaNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/lambdaInLambdaNoInline.kt"); } + @Test @TestMetadata("regeneratedLambdaName.kt") public void testRegeneratedLambdaName() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/regeneratedLambdaName.kt"); } + @Test @TestMetadata("regeneratedLambdaName2.kt") public void testRegeneratedLambdaName2() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/regeneratedLambdaName2.kt"); } + @Test @TestMetadata("sameCaptured.kt") public void testSameCaptured() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/sameCaptured.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/localFunInLambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LocalFunInLambda extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class LocalFunInLambda extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInLocalFunInLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/localFunInLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("defaultParam.kt") public void testDefaultParam() throws Exception { runTest("compiler/testData/codegen/boxInline/localFunInLambda/defaultParam.kt"); } + @Test @TestMetadata("lambdaInLambdaCapturesAnotherFun.kt") public void testLambdaInLambdaCapturesAnotherFun() throws Exception { runTest("compiler/testData/codegen/boxInline/localFunInLambda/lambdaInLambdaCapturesAnotherFun.kt"); } + @Test @TestMetadata("localFunInLambda.kt") public void testLocalFunInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/localFunInLambda/localFunInLambda.kt"); } + @Test @TestMetadata("localFunInLambdaCapturesAnotherFun.kt") public void testLocalFunInLambdaCapturesAnotherFun() throws Exception { runTest("compiler/testData/codegen/boxInline/localFunInLambda/localFunInLambdaCapturesAnotherFun.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/multiModule") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MultiModule extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class MultiModule extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInMultiModule() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiModule"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("tryCatchWithRecursiveInline.kt") public void testTryCatchWithRecursiveInline() throws Exception { runTest("compiler/testData/codegen/boxInline/multiModule/tryCatchWithRecursiveInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/multifileClasses") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MultifileClasses extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class MultifileClasses extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInMultifileClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multifileClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("defaultArguments.kt") public void testDefaultArguments() throws Exception { runTest("compiler/testData/codegen/boxInline/multifileClasses/defaultArguments.kt"); } + @Test @TestMetadata("inlineFromOptimizedMultifileClass.kt") public void testInlineFromOptimizedMultifileClass() throws Exception { runTest("compiler/testData/codegen/boxInline/multifileClasses/inlineFromOptimizedMultifileClass.kt"); } + @Test @TestMetadata("inlineFromOtherPackage.kt") public void testInlineFromOtherPackage() throws Exception { runTest("compiler/testData/codegen/boxInline/multifileClasses/inlineFromOtherPackage.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/multiplatform") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Multiplatform extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Multiplatform extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInMultiplatform() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/multiplatform/defaultArguments") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultArguments extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class DefaultArguments extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInDefaultArguments() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiplatform/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("receiversAndParametersInLambda.kt") public void testReceiversAndParametersInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/multiplatform/defaultArguments/receiversAndParametersInLambda.kt"); @@ -2370,575 +2609,640 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/noInline") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class NoInline extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class NoInline extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInNoInline() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/noInline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("extensionReceiver.kt") public void testExtensionReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/extensionReceiver.kt"); } + @Test @TestMetadata("lambdaAsGeneric.kt") public void testLambdaAsGeneric() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/lambdaAsGeneric.kt"); } + @Test @TestMetadata("lambdaAsNonFunction.kt") public void testLambdaAsNonFunction() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/lambdaAsNonFunction.kt"); } + @Test @TestMetadata("noInline.kt") public void testNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/noInline.kt"); } + @Test @TestMetadata("noInlineLambdaChain.kt") public void testNoInlineLambdaChain() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/noInlineLambdaChain.kt"); } + @Test @TestMetadata("noInlineLambdaChainWithCapturedInline.kt") public void testNoInlineLambdaChainWithCapturedInline() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/noInlineLambdaChainWithCapturedInline.kt"); } + @Test @TestMetadata("withoutInline.kt") public void testWithoutInline() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/withoutInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class NonLocalReturns extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class NonLocalReturns extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInNonLocalReturns() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("explicitLocalReturn.kt") public void testExplicitLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/explicitLocalReturn.kt"); } + @Test @TestMetadata("fromArrayGenerator.kt") public void testFromArrayGenerator() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGenerator.kt"); } + @Test @TestMetadata("fromArrayGeneratorCatch.kt") public void testFromArrayGeneratorCatch() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorCatch.kt"); } + @Test @TestMetadata("fromArrayGeneratorNested.kt") public void testFromArrayGeneratorNested() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorNested.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithCapture.kt") public void testFromArrayGeneratorWithCapture() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithCapture.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithCatch.kt") public void testFromArrayGeneratorWithCatch() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithCatch.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithFinally.kt") public void testFromArrayGeneratorWithFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithFinally.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithFinallyX2.kt") public void testFromArrayGeneratorWithFinallyX2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithFinallyX2.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithFinallyX2_2.kt") public void testFromArrayGeneratorWithFinallyX2_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithFinallyX2_2.kt"); } + @Test @TestMetadata("fromInterfaceDefaultGetter.kt") public void testFromInterfaceDefaultGetter() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromInterfaceDefaultGetter.kt"); } + @Test @TestMetadata("justReturnInLambda.kt") public void testJustReturnInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/justReturnInLambda.kt"); } + @Test @TestMetadata("kt5199.kt") public void testKt5199() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt5199.kt"); } + @Test @TestMetadata("kt8948.kt") public void testKt8948() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948.kt"); } + @Test @TestMetadata("kt8948v2.kt") public void testKt8948v2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt"); } + @Test @TestMetadata("nestedNonLocals.kt") public void testNestedNonLocals() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/nestedNonLocals.kt"); } + @Test @TestMetadata("noInlineLocalReturn.kt") public void testNoInlineLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/noInlineLocalReturn.kt"); } + @Test @TestMetadata("nonLocalReturnFromOuterLambda.kt") public void testNonLocalReturnFromOuterLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/nonLocalReturnFromOuterLambda.kt"); } + @Test @TestMetadata("propertyAccessors.kt") public void testPropertyAccessors() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/propertyAccessors.kt"); } + @Test @TestMetadata("returnFromFunctionExpr.kt") public void testReturnFromFunctionExpr() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/returnFromFunctionExpr.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simple.kt"); } + @Test @TestMetadata("simpleFunctional.kt") public void testSimpleFunctional() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simpleFunctional.kt"); } + @Test @TestMetadata("simpleVoid.kt") public void testSimpleVoid() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simpleVoid.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Deparenthesize extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Deparenthesize extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInDeparenthesize() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("bracket.kt") public void testBracket() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize/bracket.kt"); } + @Test @TestMetadata("labeled.kt") public void testLabeled() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize/labeled.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class TryFinally extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class TryFinally extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInTryFinally() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("kt16417.kt") public void testKt16417() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt16417.kt"); } + @Test @TestMetadata("kt20433.kt") public void testKt20433() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433.kt"); } + @Test @TestMetadata("kt20433_2.kt") public void testKt20433_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2.kt"); } + @Test @TestMetadata("kt20433_2_void.kt") public void testKt20433_2_void() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2_void.kt"); } + @Test @TestMetadata("kt20433_void.kt") public void testKt20433_void() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_void.kt"); } + @Test @TestMetadata("kt26384.kt") public void testKt26384() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384.kt"); } + @Test @TestMetadata("kt26384_2.kt") public void testKt26384_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384_2.kt"); } + @Test @TestMetadata("kt28546.kt") public void testKt28546() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt28546.kt"); } + @Test @TestMetadata("kt6956.kt") public void testKt6956() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt6956.kt"); } + @Test @TestMetadata("kt7273.kt") public void testKt7273() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt7273.kt"); } + @Test @TestMetadata("nonLocalReturnFromCatchBlock.kt") public void testNonLocalReturnFromCatchBlock() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromCatchBlock.kt"); } + @Test @TestMetadata("nonLocalReturnFromOuterLambda.kt") public void testNonLocalReturnFromOuterLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromOuterLambda.kt"); } + @Test @TestMetadata("nonLocalReturnToCatchBlock.kt") public void testNonLocalReturnToCatchBlock() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnToCatchBlock.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CallSite extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class CallSite extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInCallSite() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("callSite.kt") public void testCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/callSite.kt"); } + @Test @TestMetadata("callSiteComplex.kt") public void testCallSiteComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/callSiteComplex.kt"); } + @Test @TestMetadata("exceptionTableSplit.kt") public void testExceptionTableSplit() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplit.kt"); } + @Test @TestMetadata("exceptionTableSplitNoReturn.kt") public void testExceptionTableSplitNoReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplitNoReturn.kt"); } + @Test @TestMetadata("finallyInFinally.kt") public void testFinallyInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/finallyInFinally.kt"); } + @Test @TestMetadata("wrongVarInterval.kt") public void testWrongVarInterval() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/wrongVarInterval.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Chained extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Chained extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInChained() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("finallyInFinally.kt") public void testFinallyInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally.kt"); } + @Test @TestMetadata("finallyInFinally2.kt") public void testFinallyInFinally2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally2.kt"); } + @Test @TestMetadata("intReturn.kt") public void testIntReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturn.kt"); } + @Test @TestMetadata("intReturnComplex.kt") public void testIntReturnComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex.kt"); } + @Test @TestMetadata("intReturnComplex2.kt") public void testIntReturnComplex2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex2.kt"); } + @Test @TestMetadata("intReturnComplex3.kt") public void testIntReturnComplex3() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex3.kt"); } + @Test @TestMetadata("intReturnComplex4.kt") public void testIntReturnComplex4() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex4.kt"); } + @Test @TestMetadata("nestedLambda.kt") public void testNestedLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/nestedLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DeclSite extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class DeclSite extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInDeclSite() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("complex.kt") public void testComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/complex.kt"); } + @Test @TestMetadata("intReturn.kt") public void testIntReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturn.kt"); } + @Test @TestMetadata("intReturnComplex.kt") public void testIntReturnComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturnComplex.kt"); } + @Test @TestMetadata("longReturn.kt") public void testLongReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/longReturn.kt"); } + @Test @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/nested.kt"); } + @Test @TestMetadata("returnInFinally.kt") public void testReturnInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInFinally.kt"); } + @Test @TestMetadata("returnInTry.kt") public void testReturnInTry() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTry.kt"); } + @Test @TestMetadata("returnInTryAndFinally.kt") public void testReturnInTryAndFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTryAndFinally.kt"); } + @Test @TestMetadata("severalInTry.kt") public void testSeveralInTry() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTry.kt"); } + @Test @TestMetadata("severalInTryComplex.kt") public void testSeveralInTryComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTryComplex.kt"); } + @Test @TestMetadata("voidInlineFun.kt") public void testVoidInlineFun() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidInlineFun.kt"); } + @Test @TestMetadata("voidNonLocal.kt") public void testVoidNonLocal() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidNonLocal.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ExceptionTable extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class ExceptionTable extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInExceptionTable() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("break.kt") public void testBreak() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/break.kt"); } + @Test @TestMetadata("continue.kt") public void testContinue() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/continue.kt"); } + @Test @TestMetadata("exceptionInFinally.kt") public void testExceptionInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/exceptionInFinally.kt"); } + @Test @TestMetadata("forInFinally.kt") public void testForInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/forInFinally.kt"); } + @Test @TestMetadata("innerAndExternal.kt") public void testInnerAndExternal() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternal.kt"); } + @Test @TestMetadata("innerAndExternalNested.kt") public void testInnerAndExternalNested() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalNested.kt"); } + @Test @TestMetadata("innerAndExternalSimple.kt") public void testInnerAndExternalSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalSimple.kt"); } + @Test @TestMetadata("kt31653.kt") public void testKt31653() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653.kt"); } + @Test @TestMetadata("kt31653_2.kt") public void testKt31653_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653_2.kt"); } + @Test @TestMetadata("kt31923.kt") public void testKt31923() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923.kt"); } + @Test @TestMetadata("kt31923_2.kt") public void testKt31923_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923_2.kt"); } + @Test @TestMetadata("kt31923_wrong.kt") public void testKt31923_wrong() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923_wrong.kt"); } + @Test @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nested.kt"); } + @Test @TestMetadata("nestedWithReturns.kt") public void testNestedWithReturns() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturns.kt"); } + @Test @TestMetadata("nestedWithReturnsSimple.kt") public void testNestedWithReturnsSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturnsSimple.kt"); } + @Test @TestMetadata("noFinally.kt") public void testNoFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/noFinally.kt"); } + @Test @TestMetadata("severalCatchClause.kt") public void testSeveralCatchClause() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/severalCatchClause.kt"); } + @Test @TestMetadata("simpleThrow.kt") public void testSimpleThrow() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/simpleThrow.kt"); } + @Test @TestMetadata("synchonized.kt") public void testSynchonized() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/synchonized.kt"); } + @Test @TestMetadata("throwInFinally.kt") public void testThrowInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/throwInFinally.kt"); } + @Test @TestMetadata("tryCatchInFinally.kt") public void testTryCatchInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/tryCatchInFinally.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Variables extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Variables extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInVariables() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("kt7792.kt") public void testKt7792() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables/kt7792.kt"); @@ -2947,450 +3251,501 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/optimizations") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Optimizations extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Optimizations extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInOptimizations() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/optimizations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("kt20844.kt") public void testKt20844() throws Exception { runTest("compiler/testData/codegen/boxInline/optimizations/kt20844.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/private") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Private extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Private extends AbstractBlackBoxInlineCodegenTest { + @Test @TestMetadata("accessorForConst.kt") public void testAccessorForConst() throws Exception { runTest("compiler/testData/codegen/boxInline/private/accessorForConst.kt"); } + @Test @TestMetadata("accessorStability.kt") public void testAccessorStability() throws Exception { runTest("compiler/testData/codegen/boxInline/private/accessorStability.kt"); } + @Test @TestMetadata("accessorStabilityInClass.kt") public void testAccessorStabilityInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/private/accessorStabilityInClass.kt"); } + @Test public void testAllFilesPresentInPrivate() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/private"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("effectivePrivate.kt") public void testEffectivePrivate() throws Exception { runTest("compiler/testData/codegen/boxInline/private/effectivePrivate.kt"); } + @Test @TestMetadata("kt6453.kt") public void testKt6453() throws Exception { runTest("compiler/testData/codegen/boxInline/private/kt6453.kt"); } + @Test @TestMetadata("kt8094.kt") public void testKt8094() throws Exception { runTest("compiler/testData/codegen/boxInline/private/kt8094.kt"); } + @Test @TestMetadata("kt8095.kt") public void testKt8095() throws Exception { runTest("compiler/testData/codegen/boxInline/private/kt8095.kt"); } + @Test @TestMetadata("nestedInPrivateClass.kt") public void testNestedInPrivateClass() throws Exception { runTest("compiler/testData/codegen/boxInline/private/nestedInPrivateClass.kt"); } + @Test @TestMetadata("privateClass.kt") public void testPrivateClass() throws Exception { runTest("compiler/testData/codegen/boxInline/private/privateClass.kt"); } + @Test @TestMetadata("privateClassExtensionLambda.kt") public void testPrivateClassExtensionLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/private/privateClassExtensionLambda.kt"); } + @Test @TestMetadata("privateInInlineInMultiFileFacade.kt") public void testPrivateInInlineInMultiFileFacade() throws Exception { runTest("compiler/testData/codegen/boxInline/private/privateInInlineInMultiFileFacade.kt"); } + @Test @TestMetadata("privateInline.kt") public void testPrivateInline() throws Exception { runTest("compiler/testData/codegen/boxInline/private/privateInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/property") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Property extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Property extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInProperty() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/property"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("augAssignmentAndInc.kt") public void testAugAssignmentAndInc() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndInc.kt"); } + @Test @TestMetadata("augAssignmentAndIncInClass.kt") public void testAugAssignmentAndIncInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClass.kt"); } + @Test @TestMetadata("augAssignmentAndIncInClassViaConvention.kt") public void testAugAssignmentAndIncInClassViaConvention() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClassViaConvention.kt"); } + @Test @TestMetadata("augAssignmentAndIncOnExtension.kt") public void testAugAssignmentAndIncOnExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtension.kt"); } + @Test @TestMetadata("augAssignmentAndIncOnExtensionInClass.kt") public void testAugAssignmentAndIncOnExtensionInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtensionInClass.kt"); } + @Test @TestMetadata("augAssignmentAndIncViaConvention.kt") public void testAugAssignmentAndIncViaConvention() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncViaConvention.kt"); } + @Test @TestMetadata("fromObject.kt") public void testFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/property/fromObject.kt"); } + @Test @TestMetadata("kt22649.kt") public void testKt22649() throws Exception { runTest("compiler/testData/codegen/boxInline/property/kt22649.kt"); } + @Test @TestMetadata("property.kt") public void testProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/property/property.kt"); } + @Test @TestMetadata("reifiedVal.kt") public void testReifiedVal() throws Exception { runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt"); } + @Test @TestMetadata("reifiedVar.kt") public void testReifiedVar() throws Exception { runTest("compiler/testData/codegen/boxInline/property/reifiedVar.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/property/simple.kt"); } + @Test @TestMetadata("simpleExtension.kt") public void testSimpleExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/property/simpleExtension.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/reified") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Reified extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Reified extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInReified() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("arrayConstructor.kt") public void testArrayConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/arrayConstructor.kt"); } + @Test @TestMetadata("arrayOf.kt") public void testArrayOf() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/arrayOf.kt"); } + @Test @TestMetadata("capturedLambda.kt") public void testCapturedLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/capturedLambda.kt"); } + @Test @TestMetadata("capturedLambda2.kt") public void testCapturedLambda2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/capturedLambda2.kt"); } + @Test @TestMetadata("dontSubstituteNonReified.kt") public void testDontSubstituteNonReified() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/dontSubstituteNonReified.kt"); } + @Test @TestMetadata("kt11081.kt") public void testKt11081() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt11081.kt"); } + @Test @TestMetadata("kt11677.kt") public void testKt11677() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt11677.kt"); } + @Test @TestMetadata("kt15956.kt") public void testKt15956() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt15956.kt"); } + @Test @TestMetadata("kt15997.kt") public void testKt15997() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt15997.kt"); } + @Test @TestMetadata("kt15997_2.kt") public void testKt15997_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt15997_2.kt"); } + @Test @TestMetadata("kt18977.kt") public void testKt18977() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt"); } + @Test @TestMetadata("kt35511.kt") public void testKt35511() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511.kt"); } + @Test @TestMetadata("kt35511_try.kt") public void testKt35511_try() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511_try.kt"); } + @Test @TestMetadata("kt35511_try_valueOf.kt") public void testKt35511_try_valueOf() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511_try_valueOf.kt"); } + @Test @TestMetadata("kt35511_try_values.kt") public void testKt35511_try_values() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511_try_values.kt"); } + @Test @TestMetadata("kt6988.kt") public void testKt6988() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt6988.kt"); } + @Test @TestMetadata("kt6988_2.kt") public void testKt6988_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt6988_2.kt"); } + @Test @TestMetadata("kt6990.kt") public void testKt6990() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt6990.kt"); } + @Test @TestMetadata("kt7017.kt") public void testKt7017() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt7017.kt"); } + @Test @TestMetadata("kt8047.kt") public void testKt8047() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt8047.kt"); } + @Test @TestMetadata("kt8047_2.kt") public void testKt8047_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt8047_2.kt"); } + @Test @TestMetadata("kt9637.kt") public void testKt9637() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt9637.kt"); } + @Test @TestMetadata("kt9637_2.kt") public void testKt9637_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt9637_2.kt"); } + @Test @TestMetadata("nonCapturingObjectInLambda.kt") public void testNonCapturingObjectInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/nonCapturingObjectInLambda.kt"); } + @Test @TestMetadata("packages.kt") public void testPackages() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/packages.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/reified/checkCast") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CheckCast extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class CheckCast extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInCheckCast() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified/checkCast"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("chain.kt") public void testChain() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/chain.kt"); } + @Test @TestMetadata("kt26435.kt") public void testKt26435() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt26435.kt"); } + @Test @TestMetadata("kt26435_2.kt") public void testKt26435_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt26435_2.kt"); } + @Test @TestMetadata("kt26435_3.kt") public void testKt26435_3() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt26435_3.kt"); } + @Test @TestMetadata("kt8043.kt") public void testKt8043() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt8043.kt"); } + @Test @TestMetadata("maxStack.kt") public void testMaxStack() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/maxStack.kt"); } + @Test @TestMetadata("nullable.kt") public void testNullable() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/nullable.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/simple.kt"); } + @Test @TestMetadata("simpleSafe.kt") public void testSimpleSafe() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/simpleSafe.kt"); } + @Test @TestMetadata("simple_1_3.kt") public void testSimple_1_3() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/simple_1_3.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/reified/defaultLambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultLambda extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class DefaultLambda extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInDefaultLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified/defaultLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("chain.kt") public void testChain() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/chain.kt"); } + @Test @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nested.kt"); } + @Test @TestMetadata("nested2.kt") public void testNested2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nested2.kt"); } + @Test @TestMetadata("nested2Static.kt") public void testNested2Static() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nested2Static.kt"); } + @Test @TestMetadata("nestedStatic.kt") public void testNestedStatic() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nestedStatic.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/simple.kt"); } + @Test @TestMetadata("transitiveChain.kt") public void testTransitiveChain() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/transitiveChain.kt"); } + @Test @TestMetadata("transitiveChainStatic.kt") public void testTransitiveChainStatic() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/transitiveChainStatic.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/reified/isCheck") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class IsCheck extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class IsCheck extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInIsCheck() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified/isCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("chain.kt") public void testChain() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/isCheck/chain.kt"); } + @Test @TestMetadata("nullable.kt") public void testNullable() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/isCheck/nullable.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/isCheck/simple.kt"); @@ -3398,518 +3753,577 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/signature") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Signature extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Signature extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInSignature() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/signature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("inProjectionSubstitution.kt") public void testInProjectionSubstitution() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/inProjectionSubstitution.kt"); } + @Test @TestMetadata("outProjectionSubstitution.kt") public void testOutProjectionSubstitution() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/outProjectionSubstitution.kt"); } + @Test @TestMetadata("recursion.kt") public void testRecursion() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/recursion.kt"); } + @Test @TestMetadata("sameFormalParameterName.kt") public void testSameFormalParameterName() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/sameFormalParameterName.kt"); } + @Test @TestMetadata("sameReifiedFormalParameterName.kt") public void testSameReifiedFormalParameterName() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/sameReifiedFormalParameterName.kt"); } + @Test @TestMetadata("starProjectionSubstitution.kt") public void testStarProjectionSubstitution() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/starProjectionSubstitution.kt"); } + @Test @TestMetadata("typeParameterInLambda.kt") public void testTypeParameterInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/typeParameterInLambda.kt"); } + @Test @TestMetadata("typeParametersSubstitution.kt") public void testTypeParametersSubstitution() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/typeParametersSubstitution.kt"); } + @Test @TestMetadata("typeParametersSubstitution2.kt") public void testTypeParametersSubstitution2() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/typeParametersSubstitution2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/simple") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Simple extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Simple extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInSimple() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/simple"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("captureAndArgumentIncompatibleTypes.kt") public void testCaptureAndArgumentIncompatibleTypes() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/captureAndArgumentIncompatibleTypes.kt"); } + @Test @TestMetadata("classObject.kt") public void testClassObject() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/classObject.kt"); } + @Test @TestMetadata("destructuring.kt") public void testDestructuring() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/destructuring.kt"); } + @Test @TestMetadata("destructuringIndexClash.kt") public void testDestructuringIndexClash() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/destructuringIndexClash.kt"); } + @Test @TestMetadata("extension.kt") public void testExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/extension.kt"); } + @Test @TestMetadata("extensionLambda.kt") public void testExtensionLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/extensionLambda.kt"); } + @Test @TestMetadata("funImportedFromObject.kt") public void testFunImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/funImportedFromObject.kt"); } + @Test @TestMetadata("inlineCallInInlineLambda.kt") public void testInlineCallInInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/inlineCallInInlineLambda.kt"); } + @Test @TestMetadata("kt17431.kt") public void testKt17431() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/kt17431.kt"); } + @Test @TestMetadata("kt28547.kt") public void testKt28547() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/kt28547.kt"); } + @Test @TestMetadata("kt28547_2.kt") public void testKt28547_2() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/kt28547_2.kt"); } + @Test @TestMetadata("params.kt") public void testParams() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/params.kt"); } + @Test @TestMetadata("propImportedFromObject.kt") public void testPropImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/propImportedFromObject.kt"); } + @Test @TestMetadata("rootConstructor.kt") public void testRootConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/rootConstructor.kt"); } + @Test @TestMetadata("safeCall.kt") public void testSafeCall() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/safeCall.kt"); } + @Test @TestMetadata("severalClosures.kt") public void testSeveralClosures() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/severalClosures.kt"); } + @Test @TestMetadata("severalUsage.kt") public void testSeveralUsage() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/severalUsage.kt"); } + @Test @TestMetadata("simpleDouble.kt") public void testSimpleDouble() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleDouble.kt"); } + @Test @TestMetadata("simpleEnum.kt") public void testSimpleEnum() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleEnum.kt"); } + @Test @TestMetadata("simpleGenerics.kt") public void testSimpleGenerics() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleGenerics.kt"); } + @Test @TestMetadata("simpleInt.kt") public void testSimpleInt() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleInt.kt"); } + @Test @TestMetadata("simpleLambda.kt") public void testSimpleLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleLambda.kt"); } + @Test @TestMetadata("simpleObject.kt") public void testSimpleObject() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleObject.kt"); } + @Test @TestMetadata("vararg.kt") public void testVararg() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/vararg.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Smap extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Smap extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInSmap() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("assertion.kt") public void testAssertion() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/assertion.kt"); } + @Test @TestMetadata("classCycle.kt") public void testClassCycle() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/classCycle.kt"); } + @Test @TestMetadata("classFromDefaultPackage.kt") public void testClassFromDefaultPackage() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/classFromDefaultPackage.kt"); } + @Test @TestMetadata("crossroutines.kt") public void testCrossroutines() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/crossroutines.kt"); } + @Test @TestMetadata("defaultFunction.kt") public void testDefaultFunction() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultFunction.kt"); } + @Test @TestMetadata("defaultFunctionWithInlineCall.kt") public void testDefaultFunctionWithInlineCall() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultFunctionWithInlineCall.kt"); } + @Test @TestMetadata("forInline.kt") public void testForInline() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/forInline.kt"); } + @Test @TestMetadata("interleavedFiles.kt") public void testInterleavedFiles() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/interleavedFiles.kt"); } + @Test @TestMetadata("kt23369.kt") public void testKt23369() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/kt23369.kt"); } + @Test @TestMetadata("kt23369_2.kt") public void testKt23369_2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/kt23369_2.kt"); } + @Test @TestMetadata("kt23369_3.kt") public void testKt23369_3() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/kt23369_3.kt"); } + @Test @TestMetadata("kt35006.kt") public void testKt35006() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/kt35006.kt"); } + @Test @TestMetadata("multiFileFacade.kt") public void testMultiFileFacade() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/multiFileFacade.kt"); } + @Test @TestMetadata("oneFile.kt") public void testOneFile() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/oneFile.kt"); } + @Test @TestMetadata("rangeFolding.kt") public void testRangeFolding() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/rangeFolding.kt"); } + @Test @TestMetadata("rangeFoldingInClass.kt") public void testRangeFoldingInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/rangeFoldingInClass.kt"); } + @Test @TestMetadata("smap.kt") public void testSmap() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/smap.kt"); } + @Test @TestMetadata("smapWithNewSyntax.kt") public void testSmapWithNewSyntax() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/smapWithNewSyntax.kt"); } + @Test @TestMetadata("smapWithOldSyntax.kt") public void testSmapWithOldSyntax() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/smapWithOldSyntax.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/anonymous") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Anonymous extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Anonymous extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInAnonymous() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("kt19175.kt") public void testKt19175() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/kt19175.kt"); } + @Test @TestMetadata("lambda.kt") public void testLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/lambda.kt"); } + @Test @TestMetadata("lambdaOnCallSite.kt") public void testLambdaOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/lambdaOnCallSite.kt"); } + @Test @TestMetadata("lambdaOnInlineCallSite.kt") public void testLambdaOnInlineCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/lambdaOnInlineCallSite.kt"); } + @Test @TestMetadata("object.kt") public void testObject() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/object.kt"); } + @Test @TestMetadata("objectOnCallSite.kt") public void testObjectOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnCallSite.kt"); } + @Test @TestMetadata("objectOnInlineCallSite.kt") public void testObjectOnInlineCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSite.kt"); } + @Test @TestMetadata("objectOnInlineCallSite2.kt") public void testObjectOnInlineCallSite2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSite2.kt"); } + @Test @TestMetadata("objectOnInlineCallSiteWithCapture.kt") public void testObjectOnInlineCallSiteWithCapture() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSiteWithCapture.kt"); } + @Test @TestMetadata("severalMappingsForDefaultFile.kt") public void testSeveralMappingsForDefaultFile() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/severalMappingsForDefaultFile.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/defaultLambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultLambda extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class DefaultLambda extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInDefaultLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/defaultLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("defaultLambdaInAnonymous.kt") public void testDefaultLambdaInAnonymous() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/defaultLambdaInAnonymous.kt"); } + @Test @TestMetadata("inlinInDefault.kt") public void testInlinInDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlinInDefault.kt"); } + @Test @TestMetadata("inlinInDefault2.kt") public void testInlinInDefault2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlinInDefault2.kt"); } + @Test @TestMetadata("inlineAnonymousInDefault.kt") public void testInlineAnonymousInDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlineAnonymousInDefault.kt"); } + @Test @TestMetadata("inlineAnonymousInDefault2.kt") public void testInlineAnonymousInDefault2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlineAnonymousInDefault2.kt"); } + @Test @TestMetadata("kt21827.kt") public void testKt21827() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/kt21827.kt"); } + @Test @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/nested.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/simple.kt"); } + @Test @TestMetadata("simple2.kt") public void testSimple2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/simple2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/inlineOnly") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineOnly extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class InlineOnly extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInInlineOnly() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/inlineOnly"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("noSmap.kt") public void testNoSmap() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/noSmap.kt"); } + @Test @TestMetadata("noSmapWithProperty.kt") public void testNoSmapWithProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/noSmapWithProperty.kt"); } + @Test @TestMetadata("reified.kt") public void testReified() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/reified.kt"); } + @Test @TestMetadata("reifiedProperty.kt") public void testReifiedProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/reifiedProperty.kt"); } + @Test @TestMetadata("stdlibInlineOnly.kt") public void testStdlibInlineOnly() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/stdlibInlineOnly.kt"); } + @Test @TestMetadata("stdlibInlineOnlyOneLine.kt") public void testStdlibInlineOnlyOneLine() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/stdlibInlineOnlyOneLine.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/newsmap") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Newsmap extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Newsmap extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInNewsmap() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/newsmap"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("differentMapping.kt") public void testDifferentMapping() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/newsmap/differentMapping.kt"); } + @Test @TestMetadata("mappingInInlineFunLambda.kt") public void testMappingInInlineFunLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/newsmap/mappingInInlineFunLambda.kt"); } + @Test @TestMetadata("mappingInSubInlineLambda.kt") public void testMappingInSubInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/newsmap/mappingInSubInlineLambda.kt"); } + @Test @TestMetadata("mappingInSubInlineLambdaSameFileInline.kt") public void testMappingInSubInlineLambdaSameFileInline() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/newsmap/mappingInSubInlineLambdaSameFileInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/resolve") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Resolve extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Resolve extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInResolve() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/resolve"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("inlineComponent.kt") public void testInlineComponent() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/resolve/inlineComponent.kt"); } + @Test @TestMetadata("inlineIterator.kt") public void testInlineIterator() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/resolve/inlineIterator.kt"); @@ -3917,621 +4331,695 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/special") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Special extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Special extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInSpecial() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/special"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("identityCheck.kt") public void testIdentityCheck() throws Exception { runTest("compiler/testData/codegen/boxInline/special/identityCheck.kt"); } + @Test @TestMetadata("ifBranches.kt") public void testIfBranches() throws Exception { runTest("compiler/testData/codegen/boxInline/special/ifBranches.kt"); } + @Test @TestMetadata("iinc.kt") public void testIinc() throws Exception { runTest("compiler/testData/codegen/boxInline/special/iinc.kt"); } + @Test @TestMetadata("inlineChain.kt") public void testInlineChain() throws Exception { runTest("compiler/testData/codegen/boxInline/special/inlineChain.kt"); } + @Test @TestMetadata("loopInStoreLoadChains.kt") public void testLoopInStoreLoadChains() throws Exception { runTest("compiler/testData/codegen/boxInline/special/loopInStoreLoadChains.kt"); } + @Test @TestMetadata("loopInStoreLoadChains2.kt") public void testLoopInStoreLoadChains2() throws Exception { runTest("compiler/testData/codegen/boxInline/special/loopInStoreLoadChains2.kt"); } + @Test @TestMetadata("plusAssign.kt") public void testPlusAssign() throws Exception { runTest("compiler/testData/codegen/boxInline/special/plusAssign.kt"); } + @Test @TestMetadata("stackHeightBug.kt") public void testStackHeightBug() throws Exception { runTest("compiler/testData/codegen/boxInline/special/stackHeightBug.kt"); } + @Test @TestMetadata("unusedInlineLambda.kt") public void testUnusedInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/special/unusedInlineLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/stackOnReturn") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class StackOnReturn extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class StackOnReturn extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInStackOnReturn() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/stackOnReturn"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("elvis.kt") public void testElvis() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/elvis.kt"); } + @Test @TestMetadata("ifThenElse.kt") public void testIfThenElse() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/ifThenElse.kt"); } + @Test @TestMetadata("kt11499.kt") public void testKt11499() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt11499.kt"); } + @Test @TestMetadata("kt17591.kt") public void testKt17591() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt17591.kt"); } + @Test @TestMetadata("kt17591a.kt") public void testKt17591a() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt17591a.kt"); } + @Test @TestMetadata("kt17591b.kt") public void testKt17591b() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt17591b.kt"); } + @Test @TestMetadata("mixedTypesOnStack1.kt") public void testMixedTypesOnStack1() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack1.kt"); } + @Test @TestMetadata("mixedTypesOnStack2.kt") public void testMixedTypesOnStack2() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack2.kt"); } + @Test @TestMetadata("mixedTypesOnStack3.kt") public void testMixedTypesOnStack3() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack3.kt"); } + @Test @TestMetadata("nonLocalReturn1.kt") public void testNonLocalReturn1() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn1.kt"); } + @Test @TestMetadata("nonLocalReturn2.kt") public void testNonLocalReturn2() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn2.kt"); } + @Test @TestMetadata("nonLocalReturn3.kt") public void testNonLocalReturn3() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn3.kt"); } + @Test @TestMetadata("poppedLocalReturn.kt") public void testPoppedLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/poppedLocalReturn.kt"); } + @Test @TestMetadata("poppedLocalReturn2.kt") public void testPoppedLocalReturn2() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/poppedLocalReturn2.kt"); } + @Test @TestMetadata("returnLong.kt") public void testReturnLong() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/returnLong.kt"); } + @Test @TestMetadata("tryFinally.kt") public void testTryFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/tryFinally.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Suspend extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Suspend extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInSuspend() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("capturedVariables.kt") public void testCapturedVariables() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/capturedVariables.kt"); } + @Test @TestMetadata("crossinlineSuspendLambdaInsideCrossinlineSuspendLambda.kt") public void testCrossinlineSuspendLambdaInsideCrossinlineSuspendLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/crossinlineSuspendLambdaInsideCrossinlineSuspendLambda.kt"); } + @Test @TestMetadata("debugMetadataCrossinline.kt") public void testDebugMetadataCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/debugMetadataCrossinline.kt"); } + @Test @TestMetadata("delegatedProperties.kt") public void testDelegatedProperties() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/delegatedProperties.kt"); } + @Test @TestMetadata("doubleRegenerationWithNonSuspendingLambda.kt") public void testDoubleRegenerationWithNonSuspendingLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/doubleRegenerationWithNonSuspendingLambda.kt"); } + @Test @TestMetadata("enclodingMethod.kt") public void testEnclodingMethod() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/enclodingMethod.kt"); } + @Test @TestMetadata("fileNameInMetadata.kt") public void testFileNameInMetadata() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/fileNameInMetadata.kt"); } + @Test @TestMetadata("inlineOrdinaryOfCrossinlineSuspend.kt") public void testInlineOrdinaryOfCrossinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfCrossinlineSuspend.kt"); } + @Test @TestMetadata("inlineOrdinaryOfNoinlineSuspend.kt") public void testInlineOrdinaryOfNoinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfNoinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendContinuation.kt") public void testInlineSuspendContinuation() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendContinuation.kt"); } + @Test @TestMetadata("inlineSuspendInMultifileClass.kt") public void testInlineSuspendInMultifileClass() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendInMultifileClass.kt"); } + @Test @TestMetadata("inlineSuspendOfCrossinlineOrdinary.kt") public void testInlineSuspendOfCrossinlineOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfCrossinlineSuspend.kt") public void testInlineSuspendOfCrossinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfNoinlineOrdinary.kt") public void testInlineSuspendOfNoinlineOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfNoinlineSuspend.kt") public void testInlineSuspendOfNoinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfOrdinary.kt") public void testInlineSuspendOfOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfSuspend.kt") public void testInlineSuspendOfSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfSuspend.kt"); } + @Test @TestMetadata("jvmName.kt") public void testJvmName() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/jvmName.kt"); } + @Test @TestMetadata("kt26658.kt") public void testKt26658() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/kt26658.kt"); } + @Test @TestMetadata("maxStackWithCrossinline.kt") public void testMaxStackWithCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/maxStackWithCrossinline.kt"); } + @Test @TestMetadata("multipleLocals.kt") public void testMultipleLocals() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/multipleLocals.kt"); } + @Test @TestMetadata("multipleSuspensionPoints.kt") public void testMultipleSuspensionPoints() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/multipleSuspensionPoints.kt"); } + @Test @TestMetadata("nestedMethodWith2XParameter.kt") public void testNestedMethodWith2XParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/nestedMethodWith2XParameter.kt"); } + @Test @TestMetadata("nonLocalReturn.kt") public void testNonLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/nonLocalReturn.kt"); } + @Test @TestMetadata("nonSuspendCrossinline.kt") public void testNonSuspendCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/nonSuspendCrossinline.kt"); } + @Test @TestMetadata("returnValue.kt") public void testReturnValue() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/returnValue.kt"); } + @Test @TestMetadata("tryCatchReceiver.kt") public void testTryCatchReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/tryCatchReceiver.kt"); } + @Test @TestMetadata("tryCatchStackTransform.kt") public void testTryCatchStackTransform() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/tryCatchStackTransform.kt"); } + @Test @TestMetadata("twiceRegeneratedAnonymousObject.kt") public void testTwiceRegeneratedAnonymousObject() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/twiceRegeneratedAnonymousObject.kt"); } + @Test @TestMetadata("twiceRegeneratedSuspendLambda.kt") public void testTwiceRegeneratedSuspendLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/twiceRegeneratedSuspendLambda.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/callableReference") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CallableReference extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class CallableReference extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInCallableReference() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("isAsReified.kt") public void testIsAsReified() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/isAsReified.kt"); } + @Test @TestMetadata("isAsReified2.kt") public void testIsAsReified2() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/isAsReified2.kt"); } + @Test @TestMetadata("nonTailCall.kt") public void testNonTailCall() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/nonTailCall.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/simple.kt"); } + @Test @TestMetadata("unitReturn.kt") public void testUnitReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/unitReturn.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/defaultParameter") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultParameter extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class DefaultParameter extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInDefaultParameter() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/defaultParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("defaultValueCrossinline.kt") public void testDefaultValueCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueCrossinline.kt"); } + @Test @TestMetadata("defaultValueInClass.kt") public void testDefaultValueInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInClass.kt"); } + @Test @TestMetadata("defaultValueInline.kt") public void testDefaultValueInline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInline.kt"); } + @Test @TestMetadata("defaultValueInlineFromMultiFileFacade.kt") public void testDefaultValueInlineFromMultiFileFacade() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInlineFromMultiFileFacade.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/inlineClass") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineClass extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class InlineClass extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInInlineClass() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("returnUnboxedDirect.kt") public void testReturnUnboxedDirect() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineClass/returnUnboxedDirect.kt"); } + @Test @TestMetadata("returnUnboxedResume.kt") public void testReturnUnboxedResume() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineClass/returnUnboxedResume.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineUsedAsNoinline extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class InlineUsedAsNoinline extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInInlineUsedAsNoinline() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("inlineOnly.kt") public void testInlineOnly() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/inlineOnly.kt"); } + @Test @TestMetadata("simpleNamed.kt") public void testSimpleNamed() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/simpleNamed.kt"); } + @Test @TestMetadata("withCapturedInlineLambda.kt") public void testWithCapturedInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/withCapturedInlineLambda.kt"); } + @Test @TestMetadata("withCapturedInlineLambda2.kt") public void testWithCapturedInlineLambda2() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/withCapturedInlineLambda2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/receiver") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Receiver extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Receiver extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInReceiver() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/receiver"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("inlineOrdinaryOfCrossinlineSuspend.kt") public void testInlineOrdinaryOfCrossinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfCrossinlineSuspend.kt"); } + @Test @TestMetadata("inlineOrdinaryOfNoinlineSuspend.kt") public void testInlineOrdinaryOfNoinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfNoinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfCrossinlineOrdinary.kt") public void testInlineSuspendOfCrossinlineOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfCrossinlineSuspend.kt") public void testInlineSuspendOfCrossinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfNoinlineOrdinary.kt") public void testInlineSuspendOfNoinlineOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfNoinlineSuspend.kt") public void testInlineSuspendOfNoinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfOrdinary.kt") public void testInlineSuspendOfOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfSuspend.kt") public void testInlineSuspendOfSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfSuspend.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/stateMachine") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class StateMachine extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class StateMachine extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInStateMachine() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/stateMachine"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("crossingCoroutineBoundaries.kt") public void testCrossingCoroutineBoundaries() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/crossingCoroutineBoundaries.kt"); } + @Test @TestMetadata("independentInline.kt") public void testIndependentInline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/independentInline.kt"); } + @Test @TestMetadata("innerLambda.kt") public void testInnerLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambda.kt"); } + @Test @TestMetadata("innerLambdaInsideLambda.kt") public void testInnerLambdaInsideLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaInsideLambda.kt"); } + @Test @TestMetadata("innerLambdaWithoutCrossinline.kt") public void testInnerLambdaWithoutCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaWithoutCrossinline.kt"); } + @Test @TestMetadata("innerMadness.kt") public void testInnerMadness() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadness.kt"); } + @Test @TestMetadata("innerMadnessCallSite.kt") public void testInnerMadnessCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadnessCallSite.kt"); } + @Test @TestMetadata("innerObject.kt") public void testInnerObject() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObject.kt"); } + @Test @TestMetadata("innerObjectInsideInnerObject.kt") public void testInnerObjectInsideInnerObject() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectInsideInnerObject.kt"); } + @Test @TestMetadata("innerObjectRetransformation.kt") public void testInnerObjectRetransformation() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectRetransformation.kt"); } + @Test @TestMetadata("innerObjectSeveralFunctions.kt") public void testInnerObjectSeveralFunctions() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectSeveralFunctions.kt"); } + @Test @TestMetadata("innerObjectWithoutCapturingCrossinline.kt") public void testInnerObjectWithoutCapturingCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectWithoutCapturingCrossinline.kt"); } + @Test @TestMetadata("insideObject.kt") public void testInsideObject() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/insideObject.kt"); } + @Test @TestMetadata("kt30708.kt") public void testKt30708() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/kt30708.kt"); } + @Test @TestMetadata("lambdaTransformation.kt") public void testLambdaTransformation() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/lambdaTransformation.kt"); } + @Test @TestMetadata("normalInline.kt") public void testNormalInline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/normalInline.kt"); } + @Test @TestMetadata("numberOfSuspentions.kt") public void testNumberOfSuspentions() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/numberOfSuspentions.kt"); } + @Test @TestMetadata("objectInsideLambdas.kt") public void testObjectInsideLambdas() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/objectInsideLambdas.kt"); } + @Test @TestMetadata("oneInlineTwoCaptures.kt") public void testOneInlineTwoCaptures() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/oneInlineTwoCaptures.kt"); } + @Test @TestMetadata("passLambda.kt") public void testPassLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/passLambda.kt"); } + @Test @TestMetadata("passParameter.kt") public void testPassParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/passParameter.kt"); } + @Test @TestMetadata("passParameterLambda.kt") public void testPassParameterLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/passParameterLambda.kt"); } + @Test @TestMetadata("unreachableSuspendMarker.kt") public void testUnreachableSuspendMarker() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/unreachableSuspendMarker.kt"); @@ -4539,110 +5027,121 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/syntheticAccessors") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class SyntheticAccessors extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class SyntheticAccessors extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInSyntheticAccessors() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/syntheticAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("constField.kt") public void testConstField() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/constField.kt"); } + @Test @TestMetadata("packagePrivateMembers.kt") public void testPackagePrivateMembers() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/packagePrivateMembers.kt"); } + @Test @TestMetadata("propertyModifiers.kt") public void testPropertyModifiers() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/propertyModifiers.kt"); } + @Test @TestMetadata("protectedMembers.kt") public void testProtectedMembers() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/protectedMembers.kt"); } + @Test @TestMetadata("protectedMembersFromSuper.kt") public void testProtectedMembersFromSuper() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/protectedMembersFromSuper.kt"); } + @Test @TestMetadata("superCall.kt") public void testSuperCall() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/superCall.kt"); } + @Test @TestMetadata("superCallFromMultipleSubclasses.kt") public void testSuperCallFromMultipleSubclasses() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/superCallFromMultipleSubclasses.kt"); } + @Test @TestMetadata("superProperty.kt") public void testSuperProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/superProperty.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class WithinInlineLambda extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class WithinInlineLambda extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInWithinInlineLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("directFieldAccess.kt") public void testDirectFieldAccess() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/directFieldAccess.kt"); } + @Test @TestMetadata("directFieldAccessInCrossInline.kt") public void testDirectFieldAccessInCrossInline() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/directFieldAccessInCrossInline.kt"); } + @Test @TestMetadata("privateCall.kt") public void testPrivateCall() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateCall.kt"); } + @Test @TestMetadata("privateInCrossInline.kt") public void testPrivateInCrossInline() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInCrossInline.kt"); } + @Test @TestMetadata("privateInDefaultStubArgument.kt") public void testPrivateInDefaultStubArgument() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInDefaultStubArgument.kt"); } + @Test @TestMetadata("protectedInCrossinline.kt") public void testProtectedInCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/protectedInCrossinline.kt"); } + @Test @TestMetadata("protectedMembersFromSuper.kt") public void testProtectedMembersFromSuper() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/protectedMembersFromSuper.kt"); } + @Test @TestMetadata("superCall.kt") public void testSuperCall() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superCall.kt"); } + @Test @TestMetadata("superInCrossInline.kt") public void testSuperInCrossInline() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superInCrossInline.kt"); @@ -4650,79 +5149,78 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/trait") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Trait extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Trait extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInTrait() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/trait"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("trait.kt") public void testTrait() throws Exception { runTest("compiler/testData/codegen/boxInline/trait/trait.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/tryCatchFinally") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class TryCatchFinally extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class TryCatchFinally extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInTryCatchFinally() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/tryCatchFinally"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("kt5863.kt") public void testKt5863() throws Exception { runTest("compiler/testData/codegen/boxInline/tryCatchFinally/kt5863.kt"); } + @Test @TestMetadata("tryCatch.kt") public void testTryCatch() throws Exception { runTest("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch.kt"); } + @Test @TestMetadata("tryCatch2.kt") public void testTryCatch2() throws Exception { runTest("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch2.kt"); } + @Test @TestMetadata("tryCatchFinally.kt") public void testTryCatchFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatchFinally.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/varargs") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Varargs extends AbstractBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Varargs extends AbstractBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInVarargs() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/varargs"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("kt17653.kt") public void testKt17653() throws Exception { runTest("compiler/testData/codegen/boxInline/varargs/kt17653.kt"); } + @Test @TestMetadata("varargAndDefaultParameters.kt") public void testVarargAndDefaultParameters() throws Exception { runTest("compiler/testData/codegen/boxInline/varargs/varargAndDefaultParameters.kt"); } + @Test @TestMetadata("varargAndDefaultParameters2.kt") public void testVarargAndDefaultParameters2() throws Exception { runTest("compiler/testData/codegen/boxInline/varargs/varargAndDefaultParameters2.kt"); diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/CompileKotlinAgainstInlineKotlinTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/CompileKotlinAgainstInlineKotlinTestGenerated.java similarity index 87% rename from compiler/tests-gen/org/jetbrains/kotlin/codegen/CompileKotlinAgainstInlineKotlinTestGenerated.java rename to compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/CompileKotlinAgainstInlineKotlinTestGenerated.java index 73294a7e251..fd54a49f38f 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/CompileKotlinAgainstInlineKotlinTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/CompileKotlinAgainstInlineKotlinTestGenerated.java @@ -3,579 +3,651 @@ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ -package org.jetbrains.kotlin.codegen; +package org.jetbrains.kotlin.test.runners.codegen; import com.intellij.testFramework.TestDataPath; -import org.jetbrains.kotlin.test.JUnit3RunnerWithInners; -import org.jetbrains.kotlin.test.KotlinTestUtils; import org.jetbrains.kotlin.test.util.KtTestUtil; import org.jetbrains.kotlin.test.TargetBackend; import org.jetbrains.kotlin.test.TestMetadata; -import org.junit.runner.RunWith; +import org.junit.jupiter.api.Nested; +import org.junit.jupiter.api.Test; import java.io.File; import java.util.regex.Pattern; -/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */ +/** This class is generated by {@link GenerateNewCompilerTests.kt}. DO NOT MODIFY MANUALLY */ @SuppressWarnings("all") @TestMetadata("compiler/testData/codegen/boxInline") @TestDataPath("$PROJECT_ROOT") -@RunWith(JUnit3RunnerWithInners.class) public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + @Test public void testAllFilesPresentInBoxInline() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class AnonymousObject extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class AnonymousObject extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInAnonymousObject() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("anonymousObjectInDefault.kt") public void testAnonymousObjectInDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectInDefault.kt"); } + @Test @TestMetadata("anonymousObjectOnCallSite.kt") public void testAnonymousObjectOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnCallSite.kt"); } + @Test @TestMetadata("anonymousObjectOnCallSiteSuperParams.kt") public void testAnonymousObjectOnCallSiteSuperParams() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnCallSiteSuperParams.kt"); } + @Test @TestMetadata("anonymousObjectOnDeclarationSite.kt") public void testAnonymousObjectOnDeclarationSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnDeclarationSite.kt"); } + @Test @TestMetadata("anonymousObjectOnDeclarationSiteSuperParams.kt") public void testAnonymousObjectOnDeclarationSiteSuperParams() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnDeclarationSiteSuperParams.kt"); } + @Test @TestMetadata("capturedLambdaInInline.kt") public void testCapturedLambdaInInline() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline.kt"); } + @Test @TestMetadata("capturedLambdaInInline2.kt") public void testCapturedLambdaInInline2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline2.kt"); } + @Test @TestMetadata("capturedLambdaInInline3.kt") public void testCapturedLambdaInInline3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline3.kt"); } + @Test @TestMetadata("capturedLambdaInInlineObject.kt") public void testCapturedLambdaInInlineObject() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInlineObject.kt"); } + @Test @TestMetadata("capturedLocalFun.kt") public void testCapturedLocalFun() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLocalFun.kt"); } + @Test @TestMetadata("capturedLocalFunRef.kt") public void testCapturedLocalFunRef() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLocalFunRef.kt"); } + @Test @TestMetadata("changingReturnType.kt") public void testChangingReturnType() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/changingReturnType.kt"); } + @Test @TestMetadata("constructOriginalInRegenerated.kt") public void testConstructOriginalInRegenerated() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/constructOriginalInRegenerated.kt"); } + @Test @TestMetadata("constructorVisibility.kt") public void testConstructorVisibility() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/constructorVisibility.kt"); } + @Test @TestMetadata("constructorVisibilityInConstLambda.kt") public void testConstructorVisibilityInConstLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/constructorVisibilityInConstLambda.kt"); } + @Test @TestMetadata("constructorVisibilityInLambda.kt") public void testConstructorVisibilityInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/constructorVisibilityInLambda.kt"); } + @Test @TestMetadata("defineClass.kt") public void testDefineClass() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt"); } + @Test @TestMetadata("functionExpression.kt") public void testFunctionExpression() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/functionExpression.kt"); } + @Test @TestMetadata("inlineCallInsideInlineLambda.kt") public void testInlineCallInsideInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/inlineCallInsideInlineLambda.kt"); } + @Test @TestMetadata("kt13133.kt") public void testKt13133() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt13133.kt"); } + @Test @TestMetadata("kt13182.kt") public void testKt13182() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt13182.kt"); } + @Test @TestMetadata("kt13374.kt") public void testKt13374() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt13374.kt"); } + @Test @TestMetadata("kt14011.kt") public void testKt14011() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt14011.kt"); } + @Test @TestMetadata("kt14011_2.kt") public void testKt14011_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt14011_2.kt"); } + @Test @TestMetadata("kt14011_3.kt") public void testKt14011_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt14011_3.kt"); } + @Test @TestMetadata("kt15751.kt") public void testKt15751() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt15751.kt"); } + @Test @TestMetadata("kt16193.kt") public void testKt16193() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt16193.kt"); } + @Test @TestMetadata("kt17972.kt") public void testKt17972() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972.kt"); } + @Test @TestMetadata("kt17972_2.kt") public void testKt17972_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_2.kt"); } + @Test @TestMetadata("kt17972_3.kt") public void testKt17972_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_3.kt"); } + @Test @TestMetadata("kt17972_4.kt") public void testKt17972_4() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_4.kt"); } + @Test @TestMetadata("kt17972_5.kt") public void testKt17972_5() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_5.kt"); } + @Test @TestMetadata("kt17972_super.kt") public void testKt17972_super() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_super.kt"); } + @Test @TestMetadata("kt17972_super2.kt") public void testKt17972_super2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_super2.kt"); } + @Test @TestMetadata("kt17972_super3.kt") public void testKt17972_super3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_super3.kt"); } + @Test @TestMetadata("kt19389.kt") public void testKt19389() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19389.kt"); } + @Test @TestMetadata("kt19399.kt") public void testKt19399() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19399.kt"); } + @Test @TestMetadata("kt19434.kt") public void testKt19434() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19434.kt"); } + @Test @TestMetadata("kt19434_2.kt") public void testKt19434_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19434_2.kt"); } + @Test @TestMetadata("kt19723.kt") public void testKt19723() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19723.kt"); } + @Test @TestMetadata("kt29595.kt") public void testKt29595() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt29595.kt"); } + @Test @TestMetadata("kt34656.kt") public void testKt34656() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt34656.kt"); } + @Test @TestMetadata("kt38197.kt") public void testKt38197() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt"); } + @Test @TestMetadata("kt42815.kt") public void testKt42815() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt42815.kt"); } + @Test @TestMetadata("kt42815_delegated.kt") public void testKt42815_delegated() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt42815_delegated.kt"); } + @Test @TestMetadata("kt6007.kt") public void testKt6007() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6007.kt"); } + @Test @TestMetadata("kt6552.kt") public void testKt6552() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6552.kt"); } + @Test @TestMetadata("kt8133.kt") public void testKt8133() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt8133.kt"); } + @Test @TestMetadata("kt9064.kt") public void testKt9064() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9064.kt"); } + @Test @TestMetadata("kt9064v2.kt") public void testKt9064v2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9064v2.kt"); } + @Test @TestMetadata("kt9591.kt") public void testKt9591() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9591.kt"); } + @Test @TestMetadata("kt9877.kt") public void testKt9877() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9877.kt"); } + @Test @TestMetadata("kt9877_2.kt") public void testKt9877_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9877_2.kt"); } + @Test @TestMetadata("objectInLambdaCapturesAnotherObject.kt") public void testObjectInLambdaCapturesAnotherObject() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/objectInLambdaCapturesAnotherObject.kt"); } + @Test @TestMetadata("safeCall.kt") public void testSafeCall() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/safeCall.kt"); } + @Test @TestMetadata("safeCall_2.kt") public void testSafeCall_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/safeCall_2.kt"); } + @Test @TestMetadata("sam.kt") public void testSam() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam.kt"); } + @Test @TestMetadata("sharedFromCrossinline.kt") public void testSharedFromCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sharedFromCrossinline.kt"); } + @Test @TestMetadata("superConstructorWithObjectParameter.kt") public void testSuperConstructorWithObjectParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/superConstructorWithObjectParameter.kt"); } + @Test @TestMetadata("typeInfo.kt") public void testTypeInfo() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/typeInfo.kt"); } + @Test @TestMetadata("withInlineMethod.kt") public void testWithInlineMethod() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/withInlineMethod.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/enumWhen") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class EnumWhen extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class EnumWhen extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInEnumWhen() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/enumWhen"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("callSite.kt") public void testCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/callSite.kt"); } + @Test @TestMetadata("declSite.kt") public void testDeclSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/declSite.kt"); } + @Test @TestMetadata("declSiteSeveralMappings.kt") public void testDeclSiteSeveralMappings() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/declSiteSeveralMappings.kt"); } + @Test @TestMetadata("declSiteSeveralMappingsDifOrder.kt") public void testDeclSiteSeveralMappingsDifOrder() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/declSiteSeveralMappingsDifOrder.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ProperRecapturing extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class ProperRecapturing extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInProperRecapturing() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("inlineChain.kt") public void testInlineChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/inlineChain.kt"); } + @Test @TestMetadata("lambdaChain.kt") public void testLambdaChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChain.kt"); } + @Test @TestMetadata("lambdaChainSimple.kt") public void testLambdaChainSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChainSimple.kt"); } + @Test @TestMetadata("lambdaChain_2.kt") public void testLambdaChain_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChain_2.kt"); } + @Test @TestMetadata("lambdaChain_3.kt") public void testLambdaChain_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChain_3.kt"); } + @Test @TestMetadata("noInlineLambda.kt") public void testNoInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/noInlineLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ProperRecapturingInClass extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class ProperRecapturingInClass extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInProperRecapturingInClass() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("inlineChain.kt") public void testInlineChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/inlineChain.kt"); } + @Test @TestMetadata("inlinelambdaChain.kt") public void testInlinelambdaChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/inlinelambdaChain.kt"); } + @Test @TestMetadata("lambdaChain.kt") public void testLambdaChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain.kt"); } + @Test @TestMetadata("lambdaChainSimple.kt") public void testLambdaChainSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChainSimple.kt"); } + @Test @TestMetadata("lambdaChainSimple_2.kt") public void testLambdaChainSimple_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChainSimple_2.kt"); } + @Test @TestMetadata("lambdaChain_2.kt") public void testLambdaChain_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain_2.kt"); } + @Test @TestMetadata("lambdaChain_3.kt") public void testLambdaChain_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain_3.kt"); } + @Test @TestMetadata("noCapturedThisOnCallSite.kt") public void testNoCapturedThisOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/noCapturedThisOnCallSite.kt"); } + @Test @TestMetadata("noInlineLambda.kt") public void testNoInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/noInlineLambda.kt"); } + @Test @TestMetadata("twoInlineLambda.kt") public void testTwoInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/twoInlineLambda.kt"); } + @Test @TestMetadata("twoInlineLambdaComplex.kt") public void testTwoInlineLambdaComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/twoInlineLambdaComplex.kt"); } + @Test @TestMetadata("twoInlineLambdaComplex_2.kt") public void testTwoInlineLambdaComplex_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/twoInlineLambdaComplex_2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/sam") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Sam extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Sam extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInSam() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("anonymousObjectToSam.kt") public void testAnonymousObjectToSam() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/anonymousObjectToSam.kt"); } + @Test @TestMetadata("kt17091.kt") public void testKt17091() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt17091.kt"); } + @Test @TestMetadata("kt21671.kt") public void testKt21671() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671.kt"); } + @Test @TestMetadata("kt21671_2.kt") public void testKt21671_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671_2.kt"); } + @Test @TestMetadata("kt21671_3.kt") public void testKt21671_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671_3.kt"); } + @Test @TestMetadata("kt22304.kt") public void testKt22304() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt22304.kt"); } + @Test @TestMetadata("samOnCallSite.kt") public void testSamOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/samOnCallSite.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class TwoCapturedReceivers extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class TwoCapturedReceivers extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInTwoCapturedReceivers() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("kt8668.kt") public void testKt8668() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668.kt"); } + @Test @TestMetadata("kt8668_2.kt") public void testKt8668_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_2.kt"); } + @Test @TestMetadata("kt8668_3.kt") public void testKt8668_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_3.kt"); } + @Test @TestMetadata("twoDifferentDispatchReceivers.kt") public void testTwoDifferentDispatchReceivers() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/twoDifferentDispatchReceivers.kt"); } + @Test @TestMetadata("twoExtensionReceivers.kt") public void testTwoExtensionReceivers() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/twoExtensionReceivers.kt"); @@ -583,470 +655,525 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/argumentOrder") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ArgumentOrder extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class ArgumentOrder extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInArgumentOrder() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/argumentOrder"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("boundFunctionReference.kt") public void testBoundFunctionReference() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/boundFunctionReference.kt"); } + @Test @TestMetadata("boundFunctionReference2.kt") public void testBoundFunctionReference2() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/boundFunctionReference2.kt"); } + @Test @TestMetadata("captured.kt") public void testCaptured() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/captured.kt"); } + @Test @TestMetadata("capturedInExtension.kt") public void testCapturedInExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/capturedInExtension.kt"); } + @Test @TestMetadata("defaultParametersAndLastVararg.kt") public void testDefaultParametersAndLastVararg() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/defaultParametersAndLastVararg.kt"); } + @Test @TestMetadata("defaultParametersAndLastVarargWithCorrectOrder.kt") public void testDefaultParametersAndLastVarargWithCorrectOrder() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/defaultParametersAndLastVarargWithCorrectOrder.kt"); } + @Test @TestMetadata("extension.kt") public void testExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/extension.kt"); } + @Test @TestMetadata("extensionInClass.kt") public void testExtensionInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/extensionInClass.kt"); } + @Test @TestMetadata("lambdaMigration.kt") public void testLambdaMigration() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/lambdaMigration.kt"); } + @Test @TestMetadata("lambdaMigrationInClass.kt") public void testLambdaMigrationInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/lambdaMigrationInClass.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/simple.kt"); } + @Test @TestMetadata("simpleInClass.kt") public void testSimpleInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/simpleInClass.kt"); } + @Test @TestMetadata("varargAndDefaultParameters.kt") public void testVarargAndDefaultParameters() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/varargAndDefaultParameters.kt"); } + @Test @TestMetadata("varargAndDefaultParametersWithCorrectOrder.kt") public void testVarargAndDefaultParametersWithCorrectOrder() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/varargAndDefaultParametersWithCorrectOrder.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/arrayConvention") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ArrayConvention extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class ArrayConvention extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInArrayConvention() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/arrayConvention"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("simpleAccess.kt") public void testSimpleAccess() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccess.kt"); } + @Test @TestMetadata("simpleAccessInClass.kt") public void testSimpleAccessInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessInClass.kt"); } + @Test @TestMetadata("simpleAccessWithDefault.kt") public void testSimpleAccessWithDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithDefault.kt"); } + @Test @TestMetadata("simpleAccessWithDefaultInClass.kt") public void testSimpleAccessWithDefaultInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithDefaultInClass.kt"); } + @Test @TestMetadata("simpleAccessWithLambda.kt") public void testSimpleAccessWithLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithLambda.kt"); } + @Test @TestMetadata("simpleAccessWithLambdaInClass.kt") public void testSimpleAccessWithLambdaInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithLambdaInClass.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/assert") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Assert extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Assert extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInAssert() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/assert"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("jvmAssertInlineFunctionAssertionsDisabled.kt") public void testJvmAssertInlineFunctionAssertionsDisabled() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmAssertInlineFunctionAssertionsDisabled.kt"); } + @Test @TestMetadata("jvmAssertInlineFunctionAssertionsEnabled.kt") public void testJvmAssertInlineFunctionAssertionsEnabled() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmAssertInlineFunctionAssertionsEnabled.kt"); } + @Test @TestMetadata("jvmAssertInlineLambda.kt") public void testJvmAssertInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmAssertInlineLambda.kt"); } + @Test @TestMetadata("jvmClassInitializer.kt") public void testJvmClassInitializer() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmClassInitializer.kt"); } + @Test @TestMetadata("jvmCompanion.kt") public void testJvmCompanion() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCompanion.kt"); } + @Test @TestMetadata("jvmCrossinlineLambda.kt") public void testJvmCrossinlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambda.kt"); } + @Test @TestMetadata("jvmCrossinlineLambda2.kt") public void testJvmCrossinlineLambda2() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambda2.kt"); } + @Test @TestMetadata("jvmCrossinlineLambdaDeclarationSite.kt") public void testJvmCrossinlineLambdaDeclarationSite() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambdaDeclarationSite.kt"); } + @Test @TestMetadata("jvmCrossinlineLambdaDeclarationSiteOnly.kt") public void testJvmCrossinlineLambdaDeclarationSiteOnly() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambdaDeclarationSiteOnly.kt"); } + @Test @TestMetadata("jvmCrossinlineSAMDeclarationSite.kt") public void testJvmCrossinlineSAMDeclarationSite() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineSAMDeclarationSite.kt"); } + @Test @TestMetadata("jvmDoubleInline.kt") public void testJvmDoubleInline() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmDoubleInline.kt"); } + @Test @TestMetadata("jvmInlineUsedAsNoinline.kt") public void testJvmInlineUsedAsNoinline() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmInlineUsedAsNoinline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/builders") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Builders extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Builders extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInBuilders() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/builders"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("builders.kt") public void testBuilders() throws Exception { runTest("compiler/testData/codegen/boxInline/builders/builders.kt"); } + @Test @TestMetadata("buildersAndLambdaCapturing.kt") public void testBuildersAndLambdaCapturing() throws Exception { runTest("compiler/testData/codegen/boxInline/builders/buildersAndLambdaCapturing.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/bytecodePreprocessing") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class BytecodePreprocessing extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class BytecodePreprocessing extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInBytecodePreprocessing() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/bytecodePreprocessing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("apiVersionAtLeast1.kt") public void testApiVersionAtLeast1() throws Exception { runTest("compiler/testData/codegen/boxInline/bytecodePreprocessing/apiVersionAtLeast1.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/callableReference") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CallableReference extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class CallableReference extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test @TestMetadata("adapted.kt") public void testAdapted() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/adapted.kt"); } + @Test public void testAllFilesPresentInCallableReference() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("classLevel.kt") public void testClassLevel() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/classLevel.kt"); } + @Test @TestMetadata("classLevel2.kt") public void testClassLevel2() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/classLevel2.kt"); } + @Test @TestMetadata("constructor.kt") public void testConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/constructor.kt"); } + @Test @TestMetadata("innerGenericConstuctor.kt") public void testInnerGenericConstuctor() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/innerGenericConstuctor.kt"); } + @Test @TestMetadata("intrinsic.kt") public void testIntrinsic() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/intrinsic.kt"); } + @Test @TestMetadata("jvmFieldProperty.kt") public void testJvmFieldProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/jvmFieldProperty.kt"); } + @Test @TestMetadata("kt15449.kt") public void testKt15449() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/kt15449.kt"); } + @Test @TestMetadata("kt15751_2.kt") public void testKt15751_2() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/kt15751_2.kt"); } + @Test @TestMetadata("kt16411.kt") public void testKt16411() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/kt16411.kt"); } + @Test @TestMetadata("kt35101.kt") public void testKt35101() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/kt35101.kt"); } + @Test @TestMetadata("propertyIntrinsic.kt") public void testPropertyIntrinsic() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/propertyIntrinsic.kt"); } + @Test @TestMetadata("propertyReference.kt") public void testPropertyReference() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/propertyReference.kt"); } + @Test @TestMetadata("topLevel.kt") public void testTopLevel() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/topLevel.kt"); } + @Test @TestMetadata("topLevelExtension.kt") public void testTopLevelExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/topLevelExtension.kt"); } + @Test @TestMetadata("topLevelProperty.kt") public void testTopLevelProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/topLevelProperty.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/callableReference/bound") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Bound extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Bound extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInBound() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/callableReference/bound"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("classProperty.kt") public void testClassProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/classProperty.kt"); } + @Test @TestMetadata("emptyLhsFunction.kt") public void testEmptyLhsFunction() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsFunction.kt"); } + @Test @TestMetadata("emptyLhsOnInlineProperty.kt") public void testEmptyLhsOnInlineProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsOnInlineProperty.kt"); } + @Test @TestMetadata("emptyLhsProperty.kt") public void testEmptyLhsProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsProperty.kt"); } + @Test @TestMetadata("expression.kt") public void testExpression() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/expression.kt"); } + @Test @TestMetadata("extensionReceiver.kt") public void testExtensionReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/extensionReceiver.kt"); } + @Test @TestMetadata("filter.kt") public void testFilter() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/filter.kt"); } + @Test @TestMetadata("inlineValueParameterInsteadOfReceiver.kt") public void testInlineValueParameterInsteadOfReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/inlineValueParameterInsteadOfReceiver.kt"); } + @Test @TestMetadata("innerGenericConstuctor.kt") public void testInnerGenericConstuctor() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/innerGenericConstuctor.kt"); } + @Test @TestMetadata("intrinsic.kt") public void testIntrinsic() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/intrinsic.kt"); } + @Test @TestMetadata("jvmFieldProperty.kt") public void testJvmFieldProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/jvmFieldProperty.kt"); } + @Test @TestMetadata("kt18728.kt") public void testKt18728() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728.kt"); } + @Test @TestMetadata("kt18728_2.kt") public void testKt18728_2() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_2.kt"); } + @Test @TestMetadata("kt18728_3.kt") public void testKt18728_3() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_3.kt"); } + @Test @TestMetadata("kt18728_4.kt") public void testKt18728_4() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_4.kt"); } + @Test @TestMetadata("lambdaOnLhs.kt") public void testLambdaOnLhs() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/lambdaOnLhs.kt"); } + @Test @TestMetadata("map.kt") public void testMap() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/map.kt"); } + @Test @TestMetadata("mixed.kt") public void testMixed() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/mixed.kt"); } + @Test @TestMetadata("objectProperty.kt") public void testObjectProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/objectProperty.kt"); } + @Test @TestMetadata("propertyImportedFromObject.kt") public void testPropertyImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/propertyImportedFromObject.kt"); } + @Test @TestMetadata("sideEffect.kt") public void testSideEffect() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/sideEffect.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/simple.kt"); } + @Test @TestMetadata("simpleVal.kt") public void testSimpleVal() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/simpleVal.kt"); } + @Test @TestMetadata("simpleVal2.kt") public void testSimpleVal2() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/simpleVal2.kt"); } + @Test @TestMetadata("topLevelExtensionProperty.kt") public void testTopLevelExtensionProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/topLevelExtensionProperty.kt"); @@ -1054,649 +1181,740 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/capture") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Capture extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Capture extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInCapture() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/capture"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("captureInlinable.kt") public void testCaptureInlinable() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/captureInlinable.kt"); } + @Test @TestMetadata("captureInlinableAndOther.kt") public void testCaptureInlinableAndOther() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/captureInlinableAndOther.kt"); } + @Test @TestMetadata("captureThisAndReceiver.kt") public void testCaptureThisAndReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/captureThisAndReceiver.kt"); } + @Test @TestMetadata("generics.kt") public void testGenerics() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/generics.kt"); } + @Test @TestMetadata("simpleCapturingInClass.kt") public void testSimpleCapturingInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/simpleCapturingInClass.kt"); } + @Test @TestMetadata("simpleCapturingInPackage.kt") public void testSimpleCapturingInPackage() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/simpleCapturingInPackage.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/complex") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Complex extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Complex extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInComplex() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/complex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("closureChain.kt") public void testClosureChain() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/closureChain.kt"); } + @Test @TestMetadata("forEachLine.kt") public void testForEachLine() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/forEachLine.kt"); } + @Test @TestMetadata("kt44429.kt") public void testKt44429() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/kt44429.kt"); } + @Test @TestMetadata("lambdaInLambda.kt") public void testLambdaInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/lambdaInLambda.kt"); } + @Test @TestMetadata("swapAndWith.kt") public void testSwapAndWith() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/swapAndWith.kt"); } + @Test @TestMetadata("swapAndWith2.kt") public void testSwapAndWith2() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/swapAndWith2.kt"); } + @Test @TestMetadata("use.kt") public void testUse() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/use.kt"); } + @Test @TestMetadata("with.kt") public void testWith() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/with.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/complexStack") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ComplexStack extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class ComplexStack extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInComplexStack() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/complexStack"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("asCheck.kt") public void testAsCheck() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/asCheck.kt"); } + @Test @TestMetadata("asCheck2.kt") public void testAsCheck2() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/asCheck2.kt"); } + @Test @TestMetadata("breakContinueInInlineLambdaArgument.kt") public void testBreakContinueInInlineLambdaArgument() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/breakContinueInInlineLambdaArgument.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simple.kt"); } + @Test @TestMetadata("simple2.kt") public void testSimple2() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simple2.kt"); } + @Test @TestMetadata("simple3.kt") public void testSimple3() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simple3.kt"); } + @Test @TestMetadata("simple4.kt") public void testSimple4() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simple4.kt"); } + @Test @TestMetadata("simpleExtension.kt") public void testSimpleExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simpleExtension.kt"); } + @Test @TestMetadata("spillConstructorArgumentsAndInlineLambdaParameter.kt") public void testSpillConstructorArgumentsAndInlineLambdaParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/spillConstructorArgumentsAndInlineLambdaParameter.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/contracts") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Contracts extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Contracts extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInContracts() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/contracts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("cfgDependendValInitialization.kt") public void testCfgDependendValInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/cfgDependendValInitialization.kt"); } + @Test @TestMetadata("complexInitializer.kt") public void testComplexInitializer() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/complexInitializer.kt"); } + @Test @TestMetadata("complexInitializerWithStackTransformation.kt") public void testComplexInitializerWithStackTransformation() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/complexInitializerWithStackTransformation.kt"); } + @Test @TestMetadata("crossinlineCallableReference.kt") public void testCrossinlineCallableReference() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/crossinlineCallableReference.kt"); } + @Test @TestMetadata("definiteLongValInitialization.kt") public void testDefiniteLongValInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/definiteLongValInitialization.kt"); } + @Test @TestMetadata("definiteNestedValInitialization.kt") public void testDefiniteNestedValInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/definiteNestedValInitialization.kt"); } + @Test @TestMetadata("definiteValInitInInitializer.kt") public void testDefiniteValInitInInitializer() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/definiteValInitInInitializer.kt"); } + @Test @TestMetadata("definiteValInitialization.kt") public void testDefiniteValInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/definiteValInitialization.kt"); } + @Test @TestMetadata("exactlyOnceCrossinline.kt") public void testExactlyOnceCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline.kt"); } + @Test @TestMetadata("exactlyOnceCrossinline2.kt") public void testExactlyOnceCrossinline2() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline2.kt"); } + @Test @TestMetadata("exactlyOnceNoinline.kt") public void testExactlyOnceNoinline() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceNoinline.kt"); } + @Test @TestMetadata("nonLocalReturn.kt") public void testNonLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/nonLocalReturn.kt"); } + @Test @TestMetadata("nonLocalReturnWithCycle.kt") public void testNonLocalReturnWithCycle() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/nonLocalReturnWithCycle.kt"); } + @Test @TestMetadata("propertyInitialization.kt") public void testPropertyInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/propertyInitialization.kt"); } + @Test @TestMetadata("valInitializationAndUsageInNestedLambda.kt") public void testValInitializationAndUsageInNestedLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/valInitializationAndUsageInNestedLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/defaultValues") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultValues extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class DefaultValues extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test @TestMetadata("33Parameters.kt") public void test33Parameters() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/33Parameters.kt"); } + @Test @TestMetadata("33ParametersInConstructor.kt") public void test33ParametersInConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/33ParametersInConstructor.kt"); } + @Test public void testAllFilesPresentInDefaultValues() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("defaultInExtension.kt") public void testDefaultInExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/defaultInExtension.kt"); } + @Test @TestMetadata("defaultMethod.kt") public void testDefaultMethod() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/defaultMethod.kt"); } + @Test @TestMetadata("defaultMethodInClass.kt") public void testDefaultMethodInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/defaultMethodInClass.kt"); } + @Test @TestMetadata("defaultParamRemapping.kt") public void testDefaultParamRemapping() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/defaultParamRemapping.kt"); } + @Test @TestMetadata("inlineInDefaultParameter.kt") public void testInlineInDefaultParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/inlineInDefaultParameter.kt"); } + @Test @TestMetadata("inlineLambdaInNoInlineDefault.kt") public void testInlineLambdaInNoInlineDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/inlineLambdaInNoInlineDefault.kt"); } + @Test @TestMetadata("kt11479.kt") public void testKt11479() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt11479.kt"); } + @Test @TestMetadata("kt11479InlinedDefaultParameter.kt") public void testKt11479InlinedDefaultParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt11479InlinedDefaultParameter.kt"); } + @Test @TestMetadata("kt14564.kt") public void testKt14564() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564.kt"); } + @Test @TestMetadata("kt14564_2.kt") public void testKt14564_2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564_2.kt"); } + @Test @TestMetadata("kt16496.kt") public void testKt16496() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt16496.kt"); } + @Test @TestMetadata("kt18689.kt") public void testKt18689() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689.kt"); } + @Test @TestMetadata("kt18689_2.kt") public void testKt18689_2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_2.kt"); } + @Test @TestMetadata("kt18689_3.kt") public void testKt18689_3() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_3.kt"); } + @Test @TestMetadata("kt18689_4.kt") public void testKt18689_4() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_4.kt"); } + @Test @TestMetadata("kt5685.kt") public void testKt5685() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt5685.kt"); } + @Test @TestMetadata("simpleDefaultMethod.kt") public void testSimpleDefaultMethod() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/simpleDefaultMethod.kt"); } + @Test @TestMetadata("varArgNoInline.kt") public void testVarArgNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/varArgNoInline.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LambdaInlining extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class LambdaInlining extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInLambdaInlining() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("checkLambdaClassIsPresent.kt") public void testCheckLambdaClassIsPresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkLambdaClassIsPresent.kt"); } + @Test @TestMetadata("checkLambdaClassesArePresent.kt") public void testCheckLambdaClassesArePresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkLambdaClassesArePresent.kt"); } + @Test @TestMetadata("checkObjectClassIsPresent.kt") public void testCheckObjectClassIsPresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkObjectClassIsPresent.kt"); } + @Test @TestMetadata("checkStaticLambdaClassIsPresent.kt") public void testCheckStaticLambdaClassIsPresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticLambdaClassIsPresent.kt"); } + @Test @TestMetadata("checkStaticLambdaClassesArePresent.kt") public void testCheckStaticLambdaClassesArePresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticLambdaClassesArePresent.kt"); } + @Test @TestMetadata("checkStaticObjectClassIsPresent.kt") public void testCheckStaticObjectClassIsPresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticObjectClassIsPresent.kt"); } + @Test @TestMetadata("defaultCallInDefaultLambda.kt") public void testDefaultCallInDefaultLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultCallInDefaultLambda.kt"); } + @Test @TestMetadata("defaultLambdaInNoInline.kt") public void testDefaultLambdaInNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultLambdaInNoInline.kt"); } + @Test @TestMetadata("differentInvokeSignature.kt") public void testDifferentInvokeSignature() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/differentInvokeSignature.kt"); } + @Test @TestMetadata("genericLambda.kt") public void testGenericLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/genericLambda.kt"); } + @Test @TestMetadata("instanceCapturedInClass.kt") public void testInstanceCapturedInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInClass.kt"); } + @Test @TestMetadata("instanceCapturedInInterface.kt") public void testInstanceCapturedInInterface() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInInterface.kt"); } + @Test @TestMetadata("jvmStaticDefault.kt") public void testJvmStaticDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/jvmStaticDefault.kt"); } + @Test @TestMetadata("kt21827.kt") public void testKt21827() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21827.kt"); } + @Test @TestMetadata("kt21946.kt") public void testKt21946() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21946.kt"); } + @Test @TestMetadata("kt24477.kt") public void testKt24477() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt24477.kt"); } + @Test @TestMetadata("kt25106.kt") public void testKt25106() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt25106.kt"); } + @Test @TestMetadata("kt26636.kt") public void testKt26636() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt26636.kt"); } + @Test @TestMetadata("noInline.kt") public void testNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/noInline.kt"); } + @Test @TestMetadata("nonDefaultInlineInNoInline.kt") public void testNonDefaultInlineInNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/nonDefaultInlineInNoInline.kt"); } + @Test @TestMetadata("receiverClash.kt") public void testReceiverClash() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash.kt"); } + @Test @TestMetadata("receiverClash2.kt") public void testReceiverClash2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash2.kt"); } + @Test @TestMetadata("receiverClashInClass.kt") public void testReceiverClashInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass.kt"); } + @Test @TestMetadata("receiverClashInClass2.kt") public void testReceiverClashInClass2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass2.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simple.kt"); } + @Test @TestMetadata("simpleErased.kt") public void testSimpleErased() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErased.kt"); } + @Test @TestMetadata("simpleErasedStaticInstance.kt") public void testSimpleErasedStaticInstance() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErasedStaticInstance.kt"); } + @Test @TestMetadata("simpleExtension.kt") public void testSimpleExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleExtension.kt"); } + @Test @TestMetadata("simpleGeneric.kt") public void testSimpleGeneric() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleGeneric.kt"); } + @Test @TestMetadata("simpleStaticInstance.kt") public void testSimpleStaticInstance() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleStaticInstance.kt"); } + @Test @TestMetadata("thisClash.kt") public void testThisClash() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClash.kt"); } + @Test @TestMetadata("thisClashInClass.kt") public void testThisClashInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClashInClass.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CallableReferences extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class CallableReferences extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInCallableReferences() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("boundFunctionReference.kt") public void testBoundFunctionReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReference.kt"); } + @Test @TestMetadata("boundFunctionReferenceOnInt.kt") public void testBoundFunctionReferenceOnInt() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnInt.kt"); } + @Test @TestMetadata("boundFunctionReferenceOnLong.kt") public void testBoundFunctionReferenceOnLong() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnLong.kt"); } + @Test @TestMetadata("boundPropertyReference.kt") public void testBoundPropertyReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReference.kt"); } + @Test @TestMetadata("boundPropertyReferenceOnInt.kt") public void testBoundPropertyReferenceOnInt() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnInt.kt"); } + @Test @TestMetadata("boundPropertyReferenceOnLong.kt") public void testBoundPropertyReferenceOnLong() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnLong.kt"); } + @Test @TestMetadata("constuctorReference.kt") public void testConstuctorReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/constuctorReference.kt"); } + @Test @TestMetadata("differentInvokeSignature.kt") public void testDifferentInvokeSignature() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature.kt"); } + @Test @TestMetadata("differentInvokeSignature2.kt") public void testDifferentInvokeSignature2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature2.kt"); } + @Test @TestMetadata("functionImportedFromObject.kt") public void testFunctionImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionImportedFromObject.kt"); } + @Test @TestMetadata("functionReference.kt") public void testFunctionReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReference.kt"); } + @Test @TestMetadata("functionReferenceFromClass.kt") public void testFunctionReferenceFromClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromClass.kt"); } + @Test @TestMetadata("functionReferenceFromObject.kt") public void testFunctionReferenceFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromObject.kt"); } + @Test @TestMetadata("innerClassConstuctorReference.kt") public void testInnerClassConstuctorReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/innerClassConstuctorReference.kt"); } + @Test @TestMetadata("mutableBoundPropertyReferenceFromClass.kt") public void testMutableBoundPropertyReferenceFromClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutableBoundPropertyReferenceFromClass.kt"); } + @Test @TestMetadata("mutablePropertyReferenceFromClass.kt") public void testMutablePropertyReferenceFromClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutablePropertyReferenceFromClass.kt"); } + @Test @TestMetadata("privateFunctionReference.kt") public void testPrivateFunctionReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privateFunctionReference.kt"); } + @Test @TestMetadata("privatePropertyReference.kt") public void testPrivatePropertyReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privatePropertyReference.kt"); } + @Test @TestMetadata("propertyImportedFromObject.kt") public void testPropertyImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyImportedFromObject.kt"); } + @Test @TestMetadata("propertyReference.kt") public void testPropertyReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReference.kt"); } + @Test @TestMetadata("propertyReferenceFromClass.kt") public void testPropertyReferenceFromClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromClass.kt"); } + @Test @TestMetadata("propertyReferenceFromObject.kt") public void testPropertyReferenceFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromObject.kt"); @@ -1704,48 +1922,52 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/defaultValues/maskElimination") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MaskElimination extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class MaskElimination extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test @TestMetadata("32Parameters.kt") public void test32Parameters() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/32Parameters.kt"); } + @Test @TestMetadata("33Parameters.kt") public void test33Parameters() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/33Parameters.kt"); } + @Test public void testAllFilesPresentInMaskElimination() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/maskElimination"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("kt18792.kt") public void testKt18792() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt18792.kt"); } + @Test @TestMetadata("kt19679.kt") public void testKt19679() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679.kt"); } + @Test @TestMetadata("kt19679_2.kt") public void testKt19679_2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_2.kt"); } + @Test @TestMetadata("kt19679_3.kt") public void testKt19679_3() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_3.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/simple.kt"); @@ -1753,375 +1975,400 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/delegatedProperty") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DelegatedProperty extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class DelegatedProperty extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInDelegatedProperty() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/delegatedProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("kt16864.kt") public void testKt16864() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt16864.kt"); } + @Test @TestMetadata("local.kt") public void testLocal() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/local.kt"); } + @Test @TestMetadata("localDeclaredInLambda.kt") public void testLocalDeclaredInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/localDeclaredInLambda.kt"); } + @Test @TestMetadata("localInAnonymousObject.kt") public void testLocalInAnonymousObject() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/localInAnonymousObject.kt"); } + @Test @TestMetadata("localInLambda.kt") public void testLocalInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/localInLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/enclosingInfo") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class EnclosingInfo extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class EnclosingInfo extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInEnclosingInfo() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/enclosingInfo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("anonymousInLambda.kt") public void testAnonymousInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/anonymousInLambda.kt"); } + @Test @TestMetadata("inlineChain.kt") public void testInlineChain() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/inlineChain.kt"); } + @Test @TestMetadata("inlineChain2.kt") public void testInlineChain2() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/inlineChain2.kt"); } + @Test @TestMetadata("objectInInlineFun.kt") public void testObjectInInlineFun() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/objectInInlineFun.kt"); } + @Test @TestMetadata("transformedConstructor.kt") public void testTransformedConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/transformedConstructor.kt"); } + @Test @TestMetadata("transformedConstructorWithAdditionalObject.kt") public void testTransformedConstructorWithAdditionalObject() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/transformedConstructorWithAdditionalObject.kt"); } + @Test @TestMetadata("transformedConstructorWithNestedInline.kt") public void testTransformedConstructorWithNestedInline() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/transformedConstructorWithNestedInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/enum") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Enum extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Enum extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInEnum() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/enum"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("kt10569.kt") public void testKt10569() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/kt10569.kt"); } + @Test @TestMetadata("kt18254.kt") public void testKt18254() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/kt18254.kt"); } + @Test @TestMetadata("valueOf.kt") public void testValueOf() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOf.kt"); } + @Test @TestMetadata("valueOfCapturedType.kt") public void testValueOfCapturedType() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOfCapturedType.kt"); } + @Test @TestMetadata("valueOfChain.kt") public void testValueOfChain() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOfChain.kt"); } + @Test @TestMetadata("valueOfChainCapturedType.kt") public void testValueOfChainCapturedType() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOfChainCapturedType.kt"); } + @Test @TestMetadata("valueOfNonReified.kt") public void testValueOfNonReified() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOfNonReified.kt"); } + @Test @TestMetadata("values.kt") public void testValues() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/values.kt"); } + @Test @TestMetadata("valuesAsArray.kt") public void testValuesAsArray() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesAsArray.kt"); } + @Test @TestMetadata("valuesCapturedType.kt") public void testValuesCapturedType() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesCapturedType.kt"); } + @Test @TestMetadata("valuesChain.kt") public void testValuesChain() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesChain.kt"); } + @Test @TestMetadata("valuesChainCapturedType.kt") public void testValuesChainCapturedType() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesChainCapturedType.kt"); } + @Test @TestMetadata("valuesNonReified.kt") public void testValuesNonReified() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesNonReified.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/functionExpression") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class FunctionExpression extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class FunctionExpression extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInFunctionExpression() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/functionExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("extension.kt") public void testExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/functionExpression/extension.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineClasses extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class InlineClasses extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInInlineClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("inlineClassWithInlineValReturningInlineClass.kt") public void testInlineClassWithInlineValReturningInlineClass() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineClassWithInlineValReturningInlineClass.kt"); } + @Test @TestMetadata("inlineFunctionInsideInlineClassesBox.kt") public void testInlineFunctionInsideInlineClassesBox() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt"); } + @Test @TestMetadata("noReturnTypeManglingFun.kt") public void testNoReturnTypeManglingFun() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/noReturnTypeManglingFun.kt"); } + @Test @TestMetadata("noReturnTypeManglingFunJvmName.kt") public void testNoReturnTypeManglingFunJvmName() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/noReturnTypeManglingFunJvmName.kt"); } + @Test @TestMetadata("noReturnTypeManglingVal.kt") public void testNoReturnTypeManglingVal() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/noReturnTypeManglingVal.kt"); } + @Test @TestMetadata("withReturnTypeManglingFun.kt") public void testWithReturnTypeManglingFun() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/withReturnTypeManglingFun.kt"); } + @Test @TestMetadata("withReturnTypeManglingFunJvmName.kt") public void testWithReturnTypeManglingFunJvmName() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/withReturnTypeManglingFunJvmName.kt"); } + @Test @TestMetadata("withReturnTypeManglingVal.kt") public void testWithReturnTypeManglingVal() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/withReturnTypeManglingVal.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class UnboxGenericParameter extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class UnboxGenericParameter extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInUnboxGenericParameter() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class FunInterface extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class FunInterface extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInFunInterface() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("any.kt") public void testAny() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/any.kt"); } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/anyN.kt"); } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/iface.kt"); } + @Test @TestMetadata("ifaceChild.kt") public void testIfaceChild() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/ifaceChild.kt"); } + @Test @TestMetadata("primitive.kt") public void testPrimitive() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/primitive.kt"); } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/string.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Lambda extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Lambda extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("any.kt") public void testAny() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/any.kt"); } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/anyN.kt"); } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/iface.kt"); } + @Test @TestMetadata("ifaceChild.kt") public void testIfaceChild() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/ifaceChild.kt"); } + @Test @TestMetadata("primitive.kt") public void testPrimitive() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/primitive.kt"); } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/string.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ObjectLiteral extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class ObjectLiteral extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInObjectLiteral() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("any.kt") public void testAny() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/any.kt"); } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/anyN.kt"); } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/iface.kt"); } + @Test @TestMetadata("ifaceChild.kt") public void testIfaceChild() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChild.kt"); } + @Test @TestMetadata("primitive.kt") public void testPrimitive() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/primitive.kt"); } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/string.kt"); @@ -2130,239 +2377,231 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/innerClasses") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InnerClasses extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class InnerClasses extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInInnerClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/innerClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("captureThisAndOuter.kt") public void testCaptureThisAndOuter() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/captureThisAndOuter.kt"); } + @Test @TestMetadata("innerLambda.kt") public void testInnerLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/innerLambda.kt"); } + @Test @TestMetadata("kt10259.kt") public void testKt10259() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/kt10259.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/jvmName") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class JvmName extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class JvmName extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInJvmName() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/jvmName"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/jvmName/simple.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/jvmPackageName") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class JvmPackageName extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class JvmPackageName extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInJvmPackageName() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/jvmPackageName"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/jvmPackageName/simple.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/lambdaClassClash") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LambdaClassClash extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class LambdaClassClash extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInLambdaClassClash() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/lambdaClassClash"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("lambdaClassClash.kt") public void testLambdaClassClash() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaClassClash/lambdaClassClash.kt"); } + @Test @TestMetadata("noInlineLambdaX2.kt") public void testNoInlineLambdaX2() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaClassClash/noInlineLambdaX2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/lambdaTransformation") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LambdaTransformation extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class LambdaTransformation extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInLambdaTransformation() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/lambdaTransformation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("lambdaCloning.kt") public void testLambdaCloning() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/lambdaCloning.kt"); } + @Test @TestMetadata("lambdaInLambda2.kt") public void testLambdaInLambda2() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/lambdaInLambda2.kt"); } + @Test @TestMetadata("lambdaInLambdaNoInline.kt") public void testLambdaInLambdaNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/lambdaInLambdaNoInline.kt"); } + @Test @TestMetadata("regeneratedLambdaName.kt") public void testRegeneratedLambdaName() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/regeneratedLambdaName.kt"); } + @Test @TestMetadata("regeneratedLambdaName2.kt") public void testRegeneratedLambdaName2() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/regeneratedLambdaName2.kt"); } + @Test @TestMetadata("sameCaptured.kt") public void testSameCaptured() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/sameCaptured.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/localFunInLambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LocalFunInLambda extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class LocalFunInLambda extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInLocalFunInLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/localFunInLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("defaultParam.kt") public void testDefaultParam() throws Exception { runTest("compiler/testData/codegen/boxInline/localFunInLambda/defaultParam.kt"); } + @Test @TestMetadata("lambdaInLambdaCapturesAnotherFun.kt") public void testLambdaInLambdaCapturesAnotherFun() throws Exception { runTest("compiler/testData/codegen/boxInline/localFunInLambda/lambdaInLambdaCapturesAnotherFun.kt"); } + @Test @TestMetadata("localFunInLambda.kt") public void testLocalFunInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/localFunInLambda/localFunInLambda.kt"); } + @Test @TestMetadata("localFunInLambdaCapturesAnotherFun.kt") public void testLocalFunInLambdaCapturesAnotherFun() throws Exception { runTest("compiler/testData/codegen/boxInline/localFunInLambda/localFunInLambdaCapturesAnotherFun.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/multiModule") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MultiModule extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class MultiModule extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInMultiModule() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiModule"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("tryCatchWithRecursiveInline.kt") public void testTryCatchWithRecursiveInline() throws Exception { runTest("compiler/testData/codegen/boxInline/multiModule/tryCatchWithRecursiveInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/multifileClasses") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MultifileClasses extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class MultifileClasses extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInMultifileClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multifileClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("defaultArguments.kt") public void testDefaultArguments() throws Exception { runTest("compiler/testData/codegen/boxInline/multifileClasses/defaultArguments.kt"); } + @Test @TestMetadata("inlineFromOptimizedMultifileClass.kt") public void testInlineFromOptimizedMultifileClass() throws Exception { runTest("compiler/testData/codegen/boxInline/multifileClasses/inlineFromOptimizedMultifileClass.kt"); } + @Test @TestMetadata("inlineFromOtherPackage.kt") public void testInlineFromOtherPackage() throws Exception { runTest("compiler/testData/codegen/boxInline/multifileClasses/inlineFromOtherPackage.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/multiplatform") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Multiplatform extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Multiplatform extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInMultiplatform() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/multiplatform/defaultArguments") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultArguments extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class DefaultArguments extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInDefaultArguments() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiplatform/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("receiversAndParametersInLambda.kt") public void testReceiversAndParametersInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/multiplatform/defaultArguments/receiversAndParametersInLambda.kt"); @@ -2370,575 +2609,640 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/noInline") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class NoInline extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class NoInline extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInNoInline() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/noInline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("extensionReceiver.kt") public void testExtensionReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/extensionReceiver.kt"); } + @Test @TestMetadata("lambdaAsGeneric.kt") public void testLambdaAsGeneric() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/lambdaAsGeneric.kt"); } + @Test @TestMetadata("lambdaAsNonFunction.kt") public void testLambdaAsNonFunction() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/lambdaAsNonFunction.kt"); } + @Test @TestMetadata("noInline.kt") public void testNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/noInline.kt"); } + @Test @TestMetadata("noInlineLambdaChain.kt") public void testNoInlineLambdaChain() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/noInlineLambdaChain.kt"); } + @Test @TestMetadata("noInlineLambdaChainWithCapturedInline.kt") public void testNoInlineLambdaChainWithCapturedInline() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/noInlineLambdaChainWithCapturedInline.kt"); } + @Test @TestMetadata("withoutInline.kt") public void testWithoutInline() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/withoutInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class NonLocalReturns extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class NonLocalReturns extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInNonLocalReturns() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("explicitLocalReturn.kt") public void testExplicitLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/explicitLocalReturn.kt"); } + @Test @TestMetadata("fromArrayGenerator.kt") public void testFromArrayGenerator() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGenerator.kt"); } + @Test @TestMetadata("fromArrayGeneratorCatch.kt") public void testFromArrayGeneratorCatch() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorCatch.kt"); } + @Test @TestMetadata("fromArrayGeneratorNested.kt") public void testFromArrayGeneratorNested() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorNested.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithCapture.kt") public void testFromArrayGeneratorWithCapture() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithCapture.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithCatch.kt") public void testFromArrayGeneratorWithCatch() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithCatch.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithFinally.kt") public void testFromArrayGeneratorWithFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithFinally.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithFinallyX2.kt") public void testFromArrayGeneratorWithFinallyX2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithFinallyX2.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithFinallyX2_2.kt") public void testFromArrayGeneratorWithFinallyX2_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithFinallyX2_2.kt"); } + @Test @TestMetadata("fromInterfaceDefaultGetter.kt") public void testFromInterfaceDefaultGetter() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromInterfaceDefaultGetter.kt"); } + @Test @TestMetadata("justReturnInLambda.kt") public void testJustReturnInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/justReturnInLambda.kt"); } + @Test @TestMetadata("kt5199.kt") public void testKt5199() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt5199.kt"); } + @Test @TestMetadata("kt8948.kt") public void testKt8948() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948.kt"); } + @Test @TestMetadata("kt8948v2.kt") public void testKt8948v2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt"); } + @Test @TestMetadata("nestedNonLocals.kt") public void testNestedNonLocals() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/nestedNonLocals.kt"); } + @Test @TestMetadata("noInlineLocalReturn.kt") public void testNoInlineLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/noInlineLocalReturn.kt"); } + @Test @TestMetadata("nonLocalReturnFromOuterLambda.kt") public void testNonLocalReturnFromOuterLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/nonLocalReturnFromOuterLambda.kt"); } + @Test @TestMetadata("propertyAccessors.kt") public void testPropertyAccessors() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/propertyAccessors.kt"); } + @Test @TestMetadata("returnFromFunctionExpr.kt") public void testReturnFromFunctionExpr() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/returnFromFunctionExpr.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simple.kt"); } + @Test @TestMetadata("simpleFunctional.kt") public void testSimpleFunctional() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simpleFunctional.kt"); } + @Test @TestMetadata("simpleVoid.kt") public void testSimpleVoid() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simpleVoid.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Deparenthesize extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Deparenthesize extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInDeparenthesize() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("bracket.kt") public void testBracket() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize/bracket.kt"); } + @Test @TestMetadata("labeled.kt") public void testLabeled() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize/labeled.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class TryFinally extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class TryFinally extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInTryFinally() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("kt16417.kt") public void testKt16417() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt16417.kt"); } + @Test @TestMetadata("kt20433.kt") public void testKt20433() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433.kt"); } + @Test @TestMetadata("kt20433_2.kt") public void testKt20433_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2.kt"); } + @Test @TestMetadata("kt20433_2_void.kt") public void testKt20433_2_void() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2_void.kt"); } + @Test @TestMetadata("kt20433_void.kt") public void testKt20433_void() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_void.kt"); } + @Test @TestMetadata("kt26384.kt") public void testKt26384() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384.kt"); } + @Test @TestMetadata("kt26384_2.kt") public void testKt26384_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384_2.kt"); } + @Test @TestMetadata("kt28546.kt") public void testKt28546() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt28546.kt"); } + @Test @TestMetadata("kt6956.kt") public void testKt6956() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt6956.kt"); } + @Test @TestMetadata("kt7273.kt") public void testKt7273() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt7273.kt"); } + @Test @TestMetadata("nonLocalReturnFromCatchBlock.kt") public void testNonLocalReturnFromCatchBlock() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromCatchBlock.kt"); } + @Test @TestMetadata("nonLocalReturnFromOuterLambda.kt") public void testNonLocalReturnFromOuterLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromOuterLambda.kt"); } + @Test @TestMetadata("nonLocalReturnToCatchBlock.kt") public void testNonLocalReturnToCatchBlock() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnToCatchBlock.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CallSite extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class CallSite extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInCallSite() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("callSite.kt") public void testCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/callSite.kt"); } + @Test @TestMetadata("callSiteComplex.kt") public void testCallSiteComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/callSiteComplex.kt"); } + @Test @TestMetadata("exceptionTableSplit.kt") public void testExceptionTableSplit() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplit.kt"); } + @Test @TestMetadata("exceptionTableSplitNoReturn.kt") public void testExceptionTableSplitNoReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplitNoReturn.kt"); } + @Test @TestMetadata("finallyInFinally.kt") public void testFinallyInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/finallyInFinally.kt"); } + @Test @TestMetadata("wrongVarInterval.kt") public void testWrongVarInterval() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/wrongVarInterval.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Chained extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Chained extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInChained() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("finallyInFinally.kt") public void testFinallyInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally.kt"); } + @Test @TestMetadata("finallyInFinally2.kt") public void testFinallyInFinally2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally2.kt"); } + @Test @TestMetadata("intReturn.kt") public void testIntReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturn.kt"); } + @Test @TestMetadata("intReturnComplex.kt") public void testIntReturnComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex.kt"); } + @Test @TestMetadata("intReturnComplex2.kt") public void testIntReturnComplex2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex2.kt"); } + @Test @TestMetadata("intReturnComplex3.kt") public void testIntReturnComplex3() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex3.kt"); } + @Test @TestMetadata("intReturnComplex4.kt") public void testIntReturnComplex4() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex4.kt"); } + @Test @TestMetadata("nestedLambda.kt") public void testNestedLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/nestedLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DeclSite extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class DeclSite extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInDeclSite() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("complex.kt") public void testComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/complex.kt"); } + @Test @TestMetadata("intReturn.kt") public void testIntReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturn.kt"); } + @Test @TestMetadata("intReturnComplex.kt") public void testIntReturnComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturnComplex.kt"); } + @Test @TestMetadata("longReturn.kt") public void testLongReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/longReturn.kt"); } + @Test @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/nested.kt"); } + @Test @TestMetadata("returnInFinally.kt") public void testReturnInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInFinally.kt"); } + @Test @TestMetadata("returnInTry.kt") public void testReturnInTry() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTry.kt"); } + @Test @TestMetadata("returnInTryAndFinally.kt") public void testReturnInTryAndFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTryAndFinally.kt"); } + @Test @TestMetadata("severalInTry.kt") public void testSeveralInTry() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTry.kt"); } + @Test @TestMetadata("severalInTryComplex.kt") public void testSeveralInTryComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTryComplex.kt"); } + @Test @TestMetadata("voidInlineFun.kt") public void testVoidInlineFun() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidInlineFun.kt"); } + @Test @TestMetadata("voidNonLocal.kt") public void testVoidNonLocal() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidNonLocal.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ExceptionTable extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class ExceptionTable extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInExceptionTable() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("break.kt") public void testBreak() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/break.kt"); } + @Test @TestMetadata("continue.kt") public void testContinue() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/continue.kt"); } + @Test @TestMetadata("exceptionInFinally.kt") public void testExceptionInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/exceptionInFinally.kt"); } + @Test @TestMetadata("forInFinally.kt") public void testForInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/forInFinally.kt"); } + @Test @TestMetadata("innerAndExternal.kt") public void testInnerAndExternal() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternal.kt"); } + @Test @TestMetadata("innerAndExternalNested.kt") public void testInnerAndExternalNested() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalNested.kt"); } + @Test @TestMetadata("innerAndExternalSimple.kt") public void testInnerAndExternalSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalSimple.kt"); } + @Test @TestMetadata("kt31653.kt") public void testKt31653() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653.kt"); } + @Test @TestMetadata("kt31653_2.kt") public void testKt31653_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653_2.kt"); } + @Test @TestMetadata("kt31923.kt") public void testKt31923() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923.kt"); } + @Test @TestMetadata("kt31923_2.kt") public void testKt31923_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923_2.kt"); } + @Test @TestMetadata("kt31923_wrong.kt") public void testKt31923_wrong() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923_wrong.kt"); } + @Test @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nested.kt"); } + @Test @TestMetadata("nestedWithReturns.kt") public void testNestedWithReturns() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturns.kt"); } + @Test @TestMetadata("nestedWithReturnsSimple.kt") public void testNestedWithReturnsSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturnsSimple.kt"); } + @Test @TestMetadata("noFinally.kt") public void testNoFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/noFinally.kt"); } + @Test @TestMetadata("severalCatchClause.kt") public void testSeveralCatchClause() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/severalCatchClause.kt"); } + @Test @TestMetadata("simpleThrow.kt") public void testSimpleThrow() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/simpleThrow.kt"); } + @Test @TestMetadata("synchonized.kt") public void testSynchonized() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/synchonized.kt"); } + @Test @TestMetadata("throwInFinally.kt") public void testThrowInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/throwInFinally.kt"); } + @Test @TestMetadata("tryCatchInFinally.kt") public void testTryCatchInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/tryCatchInFinally.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Variables extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Variables extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInVariables() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("kt7792.kt") public void testKt7792() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables/kt7792.kt"); @@ -2947,450 +3251,501 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/optimizations") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Optimizations extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Optimizations extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInOptimizations() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/optimizations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("kt20844.kt") public void testKt20844() throws Exception { runTest("compiler/testData/codegen/boxInline/optimizations/kt20844.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/private") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Private extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Private extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test @TestMetadata("accessorForConst.kt") public void testAccessorForConst() throws Exception { runTest("compiler/testData/codegen/boxInline/private/accessorForConst.kt"); } + @Test @TestMetadata("accessorStability.kt") public void testAccessorStability() throws Exception { runTest("compiler/testData/codegen/boxInline/private/accessorStability.kt"); } + @Test @TestMetadata("accessorStabilityInClass.kt") public void testAccessorStabilityInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/private/accessorStabilityInClass.kt"); } + @Test public void testAllFilesPresentInPrivate() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/private"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("effectivePrivate.kt") public void testEffectivePrivate() throws Exception { runTest("compiler/testData/codegen/boxInline/private/effectivePrivate.kt"); } + @Test @TestMetadata("kt6453.kt") public void testKt6453() throws Exception { runTest("compiler/testData/codegen/boxInline/private/kt6453.kt"); } + @Test @TestMetadata("kt8094.kt") public void testKt8094() throws Exception { runTest("compiler/testData/codegen/boxInline/private/kt8094.kt"); } + @Test @TestMetadata("kt8095.kt") public void testKt8095() throws Exception { runTest("compiler/testData/codegen/boxInline/private/kt8095.kt"); } + @Test @TestMetadata("nestedInPrivateClass.kt") public void testNestedInPrivateClass() throws Exception { runTest("compiler/testData/codegen/boxInline/private/nestedInPrivateClass.kt"); } + @Test @TestMetadata("privateClass.kt") public void testPrivateClass() throws Exception { runTest("compiler/testData/codegen/boxInline/private/privateClass.kt"); } + @Test @TestMetadata("privateClassExtensionLambda.kt") public void testPrivateClassExtensionLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/private/privateClassExtensionLambda.kt"); } + @Test @TestMetadata("privateInInlineInMultiFileFacade.kt") public void testPrivateInInlineInMultiFileFacade() throws Exception { runTest("compiler/testData/codegen/boxInline/private/privateInInlineInMultiFileFacade.kt"); } + @Test @TestMetadata("privateInline.kt") public void testPrivateInline() throws Exception { runTest("compiler/testData/codegen/boxInline/private/privateInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/property") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Property extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Property extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInProperty() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/property"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("augAssignmentAndInc.kt") public void testAugAssignmentAndInc() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndInc.kt"); } + @Test @TestMetadata("augAssignmentAndIncInClass.kt") public void testAugAssignmentAndIncInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClass.kt"); } + @Test @TestMetadata("augAssignmentAndIncInClassViaConvention.kt") public void testAugAssignmentAndIncInClassViaConvention() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClassViaConvention.kt"); } + @Test @TestMetadata("augAssignmentAndIncOnExtension.kt") public void testAugAssignmentAndIncOnExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtension.kt"); } + @Test @TestMetadata("augAssignmentAndIncOnExtensionInClass.kt") public void testAugAssignmentAndIncOnExtensionInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtensionInClass.kt"); } + @Test @TestMetadata("augAssignmentAndIncViaConvention.kt") public void testAugAssignmentAndIncViaConvention() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncViaConvention.kt"); } + @Test @TestMetadata("fromObject.kt") public void testFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/property/fromObject.kt"); } + @Test @TestMetadata("kt22649.kt") public void testKt22649() throws Exception { runTest("compiler/testData/codegen/boxInline/property/kt22649.kt"); } + @Test @TestMetadata("property.kt") public void testProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/property/property.kt"); } + @Test @TestMetadata("reifiedVal.kt") public void testReifiedVal() throws Exception { runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt"); } + @Test @TestMetadata("reifiedVar.kt") public void testReifiedVar() throws Exception { runTest("compiler/testData/codegen/boxInline/property/reifiedVar.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/property/simple.kt"); } + @Test @TestMetadata("simpleExtension.kt") public void testSimpleExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/property/simpleExtension.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/reified") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Reified extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Reified extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInReified() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("arrayConstructor.kt") public void testArrayConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/arrayConstructor.kt"); } + @Test @TestMetadata("arrayOf.kt") public void testArrayOf() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/arrayOf.kt"); } + @Test @TestMetadata("capturedLambda.kt") public void testCapturedLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/capturedLambda.kt"); } + @Test @TestMetadata("capturedLambda2.kt") public void testCapturedLambda2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/capturedLambda2.kt"); } + @Test @TestMetadata("dontSubstituteNonReified.kt") public void testDontSubstituteNonReified() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/dontSubstituteNonReified.kt"); } + @Test @TestMetadata("kt11081.kt") public void testKt11081() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt11081.kt"); } + @Test @TestMetadata("kt11677.kt") public void testKt11677() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt11677.kt"); } + @Test @TestMetadata("kt15956.kt") public void testKt15956() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt15956.kt"); } + @Test @TestMetadata("kt15997.kt") public void testKt15997() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt15997.kt"); } + @Test @TestMetadata("kt15997_2.kt") public void testKt15997_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt15997_2.kt"); } + @Test @TestMetadata("kt18977.kt") public void testKt18977() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt"); } + @Test @TestMetadata("kt35511.kt") public void testKt35511() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511.kt"); } + @Test @TestMetadata("kt35511_try.kt") public void testKt35511_try() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511_try.kt"); } + @Test @TestMetadata("kt35511_try_valueOf.kt") public void testKt35511_try_valueOf() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511_try_valueOf.kt"); } + @Test @TestMetadata("kt35511_try_values.kt") public void testKt35511_try_values() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511_try_values.kt"); } + @Test @TestMetadata("kt6988.kt") public void testKt6988() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt6988.kt"); } + @Test @TestMetadata("kt6988_2.kt") public void testKt6988_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt6988_2.kt"); } + @Test @TestMetadata("kt6990.kt") public void testKt6990() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt6990.kt"); } + @Test @TestMetadata("kt7017.kt") public void testKt7017() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt7017.kt"); } + @Test @TestMetadata("kt8047.kt") public void testKt8047() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt8047.kt"); } + @Test @TestMetadata("kt8047_2.kt") public void testKt8047_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt8047_2.kt"); } + @Test @TestMetadata("kt9637.kt") public void testKt9637() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt9637.kt"); } + @Test @TestMetadata("kt9637_2.kt") public void testKt9637_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt9637_2.kt"); } + @Test @TestMetadata("nonCapturingObjectInLambda.kt") public void testNonCapturingObjectInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/nonCapturingObjectInLambda.kt"); } + @Test @TestMetadata("packages.kt") public void testPackages() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/packages.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/reified/checkCast") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CheckCast extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class CheckCast extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInCheckCast() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified/checkCast"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("chain.kt") public void testChain() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/chain.kt"); } + @Test @TestMetadata("kt26435.kt") public void testKt26435() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt26435.kt"); } + @Test @TestMetadata("kt26435_2.kt") public void testKt26435_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt26435_2.kt"); } + @Test @TestMetadata("kt26435_3.kt") public void testKt26435_3() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt26435_3.kt"); } + @Test @TestMetadata("kt8043.kt") public void testKt8043() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt8043.kt"); } + @Test @TestMetadata("maxStack.kt") public void testMaxStack() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/maxStack.kt"); } + @Test @TestMetadata("nullable.kt") public void testNullable() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/nullable.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/simple.kt"); } + @Test @TestMetadata("simpleSafe.kt") public void testSimpleSafe() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/simpleSafe.kt"); } + @Test @TestMetadata("simple_1_3.kt") public void testSimple_1_3() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/simple_1_3.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/reified/defaultLambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultLambda extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class DefaultLambda extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInDefaultLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified/defaultLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("chain.kt") public void testChain() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/chain.kt"); } + @Test @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nested.kt"); } + @Test @TestMetadata("nested2.kt") public void testNested2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nested2.kt"); } + @Test @TestMetadata("nested2Static.kt") public void testNested2Static() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nested2Static.kt"); } + @Test @TestMetadata("nestedStatic.kt") public void testNestedStatic() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nestedStatic.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/simple.kt"); } + @Test @TestMetadata("transitiveChain.kt") public void testTransitiveChain() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/transitiveChain.kt"); } + @Test @TestMetadata("transitiveChainStatic.kt") public void testTransitiveChainStatic() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/transitiveChainStatic.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/reified/isCheck") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class IsCheck extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class IsCheck extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInIsCheck() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified/isCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("chain.kt") public void testChain() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/isCheck/chain.kt"); } + @Test @TestMetadata("nullable.kt") public void testNullable() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/isCheck/nullable.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/isCheck/simple.kt"); @@ -3398,518 +3753,577 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/signature") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Signature extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Signature extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInSignature() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/signature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("inProjectionSubstitution.kt") public void testInProjectionSubstitution() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/inProjectionSubstitution.kt"); } + @Test @TestMetadata("outProjectionSubstitution.kt") public void testOutProjectionSubstitution() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/outProjectionSubstitution.kt"); } + @Test @TestMetadata("recursion.kt") public void testRecursion() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/recursion.kt"); } + @Test @TestMetadata("sameFormalParameterName.kt") public void testSameFormalParameterName() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/sameFormalParameterName.kt"); } + @Test @TestMetadata("sameReifiedFormalParameterName.kt") public void testSameReifiedFormalParameterName() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/sameReifiedFormalParameterName.kt"); } + @Test @TestMetadata("starProjectionSubstitution.kt") public void testStarProjectionSubstitution() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/starProjectionSubstitution.kt"); } + @Test @TestMetadata("typeParameterInLambda.kt") public void testTypeParameterInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/typeParameterInLambda.kt"); } + @Test @TestMetadata("typeParametersSubstitution.kt") public void testTypeParametersSubstitution() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/typeParametersSubstitution.kt"); } + @Test @TestMetadata("typeParametersSubstitution2.kt") public void testTypeParametersSubstitution2() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/typeParametersSubstitution2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/simple") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Simple extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Simple extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInSimple() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/simple"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("captureAndArgumentIncompatibleTypes.kt") public void testCaptureAndArgumentIncompatibleTypes() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/captureAndArgumentIncompatibleTypes.kt"); } + @Test @TestMetadata("classObject.kt") public void testClassObject() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/classObject.kt"); } + @Test @TestMetadata("destructuring.kt") public void testDestructuring() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/destructuring.kt"); } + @Test @TestMetadata("destructuringIndexClash.kt") public void testDestructuringIndexClash() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/destructuringIndexClash.kt"); } + @Test @TestMetadata("extension.kt") public void testExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/extension.kt"); } + @Test @TestMetadata("extensionLambda.kt") public void testExtensionLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/extensionLambda.kt"); } + @Test @TestMetadata("funImportedFromObject.kt") public void testFunImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/funImportedFromObject.kt"); } + @Test @TestMetadata("inlineCallInInlineLambda.kt") public void testInlineCallInInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/inlineCallInInlineLambda.kt"); } + @Test @TestMetadata("kt17431.kt") public void testKt17431() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/kt17431.kt"); } + @Test @TestMetadata("kt28547.kt") public void testKt28547() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/kt28547.kt"); } + @Test @TestMetadata("kt28547_2.kt") public void testKt28547_2() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/kt28547_2.kt"); } + @Test @TestMetadata("params.kt") public void testParams() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/params.kt"); } + @Test @TestMetadata("propImportedFromObject.kt") public void testPropImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/propImportedFromObject.kt"); } + @Test @TestMetadata("rootConstructor.kt") public void testRootConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/rootConstructor.kt"); } + @Test @TestMetadata("safeCall.kt") public void testSafeCall() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/safeCall.kt"); } + @Test @TestMetadata("severalClosures.kt") public void testSeveralClosures() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/severalClosures.kt"); } + @Test @TestMetadata("severalUsage.kt") public void testSeveralUsage() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/severalUsage.kt"); } + @Test @TestMetadata("simpleDouble.kt") public void testSimpleDouble() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleDouble.kt"); } + @Test @TestMetadata("simpleEnum.kt") public void testSimpleEnum() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleEnum.kt"); } + @Test @TestMetadata("simpleGenerics.kt") public void testSimpleGenerics() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleGenerics.kt"); } + @Test @TestMetadata("simpleInt.kt") public void testSimpleInt() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleInt.kt"); } + @Test @TestMetadata("simpleLambda.kt") public void testSimpleLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleLambda.kt"); } + @Test @TestMetadata("simpleObject.kt") public void testSimpleObject() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleObject.kt"); } + @Test @TestMetadata("vararg.kt") public void testVararg() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/vararg.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Smap extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Smap extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInSmap() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("assertion.kt") public void testAssertion() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/assertion.kt"); } + @Test @TestMetadata("classCycle.kt") public void testClassCycle() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/classCycle.kt"); } + @Test @TestMetadata("classFromDefaultPackage.kt") public void testClassFromDefaultPackage() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/classFromDefaultPackage.kt"); } + @Test @TestMetadata("crossroutines.kt") public void testCrossroutines() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/crossroutines.kt"); } + @Test @TestMetadata("defaultFunction.kt") public void testDefaultFunction() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultFunction.kt"); } + @Test @TestMetadata("defaultFunctionWithInlineCall.kt") public void testDefaultFunctionWithInlineCall() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultFunctionWithInlineCall.kt"); } + @Test @TestMetadata("forInline.kt") public void testForInline() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/forInline.kt"); } + @Test @TestMetadata("interleavedFiles.kt") public void testInterleavedFiles() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/interleavedFiles.kt"); } + @Test @TestMetadata("kt23369.kt") public void testKt23369() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/kt23369.kt"); } + @Test @TestMetadata("kt23369_2.kt") public void testKt23369_2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/kt23369_2.kt"); } + @Test @TestMetadata("kt23369_3.kt") public void testKt23369_3() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/kt23369_3.kt"); } + @Test @TestMetadata("kt35006.kt") public void testKt35006() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/kt35006.kt"); } + @Test @TestMetadata("multiFileFacade.kt") public void testMultiFileFacade() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/multiFileFacade.kt"); } + @Test @TestMetadata("oneFile.kt") public void testOneFile() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/oneFile.kt"); } + @Test @TestMetadata("rangeFolding.kt") public void testRangeFolding() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/rangeFolding.kt"); } + @Test @TestMetadata("rangeFoldingInClass.kt") public void testRangeFoldingInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/rangeFoldingInClass.kt"); } + @Test @TestMetadata("smap.kt") public void testSmap() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/smap.kt"); } + @Test @TestMetadata("smapWithNewSyntax.kt") public void testSmapWithNewSyntax() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/smapWithNewSyntax.kt"); } + @Test @TestMetadata("smapWithOldSyntax.kt") public void testSmapWithOldSyntax() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/smapWithOldSyntax.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/anonymous") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Anonymous extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Anonymous extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInAnonymous() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("kt19175.kt") public void testKt19175() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/kt19175.kt"); } + @Test @TestMetadata("lambda.kt") public void testLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/lambda.kt"); } + @Test @TestMetadata("lambdaOnCallSite.kt") public void testLambdaOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/lambdaOnCallSite.kt"); } + @Test @TestMetadata("lambdaOnInlineCallSite.kt") public void testLambdaOnInlineCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/lambdaOnInlineCallSite.kt"); } + @Test @TestMetadata("object.kt") public void testObject() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/object.kt"); } + @Test @TestMetadata("objectOnCallSite.kt") public void testObjectOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnCallSite.kt"); } + @Test @TestMetadata("objectOnInlineCallSite.kt") public void testObjectOnInlineCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSite.kt"); } + @Test @TestMetadata("objectOnInlineCallSite2.kt") public void testObjectOnInlineCallSite2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSite2.kt"); } + @Test @TestMetadata("objectOnInlineCallSiteWithCapture.kt") public void testObjectOnInlineCallSiteWithCapture() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSiteWithCapture.kt"); } + @Test @TestMetadata("severalMappingsForDefaultFile.kt") public void testSeveralMappingsForDefaultFile() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/severalMappingsForDefaultFile.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/defaultLambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultLambda extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class DefaultLambda extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInDefaultLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/defaultLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("defaultLambdaInAnonymous.kt") public void testDefaultLambdaInAnonymous() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/defaultLambdaInAnonymous.kt"); } + @Test @TestMetadata("inlinInDefault.kt") public void testInlinInDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlinInDefault.kt"); } + @Test @TestMetadata("inlinInDefault2.kt") public void testInlinInDefault2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlinInDefault2.kt"); } + @Test @TestMetadata("inlineAnonymousInDefault.kt") public void testInlineAnonymousInDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlineAnonymousInDefault.kt"); } + @Test @TestMetadata("inlineAnonymousInDefault2.kt") public void testInlineAnonymousInDefault2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlineAnonymousInDefault2.kt"); } + @Test @TestMetadata("kt21827.kt") public void testKt21827() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/kt21827.kt"); } + @Test @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/nested.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/simple.kt"); } + @Test @TestMetadata("simple2.kt") public void testSimple2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/simple2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/inlineOnly") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineOnly extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class InlineOnly extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInInlineOnly() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/inlineOnly"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("noSmap.kt") public void testNoSmap() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/noSmap.kt"); } + @Test @TestMetadata("noSmapWithProperty.kt") public void testNoSmapWithProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/noSmapWithProperty.kt"); } + @Test @TestMetadata("reified.kt") public void testReified() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/reified.kt"); } + @Test @TestMetadata("reifiedProperty.kt") public void testReifiedProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/reifiedProperty.kt"); } + @Test @TestMetadata("stdlibInlineOnly.kt") public void testStdlibInlineOnly() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/stdlibInlineOnly.kt"); } + @Test @TestMetadata("stdlibInlineOnlyOneLine.kt") public void testStdlibInlineOnlyOneLine() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/stdlibInlineOnlyOneLine.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/newsmap") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Newsmap extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Newsmap extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInNewsmap() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/newsmap"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("differentMapping.kt") public void testDifferentMapping() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/newsmap/differentMapping.kt"); } + @Test @TestMetadata("mappingInInlineFunLambda.kt") public void testMappingInInlineFunLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/newsmap/mappingInInlineFunLambda.kt"); } + @Test @TestMetadata("mappingInSubInlineLambda.kt") public void testMappingInSubInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/newsmap/mappingInSubInlineLambda.kt"); } + @Test @TestMetadata("mappingInSubInlineLambdaSameFileInline.kt") public void testMappingInSubInlineLambdaSameFileInline() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/newsmap/mappingInSubInlineLambdaSameFileInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/resolve") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Resolve extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Resolve extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInResolve() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/resolve"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("inlineComponent.kt") public void testInlineComponent() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/resolve/inlineComponent.kt"); } + @Test @TestMetadata("inlineIterator.kt") public void testInlineIterator() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/resolve/inlineIterator.kt"); @@ -3917,621 +4331,695 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/special") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Special extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Special extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInSpecial() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/special"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("identityCheck.kt") public void testIdentityCheck() throws Exception { runTest("compiler/testData/codegen/boxInline/special/identityCheck.kt"); } + @Test @TestMetadata("ifBranches.kt") public void testIfBranches() throws Exception { runTest("compiler/testData/codegen/boxInline/special/ifBranches.kt"); } + @Test @TestMetadata("iinc.kt") public void testIinc() throws Exception { runTest("compiler/testData/codegen/boxInline/special/iinc.kt"); } + @Test @TestMetadata("inlineChain.kt") public void testInlineChain() throws Exception { runTest("compiler/testData/codegen/boxInline/special/inlineChain.kt"); } + @Test @TestMetadata("loopInStoreLoadChains.kt") public void testLoopInStoreLoadChains() throws Exception { runTest("compiler/testData/codegen/boxInline/special/loopInStoreLoadChains.kt"); } + @Test @TestMetadata("loopInStoreLoadChains2.kt") public void testLoopInStoreLoadChains2() throws Exception { runTest("compiler/testData/codegen/boxInline/special/loopInStoreLoadChains2.kt"); } + @Test @TestMetadata("plusAssign.kt") public void testPlusAssign() throws Exception { runTest("compiler/testData/codegen/boxInline/special/plusAssign.kt"); } + @Test @TestMetadata("stackHeightBug.kt") public void testStackHeightBug() throws Exception { runTest("compiler/testData/codegen/boxInline/special/stackHeightBug.kt"); } + @Test @TestMetadata("unusedInlineLambda.kt") public void testUnusedInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/special/unusedInlineLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/stackOnReturn") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class StackOnReturn extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class StackOnReturn extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInStackOnReturn() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/stackOnReturn"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("elvis.kt") public void testElvis() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/elvis.kt"); } + @Test @TestMetadata("ifThenElse.kt") public void testIfThenElse() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/ifThenElse.kt"); } + @Test @TestMetadata("kt11499.kt") public void testKt11499() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt11499.kt"); } + @Test @TestMetadata("kt17591.kt") public void testKt17591() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt17591.kt"); } + @Test @TestMetadata("kt17591a.kt") public void testKt17591a() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt17591a.kt"); } + @Test @TestMetadata("kt17591b.kt") public void testKt17591b() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt17591b.kt"); } + @Test @TestMetadata("mixedTypesOnStack1.kt") public void testMixedTypesOnStack1() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack1.kt"); } + @Test @TestMetadata("mixedTypesOnStack2.kt") public void testMixedTypesOnStack2() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack2.kt"); } + @Test @TestMetadata("mixedTypesOnStack3.kt") public void testMixedTypesOnStack3() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack3.kt"); } + @Test @TestMetadata("nonLocalReturn1.kt") public void testNonLocalReturn1() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn1.kt"); } + @Test @TestMetadata("nonLocalReturn2.kt") public void testNonLocalReturn2() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn2.kt"); } + @Test @TestMetadata("nonLocalReturn3.kt") public void testNonLocalReturn3() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn3.kt"); } + @Test @TestMetadata("poppedLocalReturn.kt") public void testPoppedLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/poppedLocalReturn.kt"); } + @Test @TestMetadata("poppedLocalReturn2.kt") public void testPoppedLocalReturn2() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/poppedLocalReturn2.kt"); } + @Test @TestMetadata("returnLong.kt") public void testReturnLong() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/returnLong.kt"); } + @Test @TestMetadata("tryFinally.kt") public void testTryFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/tryFinally.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Suspend extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Suspend extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInSuspend() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("capturedVariables.kt") public void testCapturedVariables() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/capturedVariables.kt"); } + @Test @TestMetadata("crossinlineSuspendLambdaInsideCrossinlineSuspendLambda.kt") public void testCrossinlineSuspendLambdaInsideCrossinlineSuspendLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/crossinlineSuspendLambdaInsideCrossinlineSuspendLambda.kt"); } + @Test @TestMetadata("debugMetadataCrossinline.kt") public void testDebugMetadataCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/debugMetadataCrossinline.kt"); } + @Test @TestMetadata("delegatedProperties.kt") public void testDelegatedProperties() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/delegatedProperties.kt"); } + @Test @TestMetadata("doubleRegenerationWithNonSuspendingLambda.kt") public void testDoubleRegenerationWithNonSuspendingLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/doubleRegenerationWithNonSuspendingLambda.kt"); } + @Test @TestMetadata("enclodingMethod.kt") public void testEnclodingMethod() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/enclodingMethod.kt"); } + @Test @TestMetadata("fileNameInMetadata.kt") public void testFileNameInMetadata() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/fileNameInMetadata.kt"); } + @Test @TestMetadata("inlineOrdinaryOfCrossinlineSuspend.kt") public void testInlineOrdinaryOfCrossinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfCrossinlineSuspend.kt"); } + @Test @TestMetadata("inlineOrdinaryOfNoinlineSuspend.kt") public void testInlineOrdinaryOfNoinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfNoinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendContinuation.kt") public void testInlineSuspendContinuation() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendContinuation.kt"); } + @Test @TestMetadata("inlineSuspendInMultifileClass.kt") public void testInlineSuspendInMultifileClass() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendInMultifileClass.kt"); } + @Test @TestMetadata("inlineSuspendOfCrossinlineOrdinary.kt") public void testInlineSuspendOfCrossinlineOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfCrossinlineSuspend.kt") public void testInlineSuspendOfCrossinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfNoinlineOrdinary.kt") public void testInlineSuspendOfNoinlineOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfNoinlineSuspend.kt") public void testInlineSuspendOfNoinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfOrdinary.kt") public void testInlineSuspendOfOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfSuspend.kt") public void testInlineSuspendOfSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfSuspend.kt"); } + @Test @TestMetadata("jvmName.kt") public void testJvmName() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/jvmName.kt"); } + @Test @TestMetadata("kt26658.kt") public void testKt26658() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/kt26658.kt"); } + @Test @TestMetadata("maxStackWithCrossinline.kt") public void testMaxStackWithCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/maxStackWithCrossinline.kt"); } + @Test @TestMetadata("multipleLocals.kt") public void testMultipleLocals() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/multipleLocals.kt"); } + @Test @TestMetadata("multipleSuspensionPoints.kt") public void testMultipleSuspensionPoints() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/multipleSuspensionPoints.kt"); } + @Test @TestMetadata("nestedMethodWith2XParameter.kt") public void testNestedMethodWith2XParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/nestedMethodWith2XParameter.kt"); } + @Test @TestMetadata("nonLocalReturn.kt") public void testNonLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/nonLocalReturn.kt"); } + @Test @TestMetadata("nonSuspendCrossinline.kt") public void testNonSuspendCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/nonSuspendCrossinline.kt"); } + @Test @TestMetadata("returnValue.kt") public void testReturnValue() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/returnValue.kt"); } + @Test @TestMetadata("tryCatchReceiver.kt") public void testTryCatchReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/tryCatchReceiver.kt"); } + @Test @TestMetadata("tryCatchStackTransform.kt") public void testTryCatchStackTransform() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/tryCatchStackTransform.kt"); } + @Test @TestMetadata("twiceRegeneratedAnonymousObject.kt") public void testTwiceRegeneratedAnonymousObject() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/twiceRegeneratedAnonymousObject.kt"); } + @Test @TestMetadata("twiceRegeneratedSuspendLambda.kt") public void testTwiceRegeneratedSuspendLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/twiceRegeneratedSuspendLambda.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/callableReference") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CallableReference extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class CallableReference extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInCallableReference() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("isAsReified.kt") public void testIsAsReified() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/isAsReified.kt"); } + @Test @TestMetadata("isAsReified2.kt") public void testIsAsReified2() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/isAsReified2.kt"); } + @Test @TestMetadata("nonTailCall.kt") public void testNonTailCall() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/nonTailCall.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/simple.kt"); } + @Test @TestMetadata("unitReturn.kt") public void testUnitReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/unitReturn.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/defaultParameter") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultParameter extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class DefaultParameter extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInDefaultParameter() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/defaultParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("defaultValueCrossinline.kt") public void testDefaultValueCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueCrossinline.kt"); } + @Test @TestMetadata("defaultValueInClass.kt") public void testDefaultValueInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInClass.kt"); } + @Test @TestMetadata("defaultValueInline.kt") public void testDefaultValueInline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInline.kt"); } + @Test @TestMetadata("defaultValueInlineFromMultiFileFacade.kt") public void testDefaultValueInlineFromMultiFileFacade() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInlineFromMultiFileFacade.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/inlineClass") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineClass extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class InlineClass extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInInlineClass() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("returnUnboxedDirect.kt") public void testReturnUnboxedDirect() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineClass/returnUnboxedDirect.kt"); } + @Test @TestMetadata("returnUnboxedResume.kt") public void testReturnUnboxedResume() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineClass/returnUnboxedResume.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineUsedAsNoinline extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class InlineUsedAsNoinline extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInInlineUsedAsNoinline() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("inlineOnly.kt") public void testInlineOnly() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/inlineOnly.kt"); } + @Test @TestMetadata("simpleNamed.kt") public void testSimpleNamed() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/simpleNamed.kt"); } + @Test @TestMetadata("withCapturedInlineLambda.kt") public void testWithCapturedInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/withCapturedInlineLambda.kt"); } + @Test @TestMetadata("withCapturedInlineLambda2.kt") public void testWithCapturedInlineLambda2() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/withCapturedInlineLambda2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/receiver") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Receiver extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Receiver extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInReceiver() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/receiver"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("inlineOrdinaryOfCrossinlineSuspend.kt") public void testInlineOrdinaryOfCrossinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfCrossinlineSuspend.kt"); } + @Test @TestMetadata("inlineOrdinaryOfNoinlineSuspend.kt") public void testInlineOrdinaryOfNoinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfNoinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfCrossinlineOrdinary.kt") public void testInlineSuspendOfCrossinlineOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfCrossinlineSuspend.kt") public void testInlineSuspendOfCrossinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfNoinlineOrdinary.kt") public void testInlineSuspendOfNoinlineOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfNoinlineSuspend.kt") public void testInlineSuspendOfNoinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfOrdinary.kt") public void testInlineSuspendOfOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfSuspend.kt") public void testInlineSuspendOfSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfSuspend.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/stateMachine") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class StateMachine extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class StateMachine extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInStateMachine() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/stateMachine"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("crossingCoroutineBoundaries.kt") public void testCrossingCoroutineBoundaries() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/crossingCoroutineBoundaries.kt"); } + @Test @TestMetadata("independentInline.kt") public void testIndependentInline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/independentInline.kt"); } + @Test @TestMetadata("innerLambda.kt") public void testInnerLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambda.kt"); } + @Test @TestMetadata("innerLambdaInsideLambda.kt") public void testInnerLambdaInsideLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaInsideLambda.kt"); } + @Test @TestMetadata("innerLambdaWithoutCrossinline.kt") public void testInnerLambdaWithoutCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaWithoutCrossinline.kt"); } + @Test @TestMetadata("innerMadness.kt") public void testInnerMadness() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadness.kt"); } + @Test @TestMetadata("innerMadnessCallSite.kt") public void testInnerMadnessCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadnessCallSite.kt"); } + @Test @TestMetadata("innerObject.kt") public void testInnerObject() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObject.kt"); } + @Test @TestMetadata("innerObjectInsideInnerObject.kt") public void testInnerObjectInsideInnerObject() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectInsideInnerObject.kt"); } + @Test @TestMetadata("innerObjectRetransformation.kt") public void testInnerObjectRetransformation() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectRetransformation.kt"); } + @Test @TestMetadata("innerObjectSeveralFunctions.kt") public void testInnerObjectSeveralFunctions() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectSeveralFunctions.kt"); } + @Test @TestMetadata("innerObjectWithoutCapturingCrossinline.kt") public void testInnerObjectWithoutCapturingCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectWithoutCapturingCrossinline.kt"); } + @Test @TestMetadata("insideObject.kt") public void testInsideObject() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/insideObject.kt"); } + @Test @TestMetadata("kt30708.kt") public void testKt30708() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/kt30708.kt"); } + @Test @TestMetadata("lambdaTransformation.kt") public void testLambdaTransformation() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/lambdaTransformation.kt"); } + @Test @TestMetadata("normalInline.kt") public void testNormalInline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/normalInline.kt"); } + @Test @TestMetadata("numberOfSuspentions.kt") public void testNumberOfSuspentions() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/numberOfSuspentions.kt"); } + @Test @TestMetadata("objectInsideLambdas.kt") public void testObjectInsideLambdas() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/objectInsideLambdas.kt"); } + @Test @TestMetadata("oneInlineTwoCaptures.kt") public void testOneInlineTwoCaptures() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/oneInlineTwoCaptures.kt"); } + @Test @TestMetadata("passLambda.kt") public void testPassLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/passLambda.kt"); } + @Test @TestMetadata("passParameter.kt") public void testPassParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/passParameter.kt"); } + @Test @TestMetadata("passParameterLambda.kt") public void testPassParameterLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/passParameterLambda.kt"); } + @Test @TestMetadata("unreachableSuspendMarker.kt") public void testUnreachableSuspendMarker() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/unreachableSuspendMarker.kt"); @@ -4539,110 +5027,121 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/syntheticAccessors") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class SyntheticAccessors extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class SyntheticAccessors extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInSyntheticAccessors() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/syntheticAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("constField.kt") public void testConstField() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/constField.kt"); } + @Test @TestMetadata("packagePrivateMembers.kt") public void testPackagePrivateMembers() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/packagePrivateMembers.kt"); } + @Test @TestMetadata("propertyModifiers.kt") public void testPropertyModifiers() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/propertyModifiers.kt"); } + @Test @TestMetadata("protectedMembers.kt") public void testProtectedMembers() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/protectedMembers.kt"); } + @Test @TestMetadata("protectedMembersFromSuper.kt") public void testProtectedMembersFromSuper() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/protectedMembersFromSuper.kt"); } + @Test @TestMetadata("superCall.kt") public void testSuperCall() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/superCall.kt"); } + @Test @TestMetadata("superCallFromMultipleSubclasses.kt") public void testSuperCallFromMultipleSubclasses() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/superCallFromMultipleSubclasses.kt"); } + @Test @TestMetadata("superProperty.kt") public void testSuperProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/superProperty.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class WithinInlineLambda extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class WithinInlineLambda extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInWithinInlineLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("directFieldAccess.kt") public void testDirectFieldAccess() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/directFieldAccess.kt"); } + @Test @TestMetadata("directFieldAccessInCrossInline.kt") public void testDirectFieldAccessInCrossInline() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/directFieldAccessInCrossInline.kt"); } + @Test @TestMetadata("privateCall.kt") public void testPrivateCall() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateCall.kt"); } + @Test @TestMetadata("privateInCrossInline.kt") public void testPrivateInCrossInline() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInCrossInline.kt"); } + @Test @TestMetadata("privateInDefaultStubArgument.kt") public void testPrivateInDefaultStubArgument() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInDefaultStubArgument.kt"); } + @Test @TestMetadata("protectedInCrossinline.kt") public void testProtectedInCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/protectedInCrossinline.kt"); } + @Test @TestMetadata("protectedMembersFromSuper.kt") public void testProtectedMembersFromSuper() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/protectedMembersFromSuper.kt"); } + @Test @TestMetadata("superCall.kt") public void testSuperCall() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superCall.kt"); } + @Test @TestMetadata("superInCrossInline.kt") public void testSuperInCrossInline() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superInCrossInline.kt"); @@ -4650,79 +5149,78 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/trait") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Trait extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Trait extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInTrait() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/trait"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("trait.kt") public void testTrait() throws Exception { runTest("compiler/testData/codegen/boxInline/trait/trait.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/tryCatchFinally") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class TryCatchFinally extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class TryCatchFinally extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInTryCatchFinally() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/tryCatchFinally"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("kt5863.kt") public void testKt5863() throws Exception { runTest("compiler/testData/codegen/boxInline/tryCatchFinally/kt5863.kt"); } + @Test @TestMetadata("tryCatch.kt") public void testTryCatch() throws Exception { runTest("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch.kt"); } + @Test @TestMetadata("tryCatch2.kt") public void testTryCatch2() throws Exception { runTest("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch2.kt"); } + @Test @TestMetadata("tryCatchFinally.kt") public void testTryCatchFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatchFinally.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/varargs") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Varargs extends AbstractCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Varargs extends AbstractCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInVarargs() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/varargs"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("kt17653.kt") public void testKt17653() throws Exception { runTest("compiler/testData/codegen/boxInline/varargs/kt17653.kt"); } + @Test @TestMetadata("varargAndDefaultParameters.kt") public void testVarargAndDefaultParameters() throws Exception { runTest("compiler/testData/codegen/boxInline/varargs/varargAndDefaultParameters.kt"); } + @Test @TestMetadata("varargAndDefaultParameters2.kt") public void testVarargAndDefaultParameters2() throws Exception { runTest("compiler/testData/codegen/boxInline/varargs/varargAndDefaultParameters2.kt"); diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/IrBlackBoxInlineCodegenTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxInlineCodegenTestGenerated.java similarity index 89% rename from compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/IrBlackBoxInlineCodegenTestGenerated.java rename to compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxInlineCodegenTestGenerated.java index 2fbb43a410f..cf591f4cf24 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/IrBlackBoxInlineCodegenTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxInlineCodegenTestGenerated.java @@ -3,579 +3,651 @@ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ -package org.jetbrains.kotlin.codegen.ir; +package org.jetbrains.kotlin.test.runners.codegen; import com.intellij.testFramework.TestDataPath; -import org.jetbrains.kotlin.test.JUnit3RunnerWithInners; -import org.jetbrains.kotlin.test.KotlinTestUtils; import org.jetbrains.kotlin.test.util.KtTestUtil; import org.jetbrains.kotlin.test.TargetBackend; import org.jetbrains.kotlin.test.TestMetadata; -import org.junit.runner.RunWith; +import org.junit.jupiter.api.Nested; +import org.junit.jupiter.api.Test; import java.io.File; import java.util.regex.Pattern; -/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */ +/** This class is generated by {@link GenerateNewCompilerTests.kt}. DO NOT MODIFY MANUALLY */ @SuppressWarnings("all") @TestMetadata("compiler/testData/codegen/boxInline") @TestDataPath("$PROJECT_ROOT") -@RunWith(JUnit3RunnerWithInners.class) public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + @Test public void testAllFilesPresentInBoxInline() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class AnonymousObject extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class AnonymousObject extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInAnonymousObject() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("anonymousObjectInDefault.kt") public void testAnonymousObjectInDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectInDefault.kt"); } + @Test @TestMetadata("anonymousObjectOnCallSite.kt") public void testAnonymousObjectOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnCallSite.kt"); } + @Test @TestMetadata("anonymousObjectOnCallSiteSuperParams.kt") public void testAnonymousObjectOnCallSiteSuperParams() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnCallSiteSuperParams.kt"); } + @Test @TestMetadata("anonymousObjectOnDeclarationSite.kt") public void testAnonymousObjectOnDeclarationSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnDeclarationSite.kt"); } + @Test @TestMetadata("anonymousObjectOnDeclarationSiteSuperParams.kt") public void testAnonymousObjectOnDeclarationSiteSuperParams() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnDeclarationSiteSuperParams.kt"); } + @Test @TestMetadata("capturedLambdaInInline.kt") public void testCapturedLambdaInInline() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline.kt"); } + @Test @TestMetadata("capturedLambdaInInline2.kt") public void testCapturedLambdaInInline2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline2.kt"); } + @Test @TestMetadata("capturedLambdaInInline3.kt") public void testCapturedLambdaInInline3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline3.kt"); } + @Test @TestMetadata("capturedLambdaInInlineObject.kt") public void testCapturedLambdaInInlineObject() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInlineObject.kt"); } + @Test @TestMetadata("capturedLocalFun.kt") public void testCapturedLocalFun() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLocalFun.kt"); } + @Test @TestMetadata("capturedLocalFunRef.kt") public void testCapturedLocalFunRef() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLocalFunRef.kt"); } + @Test @TestMetadata("changingReturnType.kt") public void testChangingReturnType() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/changingReturnType.kt"); } + @Test @TestMetadata("constructOriginalInRegenerated.kt") public void testConstructOriginalInRegenerated() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/constructOriginalInRegenerated.kt"); } + @Test @TestMetadata("constructorVisibility.kt") public void testConstructorVisibility() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/constructorVisibility.kt"); } + @Test @TestMetadata("constructorVisibilityInConstLambda.kt") public void testConstructorVisibilityInConstLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/constructorVisibilityInConstLambda.kt"); } + @Test @TestMetadata("constructorVisibilityInLambda.kt") public void testConstructorVisibilityInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/constructorVisibilityInLambda.kt"); } + @Test @TestMetadata("defineClass.kt") public void testDefineClass() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt"); } + @Test @TestMetadata("functionExpression.kt") public void testFunctionExpression() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/functionExpression.kt"); } + @Test @TestMetadata("inlineCallInsideInlineLambda.kt") public void testInlineCallInsideInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/inlineCallInsideInlineLambda.kt"); } + @Test @TestMetadata("kt13133.kt") public void testKt13133() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt13133.kt"); } + @Test @TestMetadata("kt13182.kt") public void testKt13182() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt13182.kt"); } + @Test @TestMetadata("kt13374.kt") public void testKt13374() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt13374.kt"); } + @Test @TestMetadata("kt14011.kt") public void testKt14011() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt14011.kt"); } + @Test @TestMetadata("kt14011_2.kt") public void testKt14011_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt14011_2.kt"); } + @Test @TestMetadata("kt14011_3.kt") public void testKt14011_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt14011_3.kt"); } + @Test @TestMetadata("kt15751.kt") public void testKt15751() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt15751.kt"); } + @Test @TestMetadata("kt16193.kt") public void testKt16193() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt16193.kt"); } + @Test @TestMetadata("kt17972.kt") public void testKt17972() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972.kt"); } + @Test @TestMetadata("kt17972_2.kt") public void testKt17972_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_2.kt"); } + @Test @TestMetadata("kt17972_3.kt") public void testKt17972_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_3.kt"); } + @Test @TestMetadata("kt17972_4.kt") public void testKt17972_4() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_4.kt"); } + @Test @TestMetadata("kt17972_5.kt") public void testKt17972_5() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_5.kt"); } + @Test @TestMetadata("kt17972_super.kt") public void testKt17972_super() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_super.kt"); } + @Test @TestMetadata("kt17972_super2.kt") public void testKt17972_super2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_super2.kt"); } + @Test @TestMetadata("kt17972_super3.kt") public void testKt17972_super3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_super3.kt"); } + @Test @TestMetadata("kt19389.kt") public void testKt19389() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19389.kt"); } + @Test @TestMetadata("kt19399.kt") public void testKt19399() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19399.kt"); } + @Test @TestMetadata("kt19434.kt") public void testKt19434() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19434.kt"); } + @Test @TestMetadata("kt19434_2.kt") public void testKt19434_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19434_2.kt"); } + @Test @TestMetadata("kt19723.kt") public void testKt19723() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19723.kt"); } + @Test @TestMetadata("kt29595.kt") public void testKt29595() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt29595.kt"); } + @Test @TestMetadata("kt34656.kt") public void testKt34656() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt34656.kt"); } + @Test @TestMetadata("kt38197.kt") public void testKt38197() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt"); } + @Test @TestMetadata("kt42815.kt") public void testKt42815() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt42815.kt"); } + @Test @TestMetadata("kt42815_delegated.kt") public void testKt42815_delegated() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt42815_delegated.kt"); } + @Test @TestMetadata("kt6007.kt") public void testKt6007() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6007.kt"); } + @Test @TestMetadata("kt6552.kt") public void testKt6552() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6552.kt"); } + @Test @TestMetadata("kt8133.kt") public void testKt8133() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt8133.kt"); } + @Test @TestMetadata("kt9064.kt") public void testKt9064() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9064.kt"); } + @Test @TestMetadata("kt9064v2.kt") public void testKt9064v2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9064v2.kt"); } + @Test @TestMetadata("kt9591.kt") public void testKt9591() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9591.kt"); } + @Test @TestMetadata("kt9877.kt") public void testKt9877() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9877.kt"); } + @Test @TestMetadata("kt9877_2.kt") public void testKt9877_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9877_2.kt"); } + @Test @TestMetadata("objectInLambdaCapturesAnotherObject.kt") public void testObjectInLambdaCapturesAnotherObject() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/objectInLambdaCapturesAnotherObject.kt"); } + @Test @TestMetadata("safeCall.kt") public void testSafeCall() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/safeCall.kt"); } + @Test @TestMetadata("safeCall_2.kt") public void testSafeCall_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/safeCall_2.kt"); } + @Test @TestMetadata("sam.kt") public void testSam() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam.kt"); } + @Test @TestMetadata("sharedFromCrossinline.kt") public void testSharedFromCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sharedFromCrossinline.kt"); } + @Test @TestMetadata("superConstructorWithObjectParameter.kt") public void testSuperConstructorWithObjectParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/superConstructorWithObjectParameter.kt"); } + @Test @TestMetadata("typeInfo.kt") public void testTypeInfo() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/typeInfo.kt"); } + @Test @TestMetadata("withInlineMethod.kt") public void testWithInlineMethod() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/withInlineMethod.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/enumWhen") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class EnumWhen extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class EnumWhen extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInEnumWhen() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/enumWhen"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("callSite.kt") public void testCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/callSite.kt"); } + @Test @TestMetadata("declSite.kt") public void testDeclSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/declSite.kt"); } + @Test @TestMetadata("declSiteSeveralMappings.kt") public void testDeclSiteSeveralMappings() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/declSiteSeveralMappings.kt"); } + @Test @TestMetadata("declSiteSeveralMappingsDifOrder.kt") public void testDeclSiteSeveralMappingsDifOrder() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/declSiteSeveralMappingsDifOrder.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ProperRecapturing extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class ProperRecapturing extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInProperRecapturing() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("inlineChain.kt") public void testInlineChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/inlineChain.kt"); } + @Test @TestMetadata("lambdaChain.kt") public void testLambdaChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChain.kt"); } + @Test @TestMetadata("lambdaChainSimple.kt") public void testLambdaChainSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChainSimple.kt"); } + @Test @TestMetadata("lambdaChain_2.kt") public void testLambdaChain_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChain_2.kt"); } + @Test @TestMetadata("lambdaChain_3.kt") public void testLambdaChain_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChain_3.kt"); } + @Test @TestMetadata("noInlineLambda.kt") public void testNoInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/noInlineLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ProperRecapturingInClass extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class ProperRecapturingInClass extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInProperRecapturingInClass() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("inlineChain.kt") public void testInlineChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/inlineChain.kt"); } + @Test @TestMetadata("inlinelambdaChain.kt") public void testInlinelambdaChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/inlinelambdaChain.kt"); } + @Test @TestMetadata("lambdaChain.kt") public void testLambdaChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain.kt"); } + @Test @TestMetadata("lambdaChainSimple.kt") public void testLambdaChainSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChainSimple.kt"); } + @Test @TestMetadata("lambdaChainSimple_2.kt") public void testLambdaChainSimple_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChainSimple_2.kt"); } + @Test @TestMetadata("lambdaChain_2.kt") public void testLambdaChain_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain_2.kt"); } + @Test @TestMetadata("lambdaChain_3.kt") public void testLambdaChain_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain_3.kt"); } + @Test @TestMetadata("noCapturedThisOnCallSite.kt") public void testNoCapturedThisOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/noCapturedThisOnCallSite.kt"); } + @Test @TestMetadata("noInlineLambda.kt") public void testNoInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/noInlineLambda.kt"); } + @Test @TestMetadata("twoInlineLambda.kt") public void testTwoInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/twoInlineLambda.kt"); } + @Test @TestMetadata("twoInlineLambdaComplex.kt") public void testTwoInlineLambdaComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/twoInlineLambdaComplex.kt"); } + @Test @TestMetadata("twoInlineLambdaComplex_2.kt") public void testTwoInlineLambdaComplex_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/twoInlineLambdaComplex_2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/sam") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Sam extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Sam extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInSam() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("anonymousObjectToSam.kt") public void testAnonymousObjectToSam() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/anonymousObjectToSam.kt"); } + @Test @TestMetadata("kt17091.kt") public void testKt17091() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt17091.kt"); } + @Test @TestMetadata("kt21671.kt") public void testKt21671() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671.kt"); } + @Test @TestMetadata("kt21671_2.kt") public void testKt21671_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671_2.kt"); } + @Test @TestMetadata("kt21671_3.kt") public void testKt21671_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671_3.kt"); } + @Test @TestMetadata("kt22304.kt") public void testKt22304() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt22304.kt"); } + @Test @TestMetadata("samOnCallSite.kt") public void testSamOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/samOnCallSite.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class TwoCapturedReceivers extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class TwoCapturedReceivers extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInTwoCapturedReceivers() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt8668.kt") public void testKt8668() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668.kt"); } + @Test @TestMetadata("kt8668_2.kt") public void testKt8668_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_2.kt"); } + @Test @TestMetadata("kt8668_3.kt") public void testKt8668_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_3.kt"); } + @Test @TestMetadata("twoDifferentDispatchReceivers.kt") public void testTwoDifferentDispatchReceivers() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/twoDifferentDispatchReceivers.kt"); } + @Test @TestMetadata("twoExtensionReceivers.kt") public void testTwoExtensionReceivers() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/twoExtensionReceivers.kt"); @@ -583,470 +655,525 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/argumentOrder") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ArgumentOrder extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class ArgumentOrder extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInArgumentOrder() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/argumentOrder"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("boundFunctionReference.kt") public void testBoundFunctionReference() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/boundFunctionReference.kt"); } + @Test @TestMetadata("boundFunctionReference2.kt") public void testBoundFunctionReference2() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/boundFunctionReference2.kt"); } + @Test @TestMetadata("captured.kt") public void testCaptured() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/captured.kt"); } + @Test @TestMetadata("capturedInExtension.kt") public void testCapturedInExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/capturedInExtension.kt"); } + @Test @TestMetadata("defaultParametersAndLastVararg.kt") public void testDefaultParametersAndLastVararg() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/defaultParametersAndLastVararg.kt"); } + @Test @TestMetadata("defaultParametersAndLastVarargWithCorrectOrder.kt") public void testDefaultParametersAndLastVarargWithCorrectOrder() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/defaultParametersAndLastVarargWithCorrectOrder.kt"); } + @Test @TestMetadata("extension.kt") public void testExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/extension.kt"); } + @Test @TestMetadata("extensionInClass.kt") public void testExtensionInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/extensionInClass.kt"); } + @Test @TestMetadata("lambdaMigration.kt") public void testLambdaMigration() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/lambdaMigration.kt"); } + @Test @TestMetadata("lambdaMigrationInClass.kt") public void testLambdaMigrationInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/lambdaMigrationInClass.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/simple.kt"); } + @Test @TestMetadata("simpleInClass.kt") public void testSimpleInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/simpleInClass.kt"); } + @Test @TestMetadata("varargAndDefaultParameters.kt") public void testVarargAndDefaultParameters() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/varargAndDefaultParameters.kt"); } + @Test @TestMetadata("varargAndDefaultParametersWithCorrectOrder.kt") public void testVarargAndDefaultParametersWithCorrectOrder() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/varargAndDefaultParametersWithCorrectOrder.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/arrayConvention") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ArrayConvention extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class ArrayConvention extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInArrayConvention() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/arrayConvention"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("simpleAccess.kt") public void testSimpleAccess() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccess.kt"); } + @Test @TestMetadata("simpleAccessInClass.kt") public void testSimpleAccessInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessInClass.kt"); } + @Test @TestMetadata("simpleAccessWithDefault.kt") public void testSimpleAccessWithDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithDefault.kt"); } + @Test @TestMetadata("simpleAccessWithDefaultInClass.kt") public void testSimpleAccessWithDefaultInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithDefaultInClass.kt"); } + @Test @TestMetadata("simpleAccessWithLambda.kt") public void testSimpleAccessWithLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithLambda.kt"); } + @Test @TestMetadata("simpleAccessWithLambdaInClass.kt") public void testSimpleAccessWithLambdaInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithLambdaInClass.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/assert") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Assert extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Assert extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInAssert() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/assert"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("jvmAssertInlineFunctionAssertionsDisabled.kt") public void testJvmAssertInlineFunctionAssertionsDisabled() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmAssertInlineFunctionAssertionsDisabled.kt"); } + @Test @TestMetadata("jvmAssertInlineFunctionAssertionsEnabled.kt") public void testJvmAssertInlineFunctionAssertionsEnabled() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmAssertInlineFunctionAssertionsEnabled.kt"); } + @Test @TestMetadata("jvmAssertInlineLambda.kt") public void testJvmAssertInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmAssertInlineLambda.kt"); } + @Test @TestMetadata("jvmClassInitializer.kt") public void testJvmClassInitializer() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmClassInitializer.kt"); } + @Test @TestMetadata("jvmCompanion.kt") public void testJvmCompanion() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCompanion.kt"); } + @Test @TestMetadata("jvmCrossinlineLambda.kt") public void testJvmCrossinlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambda.kt"); } + @Test @TestMetadata("jvmCrossinlineLambda2.kt") public void testJvmCrossinlineLambda2() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambda2.kt"); } + @Test @TestMetadata("jvmCrossinlineLambdaDeclarationSite.kt") public void testJvmCrossinlineLambdaDeclarationSite() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambdaDeclarationSite.kt"); } + @Test @TestMetadata("jvmCrossinlineLambdaDeclarationSiteOnly.kt") public void testJvmCrossinlineLambdaDeclarationSiteOnly() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambdaDeclarationSiteOnly.kt"); } + @Test @TestMetadata("jvmCrossinlineSAMDeclarationSite.kt") public void testJvmCrossinlineSAMDeclarationSite() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineSAMDeclarationSite.kt"); } + @Test @TestMetadata("jvmDoubleInline.kt") public void testJvmDoubleInline() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmDoubleInline.kt"); } + @Test @TestMetadata("jvmInlineUsedAsNoinline.kt") public void testJvmInlineUsedAsNoinline() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmInlineUsedAsNoinline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/builders") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Builders extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Builders extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInBuilders() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/builders"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("builders.kt") public void testBuilders() throws Exception { runTest("compiler/testData/codegen/boxInline/builders/builders.kt"); } + @Test @TestMetadata("buildersAndLambdaCapturing.kt") public void testBuildersAndLambdaCapturing() throws Exception { runTest("compiler/testData/codegen/boxInline/builders/buildersAndLambdaCapturing.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/bytecodePreprocessing") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class BytecodePreprocessing extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class BytecodePreprocessing extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInBytecodePreprocessing() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/bytecodePreprocessing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("apiVersionAtLeast1.kt") public void testApiVersionAtLeast1() throws Exception { runTest("compiler/testData/codegen/boxInline/bytecodePreprocessing/apiVersionAtLeast1.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/callableReference") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CallableReference extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class CallableReference extends AbstractIrBlackBoxInlineCodegenTest { + @Test @TestMetadata("adapted.kt") public void testAdapted() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/adapted.kt"); } + @Test public void testAllFilesPresentInCallableReference() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("classLevel.kt") public void testClassLevel() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/classLevel.kt"); } + @Test @TestMetadata("classLevel2.kt") public void testClassLevel2() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/classLevel2.kt"); } + @Test @TestMetadata("constructor.kt") public void testConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/constructor.kt"); } + @Test @TestMetadata("innerGenericConstuctor.kt") public void testInnerGenericConstuctor() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/innerGenericConstuctor.kt"); } + @Test @TestMetadata("intrinsic.kt") public void testIntrinsic() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/intrinsic.kt"); } + @Test @TestMetadata("jvmFieldProperty.kt") public void testJvmFieldProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/jvmFieldProperty.kt"); } + @Test @TestMetadata("kt15449.kt") public void testKt15449() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/kt15449.kt"); } + @Test @TestMetadata("kt15751_2.kt") public void testKt15751_2() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/kt15751_2.kt"); } + @Test @TestMetadata("kt16411.kt") public void testKt16411() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/kt16411.kt"); } + @Test @TestMetadata("kt35101.kt") public void testKt35101() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/kt35101.kt"); } + @Test @TestMetadata("propertyIntrinsic.kt") public void testPropertyIntrinsic() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/propertyIntrinsic.kt"); } + @Test @TestMetadata("propertyReference.kt") public void testPropertyReference() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/propertyReference.kt"); } + @Test @TestMetadata("topLevel.kt") public void testTopLevel() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/topLevel.kt"); } + @Test @TestMetadata("topLevelExtension.kt") public void testTopLevelExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/topLevelExtension.kt"); } + @Test @TestMetadata("topLevelProperty.kt") public void testTopLevelProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/topLevelProperty.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/callableReference/bound") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Bound extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Bound extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInBound() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/callableReference/bound"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("classProperty.kt") public void testClassProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/classProperty.kt"); } + @Test @TestMetadata("emptyLhsFunction.kt") public void testEmptyLhsFunction() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsFunction.kt"); } + @Test @TestMetadata("emptyLhsOnInlineProperty.kt") public void testEmptyLhsOnInlineProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsOnInlineProperty.kt"); } + @Test @TestMetadata("emptyLhsProperty.kt") public void testEmptyLhsProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsProperty.kt"); } + @Test @TestMetadata("expression.kt") public void testExpression() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/expression.kt"); } + @Test @TestMetadata("extensionReceiver.kt") public void testExtensionReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/extensionReceiver.kt"); } + @Test @TestMetadata("filter.kt") public void testFilter() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/filter.kt"); } + @Test @TestMetadata("inlineValueParameterInsteadOfReceiver.kt") public void testInlineValueParameterInsteadOfReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/inlineValueParameterInsteadOfReceiver.kt"); } + @Test @TestMetadata("innerGenericConstuctor.kt") public void testInnerGenericConstuctor() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/innerGenericConstuctor.kt"); } + @Test @TestMetadata("intrinsic.kt") public void testIntrinsic() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/intrinsic.kt"); } + @Test @TestMetadata("jvmFieldProperty.kt") public void testJvmFieldProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/jvmFieldProperty.kt"); } + @Test @TestMetadata("kt18728.kt") public void testKt18728() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728.kt"); } + @Test @TestMetadata("kt18728_2.kt") public void testKt18728_2() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_2.kt"); } + @Test @TestMetadata("kt18728_3.kt") public void testKt18728_3() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_3.kt"); } + @Test @TestMetadata("kt18728_4.kt") public void testKt18728_4() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_4.kt"); } + @Test @TestMetadata("lambdaOnLhs.kt") public void testLambdaOnLhs() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/lambdaOnLhs.kt"); } + @Test @TestMetadata("map.kt") public void testMap() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/map.kt"); } + @Test @TestMetadata("mixed.kt") public void testMixed() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/mixed.kt"); } + @Test @TestMetadata("objectProperty.kt") public void testObjectProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/objectProperty.kt"); } + @Test @TestMetadata("propertyImportedFromObject.kt") public void testPropertyImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/propertyImportedFromObject.kt"); } + @Test @TestMetadata("sideEffect.kt") public void testSideEffect() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/sideEffect.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/simple.kt"); } + @Test @TestMetadata("simpleVal.kt") public void testSimpleVal() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/simpleVal.kt"); } + @Test @TestMetadata("simpleVal2.kt") public void testSimpleVal2() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/simpleVal2.kt"); } + @Test @TestMetadata("topLevelExtensionProperty.kt") public void testTopLevelExtensionProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/topLevelExtensionProperty.kt"); @@ -1054,649 +1181,740 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/capture") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Capture extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Capture extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInCapture() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/capture"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("captureInlinable.kt") public void testCaptureInlinable() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/captureInlinable.kt"); } + @Test @TestMetadata("captureInlinableAndOther.kt") public void testCaptureInlinableAndOther() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/captureInlinableAndOther.kt"); } + @Test @TestMetadata("captureThisAndReceiver.kt") public void testCaptureThisAndReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/captureThisAndReceiver.kt"); } + @Test @TestMetadata("generics.kt") public void testGenerics() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/generics.kt"); } + @Test @TestMetadata("simpleCapturingInClass.kt") public void testSimpleCapturingInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/simpleCapturingInClass.kt"); } + @Test @TestMetadata("simpleCapturingInPackage.kt") public void testSimpleCapturingInPackage() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/simpleCapturingInPackage.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/complex") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Complex extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Complex extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInComplex() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/complex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("closureChain.kt") public void testClosureChain() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/closureChain.kt"); } + @Test @TestMetadata("forEachLine.kt") public void testForEachLine() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/forEachLine.kt"); } + @Test @TestMetadata("kt44429.kt") public void testKt44429() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/kt44429.kt"); } + @Test @TestMetadata("lambdaInLambda.kt") public void testLambdaInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/lambdaInLambda.kt"); } + @Test @TestMetadata("swapAndWith.kt") public void testSwapAndWith() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/swapAndWith.kt"); } + @Test @TestMetadata("swapAndWith2.kt") public void testSwapAndWith2() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/swapAndWith2.kt"); } + @Test @TestMetadata("use.kt") public void testUse() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/use.kt"); } + @Test @TestMetadata("with.kt") public void testWith() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/with.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/complexStack") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ComplexStack extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class ComplexStack extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInComplexStack() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/complexStack"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("asCheck.kt") public void testAsCheck() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/asCheck.kt"); } + @Test @TestMetadata("asCheck2.kt") public void testAsCheck2() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/asCheck2.kt"); } + @Test @TestMetadata("breakContinueInInlineLambdaArgument.kt") public void testBreakContinueInInlineLambdaArgument() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/breakContinueInInlineLambdaArgument.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simple.kt"); } + @Test @TestMetadata("simple2.kt") public void testSimple2() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simple2.kt"); } + @Test @TestMetadata("simple3.kt") public void testSimple3() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simple3.kt"); } + @Test @TestMetadata("simple4.kt") public void testSimple4() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simple4.kt"); } + @Test @TestMetadata("simpleExtension.kt") public void testSimpleExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simpleExtension.kt"); } + @Test @TestMetadata("spillConstructorArgumentsAndInlineLambdaParameter.kt") public void testSpillConstructorArgumentsAndInlineLambdaParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/spillConstructorArgumentsAndInlineLambdaParameter.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/contracts") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Contracts extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Contracts extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInContracts() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/contracts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("cfgDependendValInitialization.kt") public void testCfgDependendValInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/cfgDependendValInitialization.kt"); } + @Test @TestMetadata("complexInitializer.kt") public void testComplexInitializer() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/complexInitializer.kt"); } + @Test @TestMetadata("complexInitializerWithStackTransformation.kt") public void testComplexInitializerWithStackTransformation() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/complexInitializerWithStackTransformation.kt"); } + @Test @TestMetadata("crossinlineCallableReference.kt") public void testCrossinlineCallableReference() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/crossinlineCallableReference.kt"); } + @Test @TestMetadata("definiteLongValInitialization.kt") public void testDefiniteLongValInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/definiteLongValInitialization.kt"); } + @Test @TestMetadata("definiteNestedValInitialization.kt") public void testDefiniteNestedValInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/definiteNestedValInitialization.kt"); } + @Test @TestMetadata("definiteValInitInInitializer.kt") public void testDefiniteValInitInInitializer() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/definiteValInitInInitializer.kt"); } + @Test @TestMetadata("definiteValInitialization.kt") public void testDefiniteValInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/definiteValInitialization.kt"); } + @Test @TestMetadata("exactlyOnceCrossinline.kt") public void testExactlyOnceCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline.kt"); } + @Test @TestMetadata("exactlyOnceCrossinline2.kt") public void testExactlyOnceCrossinline2() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline2.kt"); } + @Test @TestMetadata("exactlyOnceNoinline.kt") public void testExactlyOnceNoinline() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceNoinline.kt"); } + @Test @TestMetadata("nonLocalReturn.kt") public void testNonLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/nonLocalReturn.kt"); } + @Test @TestMetadata("nonLocalReturnWithCycle.kt") public void testNonLocalReturnWithCycle() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/nonLocalReturnWithCycle.kt"); } + @Test @TestMetadata("propertyInitialization.kt") public void testPropertyInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/propertyInitialization.kt"); } + @Test @TestMetadata("valInitializationAndUsageInNestedLambda.kt") public void testValInitializationAndUsageInNestedLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/valInitializationAndUsageInNestedLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/defaultValues") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultValues extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class DefaultValues extends AbstractIrBlackBoxInlineCodegenTest { + @Test @TestMetadata("33Parameters.kt") public void test33Parameters() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/33Parameters.kt"); } + @Test @TestMetadata("33ParametersInConstructor.kt") public void test33ParametersInConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/33ParametersInConstructor.kt"); } + @Test public void testAllFilesPresentInDefaultValues() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("defaultInExtension.kt") public void testDefaultInExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/defaultInExtension.kt"); } + @Test @TestMetadata("defaultMethod.kt") public void testDefaultMethod() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/defaultMethod.kt"); } + @Test @TestMetadata("defaultMethodInClass.kt") public void testDefaultMethodInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/defaultMethodInClass.kt"); } + @Test @TestMetadata("defaultParamRemapping.kt") public void testDefaultParamRemapping() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/defaultParamRemapping.kt"); } + @Test @TestMetadata("inlineInDefaultParameter.kt") public void testInlineInDefaultParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/inlineInDefaultParameter.kt"); } + @Test @TestMetadata("inlineLambdaInNoInlineDefault.kt") public void testInlineLambdaInNoInlineDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/inlineLambdaInNoInlineDefault.kt"); } + @Test @TestMetadata("kt11479.kt") public void testKt11479() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt11479.kt"); } + @Test @TestMetadata("kt11479InlinedDefaultParameter.kt") public void testKt11479InlinedDefaultParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt11479InlinedDefaultParameter.kt"); } + @Test @TestMetadata("kt14564.kt") public void testKt14564() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564.kt"); } + @Test @TestMetadata("kt14564_2.kt") public void testKt14564_2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564_2.kt"); } + @Test @TestMetadata("kt16496.kt") public void testKt16496() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt16496.kt"); } + @Test @TestMetadata("kt18689.kt") public void testKt18689() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689.kt"); } + @Test @TestMetadata("kt18689_2.kt") public void testKt18689_2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_2.kt"); } + @Test @TestMetadata("kt18689_3.kt") public void testKt18689_3() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_3.kt"); } + @Test @TestMetadata("kt18689_4.kt") public void testKt18689_4() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_4.kt"); } + @Test @TestMetadata("kt5685.kt") public void testKt5685() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt5685.kt"); } + @Test @TestMetadata("simpleDefaultMethod.kt") public void testSimpleDefaultMethod() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/simpleDefaultMethod.kt"); } + @Test @TestMetadata("varArgNoInline.kt") public void testVarArgNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/varArgNoInline.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LambdaInlining extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class LambdaInlining extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInLambdaInlining() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("checkLambdaClassIsPresent.kt") public void testCheckLambdaClassIsPresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkLambdaClassIsPresent.kt"); } + @Test @TestMetadata("checkLambdaClassesArePresent.kt") public void testCheckLambdaClassesArePresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkLambdaClassesArePresent.kt"); } + @Test @TestMetadata("checkObjectClassIsPresent.kt") public void testCheckObjectClassIsPresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkObjectClassIsPresent.kt"); } + @Test @TestMetadata("checkStaticLambdaClassIsPresent.kt") public void testCheckStaticLambdaClassIsPresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticLambdaClassIsPresent.kt"); } + @Test @TestMetadata("checkStaticLambdaClassesArePresent.kt") public void testCheckStaticLambdaClassesArePresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticLambdaClassesArePresent.kt"); } + @Test @TestMetadata("checkStaticObjectClassIsPresent.kt") public void testCheckStaticObjectClassIsPresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticObjectClassIsPresent.kt"); } + @Test @TestMetadata("defaultCallInDefaultLambda.kt") public void testDefaultCallInDefaultLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultCallInDefaultLambda.kt"); } + @Test @TestMetadata("defaultLambdaInNoInline.kt") public void testDefaultLambdaInNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultLambdaInNoInline.kt"); } + @Test @TestMetadata("differentInvokeSignature.kt") public void testDifferentInvokeSignature() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/differentInvokeSignature.kt"); } + @Test @TestMetadata("genericLambda.kt") public void testGenericLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/genericLambda.kt"); } + @Test @TestMetadata("instanceCapturedInClass.kt") public void testInstanceCapturedInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInClass.kt"); } + @Test @TestMetadata("instanceCapturedInInterface.kt") public void testInstanceCapturedInInterface() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInInterface.kt"); } + @Test @TestMetadata("jvmStaticDefault.kt") public void testJvmStaticDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/jvmStaticDefault.kt"); } + @Test @TestMetadata("kt21827.kt") public void testKt21827() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21827.kt"); } + @Test @TestMetadata("kt21946.kt") public void testKt21946() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21946.kt"); } + @Test @TestMetadata("kt24477.kt") public void testKt24477() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt24477.kt"); } + @Test @TestMetadata("kt25106.kt") public void testKt25106() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt25106.kt"); } + @Test @TestMetadata("kt26636.kt") public void testKt26636() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt26636.kt"); } + @Test @TestMetadata("noInline.kt") public void testNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/noInline.kt"); } + @Test @TestMetadata("nonDefaultInlineInNoInline.kt") public void testNonDefaultInlineInNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/nonDefaultInlineInNoInline.kt"); } + @Test @TestMetadata("receiverClash.kt") public void testReceiverClash() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash.kt"); } + @Test @TestMetadata("receiverClash2.kt") public void testReceiverClash2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash2.kt"); } + @Test @TestMetadata("receiverClashInClass.kt") public void testReceiverClashInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass.kt"); } + @Test @TestMetadata("receiverClashInClass2.kt") public void testReceiverClashInClass2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass2.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simple.kt"); } + @Test @TestMetadata("simpleErased.kt") public void testSimpleErased() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErased.kt"); } + @Test @TestMetadata("simpleErasedStaticInstance.kt") public void testSimpleErasedStaticInstance() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErasedStaticInstance.kt"); } + @Test @TestMetadata("simpleExtension.kt") public void testSimpleExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleExtension.kt"); } + @Test @TestMetadata("simpleGeneric.kt") public void testSimpleGeneric() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleGeneric.kt"); } + @Test @TestMetadata("simpleStaticInstance.kt") public void testSimpleStaticInstance() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleStaticInstance.kt"); } + @Test @TestMetadata("thisClash.kt") public void testThisClash() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClash.kt"); } + @Test @TestMetadata("thisClashInClass.kt") public void testThisClashInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClashInClass.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CallableReferences extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class CallableReferences extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInCallableReferences() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("boundFunctionReference.kt") public void testBoundFunctionReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReference.kt"); } + @Test @TestMetadata("boundFunctionReferenceOnInt.kt") public void testBoundFunctionReferenceOnInt() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnInt.kt"); } + @Test @TestMetadata("boundFunctionReferenceOnLong.kt") public void testBoundFunctionReferenceOnLong() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnLong.kt"); } + @Test @TestMetadata("boundPropertyReference.kt") public void testBoundPropertyReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReference.kt"); } + @Test @TestMetadata("boundPropertyReferenceOnInt.kt") public void testBoundPropertyReferenceOnInt() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnInt.kt"); } + @Test @TestMetadata("boundPropertyReferenceOnLong.kt") public void testBoundPropertyReferenceOnLong() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnLong.kt"); } + @Test @TestMetadata("constuctorReference.kt") public void testConstuctorReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/constuctorReference.kt"); } + @Test @TestMetadata("differentInvokeSignature.kt") public void testDifferentInvokeSignature() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature.kt"); } + @Test @TestMetadata("differentInvokeSignature2.kt") public void testDifferentInvokeSignature2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature2.kt"); } + @Test @TestMetadata("functionImportedFromObject.kt") public void testFunctionImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionImportedFromObject.kt"); } + @Test @TestMetadata("functionReference.kt") public void testFunctionReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReference.kt"); } + @Test @TestMetadata("functionReferenceFromClass.kt") public void testFunctionReferenceFromClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromClass.kt"); } + @Test @TestMetadata("functionReferenceFromObject.kt") public void testFunctionReferenceFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromObject.kt"); } + @Test @TestMetadata("innerClassConstuctorReference.kt") public void testInnerClassConstuctorReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/innerClassConstuctorReference.kt"); } + @Test @TestMetadata("mutableBoundPropertyReferenceFromClass.kt") public void testMutableBoundPropertyReferenceFromClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutableBoundPropertyReferenceFromClass.kt"); } + @Test @TestMetadata("mutablePropertyReferenceFromClass.kt") public void testMutablePropertyReferenceFromClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutablePropertyReferenceFromClass.kt"); } + @Test @TestMetadata("privateFunctionReference.kt") public void testPrivateFunctionReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privateFunctionReference.kt"); } + @Test @TestMetadata("privatePropertyReference.kt") public void testPrivatePropertyReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privatePropertyReference.kt"); } + @Test @TestMetadata("propertyImportedFromObject.kt") public void testPropertyImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyImportedFromObject.kt"); } + @Test @TestMetadata("propertyReference.kt") public void testPropertyReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReference.kt"); } + @Test @TestMetadata("propertyReferenceFromClass.kt") public void testPropertyReferenceFromClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromClass.kt"); } + @Test @TestMetadata("propertyReferenceFromObject.kt") public void testPropertyReferenceFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromObject.kt"); @@ -1704,48 +1922,52 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/defaultValues/maskElimination") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MaskElimination extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class MaskElimination extends AbstractIrBlackBoxInlineCodegenTest { + @Test @TestMetadata("32Parameters.kt") public void test32Parameters() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/32Parameters.kt"); } + @Test @TestMetadata("33Parameters.kt") public void test33Parameters() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/33Parameters.kt"); } + @Test public void testAllFilesPresentInMaskElimination() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/maskElimination"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt18792.kt") public void testKt18792() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt18792.kt"); } + @Test @TestMetadata("kt19679.kt") public void testKt19679() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679.kt"); } + @Test @TestMetadata("kt19679_2.kt") public void testKt19679_2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_2.kt"); } + @Test @TestMetadata("kt19679_3.kt") public void testKt19679_3() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_3.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/simple.kt"); @@ -1753,375 +1975,400 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/delegatedProperty") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DelegatedProperty extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class DelegatedProperty extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInDelegatedProperty() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/delegatedProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt16864.kt") public void testKt16864() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt16864.kt"); } + @Test @TestMetadata("local.kt") public void testLocal() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/local.kt"); } + @Test @TestMetadata("localDeclaredInLambda.kt") public void testLocalDeclaredInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/localDeclaredInLambda.kt"); } + @Test @TestMetadata("localInAnonymousObject.kt") public void testLocalInAnonymousObject() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/localInAnonymousObject.kt"); } + @Test @TestMetadata("localInLambda.kt") public void testLocalInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/localInLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/enclosingInfo") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class EnclosingInfo extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class EnclosingInfo extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInEnclosingInfo() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/enclosingInfo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("anonymousInLambda.kt") public void testAnonymousInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/anonymousInLambda.kt"); } + @Test @TestMetadata("inlineChain.kt") public void testInlineChain() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/inlineChain.kt"); } + @Test @TestMetadata("inlineChain2.kt") public void testInlineChain2() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/inlineChain2.kt"); } + @Test @TestMetadata("objectInInlineFun.kt") public void testObjectInInlineFun() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/objectInInlineFun.kt"); } + @Test @TestMetadata("transformedConstructor.kt") public void testTransformedConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/transformedConstructor.kt"); } + @Test @TestMetadata("transformedConstructorWithAdditionalObject.kt") public void testTransformedConstructorWithAdditionalObject() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/transformedConstructorWithAdditionalObject.kt"); } + @Test @TestMetadata("transformedConstructorWithNestedInline.kt") public void testTransformedConstructorWithNestedInline() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/transformedConstructorWithNestedInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/enum") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Enum extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Enum extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInEnum() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/enum"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt10569.kt") public void testKt10569() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/kt10569.kt"); } + @Test @TestMetadata("kt18254.kt") public void testKt18254() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/kt18254.kt"); } + @Test @TestMetadata("valueOf.kt") public void testValueOf() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOf.kt"); } + @Test @TestMetadata("valueOfCapturedType.kt") public void testValueOfCapturedType() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOfCapturedType.kt"); } + @Test @TestMetadata("valueOfChain.kt") public void testValueOfChain() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOfChain.kt"); } + @Test @TestMetadata("valueOfChainCapturedType.kt") public void testValueOfChainCapturedType() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOfChainCapturedType.kt"); } + @Test @TestMetadata("valueOfNonReified.kt") public void testValueOfNonReified() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOfNonReified.kt"); } + @Test @TestMetadata("values.kt") public void testValues() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/values.kt"); } + @Test @TestMetadata("valuesAsArray.kt") public void testValuesAsArray() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesAsArray.kt"); } + @Test @TestMetadata("valuesCapturedType.kt") public void testValuesCapturedType() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesCapturedType.kt"); } + @Test @TestMetadata("valuesChain.kt") public void testValuesChain() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesChain.kt"); } + @Test @TestMetadata("valuesChainCapturedType.kt") public void testValuesChainCapturedType() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesChainCapturedType.kt"); } + @Test @TestMetadata("valuesNonReified.kt") public void testValuesNonReified() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesNonReified.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/functionExpression") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class FunctionExpression extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class FunctionExpression extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInFunctionExpression() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/functionExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("extension.kt") public void testExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/functionExpression/extension.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineClasses extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class InlineClasses extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInInlineClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("inlineClassWithInlineValReturningInlineClass.kt") public void testInlineClassWithInlineValReturningInlineClass() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineClassWithInlineValReturningInlineClass.kt"); } + @Test @TestMetadata("inlineFunctionInsideInlineClassesBox.kt") public void testInlineFunctionInsideInlineClassesBox() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt"); } + @Test @TestMetadata("noReturnTypeManglingFun.kt") public void testNoReturnTypeManglingFun() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/noReturnTypeManglingFun.kt"); } + @Test @TestMetadata("noReturnTypeManglingFunJvmName.kt") public void testNoReturnTypeManglingFunJvmName() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/noReturnTypeManglingFunJvmName.kt"); } + @Test @TestMetadata("noReturnTypeManglingVal.kt") public void testNoReturnTypeManglingVal() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/noReturnTypeManglingVal.kt"); } + @Test @TestMetadata("withReturnTypeManglingFun.kt") public void testWithReturnTypeManglingFun() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/withReturnTypeManglingFun.kt"); } + @Test @TestMetadata("withReturnTypeManglingFunJvmName.kt") public void testWithReturnTypeManglingFunJvmName() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/withReturnTypeManglingFunJvmName.kt"); } + @Test @TestMetadata("withReturnTypeManglingVal.kt") public void testWithReturnTypeManglingVal() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/withReturnTypeManglingVal.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class UnboxGenericParameter extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class UnboxGenericParameter extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInUnboxGenericParameter() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class FunInterface extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class FunInterface extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInFunInterface() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("any.kt") public void testAny() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/any.kt"); } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/anyN.kt"); } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/iface.kt"); } + @Test @TestMetadata("ifaceChild.kt") public void testIfaceChild() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/ifaceChild.kt"); } + @Test @TestMetadata("primitive.kt") public void testPrimitive() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/primitive.kt"); } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/string.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Lambda extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Lambda extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("any.kt") public void testAny() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/any.kt"); } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/anyN.kt"); } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/iface.kt"); } + @Test @TestMetadata("ifaceChild.kt") public void testIfaceChild() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/ifaceChild.kt"); } + @Test @TestMetadata("primitive.kt") public void testPrimitive() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/primitive.kt"); } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/string.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ObjectLiteral extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class ObjectLiteral extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInObjectLiteral() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("any.kt") public void testAny() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/any.kt"); } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/anyN.kt"); } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/iface.kt"); } + @Test @TestMetadata("ifaceChild.kt") public void testIfaceChild() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChild.kt"); } + @Test @TestMetadata("primitive.kt") public void testPrimitive() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/primitive.kt"); } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/string.kt"); @@ -2130,239 +2377,231 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/innerClasses") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InnerClasses extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class InnerClasses extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInInnerClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/innerClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("captureThisAndOuter.kt") public void testCaptureThisAndOuter() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/captureThisAndOuter.kt"); } + @Test @TestMetadata("innerLambda.kt") public void testInnerLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/innerLambda.kt"); } + @Test @TestMetadata("kt10259.kt") public void testKt10259() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/kt10259.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/jvmName") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class JvmName extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class JvmName extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInJvmName() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/jvmName"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/jvmName/simple.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/jvmPackageName") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class JvmPackageName extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class JvmPackageName extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInJvmPackageName() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/jvmPackageName"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/jvmPackageName/simple.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/lambdaClassClash") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LambdaClassClash extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class LambdaClassClash extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInLambdaClassClash() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/lambdaClassClash"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("lambdaClassClash.kt") public void testLambdaClassClash() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaClassClash/lambdaClassClash.kt"); } + @Test @TestMetadata("noInlineLambdaX2.kt") public void testNoInlineLambdaX2() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaClassClash/noInlineLambdaX2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/lambdaTransformation") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LambdaTransformation extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class LambdaTransformation extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInLambdaTransformation() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/lambdaTransformation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("lambdaCloning.kt") public void testLambdaCloning() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/lambdaCloning.kt"); } + @Test @TestMetadata("lambdaInLambda2.kt") public void testLambdaInLambda2() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/lambdaInLambda2.kt"); } + @Test @TestMetadata("lambdaInLambdaNoInline.kt") public void testLambdaInLambdaNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/lambdaInLambdaNoInline.kt"); } + @Test @TestMetadata("regeneratedLambdaName.kt") public void testRegeneratedLambdaName() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/regeneratedLambdaName.kt"); } + @Test @TestMetadata("regeneratedLambdaName2.kt") public void testRegeneratedLambdaName2() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/regeneratedLambdaName2.kt"); } + @Test @TestMetadata("sameCaptured.kt") public void testSameCaptured() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/sameCaptured.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/localFunInLambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LocalFunInLambda extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class LocalFunInLambda extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInLocalFunInLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/localFunInLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("defaultParam.kt") public void testDefaultParam() throws Exception { runTest("compiler/testData/codegen/boxInline/localFunInLambda/defaultParam.kt"); } + @Test @TestMetadata("lambdaInLambdaCapturesAnotherFun.kt") public void testLambdaInLambdaCapturesAnotherFun() throws Exception { runTest("compiler/testData/codegen/boxInline/localFunInLambda/lambdaInLambdaCapturesAnotherFun.kt"); } + @Test @TestMetadata("localFunInLambda.kt") public void testLocalFunInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/localFunInLambda/localFunInLambda.kt"); } + @Test @TestMetadata("localFunInLambdaCapturesAnotherFun.kt") public void testLocalFunInLambdaCapturesAnotherFun() throws Exception { runTest("compiler/testData/codegen/boxInline/localFunInLambda/localFunInLambdaCapturesAnotherFun.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/multiModule") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MultiModule extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class MultiModule extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInMultiModule() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiModule"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("tryCatchWithRecursiveInline.kt") public void testTryCatchWithRecursiveInline() throws Exception { runTest("compiler/testData/codegen/boxInline/multiModule/tryCatchWithRecursiveInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/multifileClasses") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MultifileClasses extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class MultifileClasses extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInMultifileClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multifileClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("defaultArguments.kt") public void testDefaultArguments() throws Exception { runTest("compiler/testData/codegen/boxInline/multifileClasses/defaultArguments.kt"); } + @Test @TestMetadata("inlineFromOptimizedMultifileClass.kt") public void testInlineFromOptimizedMultifileClass() throws Exception { runTest("compiler/testData/codegen/boxInline/multifileClasses/inlineFromOptimizedMultifileClass.kt"); } + @Test @TestMetadata("inlineFromOtherPackage.kt") public void testInlineFromOtherPackage() throws Exception { runTest("compiler/testData/codegen/boxInline/multifileClasses/inlineFromOtherPackage.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/multiplatform") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Multiplatform extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Multiplatform extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInMultiplatform() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/multiplatform/defaultArguments") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultArguments extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class DefaultArguments extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInDefaultArguments() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiplatform/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("receiversAndParametersInLambda.kt") public void testReceiversAndParametersInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/multiplatform/defaultArguments/receiversAndParametersInLambda.kt"); @@ -2370,575 +2609,640 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/noInline") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class NoInline extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class NoInline extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInNoInline() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/noInline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("extensionReceiver.kt") public void testExtensionReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/extensionReceiver.kt"); } + @Test @TestMetadata("lambdaAsGeneric.kt") public void testLambdaAsGeneric() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/lambdaAsGeneric.kt"); } + @Test @TestMetadata("lambdaAsNonFunction.kt") public void testLambdaAsNonFunction() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/lambdaAsNonFunction.kt"); } + @Test @TestMetadata("noInline.kt") public void testNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/noInline.kt"); } + @Test @TestMetadata("noInlineLambdaChain.kt") public void testNoInlineLambdaChain() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/noInlineLambdaChain.kt"); } + @Test @TestMetadata("noInlineLambdaChainWithCapturedInline.kt") public void testNoInlineLambdaChainWithCapturedInline() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/noInlineLambdaChainWithCapturedInline.kt"); } + @Test @TestMetadata("withoutInline.kt") public void testWithoutInline() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/withoutInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class NonLocalReturns extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class NonLocalReturns extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInNonLocalReturns() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("explicitLocalReturn.kt") public void testExplicitLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/explicitLocalReturn.kt"); } + @Test @TestMetadata("fromArrayGenerator.kt") public void testFromArrayGenerator() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGenerator.kt"); } + @Test @TestMetadata("fromArrayGeneratorCatch.kt") public void testFromArrayGeneratorCatch() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorCatch.kt"); } + @Test @TestMetadata("fromArrayGeneratorNested.kt") public void testFromArrayGeneratorNested() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorNested.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithCapture.kt") public void testFromArrayGeneratorWithCapture() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithCapture.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithCatch.kt") public void testFromArrayGeneratorWithCatch() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithCatch.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithFinally.kt") public void testFromArrayGeneratorWithFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithFinally.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithFinallyX2.kt") public void testFromArrayGeneratorWithFinallyX2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithFinallyX2.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithFinallyX2_2.kt") public void testFromArrayGeneratorWithFinallyX2_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithFinallyX2_2.kt"); } + @Test @TestMetadata("fromInterfaceDefaultGetter.kt") public void testFromInterfaceDefaultGetter() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromInterfaceDefaultGetter.kt"); } + @Test @TestMetadata("justReturnInLambda.kt") public void testJustReturnInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/justReturnInLambda.kt"); } + @Test @TestMetadata("kt5199.kt") public void testKt5199() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt5199.kt"); } + @Test @TestMetadata("kt8948.kt") public void testKt8948() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948.kt"); } + @Test @TestMetadata("kt8948v2.kt") public void testKt8948v2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt"); } + @Test @TestMetadata("nestedNonLocals.kt") public void testNestedNonLocals() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/nestedNonLocals.kt"); } + @Test @TestMetadata("noInlineLocalReturn.kt") public void testNoInlineLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/noInlineLocalReturn.kt"); } + @Test @TestMetadata("nonLocalReturnFromOuterLambda.kt") public void testNonLocalReturnFromOuterLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/nonLocalReturnFromOuterLambda.kt"); } + @Test @TestMetadata("propertyAccessors.kt") public void testPropertyAccessors() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/propertyAccessors.kt"); } + @Test @TestMetadata("returnFromFunctionExpr.kt") public void testReturnFromFunctionExpr() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/returnFromFunctionExpr.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simple.kt"); } + @Test @TestMetadata("simpleFunctional.kt") public void testSimpleFunctional() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simpleFunctional.kt"); } + @Test @TestMetadata("simpleVoid.kt") public void testSimpleVoid() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simpleVoid.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Deparenthesize extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Deparenthesize extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInDeparenthesize() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("bracket.kt") public void testBracket() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize/bracket.kt"); } + @Test @TestMetadata("labeled.kt") public void testLabeled() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize/labeled.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class TryFinally extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class TryFinally extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInTryFinally() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt16417.kt") public void testKt16417() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt16417.kt"); } + @Test @TestMetadata("kt20433.kt") public void testKt20433() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433.kt"); } + @Test @TestMetadata("kt20433_2.kt") public void testKt20433_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2.kt"); } + @Test @TestMetadata("kt20433_2_void.kt") public void testKt20433_2_void() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2_void.kt"); } + @Test @TestMetadata("kt20433_void.kt") public void testKt20433_void() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_void.kt"); } + @Test @TestMetadata("kt26384.kt") public void testKt26384() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384.kt"); } + @Test @TestMetadata("kt26384_2.kt") public void testKt26384_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384_2.kt"); } + @Test @TestMetadata("kt28546.kt") public void testKt28546() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt28546.kt"); } + @Test @TestMetadata("kt6956.kt") public void testKt6956() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt6956.kt"); } + @Test @TestMetadata("kt7273.kt") public void testKt7273() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt7273.kt"); } + @Test @TestMetadata("nonLocalReturnFromCatchBlock.kt") public void testNonLocalReturnFromCatchBlock() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromCatchBlock.kt"); } + @Test @TestMetadata("nonLocalReturnFromOuterLambda.kt") public void testNonLocalReturnFromOuterLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromOuterLambda.kt"); } + @Test @TestMetadata("nonLocalReturnToCatchBlock.kt") public void testNonLocalReturnToCatchBlock() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnToCatchBlock.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CallSite extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class CallSite extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInCallSite() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("callSite.kt") public void testCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/callSite.kt"); } + @Test @TestMetadata("callSiteComplex.kt") public void testCallSiteComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/callSiteComplex.kt"); } + @Test @TestMetadata("exceptionTableSplit.kt") public void testExceptionTableSplit() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplit.kt"); } + @Test @TestMetadata("exceptionTableSplitNoReturn.kt") public void testExceptionTableSplitNoReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplitNoReturn.kt"); } + @Test @TestMetadata("finallyInFinally.kt") public void testFinallyInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/finallyInFinally.kt"); } + @Test @TestMetadata("wrongVarInterval.kt") public void testWrongVarInterval() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/wrongVarInterval.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Chained extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Chained extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInChained() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("finallyInFinally.kt") public void testFinallyInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally.kt"); } + @Test @TestMetadata("finallyInFinally2.kt") public void testFinallyInFinally2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally2.kt"); } + @Test @TestMetadata("intReturn.kt") public void testIntReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturn.kt"); } + @Test @TestMetadata("intReturnComplex.kt") public void testIntReturnComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex.kt"); } + @Test @TestMetadata("intReturnComplex2.kt") public void testIntReturnComplex2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex2.kt"); } + @Test @TestMetadata("intReturnComplex3.kt") public void testIntReturnComplex3() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex3.kt"); } + @Test @TestMetadata("intReturnComplex4.kt") public void testIntReturnComplex4() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex4.kt"); } + @Test @TestMetadata("nestedLambda.kt") public void testNestedLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/nestedLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DeclSite extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class DeclSite extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInDeclSite() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("complex.kt") public void testComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/complex.kt"); } + @Test @TestMetadata("intReturn.kt") public void testIntReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturn.kt"); } + @Test @TestMetadata("intReturnComplex.kt") public void testIntReturnComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturnComplex.kt"); } + @Test @TestMetadata("longReturn.kt") public void testLongReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/longReturn.kt"); } + @Test @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/nested.kt"); } + @Test @TestMetadata("returnInFinally.kt") public void testReturnInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInFinally.kt"); } + @Test @TestMetadata("returnInTry.kt") public void testReturnInTry() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTry.kt"); } + @Test @TestMetadata("returnInTryAndFinally.kt") public void testReturnInTryAndFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTryAndFinally.kt"); } + @Test @TestMetadata("severalInTry.kt") public void testSeveralInTry() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTry.kt"); } + @Test @TestMetadata("severalInTryComplex.kt") public void testSeveralInTryComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTryComplex.kt"); } + @Test @TestMetadata("voidInlineFun.kt") public void testVoidInlineFun() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidInlineFun.kt"); } + @Test @TestMetadata("voidNonLocal.kt") public void testVoidNonLocal() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidNonLocal.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ExceptionTable extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class ExceptionTable extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInExceptionTable() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("break.kt") public void testBreak() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/break.kt"); } + @Test @TestMetadata("continue.kt") public void testContinue() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/continue.kt"); } + @Test @TestMetadata("exceptionInFinally.kt") public void testExceptionInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/exceptionInFinally.kt"); } + @Test @TestMetadata("forInFinally.kt") public void testForInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/forInFinally.kt"); } + @Test @TestMetadata("innerAndExternal.kt") public void testInnerAndExternal() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternal.kt"); } + @Test @TestMetadata("innerAndExternalNested.kt") public void testInnerAndExternalNested() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalNested.kt"); } + @Test @TestMetadata("innerAndExternalSimple.kt") public void testInnerAndExternalSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalSimple.kt"); } + @Test @TestMetadata("kt31653.kt") public void testKt31653() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653.kt"); } + @Test @TestMetadata("kt31653_2.kt") public void testKt31653_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653_2.kt"); } + @Test @TestMetadata("kt31923.kt") public void testKt31923() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923.kt"); } + @Test @TestMetadata("kt31923_2.kt") public void testKt31923_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923_2.kt"); } + @Test @TestMetadata("kt31923_wrong.kt") public void testKt31923_wrong() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923_wrong.kt"); } + @Test @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nested.kt"); } + @Test @TestMetadata("nestedWithReturns.kt") public void testNestedWithReturns() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturns.kt"); } + @Test @TestMetadata("nestedWithReturnsSimple.kt") public void testNestedWithReturnsSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturnsSimple.kt"); } + @Test @TestMetadata("noFinally.kt") public void testNoFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/noFinally.kt"); } + @Test @TestMetadata("severalCatchClause.kt") public void testSeveralCatchClause() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/severalCatchClause.kt"); } + @Test @TestMetadata("simpleThrow.kt") public void testSimpleThrow() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/simpleThrow.kt"); } + @Test @TestMetadata("synchonized.kt") public void testSynchonized() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/synchonized.kt"); } + @Test @TestMetadata("throwInFinally.kt") public void testThrowInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/throwInFinally.kt"); } + @Test @TestMetadata("tryCatchInFinally.kt") public void testTryCatchInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/tryCatchInFinally.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Variables extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Variables extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInVariables() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt7792.kt") public void testKt7792() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables/kt7792.kt"); @@ -2947,450 +3251,501 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/optimizations") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Optimizations extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Optimizations extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInOptimizations() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/optimizations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt20844.kt") public void testKt20844() throws Exception { runTest("compiler/testData/codegen/boxInline/optimizations/kt20844.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/private") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Private extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Private extends AbstractIrBlackBoxInlineCodegenTest { + @Test @TestMetadata("accessorForConst.kt") public void testAccessorForConst() throws Exception { runTest("compiler/testData/codegen/boxInline/private/accessorForConst.kt"); } + @Test @TestMetadata("accessorStability.kt") public void testAccessorStability() throws Exception { runTest("compiler/testData/codegen/boxInline/private/accessorStability.kt"); } + @Test @TestMetadata("accessorStabilityInClass.kt") public void testAccessorStabilityInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/private/accessorStabilityInClass.kt"); } + @Test public void testAllFilesPresentInPrivate() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/private"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("effectivePrivate.kt") public void testEffectivePrivate() throws Exception { runTest("compiler/testData/codegen/boxInline/private/effectivePrivate.kt"); } + @Test @TestMetadata("kt6453.kt") public void testKt6453() throws Exception { runTest("compiler/testData/codegen/boxInline/private/kt6453.kt"); } + @Test @TestMetadata("kt8094.kt") public void testKt8094() throws Exception { runTest("compiler/testData/codegen/boxInline/private/kt8094.kt"); } + @Test @TestMetadata("kt8095.kt") public void testKt8095() throws Exception { runTest("compiler/testData/codegen/boxInline/private/kt8095.kt"); } + @Test @TestMetadata("nestedInPrivateClass.kt") public void testNestedInPrivateClass() throws Exception { runTest("compiler/testData/codegen/boxInline/private/nestedInPrivateClass.kt"); } + @Test @TestMetadata("privateClass.kt") public void testPrivateClass() throws Exception { runTest("compiler/testData/codegen/boxInline/private/privateClass.kt"); } + @Test @TestMetadata("privateClassExtensionLambda.kt") public void testPrivateClassExtensionLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/private/privateClassExtensionLambda.kt"); } + @Test @TestMetadata("privateInInlineInMultiFileFacade.kt") public void testPrivateInInlineInMultiFileFacade() throws Exception { runTest("compiler/testData/codegen/boxInline/private/privateInInlineInMultiFileFacade.kt"); } + @Test @TestMetadata("privateInline.kt") public void testPrivateInline() throws Exception { runTest("compiler/testData/codegen/boxInline/private/privateInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/property") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Property extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Property extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInProperty() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/property"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("augAssignmentAndInc.kt") public void testAugAssignmentAndInc() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndInc.kt"); } + @Test @TestMetadata("augAssignmentAndIncInClass.kt") public void testAugAssignmentAndIncInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClass.kt"); } + @Test @TestMetadata("augAssignmentAndIncInClassViaConvention.kt") public void testAugAssignmentAndIncInClassViaConvention() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClassViaConvention.kt"); } + @Test @TestMetadata("augAssignmentAndIncOnExtension.kt") public void testAugAssignmentAndIncOnExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtension.kt"); } + @Test @TestMetadata("augAssignmentAndIncOnExtensionInClass.kt") public void testAugAssignmentAndIncOnExtensionInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtensionInClass.kt"); } + @Test @TestMetadata("augAssignmentAndIncViaConvention.kt") public void testAugAssignmentAndIncViaConvention() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncViaConvention.kt"); } + @Test @TestMetadata("fromObject.kt") public void testFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/property/fromObject.kt"); } + @Test @TestMetadata("kt22649.kt") public void testKt22649() throws Exception { runTest("compiler/testData/codegen/boxInline/property/kt22649.kt"); } + @Test @TestMetadata("property.kt") public void testProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/property/property.kt"); } + @Test @TestMetadata("reifiedVal.kt") public void testReifiedVal() throws Exception { runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt"); } + @Test @TestMetadata("reifiedVar.kt") public void testReifiedVar() throws Exception { runTest("compiler/testData/codegen/boxInline/property/reifiedVar.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/property/simple.kt"); } + @Test @TestMetadata("simpleExtension.kt") public void testSimpleExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/property/simpleExtension.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/reified") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Reified extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Reified extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInReified() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("arrayConstructor.kt") public void testArrayConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/arrayConstructor.kt"); } + @Test @TestMetadata("arrayOf.kt") public void testArrayOf() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/arrayOf.kt"); } + @Test @TestMetadata("capturedLambda.kt") public void testCapturedLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/capturedLambda.kt"); } + @Test @TestMetadata("capturedLambda2.kt") public void testCapturedLambda2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/capturedLambda2.kt"); } + @Test @TestMetadata("dontSubstituteNonReified.kt") public void testDontSubstituteNonReified() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/dontSubstituteNonReified.kt"); } + @Test @TestMetadata("kt11081.kt") public void testKt11081() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt11081.kt"); } + @Test @TestMetadata("kt11677.kt") public void testKt11677() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt11677.kt"); } + @Test @TestMetadata("kt15956.kt") public void testKt15956() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt15956.kt"); } + @Test @TestMetadata("kt15997.kt") public void testKt15997() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt15997.kt"); } + @Test @TestMetadata("kt15997_2.kt") public void testKt15997_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt15997_2.kt"); } + @Test @TestMetadata("kt18977.kt") public void testKt18977() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt"); } + @Test @TestMetadata("kt35511.kt") public void testKt35511() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511.kt"); } + @Test @TestMetadata("kt35511_try.kt") public void testKt35511_try() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511_try.kt"); } + @Test @TestMetadata("kt35511_try_valueOf.kt") public void testKt35511_try_valueOf() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511_try_valueOf.kt"); } + @Test @TestMetadata("kt35511_try_values.kt") public void testKt35511_try_values() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511_try_values.kt"); } + @Test @TestMetadata("kt6988.kt") public void testKt6988() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt6988.kt"); } + @Test @TestMetadata("kt6988_2.kt") public void testKt6988_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt6988_2.kt"); } + @Test @TestMetadata("kt6990.kt") public void testKt6990() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt6990.kt"); } + @Test @TestMetadata("kt7017.kt") public void testKt7017() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt7017.kt"); } + @Test @TestMetadata("kt8047.kt") public void testKt8047() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt8047.kt"); } + @Test @TestMetadata("kt8047_2.kt") public void testKt8047_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt8047_2.kt"); } + @Test @TestMetadata("kt9637.kt") public void testKt9637() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt9637.kt"); } + @Test @TestMetadata("kt9637_2.kt") public void testKt9637_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt9637_2.kt"); } + @Test @TestMetadata("nonCapturingObjectInLambda.kt") public void testNonCapturingObjectInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/nonCapturingObjectInLambda.kt"); } + @Test @TestMetadata("packages.kt") public void testPackages() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/packages.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/reified/checkCast") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CheckCast extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class CheckCast extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInCheckCast() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified/checkCast"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("chain.kt") public void testChain() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/chain.kt"); } + @Test @TestMetadata("kt26435.kt") public void testKt26435() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt26435.kt"); } + @Test @TestMetadata("kt26435_2.kt") public void testKt26435_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt26435_2.kt"); } + @Test @TestMetadata("kt26435_3.kt") public void testKt26435_3() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt26435_3.kt"); } + @Test @TestMetadata("kt8043.kt") public void testKt8043() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt8043.kt"); } + @Test @TestMetadata("maxStack.kt") public void testMaxStack() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/maxStack.kt"); } + @Test @TestMetadata("nullable.kt") public void testNullable() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/nullable.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/simple.kt"); } + @Test @TestMetadata("simpleSafe.kt") public void testSimpleSafe() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/simpleSafe.kt"); } + @Test @TestMetadata("simple_1_3.kt") public void testSimple_1_3() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/simple_1_3.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/reified/defaultLambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultLambda extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class DefaultLambda extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInDefaultLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified/defaultLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("chain.kt") public void testChain() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/chain.kt"); } + @Test @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nested.kt"); } + @Test @TestMetadata("nested2.kt") public void testNested2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nested2.kt"); } + @Test @TestMetadata("nested2Static.kt") public void testNested2Static() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nested2Static.kt"); } + @Test @TestMetadata("nestedStatic.kt") public void testNestedStatic() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nestedStatic.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/simple.kt"); } + @Test @TestMetadata("transitiveChain.kt") public void testTransitiveChain() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/transitiveChain.kt"); } + @Test @TestMetadata("transitiveChainStatic.kt") public void testTransitiveChainStatic() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/transitiveChainStatic.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/reified/isCheck") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class IsCheck extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class IsCheck extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInIsCheck() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified/isCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("chain.kt") public void testChain() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/isCheck/chain.kt"); } + @Test @TestMetadata("nullable.kt") public void testNullable() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/isCheck/nullable.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/isCheck/simple.kt"); @@ -3398,518 +3753,577 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/signature") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Signature extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Signature extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInSignature() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/signature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("inProjectionSubstitution.kt") public void testInProjectionSubstitution() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/inProjectionSubstitution.kt"); } + @Test @TestMetadata("outProjectionSubstitution.kt") public void testOutProjectionSubstitution() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/outProjectionSubstitution.kt"); } + @Test @TestMetadata("recursion.kt") public void testRecursion() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/recursion.kt"); } + @Test @TestMetadata("sameFormalParameterName.kt") public void testSameFormalParameterName() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/sameFormalParameterName.kt"); } + @Test @TestMetadata("sameReifiedFormalParameterName.kt") public void testSameReifiedFormalParameterName() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/sameReifiedFormalParameterName.kt"); } + @Test @TestMetadata("starProjectionSubstitution.kt") public void testStarProjectionSubstitution() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/starProjectionSubstitution.kt"); } + @Test @TestMetadata("typeParameterInLambda.kt") public void testTypeParameterInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/typeParameterInLambda.kt"); } + @Test @TestMetadata("typeParametersSubstitution.kt") public void testTypeParametersSubstitution() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/typeParametersSubstitution.kt"); } + @Test @TestMetadata("typeParametersSubstitution2.kt") public void testTypeParametersSubstitution2() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/typeParametersSubstitution2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/simple") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Simple extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Simple extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInSimple() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/simple"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("captureAndArgumentIncompatibleTypes.kt") public void testCaptureAndArgumentIncompatibleTypes() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/captureAndArgumentIncompatibleTypes.kt"); } + @Test @TestMetadata("classObject.kt") public void testClassObject() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/classObject.kt"); } + @Test @TestMetadata("destructuring.kt") public void testDestructuring() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/destructuring.kt"); } + @Test @TestMetadata("destructuringIndexClash.kt") public void testDestructuringIndexClash() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/destructuringIndexClash.kt"); } + @Test @TestMetadata("extension.kt") public void testExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/extension.kt"); } + @Test @TestMetadata("extensionLambda.kt") public void testExtensionLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/extensionLambda.kt"); } + @Test @TestMetadata("funImportedFromObject.kt") public void testFunImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/funImportedFromObject.kt"); } + @Test @TestMetadata("inlineCallInInlineLambda.kt") public void testInlineCallInInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/inlineCallInInlineLambda.kt"); } + @Test @TestMetadata("kt17431.kt") public void testKt17431() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/kt17431.kt"); } + @Test @TestMetadata("kt28547.kt") public void testKt28547() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/kt28547.kt"); } + @Test @TestMetadata("kt28547_2.kt") public void testKt28547_2() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/kt28547_2.kt"); } + @Test @TestMetadata("params.kt") public void testParams() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/params.kt"); } + @Test @TestMetadata("propImportedFromObject.kt") public void testPropImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/propImportedFromObject.kt"); } + @Test @TestMetadata("rootConstructor.kt") public void testRootConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/rootConstructor.kt"); } + @Test @TestMetadata("safeCall.kt") public void testSafeCall() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/safeCall.kt"); } + @Test @TestMetadata("severalClosures.kt") public void testSeveralClosures() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/severalClosures.kt"); } + @Test @TestMetadata("severalUsage.kt") public void testSeveralUsage() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/severalUsage.kt"); } + @Test @TestMetadata("simpleDouble.kt") public void testSimpleDouble() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleDouble.kt"); } + @Test @TestMetadata("simpleEnum.kt") public void testSimpleEnum() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleEnum.kt"); } + @Test @TestMetadata("simpleGenerics.kt") public void testSimpleGenerics() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleGenerics.kt"); } + @Test @TestMetadata("simpleInt.kt") public void testSimpleInt() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleInt.kt"); } + @Test @TestMetadata("simpleLambda.kt") public void testSimpleLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleLambda.kt"); } + @Test @TestMetadata("simpleObject.kt") public void testSimpleObject() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleObject.kt"); } + @Test @TestMetadata("vararg.kt") public void testVararg() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/vararg.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Smap extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Smap extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInSmap() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("assertion.kt") public void testAssertion() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/assertion.kt"); } + @Test @TestMetadata("classCycle.kt") public void testClassCycle() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/classCycle.kt"); } + @Test @TestMetadata("classFromDefaultPackage.kt") public void testClassFromDefaultPackage() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/classFromDefaultPackage.kt"); } + @Test @TestMetadata("crossroutines.kt") public void testCrossroutines() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/crossroutines.kt"); } + @Test @TestMetadata("defaultFunction.kt") public void testDefaultFunction() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultFunction.kt"); } + @Test @TestMetadata("defaultFunctionWithInlineCall.kt") public void testDefaultFunctionWithInlineCall() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultFunctionWithInlineCall.kt"); } + @Test @TestMetadata("forInline.kt") public void testForInline() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/forInline.kt"); } + @Test @TestMetadata("interleavedFiles.kt") public void testInterleavedFiles() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/interleavedFiles.kt"); } + @Test @TestMetadata("kt23369.kt") public void testKt23369() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/kt23369.kt"); } + @Test @TestMetadata("kt23369_2.kt") public void testKt23369_2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/kt23369_2.kt"); } + @Test @TestMetadata("kt23369_3.kt") public void testKt23369_3() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/kt23369_3.kt"); } + @Test @TestMetadata("kt35006.kt") public void testKt35006() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/kt35006.kt"); } + @Test @TestMetadata("multiFileFacade.kt") public void testMultiFileFacade() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/multiFileFacade.kt"); } + @Test @TestMetadata("oneFile.kt") public void testOneFile() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/oneFile.kt"); } + @Test @TestMetadata("rangeFolding.kt") public void testRangeFolding() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/rangeFolding.kt"); } + @Test @TestMetadata("rangeFoldingInClass.kt") public void testRangeFoldingInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/rangeFoldingInClass.kt"); } + @Test @TestMetadata("smap.kt") public void testSmap() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/smap.kt"); } + @Test @TestMetadata("smapWithNewSyntax.kt") public void testSmapWithNewSyntax() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/smapWithNewSyntax.kt"); } + @Test @TestMetadata("smapWithOldSyntax.kt") public void testSmapWithOldSyntax() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/smapWithOldSyntax.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/anonymous") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Anonymous extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Anonymous extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInAnonymous() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt19175.kt") public void testKt19175() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/kt19175.kt"); } + @Test @TestMetadata("lambda.kt") public void testLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/lambda.kt"); } + @Test @TestMetadata("lambdaOnCallSite.kt") public void testLambdaOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/lambdaOnCallSite.kt"); } + @Test @TestMetadata("lambdaOnInlineCallSite.kt") public void testLambdaOnInlineCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/lambdaOnInlineCallSite.kt"); } + @Test @TestMetadata("object.kt") public void testObject() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/object.kt"); } + @Test @TestMetadata("objectOnCallSite.kt") public void testObjectOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnCallSite.kt"); } + @Test @TestMetadata("objectOnInlineCallSite.kt") public void testObjectOnInlineCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSite.kt"); } + @Test @TestMetadata("objectOnInlineCallSite2.kt") public void testObjectOnInlineCallSite2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSite2.kt"); } + @Test @TestMetadata("objectOnInlineCallSiteWithCapture.kt") public void testObjectOnInlineCallSiteWithCapture() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSiteWithCapture.kt"); } + @Test @TestMetadata("severalMappingsForDefaultFile.kt") public void testSeveralMappingsForDefaultFile() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/severalMappingsForDefaultFile.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/defaultLambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultLambda extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class DefaultLambda extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInDefaultLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/defaultLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("defaultLambdaInAnonymous.kt") public void testDefaultLambdaInAnonymous() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/defaultLambdaInAnonymous.kt"); } + @Test @TestMetadata("inlinInDefault.kt") public void testInlinInDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlinInDefault.kt"); } + @Test @TestMetadata("inlinInDefault2.kt") public void testInlinInDefault2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlinInDefault2.kt"); } + @Test @TestMetadata("inlineAnonymousInDefault.kt") public void testInlineAnonymousInDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlineAnonymousInDefault.kt"); } + @Test @TestMetadata("inlineAnonymousInDefault2.kt") public void testInlineAnonymousInDefault2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlineAnonymousInDefault2.kt"); } + @Test @TestMetadata("kt21827.kt") public void testKt21827() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/kt21827.kt"); } + @Test @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/nested.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/simple.kt"); } + @Test @TestMetadata("simple2.kt") public void testSimple2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/simple2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/inlineOnly") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineOnly extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class InlineOnly extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInInlineOnly() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/inlineOnly"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("noSmap.kt") public void testNoSmap() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/noSmap.kt"); } + @Test @TestMetadata("noSmapWithProperty.kt") public void testNoSmapWithProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/noSmapWithProperty.kt"); } + @Test @TestMetadata("reified.kt") public void testReified() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/reified.kt"); } + @Test @TestMetadata("reifiedProperty.kt") public void testReifiedProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/reifiedProperty.kt"); } + @Test @TestMetadata("stdlibInlineOnly.kt") public void testStdlibInlineOnly() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/stdlibInlineOnly.kt"); } + @Test @TestMetadata("stdlibInlineOnlyOneLine.kt") public void testStdlibInlineOnlyOneLine() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/stdlibInlineOnlyOneLine.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/newsmap") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Newsmap extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Newsmap extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInNewsmap() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/newsmap"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("differentMapping.kt") public void testDifferentMapping() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/newsmap/differentMapping.kt"); } + @Test @TestMetadata("mappingInInlineFunLambda.kt") public void testMappingInInlineFunLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/newsmap/mappingInInlineFunLambda.kt"); } + @Test @TestMetadata("mappingInSubInlineLambda.kt") public void testMappingInSubInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/newsmap/mappingInSubInlineLambda.kt"); } + @Test @TestMetadata("mappingInSubInlineLambdaSameFileInline.kt") public void testMappingInSubInlineLambdaSameFileInline() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/newsmap/mappingInSubInlineLambdaSameFileInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/resolve") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Resolve extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Resolve extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInResolve() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/resolve"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("inlineComponent.kt") public void testInlineComponent() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/resolve/inlineComponent.kt"); } + @Test @TestMetadata("inlineIterator.kt") public void testInlineIterator() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/resolve/inlineIterator.kt"); @@ -3917,621 +4331,695 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/special") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Special extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Special extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInSpecial() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/special"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("identityCheck.kt") public void testIdentityCheck() throws Exception { runTest("compiler/testData/codegen/boxInline/special/identityCheck.kt"); } + @Test @TestMetadata("ifBranches.kt") public void testIfBranches() throws Exception { runTest("compiler/testData/codegen/boxInline/special/ifBranches.kt"); } + @Test @TestMetadata("iinc.kt") public void testIinc() throws Exception { runTest("compiler/testData/codegen/boxInline/special/iinc.kt"); } + @Test @TestMetadata("inlineChain.kt") public void testInlineChain() throws Exception { runTest("compiler/testData/codegen/boxInline/special/inlineChain.kt"); } + @Test @TestMetadata("loopInStoreLoadChains.kt") public void testLoopInStoreLoadChains() throws Exception { runTest("compiler/testData/codegen/boxInline/special/loopInStoreLoadChains.kt"); } + @Test @TestMetadata("loopInStoreLoadChains2.kt") public void testLoopInStoreLoadChains2() throws Exception { runTest("compiler/testData/codegen/boxInline/special/loopInStoreLoadChains2.kt"); } + @Test @TestMetadata("plusAssign.kt") public void testPlusAssign() throws Exception { runTest("compiler/testData/codegen/boxInline/special/plusAssign.kt"); } + @Test @TestMetadata("stackHeightBug.kt") public void testStackHeightBug() throws Exception { runTest("compiler/testData/codegen/boxInline/special/stackHeightBug.kt"); } + @Test @TestMetadata("unusedInlineLambda.kt") public void testUnusedInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/special/unusedInlineLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/stackOnReturn") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class StackOnReturn extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class StackOnReturn extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInStackOnReturn() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/stackOnReturn"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("elvis.kt") public void testElvis() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/elvis.kt"); } + @Test @TestMetadata("ifThenElse.kt") public void testIfThenElse() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/ifThenElse.kt"); } + @Test @TestMetadata("kt11499.kt") public void testKt11499() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt11499.kt"); } + @Test @TestMetadata("kt17591.kt") public void testKt17591() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt17591.kt"); } + @Test @TestMetadata("kt17591a.kt") public void testKt17591a() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt17591a.kt"); } + @Test @TestMetadata("kt17591b.kt") public void testKt17591b() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt17591b.kt"); } + @Test @TestMetadata("mixedTypesOnStack1.kt") public void testMixedTypesOnStack1() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack1.kt"); } + @Test @TestMetadata("mixedTypesOnStack2.kt") public void testMixedTypesOnStack2() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack2.kt"); } + @Test @TestMetadata("mixedTypesOnStack3.kt") public void testMixedTypesOnStack3() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack3.kt"); } + @Test @TestMetadata("nonLocalReturn1.kt") public void testNonLocalReturn1() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn1.kt"); } + @Test @TestMetadata("nonLocalReturn2.kt") public void testNonLocalReturn2() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn2.kt"); } + @Test @TestMetadata("nonLocalReturn3.kt") public void testNonLocalReturn3() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn3.kt"); } + @Test @TestMetadata("poppedLocalReturn.kt") public void testPoppedLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/poppedLocalReturn.kt"); } + @Test @TestMetadata("poppedLocalReturn2.kt") public void testPoppedLocalReturn2() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/poppedLocalReturn2.kt"); } + @Test @TestMetadata("returnLong.kt") public void testReturnLong() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/returnLong.kt"); } + @Test @TestMetadata("tryFinally.kt") public void testTryFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/tryFinally.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Suspend extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Suspend extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInSuspend() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("capturedVariables.kt") public void testCapturedVariables() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/capturedVariables.kt"); } + @Test @TestMetadata("crossinlineSuspendLambdaInsideCrossinlineSuspendLambda.kt") public void testCrossinlineSuspendLambdaInsideCrossinlineSuspendLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/crossinlineSuspendLambdaInsideCrossinlineSuspendLambda.kt"); } + @Test @TestMetadata("debugMetadataCrossinline.kt") public void testDebugMetadataCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/debugMetadataCrossinline.kt"); } + @Test @TestMetadata("delegatedProperties.kt") public void testDelegatedProperties() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/delegatedProperties.kt"); } + @Test @TestMetadata("doubleRegenerationWithNonSuspendingLambda.kt") public void testDoubleRegenerationWithNonSuspendingLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/doubleRegenerationWithNonSuspendingLambda.kt"); } + @Test @TestMetadata("enclodingMethod.kt") public void testEnclodingMethod() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/enclodingMethod.kt"); } + @Test @TestMetadata("fileNameInMetadata.kt") public void testFileNameInMetadata() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/fileNameInMetadata.kt"); } + @Test @TestMetadata("inlineOrdinaryOfCrossinlineSuspend.kt") public void testInlineOrdinaryOfCrossinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfCrossinlineSuspend.kt"); } + @Test @TestMetadata("inlineOrdinaryOfNoinlineSuspend.kt") public void testInlineOrdinaryOfNoinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfNoinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendContinuation.kt") public void testInlineSuspendContinuation() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendContinuation.kt"); } + @Test @TestMetadata("inlineSuspendInMultifileClass.kt") public void testInlineSuspendInMultifileClass() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendInMultifileClass.kt"); } + @Test @TestMetadata("inlineSuspendOfCrossinlineOrdinary.kt") public void testInlineSuspendOfCrossinlineOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfCrossinlineSuspend.kt") public void testInlineSuspendOfCrossinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfNoinlineOrdinary.kt") public void testInlineSuspendOfNoinlineOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfNoinlineSuspend.kt") public void testInlineSuspendOfNoinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfOrdinary.kt") public void testInlineSuspendOfOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfSuspend.kt") public void testInlineSuspendOfSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfSuspend.kt"); } + @Test @TestMetadata("jvmName.kt") public void testJvmName() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/jvmName.kt"); } + @Test @TestMetadata("kt26658.kt") public void testKt26658() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/kt26658.kt"); } + @Test @TestMetadata("maxStackWithCrossinline.kt") public void testMaxStackWithCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/maxStackWithCrossinline.kt"); } + @Test @TestMetadata("multipleLocals.kt") public void testMultipleLocals() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/multipleLocals.kt"); } + @Test @TestMetadata("multipleSuspensionPoints.kt") public void testMultipleSuspensionPoints() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/multipleSuspensionPoints.kt"); } + @Test @TestMetadata("nestedMethodWith2XParameter.kt") public void testNestedMethodWith2XParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/nestedMethodWith2XParameter.kt"); } + @Test @TestMetadata("nonLocalReturn.kt") public void testNonLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/nonLocalReturn.kt"); } + @Test @TestMetadata("nonSuspendCrossinline.kt") public void testNonSuspendCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/nonSuspendCrossinline.kt"); } + @Test @TestMetadata("returnValue.kt") public void testReturnValue() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/returnValue.kt"); } + @Test @TestMetadata("tryCatchReceiver.kt") public void testTryCatchReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/tryCatchReceiver.kt"); } + @Test @TestMetadata("tryCatchStackTransform.kt") public void testTryCatchStackTransform() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/tryCatchStackTransform.kt"); } + @Test @TestMetadata("twiceRegeneratedAnonymousObject.kt") public void testTwiceRegeneratedAnonymousObject() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/twiceRegeneratedAnonymousObject.kt"); } + @Test @TestMetadata("twiceRegeneratedSuspendLambda.kt") public void testTwiceRegeneratedSuspendLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/twiceRegeneratedSuspendLambda.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/callableReference") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CallableReference extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class CallableReference extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInCallableReference() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("isAsReified.kt") public void testIsAsReified() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/isAsReified.kt"); } + @Test @TestMetadata("isAsReified2.kt") public void testIsAsReified2() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/isAsReified2.kt"); } + @Test @TestMetadata("nonTailCall.kt") public void testNonTailCall() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/nonTailCall.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/simple.kt"); } + @Test @TestMetadata("unitReturn.kt") public void testUnitReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/unitReturn.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/defaultParameter") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultParameter extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class DefaultParameter extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInDefaultParameter() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/defaultParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("defaultValueCrossinline.kt") public void testDefaultValueCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueCrossinline.kt"); } + @Test @TestMetadata("defaultValueInClass.kt") public void testDefaultValueInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInClass.kt"); } + @Test @TestMetadata("defaultValueInline.kt") public void testDefaultValueInline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInline.kt"); } + @Test @TestMetadata("defaultValueInlineFromMultiFileFacade.kt") public void testDefaultValueInlineFromMultiFileFacade() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInlineFromMultiFileFacade.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/inlineClass") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineClass extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class InlineClass extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInInlineClass() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("returnUnboxedDirect.kt") public void testReturnUnboxedDirect() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineClass/returnUnboxedDirect.kt"); } + @Test @TestMetadata("returnUnboxedResume.kt") public void testReturnUnboxedResume() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineClass/returnUnboxedResume.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineUsedAsNoinline extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class InlineUsedAsNoinline extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInInlineUsedAsNoinline() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("inlineOnly.kt") public void testInlineOnly() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/inlineOnly.kt"); } + @Test @TestMetadata("simpleNamed.kt") public void testSimpleNamed() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/simpleNamed.kt"); } + @Test @TestMetadata("withCapturedInlineLambda.kt") public void testWithCapturedInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/withCapturedInlineLambda.kt"); } + @Test @TestMetadata("withCapturedInlineLambda2.kt") public void testWithCapturedInlineLambda2() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/withCapturedInlineLambda2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/receiver") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Receiver extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Receiver extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInReceiver() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/receiver"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("inlineOrdinaryOfCrossinlineSuspend.kt") public void testInlineOrdinaryOfCrossinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfCrossinlineSuspend.kt"); } + @Test @TestMetadata("inlineOrdinaryOfNoinlineSuspend.kt") public void testInlineOrdinaryOfNoinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfNoinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfCrossinlineOrdinary.kt") public void testInlineSuspendOfCrossinlineOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfCrossinlineSuspend.kt") public void testInlineSuspendOfCrossinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfNoinlineOrdinary.kt") public void testInlineSuspendOfNoinlineOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfNoinlineSuspend.kt") public void testInlineSuspendOfNoinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfOrdinary.kt") public void testInlineSuspendOfOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfSuspend.kt") public void testInlineSuspendOfSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfSuspend.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/stateMachine") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class StateMachine extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class StateMachine extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInStateMachine() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/stateMachine"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("crossingCoroutineBoundaries.kt") public void testCrossingCoroutineBoundaries() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/crossingCoroutineBoundaries.kt"); } + @Test @TestMetadata("independentInline.kt") public void testIndependentInline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/independentInline.kt"); } + @Test @TestMetadata("innerLambda.kt") public void testInnerLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambda.kt"); } + @Test @TestMetadata("innerLambdaInsideLambda.kt") public void testInnerLambdaInsideLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaInsideLambda.kt"); } + @Test @TestMetadata("innerLambdaWithoutCrossinline.kt") public void testInnerLambdaWithoutCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaWithoutCrossinline.kt"); } + @Test @TestMetadata("innerMadness.kt") public void testInnerMadness() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadness.kt"); } + @Test @TestMetadata("innerMadnessCallSite.kt") public void testInnerMadnessCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadnessCallSite.kt"); } + @Test @TestMetadata("innerObject.kt") public void testInnerObject() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObject.kt"); } + @Test @TestMetadata("innerObjectInsideInnerObject.kt") public void testInnerObjectInsideInnerObject() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectInsideInnerObject.kt"); } + @Test @TestMetadata("innerObjectRetransformation.kt") public void testInnerObjectRetransformation() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectRetransformation.kt"); } + @Test @TestMetadata("innerObjectSeveralFunctions.kt") public void testInnerObjectSeveralFunctions() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectSeveralFunctions.kt"); } + @Test @TestMetadata("innerObjectWithoutCapturingCrossinline.kt") public void testInnerObjectWithoutCapturingCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectWithoutCapturingCrossinline.kt"); } + @Test @TestMetadata("insideObject.kt") public void testInsideObject() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/insideObject.kt"); } + @Test @TestMetadata("kt30708.kt") public void testKt30708() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/kt30708.kt"); } + @Test @TestMetadata("lambdaTransformation.kt") public void testLambdaTransformation() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/lambdaTransformation.kt"); } + @Test @TestMetadata("normalInline.kt") public void testNormalInline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/normalInline.kt"); } + @Test @TestMetadata("numberOfSuspentions.kt") public void testNumberOfSuspentions() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/numberOfSuspentions.kt"); } + @Test @TestMetadata("objectInsideLambdas.kt") public void testObjectInsideLambdas() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/objectInsideLambdas.kt"); } + @Test @TestMetadata("oneInlineTwoCaptures.kt") public void testOneInlineTwoCaptures() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/oneInlineTwoCaptures.kt"); } + @Test @TestMetadata("passLambda.kt") public void testPassLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/passLambda.kt"); } + @Test @TestMetadata("passParameter.kt") public void testPassParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/passParameter.kt"); } + @Test @TestMetadata("passParameterLambda.kt") public void testPassParameterLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/passParameterLambda.kt"); } + @Test @TestMetadata("unreachableSuspendMarker.kt") public void testUnreachableSuspendMarker() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/unreachableSuspendMarker.kt"); @@ -4539,110 +5027,121 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/syntheticAccessors") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class SyntheticAccessors extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class SyntheticAccessors extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInSyntheticAccessors() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/syntheticAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("constField.kt") public void testConstField() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/constField.kt"); } + @Test @TestMetadata("packagePrivateMembers.kt") public void testPackagePrivateMembers() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/packagePrivateMembers.kt"); } + @Test @TestMetadata("propertyModifiers.kt") public void testPropertyModifiers() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/propertyModifiers.kt"); } + @Test @TestMetadata("protectedMembers.kt") public void testProtectedMembers() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/protectedMembers.kt"); } + @Test @TestMetadata("protectedMembersFromSuper.kt") public void testProtectedMembersFromSuper() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/protectedMembersFromSuper.kt"); } + @Test @TestMetadata("superCall.kt") public void testSuperCall() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/superCall.kt"); } + @Test @TestMetadata("superCallFromMultipleSubclasses.kt") public void testSuperCallFromMultipleSubclasses() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/superCallFromMultipleSubclasses.kt"); } + @Test @TestMetadata("superProperty.kt") public void testSuperProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/superProperty.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class WithinInlineLambda extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class WithinInlineLambda extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInWithinInlineLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("directFieldAccess.kt") public void testDirectFieldAccess() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/directFieldAccess.kt"); } + @Test @TestMetadata("directFieldAccessInCrossInline.kt") public void testDirectFieldAccessInCrossInline() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/directFieldAccessInCrossInline.kt"); } + @Test @TestMetadata("privateCall.kt") public void testPrivateCall() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateCall.kt"); } + @Test @TestMetadata("privateInCrossInline.kt") public void testPrivateInCrossInline() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInCrossInline.kt"); } + @Test @TestMetadata("privateInDefaultStubArgument.kt") public void testPrivateInDefaultStubArgument() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInDefaultStubArgument.kt"); } + @Test @TestMetadata("protectedInCrossinline.kt") public void testProtectedInCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/protectedInCrossinline.kt"); } + @Test @TestMetadata("protectedMembersFromSuper.kt") public void testProtectedMembersFromSuper() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/protectedMembersFromSuper.kt"); } + @Test @TestMetadata("superCall.kt") public void testSuperCall() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superCall.kt"); } + @Test @TestMetadata("superInCrossInline.kt") public void testSuperInCrossInline() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superInCrossInline.kt"); @@ -4650,79 +5149,78 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/trait") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Trait extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Trait extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInTrait() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/trait"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("trait.kt") public void testTrait() throws Exception { runTest("compiler/testData/codegen/boxInline/trait/trait.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/tryCatchFinally") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class TryCatchFinally extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class TryCatchFinally extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInTryCatchFinally() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/tryCatchFinally"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt5863.kt") public void testKt5863() throws Exception { runTest("compiler/testData/codegen/boxInline/tryCatchFinally/kt5863.kt"); } + @Test @TestMetadata("tryCatch.kt") public void testTryCatch() throws Exception { runTest("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch.kt"); } + @Test @TestMetadata("tryCatch2.kt") public void testTryCatch2() throws Exception { runTest("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch2.kt"); } + @Test @TestMetadata("tryCatchFinally.kt") public void testTryCatchFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatchFinally.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/varargs") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Varargs extends AbstractIrBlackBoxInlineCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Varargs extends AbstractIrBlackBoxInlineCodegenTest { + @Test public void testAllFilesPresentInVarargs() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/varargs"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt17653.kt") public void testKt17653() throws Exception { runTest("compiler/testData/codegen/boxInline/varargs/kt17653.kt"); } + @Test @TestMetadata("varargAndDefaultParameters.kt") public void testVarargAndDefaultParameters() throws Exception { runTest("compiler/testData/codegen/boxInline/varargs/varargAndDefaultParameters.kt"); } + @Test @TestMetadata("varargAndDefaultParameters2.kt") public void testVarargAndDefaultParameters2() throws Exception { runTest("compiler/testData/codegen/boxInline/varargs/varargAndDefaultParameters2.kt"); diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/IrCompileKotlinAgainstInlineKotlinTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrCompileKotlinAgainstInlineKotlinTestGenerated.java similarity index 87% rename from compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/IrCompileKotlinAgainstInlineKotlinTestGenerated.java rename to compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrCompileKotlinAgainstInlineKotlinTestGenerated.java index 6dd8afbe7d1..21bbd466423 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/IrCompileKotlinAgainstInlineKotlinTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrCompileKotlinAgainstInlineKotlinTestGenerated.java @@ -3,579 +3,651 @@ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ -package org.jetbrains.kotlin.codegen.ir; +package org.jetbrains.kotlin.test.runners.codegen; import com.intellij.testFramework.TestDataPath; -import org.jetbrains.kotlin.test.JUnit3RunnerWithInners; -import org.jetbrains.kotlin.test.KotlinTestUtils; import org.jetbrains.kotlin.test.util.KtTestUtil; import org.jetbrains.kotlin.test.TargetBackend; import org.jetbrains.kotlin.test.TestMetadata; -import org.junit.runner.RunWith; +import org.junit.jupiter.api.Nested; +import org.junit.jupiter.api.Test; import java.io.File; import java.util.regex.Pattern; -/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */ +/** This class is generated by {@link GenerateNewCompilerTests.kt}. DO NOT MODIFY MANUALLY */ @SuppressWarnings("all") @TestMetadata("compiler/testData/codegen/boxInline") @TestDataPath("$PROJECT_ROOT") -@RunWith(JUnit3RunnerWithInners.class) public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + @Test public void testAllFilesPresentInBoxInline() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class AnonymousObject extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class AnonymousObject extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInAnonymousObject() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("anonymousObjectInDefault.kt") public void testAnonymousObjectInDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectInDefault.kt"); } + @Test @TestMetadata("anonymousObjectOnCallSite.kt") public void testAnonymousObjectOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnCallSite.kt"); } + @Test @TestMetadata("anonymousObjectOnCallSiteSuperParams.kt") public void testAnonymousObjectOnCallSiteSuperParams() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnCallSiteSuperParams.kt"); } + @Test @TestMetadata("anonymousObjectOnDeclarationSite.kt") public void testAnonymousObjectOnDeclarationSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnDeclarationSite.kt"); } + @Test @TestMetadata("anonymousObjectOnDeclarationSiteSuperParams.kt") public void testAnonymousObjectOnDeclarationSiteSuperParams() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnDeclarationSiteSuperParams.kt"); } + @Test @TestMetadata("capturedLambdaInInline.kt") public void testCapturedLambdaInInline() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline.kt"); } + @Test @TestMetadata("capturedLambdaInInline2.kt") public void testCapturedLambdaInInline2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline2.kt"); } + @Test @TestMetadata("capturedLambdaInInline3.kt") public void testCapturedLambdaInInline3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline3.kt"); } + @Test @TestMetadata("capturedLambdaInInlineObject.kt") public void testCapturedLambdaInInlineObject() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInlineObject.kt"); } + @Test @TestMetadata("capturedLocalFun.kt") public void testCapturedLocalFun() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLocalFun.kt"); } + @Test @TestMetadata("capturedLocalFunRef.kt") public void testCapturedLocalFunRef() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLocalFunRef.kt"); } + @Test @TestMetadata("changingReturnType.kt") public void testChangingReturnType() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/changingReturnType.kt"); } + @Test @TestMetadata("constructOriginalInRegenerated.kt") public void testConstructOriginalInRegenerated() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/constructOriginalInRegenerated.kt"); } + @Test @TestMetadata("constructorVisibility.kt") public void testConstructorVisibility() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/constructorVisibility.kt"); } + @Test @TestMetadata("constructorVisibilityInConstLambda.kt") public void testConstructorVisibilityInConstLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/constructorVisibilityInConstLambda.kt"); } + @Test @TestMetadata("constructorVisibilityInLambda.kt") public void testConstructorVisibilityInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/constructorVisibilityInLambda.kt"); } + @Test @TestMetadata("defineClass.kt") public void testDefineClass() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt"); } + @Test @TestMetadata("functionExpression.kt") public void testFunctionExpression() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/functionExpression.kt"); } + @Test @TestMetadata("inlineCallInsideInlineLambda.kt") public void testInlineCallInsideInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/inlineCallInsideInlineLambda.kt"); } + @Test @TestMetadata("kt13133.kt") public void testKt13133() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt13133.kt"); } + @Test @TestMetadata("kt13182.kt") public void testKt13182() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt13182.kt"); } + @Test @TestMetadata("kt13374.kt") public void testKt13374() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt13374.kt"); } + @Test @TestMetadata("kt14011.kt") public void testKt14011() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt14011.kt"); } + @Test @TestMetadata("kt14011_2.kt") public void testKt14011_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt14011_2.kt"); } + @Test @TestMetadata("kt14011_3.kt") public void testKt14011_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt14011_3.kt"); } + @Test @TestMetadata("kt15751.kt") public void testKt15751() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt15751.kt"); } + @Test @TestMetadata("kt16193.kt") public void testKt16193() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt16193.kt"); } + @Test @TestMetadata("kt17972.kt") public void testKt17972() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972.kt"); } + @Test @TestMetadata("kt17972_2.kt") public void testKt17972_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_2.kt"); } + @Test @TestMetadata("kt17972_3.kt") public void testKt17972_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_3.kt"); } + @Test @TestMetadata("kt17972_4.kt") public void testKt17972_4() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_4.kt"); } + @Test @TestMetadata("kt17972_5.kt") public void testKt17972_5() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_5.kt"); } + @Test @TestMetadata("kt17972_super.kt") public void testKt17972_super() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_super.kt"); } + @Test @TestMetadata("kt17972_super2.kt") public void testKt17972_super2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_super2.kt"); } + @Test @TestMetadata("kt17972_super3.kt") public void testKt17972_super3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_super3.kt"); } + @Test @TestMetadata("kt19389.kt") public void testKt19389() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19389.kt"); } + @Test @TestMetadata("kt19399.kt") public void testKt19399() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19399.kt"); } + @Test @TestMetadata("kt19434.kt") public void testKt19434() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19434.kt"); } + @Test @TestMetadata("kt19434_2.kt") public void testKt19434_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19434_2.kt"); } + @Test @TestMetadata("kt19723.kt") public void testKt19723() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19723.kt"); } + @Test @TestMetadata("kt29595.kt") public void testKt29595() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt29595.kt"); } + @Test @TestMetadata("kt34656.kt") public void testKt34656() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt34656.kt"); } + @Test @TestMetadata("kt38197.kt") public void testKt38197() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt"); } + @Test @TestMetadata("kt42815.kt") public void testKt42815() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt42815.kt"); } + @Test @TestMetadata("kt42815_delegated.kt") public void testKt42815_delegated() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt42815_delegated.kt"); } + @Test @TestMetadata("kt6007.kt") public void testKt6007() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6007.kt"); } + @Test @TestMetadata("kt6552.kt") public void testKt6552() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6552.kt"); } + @Test @TestMetadata("kt8133.kt") public void testKt8133() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt8133.kt"); } + @Test @TestMetadata("kt9064.kt") public void testKt9064() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9064.kt"); } + @Test @TestMetadata("kt9064v2.kt") public void testKt9064v2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9064v2.kt"); } + @Test @TestMetadata("kt9591.kt") public void testKt9591() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9591.kt"); } + @Test @TestMetadata("kt9877.kt") public void testKt9877() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9877.kt"); } + @Test @TestMetadata("kt9877_2.kt") public void testKt9877_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9877_2.kt"); } + @Test @TestMetadata("objectInLambdaCapturesAnotherObject.kt") public void testObjectInLambdaCapturesAnotherObject() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/objectInLambdaCapturesAnotherObject.kt"); } + @Test @TestMetadata("safeCall.kt") public void testSafeCall() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/safeCall.kt"); } + @Test @TestMetadata("safeCall_2.kt") public void testSafeCall_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/safeCall_2.kt"); } + @Test @TestMetadata("sam.kt") public void testSam() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam.kt"); } + @Test @TestMetadata("sharedFromCrossinline.kt") public void testSharedFromCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sharedFromCrossinline.kt"); } + @Test @TestMetadata("superConstructorWithObjectParameter.kt") public void testSuperConstructorWithObjectParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/superConstructorWithObjectParameter.kt"); } + @Test @TestMetadata("typeInfo.kt") public void testTypeInfo() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/typeInfo.kt"); } + @Test @TestMetadata("withInlineMethod.kt") public void testWithInlineMethod() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/withInlineMethod.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/enumWhen") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class EnumWhen extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class EnumWhen extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInEnumWhen() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/enumWhen"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("callSite.kt") public void testCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/callSite.kt"); } + @Test @TestMetadata("declSite.kt") public void testDeclSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/declSite.kt"); } + @Test @TestMetadata("declSiteSeveralMappings.kt") public void testDeclSiteSeveralMappings() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/declSiteSeveralMappings.kt"); } + @Test @TestMetadata("declSiteSeveralMappingsDifOrder.kt") public void testDeclSiteSeveralMappingsDifOrder() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/declSiteSeveralMappingsDifOrder.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ProperRecapturing extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class ProperRecapturing extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInProperRecapturing() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("inlineChain.kt") public void testInlineChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/inlineChain.kt"); } + @Test @TestMetadata("lambdaChain.kt") public void testLambdaChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChain.kt"); } + @Test @TestMetadata("lambdaChainSimple.kt") public void testLambdaChainSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChainSimple.kt"); } + @Test @TestMetadata("lambdaChain_2.kt") public void testLambdaChain_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChain_2.kt"); } + @Test @TestMetadata("lambdaChain_3.kt") public void testLambdaChain_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChain_3.kt"); } + @Test @TestMetadata("noInlineLambda.kt") public void testNoInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/noInlineLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ProperRecapturingInClass extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class ProperRecapturingInClass extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInProperRecapturingInClass() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("inlineChain.kt") public void testInlineChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/inlineChain.kt"); } + @Test @TestMetadata("inlinelambdaChain.kt") public void testInlinelambdaChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/inlinelambdaChain.kt"); } + @Test @TestMetadata("lambdaChain.kt") public void testLambdaChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain.kt"); } + @Test @TestMetadata("lambdaChainSimple.kt") public void testLambdaChainSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChainSimple.kt"); } + @Test @TestMetadata("lambdaChainSimple_2.kt") public void testLambdaChainSimple_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChainSimple_2.kt"); } + @Test @TestMetadata("lambdaChain_2.kt") public void testLambdaChain_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain_2.kt"); } + @Test @TestMetadata("lambdaChain_3.kt") public void testLambdaChain_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain_3.kt"); } + @Test @TestMetadata("noCapturedThisOnCallSite.kt") public void testNoCapturedThisOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/noCapturedThisOnCallSite.kt"); } + @Test @TestMetadata("noInlineLambda.kt") public void testNoInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/noInlineLambda.kt"); } + @Test @TestMetadata("twoInlineLambda.kt") public void testTwoInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/twoInlineLambda.kt"); } + @Test @TestMetadata("twoInlineLambdaComplex.kt") public void testTwoInlineLambdaComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/twoInlineLambdaComplex.kt"); } + @Test @TestMetadata("twoInlineLambdaComplex_2.kt") public void testTwoInlineLambdaComplex_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/twoInlineLambdaComplex_2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/sam") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Sam extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Sam extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInSam() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("anonymousObjectToSam.kt") public void testAnonymousObjectToSam() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/anonymousObjectToSam.kt"); } + @Test @TestMetadata("kt17091.kt") public void testKt17091() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt17091.kt"); } + @Test @TestMetadata("kt21671.kt") public void testKt21671() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671.kt"); } + @Test @TestMetadata("kt21671_2.kt") public void testKt21671_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671_2.kt"); } + @Test @TestMetadata("kt21671_3.kt") public void testKt21671_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671_3.kt"); } + @Test @TestMetadata("kt22304.kt") public void testKt22304() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt22304.kt"); } + @Test @TestMetadata("samOnCallSite.kt") public void testSamOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/samOnCallSite.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class TwoCapturedReceivers extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class TwoCapturedReceivers extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInTwoCapturedReceivers() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt8668.kt") public void testKt8668() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668.kt"); } + @Test @TestMetadata("kt8668_2.kt") public void testKt8668_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_2.kt"); } + @Test @TestMetadata("kt8668_3.kt") public void testKt8668_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_3.kt"); } + @Test @TestMetadata("twoDifferentDispatchReceivers.kt") public void testTwoDifferentDispatchReceivers() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/twoDifferentDispatchReceivers.kt"); } + @Test @TestMetadata("twoExtensionReceivers.kt") public void testTwoExtensionReceivers() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/twoExtensionReceivers.kt"); @@ -583,470 +655,525 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/argumentOrder") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ArgumentOrder extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class ArgumentOrder extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInArgumentOrder() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/argumentOrder"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("boundFunctionReference.kt") public void testBoundFunctionReference() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/boundFunctionReference.kt"); } + @Test @TestMetadata("boundFunctionReference2.kt") public void testBoundFunctionReference2() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/boundFunctionReference2.kt"); } + @Test @TestMetadata("captured.kt") public void testCaptured() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/captured.kt"); } + @Test @TestMetadata("capturedInExtension.kt") public void testCapturedInExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/capturedInExtension.kt"); } + @Test @TestMetadata("defaultParametersAndLastVararg.kt") public void testDefaultParametersAndLastVararg() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/defaultParametersAndLastVararg.kt"); } + @Test @TestMetadata("defaultParametersAndLastVarargWithCorrectOrder.kt") public void testDefaultParametersAndLastVarargWithCorrectOrder() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/defaultParametersAndLastVarargWithCorrectOrder.kt"); } + @Test @TestMetadata("extension.kt") public void testExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/extension.kt"); } + @Test @TestMetadata("extensionInClass.kt") public void testExtensionInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/extensionInClass.kt"); } + @Test @TestMetadata("lambdaMigration.kt") public void testLambdaMigration() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/lambdaMigration.kt"); } + @Test @TestMetadata("lambdaMigrationInClass.kt") public void testLambdaMigrationInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/lambdaMigrationInClass.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/simple.kt"); } + @Test @TestMetadata("simpleInClass.kt") public void testSimpleInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/simpleInClass.kt"); } + @Test @TestMetadata("varargAndDefaultParameters.kt") public void testVarargAndDefaultParameters() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/varargAndDefaultParameters.kt"); } + @Test @TestMetadata("varargAndDefaultParametersWithCorrectOrder.kt") public void testVarargAndDefaultParametersWithCorrectOrder() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/varargAndDefaultParametersWithCorrectOrder.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/arrayConvention") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ArrayConvention extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class ArrayConvention extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInArrayConvention() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/arrayConvention"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("simpleAccess.kt") public void testSimpleAccess() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccess.kt"); } + @Test @TestMetadata("simpleAccessInClass.kt") public void testSimpleAccessInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessInClass.kt"); } + @Test @TestMetadata("simpleAccessWithDefault.kt") public void testSimpleAccessWithDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithDefault.kt"); } + @Test @TestMetadata("simpleAccessWithDefaultInClass.kt") public void testSimpleAccessWithDefaultInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithDefaultInClass.kt"); } + @Test @TestMetadata("simpleAccessWithLambda.kt") public void testSimpleAccessWithLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithLambda.kt"); } + @Test @TestMetadata("simpleAccessWithLambdaInClass.kt") public void testSimpleAccessWithLambdaInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithLambdaInClass.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/assert") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Assert extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Assert extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInAssert() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/assert"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("jvmAssertInlineFunctionAssertionsDisabled.kt") public void testJvmAssertInlineFunctionAssertionsDisabled() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmAssertInlineFunctionAssertionsDisabled.kt"); } + @Test @TestMetadata("jvmAssertInlineFunctionAssertionsEnabled.kt") public void testJvmAssertInlineFunctionAssertionsEnabled() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmAssertInlineFunctionAssertionsEnabled.kt"); } + @Test @TestMetadata("jvmAssertInlineLambda.kt") public void testJvmAssertInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmAssertInlineLambda.kt"); } + @Test @TestMetadata("jvmClassInitializer.kt") public void testJvmClassInitializer() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmClassInitializer.kt"); } + @Test @TestMetadata("jvmCompanion.kt") public void testJvmCompanion() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCompanion.kt"); } + @Test @TestMetadata("jvmCrossinlineLambda.kt") public void testJvmCrossinlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambda.kt"); } + @Test @TestMetadata("jvmCrossinlineLambda2.kt") public void testJvmCrossinlineLambda2() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambda2.kt"); } + @Test @TestMetadata("jvmCrossinlineLambdaDeclarationSite.kt") public void testJvmCrossinlineLambdaDeclarationSite() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambdaDeclarationSite.kt"); } + @Test @TestMetadata("jvmCrossinlineLambdaDeclarationSiteOnly.kt") public void testJvmCrossinlineLambdaDeclarationSiteOnly() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambdaDeclarationSiteOnly.kt"); } + @Test @TestMetadata("jvmCrossinlineSAMDeclarationSite.kt") public void testJvmCrossinlineSAMDeclarationSite() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineSAMDeclarationSite.kt"); } + @Test @TestMetadata("jvmDoubleInline.kt") public void testJvmDoubleInline() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmDoubleInline.kt"); } + @Test @TestMetadata("jvmInlineUsedAsNoinline.kt") public void testJvmInlineUsedAsNoinline() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmInlineUsedAsNoinline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/builders") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Builders extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Builders extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInBuilders() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/builders"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("builders.kt") public void testBuilders() throws Exception { runTest("compiler/testData/codegen/boxInline/builders/builders.kt"); } + @Test @TestMetadata("buildersAndLambdaCapturing.kt") public void testBuildersAndLambdaCapturing() throws Exception { runTest("compiler/testData/codegen/boxInline/builders/buildersAndLambdaCapturing.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/bytecodePreprocessing") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class BytecodePreprocessing extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class BytecodePreprocessing extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInBytecodePreprocessing() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/bytecodePreprocessing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("apiVersionAtLeast1.kt") public void testApiVersionAtLeast1() throws Exception { runTest("compiler/testData/codegen/boxInline/bytecodePreprocessing/apiVersionAtLeast1.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/callableReference") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CallableReference extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class CallableReference extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test @TestMetadata("adapted.kt") public void testAdapted() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/adapted.kt"); } + @Test public void testAllFilesPresentInCallableReference() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("classLevel.kt") public void testClassLevel() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/classLevel.kt"); } + @Test @TestMetadata("classLevel2.kt") public void testClassLevel2() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/classLevel2.kt"); } + @Test @TestMetadata("constructor.kt") public void testConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/constructor.kt"); } + @Test @TestMetadata("innerGenericConstuctor.kt") public void testInnerGenericConstuctor() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/innerGenericConstuctor.kt"); } + @Test @TestMetadata("intrinsic.kt") public void testIntrinsic() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/intrinsic.kt"); } + @Test @TestMetadata("jvmFieldProperty.kt") public void testJvmFieldProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/jvmFieldProperty.kt"); } + @Test @TestMetadata("kt15449.kt") public void testKt15449() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/kt15449.kt"); } + @Test @TestMetadata("kt15751_2.kt") public void testKt15751_2() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/kt15751_2.kt"); } + @Test @TestMetadata("kt16411.kt") public void testKt16411() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/kt16411.kt"); } + @Test @TestMetadata("kt35101.kt") public void testKt35101() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/kt35101.kt"); } + @Test @TestMetadata("propertyIntrinsic.kt") public void testPropertyIntrinsic() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/propertyIntrinsic.kt"); } + @Test @TestMetadata("propertyReference.kt") public void testPropertyReference() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/propertyReference.kt"); } + @Test @TestMetadata("topLevel.kt") public void testTopLevel() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/topLevel.kt"); } + @Test @TestMetadata("topLevelExtension.kt") public void testTopLevelExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/topLevelExtension.kt"); } + @Test @TestMetadata("topLevelProperty.kt") public void testTopLevelProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/topLevelProperty.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/callableReference/bound") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Bound extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Bound extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInBound() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/callableReference/bound"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("classProperty.kt") public void testClassProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/classProperty.kt"); } + @Test @TestMetadata("emptyLhsFunction.kt") public void testEmptyLhsFunction() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsFunction.kt"); } + @Test @TestMetadata("emptyLhsOnInlineProperty.kt") public void testEmptyLhsOnInlineProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsOnInlineProperty.kt"); } + @Test @TestMetadata("emptyLhsProperty.kt") public void testEmptyLhsProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsProperty.kt"); } + @Test @TestMetadata("expression.kt") public void testExpression() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/expression.kt"); } + @Test @TestMetadata("extensionReceiver.kt") public void testExtensionReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/extensionReceiver.kt"); } + @Test @TestMetadata("filter.kt") public void testFilter() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/filter.kt"); } + @Test @TestMetadata("inlineValueParameterInsteadOfReceiver.kt") public void testInlineValueParameterInsteadOfReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/inlineValueParameterInsteadOfReceiver.kt"); } + @Test @TestMetadata("innerGenericConstuctor.kt") public void testInnerGenericConstuctor() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/innerGenericConstuctor.kt"); } + @Test @TestMetadata("intrinsic.kt") public void testIntrinsic() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/intrinsic.kt"); } + @Test @TestMetadata("jvmFieldProperty.kt") public void testJvmFieldProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/jvmFieldProperty.kt"); } + @Test @TestMetadata("kt18728.kt") public void testKt18728() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728.kt"); } + @Test @TestMetadata("kt18728_2.kt") public void testKt18728_2() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_2.kt"); } + @Test @TestMetadata("kt18728_3.kt") public void testKt18728_3() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_3.kt"); } + @Test @TestMetadata("kt18728_4.kt") public void testKt18728_4() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_4.kt"); } + @Test @TestMetadata("lambdaOnLhs.kt") public void testLambdaOnLhs() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/lambdaOnLhs.kt"); } + @Test @TestMetadata("map.kt") public void testMap() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/map.kt"); } + @Test @TestMetadata("mixed.kt") public void testMixed() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/mixed.kt"); } + @Test @TestMetadata("objectProperty.kt") public void testObjectProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/objectProperty.kt"); } + @Test @TestMetadata("propertyImportedFromObject.kt") public void testPropertyImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/propertyImportedFromObject.kt"); } + @Test @TestMetadata("sideEffect.kt") public void testSideEffect() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/sideEffect.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/simple.kt"); } + @Test @TestMetadata("simpleVal.kt") public void testSimpleVal() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/simpleVal.kt"); } + @Test @TestMetadata("simpleVal2.kt") public void testSimpleVal2() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/simpleVal2.kt"); } + @Test @TestMetadata("topLevelExtensionProperty.kt") public void testTopLevelExtensionProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/topLevelExtensionProperty.kt"); @@ -1054,649 +1181,740 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/capture") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Capture extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Capture extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInCapture() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/capture"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("captureInlinable.kt") public void testCaptureInlinable() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/captureInlinable.kt"); } + @Test @TestMetadata("captureInlinableAndOther.kt") public void testCaptureInlinableAndOther() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/captureInlinableAndOther.kt"); } + @Test @TestMetadata("captureThisAndReceiver.kt") public void testCaptureThisAndReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/captureThisAndReceiver.kt"); } + @Test @TestMetadata("generics.kt") public void testGenerics() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/generics.kt"); } + @Test @TestMetadata("simpleCapturingInClass.kt") public void testSimpleCapturingInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/simpleCapturingInClass.kt"); } + @Test @TestMetadata("simpleCapturingInPackage.kt") public void testSimpleCapturingInPackage() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/simpleCapturingInPackage.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/complex") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Complex extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Complex extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInComplex() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/complex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("closureChain.kt") public void testClosureChain() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/closureChain.kt"); } + @Test @TestMetadata("forEachLine.kt") public void testForEachLine() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/forEachLine.kt"); } + @Test @TestMetadata("kt44429.kt") public void testKt44429() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/kt44429.kt"); } + @Test @TestMetadata("lambdaInLambda.kt") public void testLambdaInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/lambdaInLambda.kt"); } + @Test @TestMetadata("swapAndWith.kt") public void testSwapAndWith() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/swapAndWith.kt"); } + @Test @TestMetadata("swapAndWith2.kt") public void testSwapAndWith2() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/swapAndWith2.kt"); } + @Test @TestMetadata("use.kt") public void testUse() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/use.kt"); } + @Test @TestMetadata("with.kt") public void testWith() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/with.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/complexStack") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ComplexStack extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class ComplexStack extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInComplexStack() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/complexStack"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("asCheck.kt") public void testAsCheck() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/asCheck.kt"); } + @Test @TestMetadata("asCheck2.kt") public void testAsCheck2() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/asCheck2.kt"); } + @Test @TestMetadata("breakContinueInInlineLambdaArgument.kt") public void testBreakContinueInInlineLambdaArgument() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/breakContinueInInlineLambdaArgument.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simple.kt"); } + @Test @TestMetadata("simple2.kt") public void testSimple2() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simple2.kt"); } + @Test @TestMetadata("simple3.kt") public void testSimple3() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simple3.kt"); } + @Test @TestMetadata("simple4.kt") public void testSimple4() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simple4.kt"); } + @Test @TestMetadata("simpleExtension.kt") public void testSimpleExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simpleExtension.kt"); } + @Test @TestMetadata("spillConstructorArgumentsAndInlineLambdaParameter.kt") public void testSpillConstructorArgumentsAndInlineLambdaParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/spillConstructorArgumentsAndInlineLambdaParameter.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/contracts") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Contracts extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Contracts extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInContracts() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/contracts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("cfgDependendValInitialization.kt") public void testCfgDependendValInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/cfgDependendValInitialization.kt"); } + @Test @TestMetadata("complexInitializer.kt") public void testComplexInitializer() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/complexInitializer.kt"); } + @Test @TestMetadata("complexInitializerWithStackTransformation.kt") public void testComplexInitializerWithStackTransformation() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/complexInitializerWithStackTransformation.kt"); } + @Test @TestMetadata("crossinlineCallableReference.kt") public void testCrossinlineCallableReference() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/crossinlineCallableReference.kt"); } + @Test @TestMetadata("definiteLongValInitialization.kt") public void testDefiniteLongValInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/definiteLongValInitialization.kt"); } + @Test @TestMetadata("definiteNestedValInitialization.kt") public void testDefiniteNestedValInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/definiteNestedValInitialization.kt"); } + @Test @TestMetadata("definiteValInitInInitializer.kt") public void testDefiniteValInitInInitializer() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/definiteValInitInInitializer.kt"); } + @Test @TestMetadata("definiteValInitialization.kt") public void testDefiniteValInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/definiteValInitialization.kt"); } + @Test @TestMetadata("exactlyOnceCrossinline.kt") public void testExactlyOnceCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline.kt"); } + @Test @TestMetadata("exactlyOnceCrossinline2.kt") public void testExactlyOnceCrossinline2() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline2.kt"); } + @Test @TestMetadata("exactlyOnceNoinline.kt") public void testExactlyOnceNoinline() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceNoinline.kt"); } + @Test @TestMetadata("nonLocalReturn.kt") public void testNonLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/nonLocalReturn.kt"); } + @Test @TestMetadata("nonLocalReturnWithCycle.kt") public void testNonLocalReturnWithCycle() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/nonLocalReturnWithCycle.kt"); } + @Test @TestMetadata("propertyInitialization.kt") public void testPropertyInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/propertyInitialization.kt"); } + @Test @TestMetadata("valInitializationAndUsageInNestedLambda.kt") public void testValInitializationAndUsageInNestedLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/valInitializationAndUsageInNestedLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/defaultValues") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultValues extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class DefaultValues extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test @TestMetadata("33Parameters.kt") public void test33Parameters() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/33Parameters.kt"); } + @Test @TestMetadata("33ParametersInConstructor.kt") public void test33ParametersInConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/33ParametersInConstructor.kt"); } + @Test public void testAllFilesPresentInDefaultValues() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("defaultInExtension.kt") public void testDefaultInExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/defaultInExtension.kt"); } + @Test @TestMetadata("defaultMethod.kt") public void testDefaultMethod() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/defaultMethod.kt"); } + @Test @TestMetadata("defaultMethodInClass.kt") public void testDefaultMethodInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/defaultMethodInClass.kt"); } + @Test @TestMetadata("defaultParamRemapping.kt") public void testDefaultParamRemapping() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/defaultParamRemapping.kt"); } + @Test @TestMetadata("inlineInDefaultParameter.kt") public void testInlineInDefaultParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/inlineInDefaultParameter.kt"); } + @Test @TestMetadata("inlineLambdaInNoInlineDefault.kt") public void testInlineLambdaInNoInlineDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/inlineLambdaInNoInlineDefault.kt"); } + @Test @TestMetadata("kt11479.kt") public void testKt11479() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt11479.kt"); } + @Test @TestMetadata("kt11479InlinedDefaultParameter.kt") public void testKt11479InlinedDefaultParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt11479InlinedDefaultParameter.kt"); } + @Test @TestMetadata("kt14564.kt") public void testKt14564() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564.kt"); } + @Test @TestMetadata("kt14564_2.kt") public void testKt14564_2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564_2.kt"); } + @Test @TestMetadata("kt16496.kt") public void testKt16496() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt16496.kt"); } + @Test @TestMetadata("kt18689.kt") public void testKt18689() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689.kt"); } + @Test @TestMetadata("kt18689_2.kt") public void testKt18689_2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_2.kt"); } + @Test @TestMetadata("kt18689_3.kt") public void testKt18689_3() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_3.kt"); } + @Test @TestMetadata("kt18689_4.kt") public void testKt18689_4() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_4.kt"); } + @Test @TestMetadata("kt5685.kt") public void testKt5685() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt5685.kt"); } + @Test @TestMetadata("simpleDefaultMethod.kt") public void testSimpleDefaultMethod() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/simpleDefaultMethod.kt"); } + @Test @TestMetadata("varArgNoInline.kt") public void testVarArgNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/varArgNoInline.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LambdaInlining extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class LambdaInlining extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInLambdaInlining() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("checkLambdaClassIsPresent.kt") public void testCheckLambdaClassIsPresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkLambdaClassIsPresent.kt"); } + @Test @TestMetadata("checkLambdaClassesArePresent.kt") public void testCheckLambdaClassesArePresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkLambdaClassesArePresent.kt"); } + @Test @TestMetadata("checkObjectClassIsPresent.kt") public void testCheckObjectClassIsPresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkObjectClassIsPresent.kt"); } + @Test @TestMetadata("checkStaticLambdaClassIsPresent.kt") public void testCheckStaticLambdaClassIsPresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticLambdaClassIsPresent.kt"); } + @Test @TestMetadata("checkStaticLambdaClassesArePresent.kt") public void testCheckStaticLambdaClassesArePresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticLambdaClassesArePresent.kt"); } + @Test @TestMetadata("checkStaticObjectClassIsPresent.kt") public void testCheckStaticObjectClassIsPresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticObjectClassIsPresent.kt"); } + @Test @TestMetadata("defaultCallInDefaultLambda.kt") public void testDefaultCallInDefaultLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultCallInDefaultLambda.kt"); } + @Test @TestMetadata("defaultLambdaInNoInline.kt") public void testDefaultLambdaInNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultLambdaInNoInline.kt"); } + @Test @TestMetadata("differentInvokeSignature.kt") public void testDifferentInvokeSignature() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/differentInvokeSignature.kt"); } + @Test @TestMetadata("genericLambda.kt") public void testGenericLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/genericLambda.kt"); } + @Test @TestMetadata("instanceCapturedInClass.kt") public void testInstanceCapturedInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInClass.kt"); } + @Test @TestMetadata("instanceCapturedInInterface.kt") public void testInstanceCapturedInInterface() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInInterface.kt"); } + @Test @TestMetadata("jvmStaticDefault.kt") public void testJvmStaticDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/jvmStaticDefault.kt"); } + @Test @TestMetadata("kt21827.kt") public void testKt21827() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21827.kt"); } + @Test @TestMetadata("kt21946.kt") public void testKt21946() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21946.kt"); } + @Test @TestMetadata("kt24477.kt") public void testKt24477() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt24477.kt"); } + @Test @TestMetadata("kt25106.kt") public void testKt25106() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt25106.kt"); } + @Test @TestMetadata("kt26636.kt") public void testKt26636() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt26636.kt"); } + @Test @TestMetadata("noInline.kt") public void testNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/noInline.kt"); } + @Test @TestMetadata("nonDefaultInlineInNoInline.kt") public void testNonDefaultInlineInNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/nonDefaultInlineInNoInline.kt"); } + @Test @TestMetadata("receiverClash.kt") public void testReceiverClash() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash.kt"); } + @Test @TestMetadata("receiverClash2.kt") public void testReceiverClash2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash2.kt"); } + @Test @TestMetadata("receiverClashInClass.kt") public void testReceiverClashInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass.kt"); } + @Test @TestMetadata("receiverClashInClass2.kt") public void testReceiverClashInClass2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass2.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simple.kt"); } + @Test @TestMetadata("simpleErased.kt") public void testSimpleErased() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErased.kt"); } + @Test @TestMetadata("simpleErasedStaticInstance.kt") public void testSimpleErasedStaticInstance() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErasedStaticInstance.kt"); } + @Test @TestMetadata("simpleExtension.kt") public void testSimpleExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleExtension.kt"); } + @Test @TestMetadata("simpleGeneric.kt") public void testSimpleGeneric() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleGeneric.kt"); } + @Test @TestMetadata("simpleStaticInstance.kt") public void testSimpleStaticInstance() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleStaticInstance.kt"); } + @Test @TestMetadata("thisClash.kt") public void testThisClash() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClash.kt"); } + @Test @TestMetadata("thisClashInClass.kt") public void testThisClashInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClashInClass.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CallableReferences extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class CallableReferences extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInCallableReferences() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("boundFunctionReference.kt") public void testBoundFunctionReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReference.kt"); } + @Test @TestMetadata("boundFunctionReferenceOnInt.kt") public void testBoundFunctionReferenceOnInt() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnInt.kt"); } + @Test @TestMetadata("boundFunctionReferenceOnLong.kt") public void testBoundFunctionReferenceOnLong() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnLong.kt"); } + @Test @TestMetadata("boundPropertyReference.kt") public void testBoundPropertyReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReference.kt"); } + @Test @TestMetadata("boundPropertyReferenceOnInt.kt") public void testBoundPropertyReferenceOnInt() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnInt.kt"); } + @Test @TestMetadata("boundPropertyReferenceOnLong.kt") public void testBoundPropertyReferenceOnLong() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnLong.kt"); } + @Test @TestMetadata("constuctorReference.kt") public void testConstuctorReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/constuctorReference.kt"); } + @Test @TestMetadata("differentInvokeSignature.kt") public void testDifferentInvokeSignature() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature.kt"); } + @Test @TestMetadata("differentInvokeSignature2.kt") public void testDifferentInvokeSignature2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature2.kt"); } + @Test @TestMetadata("functionImportedFromObject.kt") public void testFunctionImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionImportedFromObject.kt"); } + @Test @TestMetadata("functionReference.kt") public void testFunctionReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReference.kt"); } + @Test @TestMetadata("functionReferenceFromClass.kt") public void testFunctionReferenceFromClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromClass.kt"); } + @Test @TestMetadata("functionReferenceFromObject.kt") public void testFunctionReferenceFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromObject.kt"); } + @Test @TestMetadata("innerClassConstuctorReference.kt") public void testInnerClassConstuctorReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/innerClassConstuctorReference.kt"); } + @Test @TestMetadata("mutableBoundPropertyReferenceFromClass.kt") public void testMutableBoundPropertyReferenceFromClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutableBoundPropertyReferenceFromClass.kt"); } + @Test @TestMetadata("mutablePropertyReferenceFromClass.kt") public void testMutablePropertyReferenceFromClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutablePropertyReferenceFromClass.kt"); } + @Test @TestMetadata("privateFunctionReference.kt") public void testPrivateFunctionReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privateFunctionReference.kt"); } + @Test @TestMetadata("privatePropertyReference.kt") public void testPrivatePropertyReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privatePropertyReference.kt"); } + @Test @TestMetadata("propertyImportedFromObject.kt") public void testPropertyImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyImportedFromObject.kt"); } + @Test @TestMetadata("propertyReference.kt") public void testPropertyReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReference.kt"); } + @Test @TestMetadata("propertyReferenceFromClass.kt") public void testPropertyReferenceFromClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromClass.kt"); } + @Test @TestMetadata("propertyReferenceFromObject.kt") public void testPropertyReferenceFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromObject.kt"); @@ -1704,48 +1922,52 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/defaultValues/maskElimination") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MaskElimination extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class MaskElimination extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test @TestMetadata("32Parameters.kt") public void test32Parameters() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/32Parameters.kt"); } + @Test @TestMetadata("33Parameters.kt") public void test33Parameters() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/33Parameters.kt"); } + @Test public void testAllFilesPresentInMaskElimination() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/maskElimination"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt18792.kt") public void testKt18792() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt18792.kt"); } + @Test @TestMetadata("kt19679.kt") public void testKt19679() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679.kt"); } + @Test @TestMetadata("kt19679_2.kt") public void testKt19679_2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_2.kt"); } + @Test @TestMetadata("kt19679_3.kt") public void testKt19679_3() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_3.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/simple.kt"); @@ -1753,375 +1975,400 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/delegatedProperty") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DelegatedProperty extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class DelegatedProperty extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInDelegatedProperty() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/delegatedProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt16864.kt") public void testKt16864() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt16864.kt"); } + @Test @TestMetadata("local.kt") public void testLocal() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/local.kt"); } + @Test @TestMetadata("localDeclaredInLambda.kt") public void testLocalDeclaredInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/localDeclaredInLambda.kt"); } + @Test @TestMetadata("localInAnonymousObject.kt") public void testLocalInAnonymousObject() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/localInAnonymousObject.kt"); } + @Test @TestMetadata("localInLambda.kt") public void testLocalInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/localInLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/enclosingInfo") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class EnclosingInfo extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class EnclosingInfo extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInEnclosingInfo() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/enclosingInfo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("anonymousInLambda.kt") public void testAnonymousInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/anonymousInLambda.kt"); } + @Test @TestMetadata("inlineChain.kt") public void testInlineChain() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/inlineChain.kt"); } + @Test @TestMetadata("inlineChain2.kt") public void testInlineChain2() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/inlineChain2.kt"); } + @Test @TestMetadata("objectInInlineFun.kt") public void testObjectInInlineFun() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/objectInInlineFun.kt"); } + @Test @TestMetadata("transformedConstructor.kt") public void testTransformedConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/transformedConstructor.kt"); } + @Test @TestMetadata("transformedConstructorWithAdditionalObject.kt") public void testTransformedConstructorWithAdditionalObject() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/transformedConstructorWithAdditionalObject.kt"); } + @Test @TestMetadata("transformedConstructorWithNestedInline.kt") public void testTransformedConstructorWithNestedInline() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/transformedConstructorWithNestedInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/enum") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Enum extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Enum extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInEnum() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/enum"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt10569.kt") public void testKt10569() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/kt10569.kt"); } + @Test @TestMetadata("kt18254.kt") public void testKt18254() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/kt18254.kt"); } + @Test @TestMetadata("valueOf.kt") public void testValueOf() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOf.kt"); } + @Test @TestMetadata("valueOfCapturedType.kt") public void testValueOfCapturedType() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOfCapturedType.kt"); } + @Test @TestMetadata("valueOfChain.kt") public void testValueOfChain() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOfChain.kt"); } + @Test @TestMetadata("valueOfChainCapturedType.kt") public void testValueOfChainCapturedType() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOfChainCapturedType.kt"); } + @Test @TestMetadata("valueOfNonReified.kt") public void testValueOfNonReified() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOfNonReified.kt"); } + @Test @TestMetadata("values.kt") public void testValues() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/values.kt"); } + @Test @TestMetadata("valuesAsArray.kt") public void testValuesAsArray() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesAsArray.kt"); } + @Test @TestMetadata("valuesCapturedType.kt") public void testValuesCapturedType() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesCapturedType.kt"); } + @Test @TestMetadata("valuesChain.kt") public void testValuesChain() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesChain.kt"); } + @Test @TestMetadata("valuesChainCapturedType.kt") public void testValuesChainCapturedType() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesChainCapturedType.kt"); } + @Test @TestMetadata("valuesNonReified.kt") public void testValuesNonReified() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesNonReified.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/functionExpression") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class FunctionExpression extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class FunctionExpression extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInFunctionExpression() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/functionExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("extension.kt") public void testExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/functionExpression/extension.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineClasses extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class InlineClasses extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInInlineClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("inlineClassWithInlineValReturningInlineClass.kt") public void testInlineClassWithInlineValReturningInlineClass() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineClassWithInlineValReturningInlineClass.kt"); } + @Test @TestMetadata("inlineFunctionInsideInlineClassesBox.kt") public void testInlineFunctionInsideInlineClassesBox() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt"); } + @Test @TestMetadata("noReturnTypeManglingFun.kt") public void testNoReturnTypeManglingFun() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/noReturnTypeManglingFun.kt"); } + @Test @TestMetadata("noReturnTypeManglingFunJvmName.kt") public void testNoReturnTypeManglingFunJvmName() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/noReturnTypeManglingFunJvmName.kt"); } + @Test @TestMetadata("noReturnTypeManglingVal.kt") public void testNoReturnTypeManglingVal() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/noReturnTypeManglingVal.kt"); } + @Test @TestMetadata("withReturnTypeManglingFun.kt") public void testWithReturnTypeManglingFun() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/withReturnTypeManglingFun.kt"); } + @Test @TestMetadata("withReturnTypeManglingFunJvmName.kt") public void testWithReturnTypeManglingFunJvmName() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/withReturnTypeManglingFunJvmName.kt"); } + @Test @TestMetadata("withReturnTypeManglingVal.kt") public void testWithReturnTypeManglingVal() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/withReturnTypeManglingVal.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class UnboxGenericParameter extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class UnboxGenericParameter extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInUnboxGenericParameter() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class FunInterface extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class FunInterface extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInFunInterface() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("any.kt") public void testAny() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/any.kt"); } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/anyN.kt"); } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/iface.kt"); } + @Test @TestMetadata("ifaceChild.kt") public void testIfaceChild() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/ifaceChild.kt"); } + @Test @TestMetadata("primitive.kt") public void testPrimitive() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/primitive.kt"); } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/string.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Lambda extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Lambda extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("any.kt") public void testAny() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/any.kt"); } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/anyN.kt"); } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/iface.kt"); } + @Test @TestMetadata("ifaceChild.kt") public void testIfaceChild() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/ifaceChild.kt"); } + @Test @TestMetadata("primitive.kt") public void testPrimitive() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/primitive.kt"); } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/string.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ObjectLiteral extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class ObjectLiteral extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInObjectLiteral() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("any.kt") public void testAny() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/any.kt"); } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/anyN.kt"); } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/iface.kt"); } + @Test @TestMetadata("ifaceChild.kt") public void testIfaceChild() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChild.kt"); } + @Test @TestMetadata("primitive.kt") public void testPrimitive() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/primitive.kt"); } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/string.kt"); @@ -2130,239 +2377,231 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/innerClasses") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InnerClasses extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class InnerClasses extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInInnerClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/innerClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("captureThisAndOuter.kt") public void testCaptureThisAndOuter() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/captureThisAndOuter.kt"); } + @Test @TestMetadata("innerLambda.kt") public void testInnerLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/innerLambda.kt"); } + @Test @TestMetadata("kt10259.kt") public void testKt10259() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/kt10259.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/jvmName") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class JvmName extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class JvmName extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInJvmName() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/jvmName"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/jvmName/simple.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/jvmPackageName") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class JvmPackageName extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class JvmPackageName extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInJvmPackageName() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/jvmPackageName"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/jvmPackageName/simple.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/lambdaClassClash") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LambdaClassClash extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class LambdaClassClash extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInLambdaClassClash() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/lambdaClassClash"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("lambdaClassClash.kt") public void testLambdaClassClash() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaClassClash/lambdaClassClash.kt"); } + @Test @TestMetadata("noInlineLambdaX2.kt") public void testNoInlineLambdaX2() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaClassClash/noInlineLambdaX2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/lambdaTransformation") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LambdaTransformation extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class LambdaTransformation extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInLambdaTransformation() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/lambdaTransformation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("lambdaCloning.kt") public void testLambdaCloning() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/lambdaCloning.kt"); } + @Test @TestMetadata("lambdaInLambda2.kt") public void testLambdaInLambda2() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/lambdaInLambda2.kt"); } + @Test @TestMetadata("lambdaInLambdaNoInline.kt") public void testLambdaInLambdaNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/lambdaInLambdaNoInline.kt"); } + @Test @TestMetadata("regeneratedLambdaName.kt") public void testRegeneratedLambdaName() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/regeneratedLambdaName.kt"); } + @Test @TestMetadata("regeneratedLambdaName2.kt") public void testRegeneratedLambdaName2() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/regeneratedLambdaName2.kt"); } + @Test @TestMetadata("sameCaptured.kt") public void testSameCaptured() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/sameCaptured.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/localFunInLambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LocalFunInLambda extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class LocalFunInLambda extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInLocalFunInLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/localFunInLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("defaultParam.kt") public void testDefaultParam() throws Exception { runTest("compiler/testData/codegen/boxInline/localFunInLambda/defaultParam.kt"); } + @Test @TestMetadata("lambdaInLambdaCapturesAnotherFun.kt") public void testLambdaInLambdaCapturesAnotherFun() throws Exception { runTest("compiler/testData/codegen/boxInline/localFunInLambda/lambdaInLambdaCapturesAnotherFun.kt"); } + @Test @TestMetadata("localFunInLambda.kt") public void testLocalFunInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/localFunInLambda/localFunInLambda.kt"); } + @Test @TestMetadata("localFunInLambdaCapturesAnotherFun.kt") public void testLocalFunInLambdaCapturesAnotherFun() throws Exception { runTest("compiler/testData/codegen/boxInline/localFunInLambda/localFunInLambdaCapturesAnotherFun.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/multiModule") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MultiModule extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class MultiModule extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInMultiModule() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiModule"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("tryCatchWithRecursiveInline.kt") public void testTryCatchWithRecursiveInline() throws Exception { runTest("compiler/testData/codegen/boxInline/multiModule/tryCatchWithRecursiveInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/multifileClasses") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MultifileClasses extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class MultifileClasses extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInMultifileClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multifileClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("defaultArguments.kt") public void testDefaultArguments() throws Exception { runTest("compiler/testData/codegen/boxInline/multifileClasses/defaultArguments.kt"); } + @Test @TestMetadata("inlineFromOptimizedMultifileClass.kt") public void testInlineFromOptimizedMultifileClass() throws Exception { runTest("compiler/testData/codegen/boxInline/multifileClasses/inlineFromOptimizedMultifileClass.kt"); } + @Test @TestMetadata("inlineFromOtherPackage.kt") public void testInlineFromOtherPackage() throws Exception { runTest("compiler/testData/codegen/boxInline/multifileClasses/inlineFromOtherPackage.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/multiplatform") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Multiplatform extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Multiplatform extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInMultiplatform() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/multiplatform/defaultArguments") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultArguments extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class DefaultArguments extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInDefaultArguments() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiplatform/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("receiversAndParametersInLambda.kt") public void testReceiversAndParametersInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/multiplatform/defaultArguments/receiversAndParametersInLambda.kt"); @@ -2370,575 +2609,640 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/noInline") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class NoInline extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class NoInline extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInNoInline() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/noInline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("extensionReceiver.kt") public void testExtensionReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/extensionReceiver.kt"); } + @Test @TestMetadata("lambdaAsGeneric.kt") public void testLambdaAsGeneric() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/lambdaAsGeneric.kt"); } + @Test @TestMetadata("lambdaAsNonFunction.kt") public void testLambdaAsNonFunction() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/lambdaAsNonFunction.kt"); } + @Test @TestMetadata("noInline.kt") public void testNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/noInline.kt"); } + @Test @TestMetadata("noInlineLambdaChain.kt") public void testNoInlineLambdaChain() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/noInlineLambdaChain.kt"); } + @Test @TestMetadata("noInlineLambdaChainWithCapturedInline.kt") public void testNoInlineLambdaChainWithCapturedInline() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/noInlineLambdaChainWithCapturedInline.kt"); } + @Test @TestMetadata("withoutInline.kt") public void testWithoutInline() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/withoutInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class NonLocalReturns extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class NonLocalReturns extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInNonLocalReturns() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("explicitLocalReturn.kt") public void testExplicitLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/explicitLocalReturn.kt"); } + @Test @TestMetadata("fromArrayGenerator.kt") public void testFromArrayGenerator() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGenerator.kt"); } + @Test @TestMetadata("fromArrayGeneratorCatch.kt") public void testFromArrayGeneratorCatch() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorCatch.kt"); } + @Test @TestMetadata("fromArrayGeneratorNested.kt") public void testFromArrayGeneratorNested() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorNested.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithCapture.kt") public void testFromArrayGeneratorWithCapture() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithCapture.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithCatch.kt") public void testFromArrayGeneratorWithCatch() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithCatch.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithFinally.kt") public void testFromArrayGeneratorWithFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithFinally.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithFinallyX2.kt") public void testFromArrayGeneratorWithFinallyX2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithFinallyX2.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithFinallyX2_2.kt") public void testFromArrayGeneratorWithFinallyX2_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithFinallyX2_2.kt"); } + @Test @TestMetadata("fromInterfaceDefaultGetter.kt") public void testFromInterfaceDefaultGetter() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromInterfaceDefaultGetter.kt"); } + @Test @TestMetadata("justReturnInLambda.kt") public void testJustReturnInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/justReturnInLambda.kt"); } + @Test @TestMetadata("kt5199.kt") public void testKt5199() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt5199.kt"); } + @Test @TestMetadata("kt8948.kt") public void testKt8948() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948.kt"); } + @Test @TestMetadata("kt8948v2.kt") public void testKt8948v2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt"); } + @Test @TestMetadata("nestedNonLocals.kt") public void testNestedNonLocals() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/nestedNonLocals.kt"); } + @Test @TestMetadata("noInlineLocalReturn.kt") public void testNoInlineLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/noInlineLocalReturn.kt"); } + @Test @TestMetadata("nonLocalReturnFromOuterLambda.kt") public void testNonLocalReturnFromOuterLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/nonLocalReturnFromOuterLambda.kt"); } + @Test @TestMetadata("propertyAccessors.kt") public void testPropertyAccessors() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/propertyAccessors.kt"); } + @Test @TestMetadata("returnFromFunctionExpr.kt") public void testReturnFromFunctionExpr() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/returnFromFunctionExpr.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simple.kt"); } + @Test @TestMetadata("simpleFunctional.kt") public void testSimpleFunctional() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simpleFunctional.kt"); } + @Test @TestMetadata("simpleVoid.kt") public void testSimpleVoid() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simpleVoid.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Deparenthesize extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Deparenthesize extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInDeparenthesize() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("bracket.kt") public void testBracket() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize/bracket.kt"); } + @Test @TestMetadata("labeled.kt") public void testLabeled() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize/labeled.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class TryFinally extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class TryFinally extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInTryFinally() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt16417.kt") public void testKt16417() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt16417.kt"); } + @Test @TestMetadata("kt20433.kt") public void testKt20433() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433.kt"); } + @Test @TestMetadata("kt20433_2.kt") public void testKt20433_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2.kt"); } + @Test @TestMetadata("kt20433_2_void.kt") public void testKt20433_2_void() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2_void.kt"); } + @Test @TestMetadata("kt20433_void.kt") public void testKt20433_void() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_void.kt"); } + @Test @TestMetadata("kt26384.kt") public void testKt26384() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384.kt"); } + @Test @TestMetadata("kt26384_2.kt") public void testKt26384_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384_2.kt"); } + @Test @TestMetadata("kt28546.kt") public void testKt28546() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt28546.kt"); } + @Test @TestMetadata("kt6956.kt") public void testKt6956() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt6956.kt"); } + @Test @TestMetadata("kt7273.kt") public void testKt7273() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt7273.kt"); } + @Test @TestMetadata("nonLocalReturnFromCatchBlock.kt") public void testNonLocalReturnFromCatchBlock() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromCatchBlock.kt"); } + @Test @TestMetadata("nonLocalReturnFromOuterLambda.kt") public void testNonLocalReturnFromOuterLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromOuterLambda.kt"); } + @Test @TestMetadata("nonLocalReturnToCatchBlock.kt") public void testNonLocalReturnToCatchBlock() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnToCatchBlock.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CallSite extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class CallSite extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInCallSite() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("callSite.kt") public void testCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/callSite.kt"); } + @Test @TestMetadata("callSiteComplex.kt") public void testCallSiteComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/callSiteComplex.kt"); } + @Test @TestMetadata("exceptionTableSplit.kt") public void testExceptionTableSplit() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplit.kt"); } + @Test @TestMetadata("exceptionTableSplitNoReturn.kt") public void testExceptionTableSplitNoReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplitNoReturn.kt"); } + @Test @TestMetadata("finallyInFinally.kt") public void testFinallyInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/finallyInFinally.kt"); } + @Test @TestMetadata("wrongVarInterval.kt") public void testWrongVarInterval() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/wrongVarInterval.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Chained extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Chained extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInChained() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("finallyInFinally.kt") public void testFinallyInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally.kt"); } + @Test @TestMetadata("finallyInFinally2.kt") public void testFinallyInFinally2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally2.kt"); } + @Test @TestMetadata("intReturn.kt") public void testIntReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturn.kt"); } + @Test @TestMetadata("intReturnComplex.kt") public void testIntReturnComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex.kt"); } + @Test @TestMetadata("intReturnComplex2.kt") public void testIntReturnComplex2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex2.kt"); } + @Test @TestMetadata("intReturnComplex3.kt") public void testIntReturnComplex3() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex3.kt"); } + @Test @TestMetadata("intReturnComplex4.kt") public void testIntReturnComplex4() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex4.kt"); } + @Test @TestMetadata("nestedLambda.kt") public void testNestedLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/nestedLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DeclSite extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class DeclSite extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInDeclSite() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("complex.kt") public void testComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/complex.kt"); } + @Test @TestMetadata("intReturn.kt") public void testIntReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturn.kt"); } + @Test @TestMetadata("intReturnComplex.kt") public void testIntReturnComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturnComplex.kt"); } + @Test @TestMetadata("longReturn.kt") public void testLongReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/longReturn.kt"); } + @Test @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/nested.kt"); } + @Test @TestMetadata("returnInFinally.kt") public void testReturnInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInFinally.kt"); } + @Test @TestMetadata("returnInTry.kt") public void testReturnInTry() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTry.kt"); } + @Test @TestMetadata("returnInTryAndFinally.kt") public void testReturnInTryAndFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTryAndFinally.kt"); } + @Test @TestMetadata("severalInTry.kt") public void testSeveralInTry() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTry.kt"); } + @Test @TestMetadata("severalInTryComplex.kt") public void testSeveralInTryComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTryComplex.kt"); } + @Test @TestMetadata("voidInlineFun.kt") public void testVoidInlineFun() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidInlineFun.kt"); } + @Test @TestMetadata("voidNonLocal.kt") public void testVoidNonLocal() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidNonLocal.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ExceptionTable extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class ExceptionTable extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInExceptionTable() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("break.kt") public void testBreak() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/break.kt"); } + @Test @TestMetadata("continue.kt") public void testContinue() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/continue.kt"); } + @Test @TestMetadata("exceptionInFinally.kt") public void testExceptionInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/exceptionInFinally.kt"); } + @Test @TestMetadata("forInFinally.kt") public void testForInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/forInFinally.kt"); } + @Test @TestMetadata("innerAndExternal.kt") public void testInnerAndExternal() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternal.kt"); } + @Test @TestMetadata("innerAndExternalNested.kt") public void testInnerAndExternalNested() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalNested.kt"); } + @Test @TestMetadata("innerAndExternalSimple.kt") public void testInnerAndExternalSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalSimple.kt"); } + @Test @TestMetadata("kt31653.kt") public void testKt31653() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653.kt"); } + @Test @TestMetadata("kt31653_2.kt") public void testKt31653_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653_2.kt"); } + @Test @TestMetadata("kt31923.kt") public void testKt31923() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923.kt"); } + @Test @TestMetadata("kt31923_2.kt") public void testKt31923_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923_2.kt"); } + @Test @TestMetadata("kt31923_wrong.kt") public void testKt31923_wrong() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923_wrong.kt"); } + @Test @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nested.kt"); } + @Test @TestMetadata("nestedWithReturns.kt") public void testNestedWithReturns() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturns.kt"); } + @Test @TestMetadata("nestedWithReturnsSimple.kt") public void testNestedWithReturnsSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturnsSimple.kt"); } + @Test @TestMetadata("noFinally.kt") public void testNoFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/noFinally.kt"); } + @Test @TestMetadata("severalCatchClause.kt") public void testSeveralCatchClause() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/severalCatchClause.kt"); } + @Test @TestMetadata("simpleThrow.kt") public void testSimpleThrow() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/simpleThrow.kt"); } + @Test @TestMetadata("synchonized.kt") public void testSynchonized() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/synchonized.kt"); } + @Test @TestMetadata("throwInFinally.kt") public void testThrowInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/throwInFinally.kt"); } + @Test @TestMetadata("tryCatchInFinally.kt") public void testTryCatchInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/tryCatchInFinally.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Variables extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Variables extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInVariables() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt7792.kt") public void testKt7792() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables/kt7792.kt"); @@ -2947,450 +3251,501 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/optimizations") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Optimizations extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Optimizations extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInOptimizations() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/optimizations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt20844.kt") public void testKt20844() throws Exception { runTest("compiler/testData/codegen/boxInline/optimizations/kt20844.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/private") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Private extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Private extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test @TestMetadata("accessorForConst.kt") public void testAccessorForConst() throws Exception { runTest("compiler/testData/codegen/boxInline/private/accessorForConst.kt"); } + @Test @TestMetadata("accessorStability.kt") public void testAccessorStability() throws Exception { runTest("compiler/testData/codegen/boxInline/private/accessorStability.kt"); } + @Test @TestMetadata("accessorStabilityInClass.kt") public void testAccessorStabilityInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/private/accessorStabilityInClass.kt"); } + @Test public void testAllFilesPresentInPrivate() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/private"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("effectivePrivate.kt") public void testEffectivePrivate() throws Exception { runTest("compiler/testData/codegen/boxInline/private/effectivePrivate.kt"); } + @Test @TestMetadata("kt6453.kt") public void testKt6453() throws Exception { runTest("compiler/testData/codegen/boxInline/private/kt6453.kt"); } + @Test @TestMetadata("kt8094.kt") public void testKt8094() throws Exception { runTest("compiler/testData/codegen/boxInline/private/kt8094.kt"); } + @Test @TestMetadata("kt8095.kt") public void testKt8095() throws Exception { runTest("compiler/testData/codegen/boxInline/private/kt8095.kt"); } + @Test @TestMetadata("nestedInPrivateClass.kt") public void testNestedInPrivateClass() throws Exception { runTest("compiler/testData/codegen/boxInline/private/nestedInPrivateClass.kt"); } + @Test @TestMetadata("privateClass.kt") public void testPrivateClass() throws Exception { runTest("compiler/testData/codegen/boxInline/private/privateClass.kt"); } + @Test @TestMetadata("privateClassExtensionLambda.kt") public void testPrivateClassExtensionLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/private/privateClassExtensionLambda.kt"); } + @Test @TestMetadata("privateInInlineInMultiFileFacade.kt") public void testPrivateInInlineInMultiFileFacade() throws Exception { runTest("compiler/testData/codegen/boxInline/private/privateInInlineInMultiFileFacade.kt"); } + @Test @TestMetadata("privateInline.kt") public void testPrivateInline() throws Exception { runTest("compiler/testData/codegen/boxInline/private/privateInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/property") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Property extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Property extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInProperty() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/property"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("augAssignmentAndInc.kt") public void testAugAssignmentAndInc() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndInc.kt"); } + @Test @TestMetadata("augAssignmentAndIncInClass.kt") public void testAugAssignmentAndIncInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClass.kt"); } + @Test @TestMetadata("augAssignmentAndIncInClassViaConvention.kt") public void testAugAssignmentAndIncInClassViaConvention() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClassViaConvention.kt"); } + @Test @TestMetadata("augAssignmentAndIncOnExtension.kt") public void testAugAssignmentAndIncOnExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtension.kt"); } + @Test @TestMetadata("augAssignmentAndIncOnExtensionInClass.kt") public void testAugAssignmentAndIncOnExtensionInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtensionInClass.kt"); } + @Test @TestMetadata("augAssignmentAndIncViaConvention.kt") public void testAugAssignmentAndIncViaConvention() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncViaConvention.kt"); } + @Test @TestMetadata("fromObject.kt") public void testFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/property/fromObject.kt"); } + @Test @TestMetadata("kt22649.kt") public void testKt22649() throws Exception { runTest("compiler/testData/codegen/boxInline/property/kt22649.kt"); } + @Test @TestMetadata("property.kt") public void testProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/property/property.kt"); } + @Test @TestMetadata("reifiedVal.kt") public void testReifiedVal() throws Exception { runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt"); } + @Test @TestMetadata("reifiedVar.kt") public void testReifiedVar() throws Exception { runTest("compiler/testData/codegen/boxInline/property/reifiedVar.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/property/simple.kt"); } + @Test @TestMetadata("simpleExtension.kt") public void testSimpleExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/property/simpleExtension.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/reified") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Reified extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Reified extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInReified() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("arrayConstructor.kt") public void testArrayConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/arrayConstructor.kt"); } + @Test @TestMetadata("arrayOf.kt") public void testArrayOf() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/arrayOf.kt"); } + @Test @TestMetadata("capturedLambda.kt") public void testCapturedLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/capturedLambda.kt"); } + @Test @TestMetadata("capturedLambda2.kt") public void testCapturedLambda2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/capturedLambda2.kt"); } + @Test @TestMetadata("dontSubstituteNonReified.kt") public void testDontSubstituteNonReified() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/dontSubstituteNonReified.kt"); } + @Test @TestMetadata("kt11081.kt") public void testKt11081() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt11081.kt"); } + @Test @TestMetadata("kt11677.kt") public void testKt11677() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt11677.kt"); } + @Test @TestMetadata("kt15956.kt") public void testKt15956() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt15956.kt"); } + @Test @TestMetadata("kt15997.kt") public void testKt15997() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt15997.kt"); } + @Test @TestMetadata("kt15997_2.kt") public void testKt15997_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt15997_2.kt"); } + @Test @TestMetadata("kt18977.kt") public void testKt18977() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt"); } + @Test @TestMetadata("kt35511.kt") public void testKt35511() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511.kt"); } + @Test @TestMetadata("kt35511_try.kt") public void testKt35511_try() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511_try.kt"); } + @Test @TestMetadata("kt35511_try_valueOf.kt") public void testKt35511_try_valueOf() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511_try_valueOf.kt"); } + @Test @TestMetadata("kt35511_try_values.kt") public void testKt35511_try_values() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511_try_values.kt"); } + @Test @TestMetadata("kt6988.kt") public void testKt6988() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt6988.kt"); } + @Test @TestMetadata("kt6988_2.kt") public void testKt6988_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt6988_2.kt"); } + @Test @TestMetadata("kt6990.kt") public void testKt6990() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt6990.kt"); } + @Test @TestMetadata("kt7017.kt") public void testKt7017() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt7017.kt"); } + @Test @TestMetadata("kt8047.kt") public void testKt8047() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt8047.kt"); } + @Test @TestMetadata("kt8047_2.kt") public void testKt8047_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt8047_2.kt"); } + @Test @TestMetadata("kt9637.kt") public void testKt9637() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt9637.kt"); } + @Test @TestMetadata("kt9637_2.kt") public void testKt9637_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt9637_2.kt"); } + @Test @TestMetadata("nonCapturingObjectInLambda.kt") public void testNonCapturingObjectInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/nonCapturingObjectInLambda.kt"); } + @Test @TestMetadata("packages.kt") public void testPackages() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/packages.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/reified/checkCast") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CheckCast extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class CheckCast extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInCheckCast() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified/checkCast"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("chain.kt") public void testChain() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/chain.kt"); } + @Test @TestMetadata("kt26435.kt") public void testKt26435() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt26435.kt"); } + @Test @TestMetadata("kt26435_2.kt") public void testKt26435_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt26435_2.kt"); } + @Test @TestMetadata("kt26435_3.kt") public void testKt26435_3() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt26435_3.kt"); } + @Test @TestMetadata("kt8043.kt") public void testKt8043() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt8043.kt"); } + @Test @TestMetadata("maxStack.kt") public void testMaxStack() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/maxStack.kt"); } + @Test @TestMetadata("nullable.kt") public void testNullable() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/nullable.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/simple.kt"); } + @Test @TestMetadata("simpleSafe.kt") public void testSimpleSafe() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/simpleSafe.kt"); } + @Test @TestMetadata("simple_1_3.kt") public void testSimple_1_3() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/simple_1_3.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/reified/defaultLambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultLambda extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class DefaultLambda extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInDefaultLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified/defaultLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("chain.kt") public void testChain() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/chain.kt"); } + @Test @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nested.kt"); } + @Test @TestMetadata("nested2.kt") public void testNested2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nested2.kt"); } + @Test @TestMetadata("nested2Static.kt") public void testNested2Static() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nested2Static.kt"); } + @Test @TestMetadata("nestedStatic.kt") public void testNestedStatic() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nestedStatic.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/simple.kt"); } + @Test @TestMetadata("transitiveChain.kt") public void testTransitiveChain() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/transitiveChain.kt"); } + @Test @TestMetadata("transitiveChainStatic.kt") public void testTransitiveChainStatic() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/transitiveChainStatic.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/reified/isCheck") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class IsCheck extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class IsCheck extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInIsCheck() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified/isCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("chain.kt") public void testChain() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/isCheck/chain.kt"); } + @Test @TestMetadata("nullable.kt") public void testNullable() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/isCheck/nullable.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/isCheck/simple.kt"); @@ -3398,518 +3753,577 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/signature") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Signature extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Signature extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInSignature() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/signature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("inProjectionSubstitution.kt") public void testInProjectionSubstitution() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/inProjectionSubstitution.kt"); } + @Test @TestMetadata("outProjectionSubstitution.kt") public void testOutProjectionSubstitution() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/outProjectionSubstitution.kt"); } + @Test @TestMetadata("recursion.kt") public void testRecursion() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/recursion.kt"); } + @Test @TestMetadata("sameFormalParameterName.kt") public void testSameFormalParameterName() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/sameFormalParameterName.kt"); } + @Test @TestMetadata("sameReifiedFormalParameterName.kt") public void testSameReifiedFormalParameterName() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/sameReifiedFormalParameterName.kt"); } + @Test @TestMetadata("starProjectionSubstitution.kt") public void testStarProjectionSubstitution() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/starProjectionSubstitution.kt"); } + @Test @TestMetadata("typeParameterInLambda.kt") public void testTypeParameterInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/typeParameterInLambda.kt"); } + @Test @TestMetadata("typeParametersSubstitution.kt") public void testTypeParametersSubstitution() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/typeParametersSubstitution.kt"); } + @Test @TestMetadata("typeParametersSubstitution2.kt") public void testTypeParametersSubstitution2() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/typeParametersSubstitution2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/simple") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Simple extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Simple extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInSimple() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/simple"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("captureAndArgumentIncompatibleTypes.kt") public void testCaptureAndArgumentIncompatibleTypes() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/captureAndArgumentIncompatibleTypes.kt"); } + @Test @TestMetadata("classObject.kt") public void testClassObject() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/classObject.kt"); } + @Test @TestMetadata("destructuring.kt") public void testDestructuring() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/destructuring.kt"); } + @Test @TestMetadata("destructuringIndexClash.kt") public void testDestructuringIndexClash() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/destructuringIndexClash.kt"); } + @Test @TestMetadata("extension.kt") public void testExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/extension.kt"); } + @Test @TestMetadata("extensionLambda.kt") public void testExtensionLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/extensionLambda.kt"); } + @Test @TestMetadata("funImportedFromObject.kt") public void testFunImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/funImportedFromObject.kt"); } + @Test @TestMetadata("inlineCallInInlineLambda.kt") public void testInlineCallInInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/inlineCallInInlineLambda.kt"); } + @Test @TestMetadata("kt17431.kt") public void testKt17431() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/kt17431.kt"); } + @Test @TestMetadata("kt28547.kt") public void testKt28547() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/kt28547.kt"); } + @Test @TestMetadata("kt28547_2.kt") public void testKt28547_2() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/kt28547_2.kt"); } + @Test @TestMetadata("params.kt") public void testParams() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/params.kt"); } + @Test @TestMetadata("propImportedFromObject.kt") public void testPropImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/propImportedFromObject.kt"); } + @Test @TestMetadata("rootConstructor.kt") public void testRootConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/rootConstructor.kt"); } + @Test @TestMetadata("safeCall.kt") public void testSafeCall() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/safeCall.kt"); } + @Test @TestMetadata("severalClosures.kt") public void testSeveralClosures() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/severalClosures.kt"); } + @Test @TestMetadata("severalUsage.kt") public void testSeveralUsage() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/severalUsage.kt"); } + @Test @TestMetadata("simpleDouble.kt") public void testSimpleDouble() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleDouble.kt"); } + @Test @TestMetadata("simpleEnum.kt") public void testSimpleEnum() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleEnum.kt"); } + @Test @TestMetadata("simpleGenerics.kt") public void testSimpleGenerics() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleGenerics.kt"); } + @Test @TestMetadata("simpleInt.kt") public void testSimpleInt() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleInt.kt"); } + @Test @TestMetadata("simpleLambda.kt") public void testSimpleLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleLambda.kt"); } + @Test @TestMetadata("simpleObject.kt") public void testSimpleObject() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleObject.kt"); } + @Test @TestMetadata("vararg.kt") public void testVararg() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/vararg.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Smap extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Smap extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInSmap() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("assertion.kt") public void testAssertion() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/assertion.kt"); } + @Test @TestMetadata("classCycle.kt") public void testClassCycle() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/classCycle.kt"); } + @Test @TestMetadata("classFromDefaultPackage.kt") public void testClassFromDefaultPackage() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/classFromDefaultPackage.kt"); } + @Test @TestMetadata("crossroutines.kt") public void testCrossroutines() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/crossroutines.kt"); } + @Test @TestMetadata("defaultFunction.kt") public void testDefaultFunction() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultFunction.kt"); } + @Test @TestMetadata("defaultFunctionWithInlineCall.kt") public void testDefaultFunctionWithInlineCall() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultFunctionWithInlineCall.kt"); } + @Test @TestMetadata("forInline.kt") public void testForInline() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/forInline.kt"); } + @Test @TestMetadata("interleavedFiles.kt") public void testInterleavedFiles() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/interleavedFiles.kt"); } + @Test @TestMetadata("kt23369.kt") public void testKt23369() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/kt23369.kt"); } + @Test @TestMetadata("kt23369_2.kt") public void testKt23369_2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/kt23369_2.kt"); } + @Test @TestMetadata("kt23369_3.kt") public void testKt23369_3() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/kt23369_3.kt"); } + @Test @TestMetadata("kt35006.kt") public void testKt35006() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/kt35006.kt"); } + @Test @TestMetadata("multiFileFacade.kt") public void testMultiFileFacade() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/multiFileFacade.kt"); } + @Test @TestMetadata("oneFile.kt") public void testOneFile() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/oneFile.kt"); } + @Test @TestMetadata("rangeFolding.kt") public void testRangeFolding() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/rangeFolding.kt"); } + @Test @TestMetadata("rangeFoldingInClass.kt") public void testRangeFoldingInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/rangeFoldingInClass.kt"); } + @Test @TestMetadata("smap.kt") public void testSmap() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/smap.kt"); } + @Test @TestMetadata("smapWithNewSyntax.kt") public void testSmapWithNewSyntax() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/smapWithNewSyntax.kt"); } + @Test @TestMetadata("smapWithOldSyntax.kt") public void testSmapWithOldSyntax() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/smapWithOldSyntax.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/anonymous") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Anonymous extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Anonymous extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInAnonymous() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt19175.kt") public void testKt19175() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/kt19175.kt"); } + @Test @TestMetadata("lambda.kt") public void testLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/lambda.kt"); } + @Test @TestMetadata("lambdaOnCallSite.kt") public void testLambdaOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/lambdaOnCallSite.kt"); } + @Test @TestMetadata("lambdaOnInlineCallSite.kt") public void testLambdaOnInlineCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/lambdaOnInlineCallSite.kt"); } + @Test @TestMetadata("object.kt") public void testObject() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/object.kt"); } + @Test @TestMetadata("objectOnCallSite.kt") public void testObjectOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnCallSite.kt"); } + @Test @TestMetadata("objectOnInlineCallSite.kt") public void testObjectOnInlineCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSite.kt"); } + @Test @TestMetadata("objectOnInlineCallSite2.kt") public void testObjectOnInlineCallSite2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSite2.kt"); } + @Test @TestMetadata("objectOnInlineCallSiteWithCapture.kt") public void testObjectOnInlineCallSiteWithCapture() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSiteWithCapture.kt"); } + @Test @TestMetadata("severalMappingsForDefaultFile.kt") public void testSeveralMappingsForDefaultFile() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/severalMappingsForDefaultFile.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/defaultLambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultLambda extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class DefaultLambda extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInDefaultLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/defaultLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("defaultLambdaInAnonymous.kt") public void testDefaultLambdaInAnonymous() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/defaultLambdaInAnonymous.kt"); } + @Test @TestMetadata("inlinInDefault.kt") public void testInlinInDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlinInDefault.kt"); } + @Test @TestMetadata("inlinInDefault2.kt") public void testInlinInDefault2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlinInDefault2.kt"); } + @Test @TestMetadata("inlineAnonymousInDefault.kt") public void testInlineAnonymousInDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlineAnonymousInDefault.kt"); } + @Test @TestMetadata("inlineAnonymousInDefault2.kt") public void testInlineAnonymousInDefault2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlineAnonymousInDefault2.kt"); } + @Test @TestMetadata("kt21827.kt") public void testKt21827() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/kt21827.kt"); } + @Test @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/nested.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/simple.kt"); } + @Test @TestMetadata("simple2.kt") public void testSimple2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/simple2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/inlineOnly") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineOnly extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class InlineOnly extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInInlineOnly() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/inlineOnly"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("noSmap.kt") public void testNoSmap() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/noSmap.kt"); } + @Test @TestMetadata("noSmapWithProperty.kt") public void testNoSmapWithProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/noSmapWithProperty.kt"); } + @Test @TestMetadata("reified.kt") public void testReified() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/reified.kt"); } + @Test @TestMetadata("reifiedProperty.kt") public void testReifiedProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/reifiedProperty.kt"); } + @Test @TestMetadata("stdlibInlineOnly.kt") public void testStdlibInlineOnly() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/stdlibInlineOnly.kt"); } + @Test @TestMetadata("stdlibInlineOnlyOneLine.kt") public void testStdlibInlineOnlyOneLine() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/stdlibInlineOnlyOneLine.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/newsmap") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Newsmap extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Newsmap extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInNewsmap() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/newsmap"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("differentMapping.kt") public void testDifferentMapping() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/newsmap/differentMapping.kt"); } + @Test @TestMetadata("mappingInInlineFunLambda.kt") public void testMappingInInlineFunLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/newsmap/mappingInInlineFunLambda.kt"); } + @Test @TestMetadata("mappingInSubInlineLambda.kt") public void testMappingInSubInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/newsmap/mappingInSubInlineLambda.kt"); } + @Test @TestMetadata("mappingInSubInlineLambdaSameFileInline.kt") public void testMappingInSubInlineLambdaSameFileInline() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/newsmap/mappingInSubInlineLambdaSameFileInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/resolve") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Resolve extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Resolve extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInResolve() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/resolve"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("inlineComponent.kt") public void testInlineComponent() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/resolve/inlineComponent.kt"); } + @Test @TestMetadata("inlineIterator.kt") public void testInlineIterator() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/resolve/inlineIterator.kt"); @@ -3917,621 +4331,695 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/special") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Special extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Special extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInSpecial() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/special"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("identityCheck.kt") public void testIdentityCheck() throws Exception { runTest("compiler/testData/codegen/boxInline/special/identityCheck.kt"); } + @Test @TestMetadata("ifBranches.kt") public void testIfBranches() throws Exception { runTest("compiler/testData/codegen/boxInline/special/ifBranches.kt"); } + @Test @TestMetadata("iinc.kt") public void testIinc() throws Exception { runTest("compiler/testData/codegen/boxInline/special/iinc.kt"); } + @Test @TestMetadata("inlineChain.kt") public void testInlineChain() throws Exception { runTest("compiler/testData/codegen/boxInline/special/inlineChain.kt"); } + @Test @TestMetadata("loopInStoreLoadChains.kt") public void testLoopInStoreLoadChains() throws Exception { runTest("compiler/testData/codegen/boxInline/special/loopInStoreLoadChains.kt"); } + @Test @TestMetadata("loopInStoreLoadChains2.kt") public void testLoopInStoreLoadChains2() throws Exception { runTest("compiler/testData/codegen/boxInline/special/loopInStoreLoadChains2.kt"); } + @Test @TestMetadata("plusAssign.kt") public void testPlusAssign() throws Exception { runTest("compiler/testData/codegen/boxInline/special/plusAssign.kt"); } + @Test @TestMetadata("stackHeightBug.kt") public void testStackHeightBug() throws Exception { runTest("compiler/testData/codegen/boxInline/special/stackHeightBug.kt"); } + @Test @TestMetadata("unusedInlineLambda.kt") public void testUnusedInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/special/unusedInlineLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/stackOnReturn") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class StackOnReturn extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class StackOnReturn extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInStackOnReturn() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/stackOnReturn"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("elvis.kt") public void testElvis() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/elvis.kt"); } + @Test @TestMetadata("ifThenElse.kt") public void testIfThenElse() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/ifThenElse.kt"); } + @Test @TestMetadata("kt11499.kt") public void testKt11499() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt11499.kt"); } + @Test @TestMetadata("kt17591.kt") public void testKt17591() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt17591.kt"); } + @Test @TestMetadata("kt17591a.kt") public void testKt17591a() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt17591a.kt"); } + @Test @TestMetadata("kt17591b.kt") public void testKt17591b() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt17591b.kt"); } + @Test @TestMetadata("mixedTypesOnStack1.kt") public void testMixedTypesOnStack1() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack1.kt"); } + @Test @TestMetadata("mixedTypesOnStack2.kt") public void testMixedTypesOnStack2() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack2.kt"); } + @Test @TestMetadata("mixedTypesOnStack3.kt") public void testMixedTypesOnStack3() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack3.kt"); } + @Test @TestMetadata("nonLocalReturn1.kt") public void testNonLocalReturn1() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn1.kt"); } + @Test @TestMetadata("nonLocalReturn2.kt") public void testNonLocalReturn2() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn2.kt"); } + @Test @TestMetadata("nonLocalReturn3.kt") public void testNonLocalReturn3() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn3.kt"); } + @Test @TestMetadata("poppedLocalReturn.kt") public void testPoppedLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/poppedLocalReturn.kt"); } + @Test @TestMetadata("poppedLocalReturn2.kt") public void testPoppedLocalReturn2() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/poppedLocalReturn2.kt"); } + @Test @TestMetadata("returnLong.kt") public void testReturnLong() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/returnLong.kt"); } + @Test @TestMetadata("tryFinally.kt") public void testTryFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/tryFinally.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Suspend extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Suspend extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInSuspend() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("capturedVariables.kt") public void testCapturedVariables() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/capturedVariables.kt"); } + @Test @TestMetadata("crossinlineSuspendLambdaInsideCrossinlineSuspendLambda.kt") public void testCrossinlineSuspendLambdaInsideCrossinlineSuspendLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/crossinlineSuspendLambdaInsideCrossinlineSuspendLambda.kt"); } + @Test @TestMetadata("debugMetadataCrossinline.kt") public void testDebugMetadataCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/debugMetadataCrossinline.kt"); } + @Test @TestMetadata("delegatedProperties.kt") public void testDelegatedProperties() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/delegatedProperties.kt"); } + @Test @TestMetadata("doubleRegenerationWithNonSuspendingLambda.kt") public void testDoubleRegenerationWithNonSuspendingLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/doubleRegenerationWithNonSuspendingLambda.kt"); } + @Test @TestMetadata("enclodingMethod.kt") public void testEnclodingMethod() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/enclodingMethod.kt"); } + @Test @TestMetadata("fileNameInMetadata.kt") public void testFileNameInMetadata() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/fileNameInMetadata.kt"); } + @Test @TestMetadata("inlineOrdinaryOfCrossinlineSuspend.kt") public void testInlineOrdinaryOfCrossinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfCrossinlineSuspend.kt"); } + @Test @TestMetadata("inlineOrdinaryOfNoinlineSuspend.kt") public void testInlineOrdinaryOfNoinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfNoinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendContinuation.kt") public void testInlineSuspendContinuation() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendContinuation.kt"); } + @Test @TestMetadata("inlineSuspendInMultifileClass.kt") public void testInlineSuspendInMultifileClass() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendInMultifileClass.kt"); } + @Test @TestMetadata("inlineSuspendOfCrossinlineOrdinary.kt") public void testInlineSuspendOfCrossinlineOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfCrossinlineSuspend.kt") public void testInlineSuspendOfCrossinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfNoinlineOrdinary.kt") public void testInlineSuspendOfNoinlineOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfNoinlineSuspend.kt") public void testInlineSuspendOfNoinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfOrdinary.kt") public void testInlineSuspendOfOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfSuspend.kt") public void testInlineSuspendOfSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfSuspend.kt"); } + @Test @TestMetadata("jvmName.kt") public void testJvmName() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/jvmName.kt"); } + @Test @TestMetadata("kt26658.kt") public void testKt26658() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/kt26658.kt"); } + @Test @TestMetadata("maxStackWithCrossinline.kt") public void testMaxStackWithCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/maxStackWithCrossinline.kt"); } + @Test @TestMetadata("multipleLocals.kt") public void testMultipleLocals() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/multipleLocals.kt"); } + @Test @TestMetadata("multipleSuspensionPoints.kt") public void testMultipleSuspensionPoints() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/multipleSuspensionPoints.kt"); } + @Test @TestMetadata("nestedMethodWith2XParameter.kt") public void testNestedMethodWith2XParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/nestedMethodWith2XParameter.kt"); } + @Test @TestMetadata("nonLocalReturn.kt") public void testNonLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/nonLocalReturn.kt"); } + @Test @TestMetadata("nonSuspendCrossinline.kt") public void testNonSuspendCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/nonSuspendCrossinline.kt"); } + @Test @TestMetadata("returnValue.kt") public void testReturnValue() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/returnValue.kt"); } + @Test @TestMetadata("tryCatchReceiver.kt") public void testTryCatchReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/tryCatchReceiver.kt"); } + @Test @TestMetadata("tryCatchStackTransform.kt") public void testTryCatchStackTransform() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/tryCatchStackTransform.kt"); } + @Test @TestMetadata("twiceRegeneratedAnonymousObject.kt") public void testTwiceRegeneratedAnonymousObject() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/twiceRegeneratedAnonymousObject.kt"); } + @Test @TestMetadata("twiceRegeneratedSuspendLambda.kt") public void testTwiceRegeneratedSuspendLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/twiceRegeneratedSuspendLambda.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/callableReference") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CallableReference extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class CallableReference extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInCallableReference() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("isAsReified.kt") public void testIsAsReified() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/isAsReified.kt"); } + @Test @TestMetadata("isAsReified2.kt") public void testIsAsReified2() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/isAsReified2.kt"); } + @Test @TestMetadata("nonTailCall.kt") public void testNonTailCall() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/nonTailCall.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/simple.kt"); } + @Test @TestMetadata("unitReturn.kt") public void testUnitReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/unitReturn.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/defaultParameter") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultParameter extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class DefaultParameter extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInDefaultParameter() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/defaultParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("defaultValueCrossinline.kt") public void testDefaultValueCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueCrossinline.kt"); } + @Test @TestMetadata("defaultValueInClass.kt") public void testDefaultValueInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInClass.kt"); } + @Test @TestMetadata("defaultValueInline.kt") public void testDefaultValueInline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInline.kt"); } + @Test @TestMetadata("defaultValueInlineFromMultiFileFacade.kt") public void testDefaultValueInlineFromMultiFileFacade() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInlineFromMultiFileFacade.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/inlineClass") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineClass extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class InlineClass extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInInlineClass() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("returnUnboxedDirect.kt") public void testReturnUnboxedDirect() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineClass/returnUnboxedDirect.kt"); } + @Test @TestMetadata("returnUnboxedResume.kt") public void testReturnUnboxedResume() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineClass/returnUnboxedResume.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineUsedAsNoinline extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class InlineUsedAsNoinline extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInInlineUsedAsNoinline() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("inlineOnly.kt") public void testInlineOnly() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/inlineOnly.kt"); } + @Test @TestMetadata("simpleNamed.kt") public void testSimpleNamed() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/simpleNamed.kt"); } + @Test @TestMetadata("withCapturedInlineLambda.kt") public void testWithCapturedInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/withCapturedInlineLambda.kt"); } + @Test @TestMetadata("withCapturedInlineLambda2.kt") public void testWithCapturedInlineLambda2() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/withCapturedInlineLambda2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/receiver") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Receiver extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Receiver extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInReceiver() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/receiver"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("inlineOrdinaryOfCrossinlineSuspend.kt") public void testInlineOrdinaryOfCrossinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfCrossinlineSuspend.kt"); } + @Test @TestMetadata("inlineOrdinaryOfNoinlineSuspend.kt") public void testInlineOrdinaryOfNoinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfNoinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfCrossinlineOrdinary.kt") public void testInlineSuspendOfCrossinlineOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfCrossinlineSuspend.kt") public void testInlineSuspendOfCrossinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfNoinlineOrdinary.kt") public void testInlineSuspendOfNoinlineOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfNoinlineSuspend.kt") public void testInlineSuspendOfNoinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfOrdinary.kt") public void testInlineSuspendOfOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfSuspend.kt") public void testInlineSuspendOfSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfSuspend.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/stateMachine") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class StateMachine extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class StateMachine extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInStateMachine() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/stateMachine"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("crossingCoroutineBoundaries.kt") public void testCrossingCoroutineBoundaries() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/crossingCoroutineBoundaries.kt"); } + @Test @TestMetadata("independentInline.kt") public void testIndependentInline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/independentInline.kt"); } + @Test @TestMetadata("innerLambda.kt") public void testInnerLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambda.kt"); } + @Test @TestMetadata("innerLambdaInsideLambda.kt") public void testInnerLambdaInsideLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaInsideLambda.kt"); } + @Test @TestMetadata("innerLambdaWithoutCrossinline.kt") public void testInnerLambdaWithoutCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaWithoutCrossinline.kt"); } + @Test @TestMetadata("innerMadness.kt") public void testInnerMadness() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadness.kt"); } + @Test @TestMetadata("innerMadnessCallSite.kt") public void testInnerMadnessCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadnessCallSite.kt"); } + @Test @TestMetadata("innerObject.kt") public void testInnerObject() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObject.kt"); } + @Test @TestMetadata("innerObjectInsideInnerObject.kt") public void testInnerObjectInsideInnerObject() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectInsideInnerObject.kt"); } + @Test @TestMetadata("innerObjectRetransformation.kt") public void testInnerObjectRetransformation() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectRetransformation.kt"); } + @Test @TestMetadata("innerObjectSeveralFunctions.kt") public void testInnerObjectSeveralFunctions() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectSeveralFunctions.kt"); } + @Test @TestMetadata("innerObjectWithoutCapturingCrossinline.kt") public void testInnerObjectWithoutCapturingCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectWithoutCapturingCrossinline.kt"); } + @Test @TestMetadata("insideObject.kt") public void testInsideObject() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/insideObject.kt"); } + @Test @TestMetadata("kt30708.kt") public void testKt30708() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/kt30708.kt"); } + @Test @TestMetadata("lambdaTransformation.kt") public void testLambdaTransformation() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/lambdaTransformation.kt"); } + @Test @TestMetadata("normalInline.kt") public void testNormalInline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/normalInline.kt"); } + @Test @TestMetadata("numberOfSuspentions.kt") public void testNumberOfSuspentions() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/numberOfSuspentions.kt"); } + @Test @TestMetadata("objectInsideLambdas.kt") public void testObjectInsideLambdas() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/objectInsideLambdas.kt"); } + @Test @TestMetadata("oneInlineTwoCaptures.kt") public void testOneInlineTwoCaptures() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/oneInlineTwoCaptures.kt"); } + @Test @TestMetadata("passLambda.kt") public void testPassLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/passLambda.kt"); } + @Test @TestMetadata("passParameter.kt") public void testPassParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/passParameter.kt"); } + @Test @TestMetadata("passParameterLambda.kt") public void testPassParameterLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/passParameterLambda.kt"); } + @Test @TestMetadata("unreachableSuspendMarker.kt") public void testUnreachableSuspendMarker() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/unreachableSuspendMarker.kt"); @@ -4539,110 +5027,121 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/syntheticAccessors") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class SyntheticAccessors extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class SyntheticAccessors extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInSyntheticAccessors() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/syntheticAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("constField.kt") public void testConstField() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/constField.kt"); } + @Test @TestMetadata("packagePrivateMembers.kt") public void testPackagePrivateMembers() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/packagePrivateMembers.kt"); } + @Test @TestMetadata("propertyModifiers.kt") public void testPropertyModifiers() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/propertyModifiers.kt"); } + @Test @TestMetadata("protectedMembers.kt") public void testProtectedMembers() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/protectedMembers.kt"); } + @Test @TestMetadata("protectedMembersFromSuper.kt") public void testProtectedMembersFromSuper() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/protectedMembersFromSuper.kt"); } + @Test @TestMetadata("superCall.kt") public void testSuperCall() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/superCall.kt"); } + @Test @TestMetadata("superCallFromMultipleSubclasses.kt") public void testSuperCallFromMultipleSubclasses() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/superCallFromMultipleSubclasses.kt"); } + @Test @TestMetadata("superProperty.kt") public void testSuperProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/superProperty.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class WithinInlineLambda extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class WithinInlineLambda extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInWithinInlineLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("directFieldAccess.kt") public void testDirectFieldAccess() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/directFieldAccess.kt"); } + @Test @TestMetadata("directFieldAccessInCrossInline.kt") public void testDirectFieldAccessInCrossInline() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/directFieldAccessInCrossInline.kt"); } + @Test @TestMetadata("privateCall.kt") public void testPrivateCall() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateCall.kt"); } + @Test @TestMetadata("privateInCrossInline.kt") public void testPrivateInCrossInline() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInCrossInline.kt"); } + @Test @TestMetadata("privateInDefaultStubArgument.kt") public void testPrivateInDefaultStubArgument() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInDefaultStubArgument.kt"); } + @Test @TestMetadata("protectedInCrossinline.kt") public void testProtectedInCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/protectedInCrossinline.kt"); } + @Test @TestMetadata("protectedMembersFromSuper.kt") public void testProtectedMembersFromSuper() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/protectedMembersFromSuper.kt"); } + @Test @TestMetadata("superCall.kt") public void testSuperCall() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superCall.kt"); } + @Test @TestMetadata("superInCrossInline.kt") public void testSuperInCrossInline() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superInCrossInline.kt"); @@ -4650,79 +5149,78 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/trait") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Trait extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Trait extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInTrait() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/trait"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("trait.kt") public void testTrait() throws Exception { runTest("compiler/testData/codegen/boxInline/trait/trait.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/tryCatchFinally") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class TryCatchFinally extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class TryCatchFinally extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInTryCatchFinally() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/tryCatchFinally"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt5863.kt") public void testKt5863() throws Exception { runTest("compiler/testData/codegen/boxInline/tryCatchFinally/kt5863.kt"); } + @Test @TestMetadata("tryCatch.kt") public void testTryCatch() throws Exception { runTest("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch.kt"); } + @Test @TestMetadata("tryCatch2.kt") public void testTryCatch2() throws Exception { runTest("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch2.kt"); } + @Test @TestMetadata("tryCatchFinally.kt") public void testTryCatchFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatchFinally.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/varargs") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Varargs extends AbstractIrCompileKotlinAgainstInlineKotlinTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Varargs extends AbstractIrCompileKotlinAgainstInlineKotlinTest { + @Test public void testAllFilesPresentInVarargs() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/varargs"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("kt17653.kt") public void testKt17653() throws Exception { runTest("compiler/testData/codegen/boxInline/varargs/kt17653.kt"); } + @Test @TestMetadata("varargAndDefaultParameters.kt") public void testVarargAndDefaultParameters() throws Exception { runTest("compiler/testData/codegen/boxInline/varargs/varargAndDefaultParameters.kt"); } + @Test @TestMetadata("varargAndDefaultParameters2.kt") public void testVarargAndDefaultParameters2() throws Exception { runTest("compiler/testData/codegen/boxInline/varargs/varargAndDefaultParameters2.kt"); diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/JvmIrAgainstOldBoxInlineTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmIrAgainstOldBoxInlineTestGenerated.java similarity index 86% rename from compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/JvmIrAgainstOldBoxInlineTestGenerated.java rename to compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmIrAgainstOldBoxInlineTestGenerated.java index f6403790381..aacdf74ede8 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/JvmIrAgainstOldBoxInlineTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmIrAgainstOldBoxInlineTestGenerated.java @@ -3,579 +3,651 @@ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ -package org.jetbrains.kotlin.codegen.ir; +package org.jetbrains.kotlin.test.runners.codegen; import com.intellij.testFramework.TestDataPath; -import org.jetbrains.kotlin.test.JUnit3RunnerWithInners; -import org.jetbrains.kotlin.test.KotlinTestUtils; import org.jetbrains.kotlin.test.util.KtTestUtil; import org.jetbrains.kotlin.test.TargetBackend; import org.jetbrains.kotlin.test.TestMetadata; -import org.junit.runner.RunWith; +import org.junit.jupiter.api.Nested; +import org.junit.jupiter.api.Test; import java.io.File; import java.util.regex.Pattern; -/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */ +/** This class is generated by {@link GenerateNewCompilerTests.kt}. DO NOT MODIFY MANUALLY */ @SuppressWarnings("all") @TestMetadata("compiler/testData/codegen/boxInline") @TestDataPath("$PROJECT_ROOT") -@RunWith(JUnit3RunnerWithInners.class) public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + @Test public void testAllFilesPresentInBoxInline() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class AnonymousObject extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class AnonymousObject extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInAnonymousObject() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("anonymousObjectInDefault.kt") public void testAnonymousObjectInDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectInDefault.kt"); } + @Test @TestMetadata("anonymousObjectOnCallSite.kt") public void testAnonymousObjectOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnCallSite.kt"); } + @Test @TestMetadata("anonymousObjectOnCallSiteSuperParams.kt") public void testAnonymousObjectOnCallSiteSuperParams() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnCallSiteSuperParams.kt"); } + @Test @TestMetadata("anonymousObjectOnDeclarationSite.kt") public void testAnonymousObjectOnDeclarationSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnDeclarationSite.kt"); } + @Test @TestMetadata("anonymousObjectOnDeclarationSiteSuperParams.kt") public void testAnonymousObjectOnDeclarationSiteSuperParams() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnDeclarationSiteSuperParams.kt"); } + @Test @TestMetadata("capturedLambdaInInline.kt") public void testCapturedLambdaInInline() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline.kt"); } + @Test @TestMetadata("capturedLambdaInInline2.kt") public void testCapturedLambdaInInline2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline2.kt"); } + @Test @TestMetadata("capturedLambdaInInline3.kt") public void testCapturedLambdaInInline3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline3.kt"); } + @Test @TestMetadata("capturedLambdaInInlineObject.kt") public void testCapturedLambdaInInlineObject() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInlineObject.kt"); } + @Test @TestMetadata("capturedLocalFun.kt") public void testCapturedLocalFun() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLocalFun.kt"); } + @Test @TestMetadata("capturedLocalFunRef.kt") public void testCapturedLocalFunRef() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLocalFunRef.kt"); } + @Test @TestMetadata("changingReturnType.kt") public void testChangingReturnType() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/changingReturnType.kt"); } + @Test @TestMetadata("constructOriginalInRegenerated.kt") public void testConstructOriginalInRegenerated() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/constructOriginalInRegenerated.kt"); } + @Test @TestMetadata("constructorVisibility.kt") public void testConstructorVisibility() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/constructorVisibility.kt"); } + @Test @TestMetadata("constructorVisibilityInConstLambda.kt") public void testConstructorVisibilityInConstLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/constructorVisibilityInConstLambda.kt"); } + @Test @TestMetadata("constructorVisibilityInLambda.kt") public void testConstructorVisibilityInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/constructorVisibilityInLambda.kt"); } + @Test @TestMetadata("defineClass.kt") public void testDefineClass() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt"); } + @Test @TestMetadata("functionExpression.kt") public void testFunctionExpression() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/functionExpression.kt"); } + @Test @TestMetadata("inlineCallInsideInlineLambda.kt") public void testInlineCallInsideInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/inlineCallInsideInlineLambda.kt"); } + @Test @TestMetadata("kt13133.kt") public void testKt13133() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt13133.kt"); } + @Test @TestMetadata("kt13182.kt") public void testKt13182() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt13182.kt"); } + @Test @TestMetadata("kt13374.kt") public void testKt13374() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt13374.kt"); } + @Test @TestMetadata("kt14011.kt") public void testKt14011() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt14011.kt"); } + @Test @TestMetadata("kt14011_2.kt") public void testKt14011_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt14011_2.kt"); } + @Test @TestMetadata("kt14011_3.kt") public void testKt14011_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt14011_3.kt"); } + @Test @TestMetadata("kt15751.kt") public void testKt15751() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt15751.kt"); } + @Test @TestMetadata("kt16193.kt") public void testKt16193() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt16193.kt"); } + @Test @TestMetadata("kt17972.kt") public void testKt17972() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972.kt"); } + @Test @TestMetadata("kt17972_2.kt") public void testKt17972_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_2.kt"); } + @Test @TestMetadata("kt17972_3.kt") public void testKt17972_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_3.kt"); } + @Test @TestMetadata("kt17972_4.kt") public void testKt17972_4() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_4.kt"); } + @Test @TestMetadata("kt17972_5.kt") public void testKt17972_5() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_5.kt"); } + @Test @TestMetadata("kt17972_super.kt") public void testKt17972_super() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_super.kt"); } + @Test @TestMetadata("kt17972_super2.kt") public void testKt17972_super2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_super2.kt"); } + @Test @TestMetadata("kt17972_super3.kt") public void testKt17972_super3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_super3.kt"); } + @Test @TestMetadata("kt19389.kt") public void testKt19389() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19389.kt"); } + @Test @TestMetadata("kt19399.kt") public void testKt19399() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19399.kt"); } + @Test @TestMetadata("kt19434.kt") public void testKt19434() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19434.kt"); } + @Test @TestMetadata("kt19434_2.kt") public void testKt19434_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19434_2.kt"); } + @Test @TestMetadata("kt19723.kt") public void testKt19723() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19723.kt"); } + @Test @TestMetadata("kt29595.kt") public void testKt29595() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt29595.kt"); } + @Test @TestMetadata("kt34656.kt") public void testKt34656() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt34656.kt"); } + @Test @TestMetadata("kt38197.kt") public void testKt38197() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt"); } + @Test @TestMetadata("kt42815.kt") public void testKt42815() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt42815.kt"); } + @Test @TestMetadata("kt42815_delegated.kt") public void testKt42815_delegated() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt42815_delegated.kt"); } + @Test @TestMetadata("kt6007.kt") public void testKt6007() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6007.kt"); } + @Test @TestMetadata("kt6552.kt") public void testKt6552() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6552.kt"); } + @Test @TestMetadata("kt8133.kt") public void testKt8133() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt8133.kt"); } + @Test @TestMetadata("kt9064.kt") public void testKt9064() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9064.kt"); } + @Test @TestMetadata("kt9064v2.kt") public void testKt9064v2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9064v2.kt"); } + @Test @TestMetadata("kt9591.kt") public void testKt9591() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9591.kt"); } + @Test @TestMetadata("kt9877.kt") public void testKt9877() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9877.kt"); } + @Test @TestMetadata("kt9877_2.kt") public void testKt9877_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9877_2.kt"); } + @Test @TestMetadata("objectInLambdaCapturesAnotherObject.kt") public void testObjectInLambdaCapturesAnotherObject() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/objectInLambdaCapturesAnotherObject.kt"); } + @Test @TestMetadata("safeCall.kt") public void testSafeCall() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/safeCall.kt"); } + @Test @TestMetadata("safeCall_2.kt") public void testSafeCall_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/safeCall_2.kt"); } + @Test @TestMetadata("sam.kt") public void testSam() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam.kt"); } + @Test @TestMetadata("sharedFromCrossinline.kt") public void testSharedFromCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sharedFromCrossinline.kt"); } + @Test @TestMetadata("superConstructorWithObjectParameter.kt") public void testSuperConstructorWithObjectParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/superConstructorWithObjectParameter.kt"); } + @Test @TestMetadata("typeInfo.kt") public void testTypeInfo() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/typeInfo.kt"); } + @Test @TestMetadata("withInlineMethod.kt") public void testWithInlineMethod() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/withInlineMethod.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/enumWhen") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class EnumWhen extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class EnumWhen extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInEnumWhen() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/enumWhen"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("callSite.kt") public void testCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/callSite.kt"); } + @Test @TestMetadata("declSite.kt") public void testDeclSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/declSite.kt"); } + @Test @TestMetadata("declSiteSeveralMappings.kt") public void testDeclSiteSeveralMappings() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/declSiteSeveralMappings.kt"); } + @Test @TestMetadata("declSiteSeveralMappingsDifOrder.kt") public void testDeclSiteSeveralMappingsDifOrder() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/declSiteSeveralMappingsDifOrder.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ProperRecapturing extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class ProperRecapturing extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInProperRecapturing() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("inlineChain.kt") public void testInlineChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/inlineChain.kt"); } + @Test @TestMetadata("lambdaChain.kt") public void testLambdaChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChain.kt"); } + @Test @TestMetadata("lambdaChainSimple.kt") public void testLambdaChainSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChainSimple.kt"); } + @Test @TestMetadata("lambdaChain_2.kt") public void testLambdaChain_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChain_2.kt"); } + @Test @TestMetadata("lambdaChain_3.kt") public void testLambdaChain_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChain_3.kt"); } + @Test @TestMetadata("noInlineLambda.kt") public void testNoInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/noInlineLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ProperRecapturingInClass extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class ProperRecapturingInClass extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInProperRecapturingInClass() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("inlineChain.kt") public void testInlineChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/inlineChain.kt"); } + @Test @TestMetadata("inlinelambdaChain.kt") public void testInlinelambdaChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/inlinelambdaChain.kt"); } + @Test @TestMetadata("lambdaChain.kt") public void testLambdaChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain.kt"); } + @Test @TestMetadata("lambdaChainSimple.kt") public void testLambdaChainSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChainSimple.kt"); } + @Test @TestMetadata("lambdaChainSimple_2.kt") public void testLambdaChainSimple_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChainSimple_2.kt"); } + @Test @TestMetadata("lambdaChain_2.kt") public void testLambdaChain_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain_2.kt"); } + @Test @TestMetadata("lambdaChain_3.kt") public void testLambdaChain_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain_3.kt"); } + @Test @TestMetadata("noCapturedThisOnCallSite.kt") public void testNoCapturedThisOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/noCapturedThisOnCallSite.kt"); } + @Test @TestMetadata("noInlineLambda.kt") public void testNoInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/noInlineLambda.kt"); } + @Test @TestMetadata("twoInlineLambda.kt") public void testTwoInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/twoInlineLambda.kt"); } + @Test @TestMetadata("twoInlineLambdaComplex.kt") public void testTwoInlineLambdaComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/twoInlineLambdaComplex.kt"); } + @Test @TestMetadata("twoInlineLambdaComplex_2.kt") public void testTwoInlineLambdaComplex_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/twoInlineLambdaComplex_2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/sam") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Sam extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Sam extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInSam() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("anonymousObjectToSam.kt") public void testAnonymousObjectToSam() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/anonymousObjectToSam.kt"); } + @Test @TestMetadata("kt17091.kt") public void testKt17091() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt17091.kt"); } + @Test @TestMetadata("kt21671.kt") public void testKt21671() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671.kt"); } + @Test @TestMetadata("kt21671_2.kt") public void testKt21671_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671_2.kt"); } + @Test @TestMetadata("kt21671_3.kt") public void testKt21671_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671_3.kt"); } + @Test @TestMetadata("kt22304.kt") public void testKt22304() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt22304.kt"); } + @Test @TestMetadata("samOnCallSite.kt") public void testSamOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/samOnCallSite.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class TwoCapturedReceivers extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class TwoCapturedReceivers extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInTwoCapturedReceivers() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("kt8668.kt") public void testKt8668() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668.kt"); } + @Test @TestMetadata("kt8668_2.kt") public void testKt8668_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_2.kt"); } + @Test @TestMetadata("kt8668_3.kt") public void testKt8668_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_3.kt"); } + @Test @TestMetadata("twoDifferentDispatchReceivers.kt") public void testTwoDifferentDispatchReceivers() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/twoDifferentDispatchReceivers.kt"); } + @Test @TestMetadata("twoExtensionReceivers.kt") public void testTwoExtensionReceivers() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/twoExtensionReceivers.kt"); @@ -583,470 +655,525 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/argumentOrder") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ArgumentOrder extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class ArgumentOrder extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInArgumentOrder() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/argumentOrder"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("boundFunctionReference.kt") public void testBoundFunctionReference() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/boundFunctionReference.kt"); } + @Test @TestMetadata("boundFunctionReference2.kt") public void testBoundFunctionReference2() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/boundFunctionReference2.kt"); } + @Test @TestMetadata("captured.kt") public void testCaptured() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/captured.kt"); } + @Test @TestMetadata("capturedInExtension.kt") public void testCapturedInExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/capturedInExtension.kt"); } + @Test @TestMetadata("defaultParametersAndLastVararg.kt") public void testDefaultParametersAndLastVararg() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/defaultParametersAndLastVararg.kt"); } + @Test @TestMetadata("defaultParametersAndLastVarargWithCorrectOrder.kt") public void testDefaultParametersAndLastVarargWithCorrectOrder() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/defaultParametersAndLastVarargWithCorrectOrder.kt"); } + @Test @TestMetadata("extension.kt") public void testExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/extension.kt"); } + @Test @TestMetadata("extensionInClass.kt") public void testExtensionInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/extensionInClass.kt"); } + @Test @TestMetadata("lambdaMigration.kt") public void testLambdaMigration() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/lambdaMigration.kt"); } + @Test @TestMetadata("lambdaMigrationInClass.kt") public void testLambdaMigrationInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/lambdaMigrationInClass.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/simple.kt"); } + @Test @TestMetadata("simpleInClass.kt") public void testSimpleInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/simpleInClass.kt"); } + @Test @TestMetadata("varargAndDefaultParameters.kt") public void testVarargAndDefaultParameters() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/varargAndDefaultParameters.kt"); } + @Test @TestMetadata("varargAndDefaultParametersWithCorrectOrder.kt") public void testVarargAndDefaultParametersWithCorrectOrder() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/varargAndDefaultParametersWithCorrectOrder.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/arrayConvention") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ArrayConvention extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class ArrayConvention extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInArrayConvention() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/arrayConvention"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("simpleAccess.kt") public void testSimpleAccess() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccess.kt"); } + @Test @TestMetadata("simpleAccessInClass.kt") public void testSimpleAccessInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessInClass.kt"); } + @Test @TestMetadata("simpleAccessWithDefault.kt") public void testSimpleAccessWithDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithDefault.kt"); } + @Test @TestMetadata("simpleAccessWithDefaultInClass.kt") public void testSimpleAccessWithDefaultInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithDefaultInClass.kt"); } + @Test @TestMetadata("simpleAccessWithLambda.kt") public void testSimpleAccessWithLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithLambda.kt"); } + @Test @TestMetadata("simpleAccessWithLambdaInClass.kt") public void testSimpleAccessWithLambdaInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithLambdaInClass.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/assert") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Assert extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Assert extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInAssert() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/assert"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("jvmAssertInlineFunctionAssertionsDisabled.kt") public void testJvmAssertInlineFunctionAssertionsDisabled() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmAssertInlineFunctionAssertionsDisabled.kt"); } + @Test @TestMetadata("jvmAssertInlineFunctionAssertionsEnabled.kt") public void testJvmAssertInlineFunctionAssertionsEnabled() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmAssertInlineFunctionAssertionsEnabled.kt"); } + @Test @TestMetadata("jvmAssertInlineLambda.kt") public void testJvmAssertInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmAssertInlineLambda.kt"); } + @Test @TestMetadata("jvmClassInitializer.kt") public void testJvmClassInitializer() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmClassInitializer.kt"); } + @Test @TestMetadata("jvmCompanion.kt") public void testJvmCompanion() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCompanion.kt"); } + @Test @TestMetadata("jvmCrossinlineLambda.kt") public void testJvmCrossinlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambda.kt"); } + @Test @TestMetadata("jvmCrossinlineLambda2.kt") public void testJvmCrossinlineLambda2() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambda2.kt"); } + @Test @TestMetadata("jvmCrossinlineLambdaDeclarationSite.kt") public void testJvmCrossinlineLambdaDeclarationSite() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambdaDeclarationSite.kt"); } + @Test @TestMetadata("jvmCrossinlineLambdaDeclarationSiteOnly.kt") public void testJvmCrossinlineLambdaDeclarationSiteOnly() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambdaDeclarationSiteOnly.kt"); } + @Test @TestMetadata("jvmCrossinlineSAMDeclarationSite.kt") public void testJvmCrossinlineSAMDeclarationSite() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineSAMDeclarationSite.kt"); } + @Test @TestMetadata("jvmDoubleInline.kt") public void testJvmDoubleInline() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmDoubleInline.kt"); } + @Test @TestMetadata("jvmInlineUsedAsNoinline.kt") public void testJvmInlineUsedAsNoinline() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmInlineUsedAsNoinline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/builders") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Builders extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Builders extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInBuilders() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/builders"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("builders.kt") public void testBuilders() throws Exception { runTest("compiler/testData/codegen/boxInline/builders/builders.kt"); } + @Test @TestMetadata("buildersAndLambdaCapturing.kt") public void testBuildersAndLambdaCapturing() throws Exception { runTest("compiler/testData/codegen/boxInline/builders/buildersAndLambdaCapturing.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/bytecodePreprocessing") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class BytecodePreprocessing extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class BytecodePreprocessing extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInBytecodePreprocessing() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/bytecodePreprocessing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("apiVersionAtLeast1.kt") public void testApiVersionAtLeast1() throws Exception { runTest("compiler/testData/codegen/boxInline/bytecodePreprocessing/apiVersionAtLeast1.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/callableReference") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CallableReference extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class CallableReference extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test @TestMetadata("adapted.kt") public void testAdapted() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/adapted.kt"); } + @Test public void testAllFilesPresentInCallableReference() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("classLevel.kt") public void testClassLevel() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/classLevel.kt"); } + @Test @TestMetadata("classLevel2.kt") public void testClassLevel2() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/classLevel2.kt"); } + @Test @TestMetadata("constructor.kt") public void testConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/constructor.kt"); } + @Test @TestMetadata("innerGenericConstuctor.kt") public void testInnerGenericConstuctor() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/innerGenericConstuctor.kt"); } + @Test @TestMetadata("intrinsic.kt") public void testIntrinsic() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/intrinsic.kt"); } + @Test @TestMetadata("jvmFieldProperty.kt") public void testJvmFieldProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/jvmFieldProperty.kt"); } + @Test @TestMetadata("kt15449.kt") public void testKt15449() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/kt15449.kt"); } + @Test @TestMetadata("kt15751_2.kt") public void testKt15751_2() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/kt15751_2.kt"); } + @Test @TestMetadata("kt16411.kt") public void testKt16411() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/kt16411.kt"); } + @Test @TestMetadata("kt35101.kt") public void testKt35101() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/kt35101.kt"); } + @Test @TestMetadata("propertyIntrinsic.kt") public void testPropertyIntrinsic() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/propertyIntrinsic.kt"); } + @Test @TestMetadata("propertyReference.kt") public void testPropertyReference() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/propertyReference.kt"); } + @Test @TestMetadata("topLevel.kt") public void testTopLevel() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/topLevel.kt"); } + @Test @TestMetadata("topLevelExtension.kt") public void testTopLevelExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/topLevelExtension.kt"); } + @Test @TestMetadata("topLevelProperty.kt") public void testTopLevelProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/topLevelProperty.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/callableReference/bound") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Bound extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Bound extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInBound() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/callableReference/bound"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("classProperty.kt") public void testClassProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/classProperty.kt"); } + @Test @TestMetadata("emptyLhsFunction.kt") public void testEmptyLhsFunction() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsFunction.kt"); } + @Test @TestMetadata("emptyLhsOnInlineProperty.kt") public void testEmptyLhsOnInlineProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsOnInlineProperty.kt"); } + @Test @TestMetadata("emptyLhsProperty.kt") public void testEmptyLhsProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsProperty.kt"); } + @Test @TestMetadata("expression.kt") public void testExpression() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/expression.kt"); } + @Test @TestMetadata("extensionReceiver.kt") public void testExtensionReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/extensionReceiver.kt"); } + @Test @TestMetadata("filter.kt") public void testFilter() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/filter.kt"); } + @Test @TestMetadata("inlineValueParameterInsteadOfReceiver.kt") public void testInlineValueParameterInsteadOfReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/inlineValueParameterInsteadOfReceiver.kt"); } + @Test @TestMetadata("innerGenericConstuctor.kt") public void testInnerGenericConstuctor() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/innerGenericConstuctor.kt"); } + @Test @TestMetadata("intrinsic.kt") public void testIntrinsic() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/intrinsic.kt"); } + @Test @TestMetadata("jvmFieldProperty.kt") public void testJvmFieldProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/jvmFieldProperty.kt"); } + @Test @TestMetadata("kt18728.kt") public void testKt18728() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728.kt"); } + @Test @TestMetadata("kt18728_2.kt") public void testKt18728_2() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_2.kt"); } + @Test @TestMetadata("kt18728_3.kt") public void testKt18728_3() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_3.kt"); } + @Test @TestMetadata("kt18728_4.kt") public void testKt18728_4() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_4.kt"); } + @Test @TestMetadata("lambdaOnLhs.kt") public void testLambdaOnLhs() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/lambdaOnLhs.kt"); } + @Test @TestMetadata("map.kt") public void testMap() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/map.kt"); } + @Test @TestMetadata("mixed.kt") public void testMixed() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/mixed.kt"); } + @Test @TestMetadata("objectProperty.kt") public void testObjectProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/objectProperty.kt"); } + @Test @TestMetadata("propertyImportedFromObject.kt") public void testPropertyImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/propertyImportedFromObject.kt"); } + @Test @TestMetadata("sideEffect.kt") public void testSideEffect() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/sideEffect.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/simple.kt"); } + @Test @TestMetadata("simpleVal.kt") public void testSimpleVal() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/simpleVal.kt"); } + @Test @TestMetadata("simpleVal2.kt") public void testSimpleVal2() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/simpleVal2.kt"); } + @Test @TestMetadata("topLevelExtensionProperty.kt") public void testTopLevelExtensionProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/topLevelExtensionProperty.kt"); @@ -1054,649 +1181,740 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/capture") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Capture extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Capture extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInCapture() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/capture"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("captureInlinable.kt") public void testCaptureInlinable() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/captureInlinable.kt"); } + @Test @TestMetadata("captureInlinableAndOther.kt") public void testCaptureInlinableAndOther() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/captureInlinableAndOther.kt"); } + @Test @TestMetadata("captureThisAndReceiver.kt") public void testCaptureThisAndReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/captureThisAndReceiver.kt"); } + @Test @TestMetadata("generics.kt") public void testGenerics() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/generics.kt"); } + @Test @TestMetadata("simpleCapturingInClass.kt") public void testSimpleCapturingInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/simpleCapturingInClass.kt"); } + @Test @TestMetadata("simpleCapturingInPackage.kt") public void testSimpleCapturingInPackage() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/simpleCapturingInPackage.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/complex") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Complex extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Complex extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInComplex() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/complex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("closureChain.kt") public void testClosureChain() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/closureChain.kt"); } + @Test @TestMetadata("forEachLine.kt") public void testForEachLine() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/forEachLine.kt"); } + @Test @TestMetadata("kt44429.kt") public void testKt44429() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/kt44429.kt"); } + @Test @TestMetadata("lambdaInLambda.kt") public void testLambdaInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/lambdaInLambda.kt"); } + @Test @TestMetadata("swapAndWith.kt") public void testSwapAndWith() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/swapAndWith.kt"); } + @Test @TestMetadata("swapAndWith2.kt") public void testSwapAndWith2() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/swapAndWith2.kt"); } + @Test @TestMetadata("use.kt") public void testUse() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/use.kt"); } + @Test @TestMetadata("with.kt") public void testWith() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/with.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/complexStack") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ComplexStack extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class ComplexStack extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInComplexStack() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/complexStack"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("asCheck.kt") public void testAsCheck() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/asCheck.kt"); } + @Test @TestMetadata("asCheck2.kt") public void testAsCheck2() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/asCheck2.kt"); } + @Test @TestMetadata("breakContinueInInlineLambdaArgument.kt") public void testBreakContinueInInlineLambdaArgument() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/breakContinueInInlineLambdaArgument.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simple.kt"); } + @Test @TestMetadata("simple2.kt") public void testSimple2() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simple2.kt"); } + @Test @TestMetadata("simple3.kt") public void testSimple3() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simple3.kt"); } + @Test @TestMetadata("simple4.kt") public void testSimple4() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simple4.kt"); } + @Test @TestMetadata("simpleExtension.kt") public void testSimpleExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simpleExtension.kt"); } + @Test @TestMetadata("spillConstructorArgumentsAndInlineLambdaParameter.kt") public void testSpillConstructorArgumentsAndInlineLambdaParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/spillConstructorArgumentsAndInlineLambdaParameter.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/contracts") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Contracts extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Contracts extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInContracts() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/contracts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("cfgDependendValInitialization.kt") public void testCfgDependendValInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/cfgDependendValInitialization.kt"); } + @Test @TestMetadata("complexInitializer.kt") public void testComplexInitializer() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/complexInitializer.kt"); } + @Test @TestMetadata("complexInitializerWithStackTransformation.kt") public void testComplexInitializerWithStackTransformation() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/complexInitializerWithStackTransformation.kt"); } + @Test @TestMetadata("crossinlineCallableReference.kt") public void testCrossinlineCallableReference() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/crossinlineCallableReference.kt"); } + @Test @TestMetadata("definiteLongValInitialization.kt") public void testDefiniteLongValInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/definiteLongValInitialization.kt"); } + @Test @TestMetadata("definiteNestedValInitialization.kt") public void testDefiniteNestedValInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/definiteNestedValInitialization.kt"); } + @Test @TestMetadata("definiteValInitInInitializer.kt") public void testDefiniteValInitInInitializer() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/definiteValInitInInitializer.kt"); } + @Test @TestMetadata("definiteValInitialization.kt") public void testDefiniteValInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/definiteValInitialization.kt"); } + @Test @TestMetadata("exactlyOnceCrossinline.kt") public void testExactlyOnceCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline.kt"); } + @Test @TestMetadata("exactlyOnceCrossinline2.kt") public void testExactlyOnceCrossinline2() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline2.kt"); } + @Test @TestMetadata("exactlyOnceNoinline.kt") public void testExactlyOnceNoinline() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceNoinline.kt"); } + @Test @TestMetadata("nonLocalReturn.kt") public void testNonLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/nonLocalReturn.kt"); } + @Test @TestMetadata("nonLocalReturnWithCycle.kt") public void testNonLocalReturnWithCycle() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/nonLocalReturnWithCycle.kt"); } + @Test @TestMetadata("propertyInitialization.kt") public void testPropertyInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/propertyInitialization.kt"); } + @Test @TestMetadata("valInitializationAndUsageInNestedLambda.kt") public void testValInitializationAndUsageInNestedLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/valInitializationAndUsageInNestedLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/defaultValues") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultValues extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class DefaultValues extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test @TestMetadata("33Parameters.kt") public void test33Parameters() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/33Parameters.kt"); } + @Test @TestMetadata("33ParametersInConstructor.kt") public void test33ParametersInConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/33ParametersInConstructor.kt"); } + @Test public void testAllFilesPresentInDefaultValues() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("defaultInExtension.kt") public void testDefaultInExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/defaultInExtension.kt"); } + @Test @TestMetadata("defaultMethod.kt") public void testDefaultMethod() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/defaultMethod.kt"); } + @Test @TestMetadata("defaultMethodInClass.kt") public void testDefaultMethodInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/defaultMethodInClass.kt"); } + @Test @TestMetadata("defaultParamRemapping.kt") public void testDefaultParamRemapping() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/defaultParamRemapping.kt"); } + @Test @TestMetadata("inlineInDefaultParameter.kt") public void testInlineInDefaultParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/inlineInDefaultParameter.kt"); } + @Test @TestMetadata("inlineLambdaInNoInlineDefault.kt") public void testInlineLambdaInNoInlineDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/inlineLambdaInNoInlineDefault.kt"); } + @Test @TestMetadata("kt11479.kt") public void testKt11479() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt11479.kt"); } + @Test @TestMetadata("kt11479InlinedDefaultParameter.kt") public void testKt11479InlinedDefaultParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt11479InlinedDefaultParameter.kt"); } + @Test @TestMetadata("kt14564.kt") public void testKt14564() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564.kt"); } + @Test @TestMetadata("kt14564_2.kt") public void testKt14564_2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564_2.kt"); } + @Test @TestMetadata("kt16496.kt") public void testKt16496() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt16496.kt"); } + @Test @TestMetadata("kt18689.kt") public void testKt18689() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689.kt"); } + @Test @TestMetadata("kt18689_2.kt") public void testKt18689_2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_2.kt"); } + @Test @TestMetadata("kt18689_3.kt") public void testKt18689_3() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_3.kt"); } + @Test @TestMetadata("kt18689_4.kt") public void testKt18689_4() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_4.kt"); } + @Test @TestMetadata("kt5685.kt") public void testKt5685() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt5685.kt"); } + @Test @TestMetadata("simpleDefaultMethod.kt") public void testSimpleDefaultMethod() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/simpleDefaultMethod.kt"); } + @Test @TestMetadata("varArgNoInline.kt") public void testVarArgNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/varArgNoInline.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LambdaInlining extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class LambdaInlining extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInLambdaInlining() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("checkLambdaClassIsPresent.kt") public void testCheckLambdaClassIsPresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkLambdaClassIsPresent.kt"); } + @Test @TestMetadata("checkLambdaClassesArePresent.kt") public void testCheckLambdaClassesArePresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkLambdaClassesArePresent.kt"); } + @Test @TestMetadata("checkObjectClassIsPresent.kt") public void testCheckObjectClassIsPresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkObjectClassIsPresent.kt"); } + @Test @TestMetadata("checkStaticLambdaClassIsPresent.kt") public void testCheckStaticLambdaClassIsPresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticLambdaClassIsPresent.kt"); } + @Test @TestMetadata("checkStaticLambdaClassesArePresent.kt") public void testCheckStaticLambdaClassesArePresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticLambdaClassesArePresent.kt"); } + @Test @TestMetadata("checkStaticObjectClassIsPresent.kt") public void testCheckStaticObjectClassIsPresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticObjectClassIsPresent.kt"); } + @Test @TestMetadata("defaultCallInDefaultLambda.kt") public void testDefaultCallInDefaultLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultCallInDefaultLambda.kt"); } + @Test @TestMetadata("defaultLambdaInNoInline.kt") public void testDefaultLambdaInNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultLambdaInNoInline.kt"); } + @Test @TestMetadata("differentInvokeSignature.kt") public void testDifferentInvokeSignature() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/differentInvokeSignature.kt"); } + @Test @TestMetadata("genericLambda.kt") public void testGenericLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/genericLambda.kt"); } + @Test @TestMetadata("instanceCapturedInClass.kt") public void testInstanceCapturedInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInClass.kt"); } + @Test @TestMetadata("instanceCapturedInInterface.kt") public void testInstanceCapturedInInterface() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInInterface.kt"); } + @Test @TestMetadata("jvmStaticDefault.kt") public void testJvmStaticDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/jvmStaticDefault.kt"); } + @Test @TestMetadata("kt21827.kt") public void testKt21827() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21827.kt"); } + @Test @TestMetadata("kt21946.kt") public void testKt21946() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21946.kt"); } + @Test @TestMetadata("kt24477.kt") public void testKt24477() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt24477.kt"); } + @Test @TestMetadata("kt25106.kt") public void testKt25106() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt25106.kt"); } + @Test @TestMetadata("kt26636.kt") public void testKt26636() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt26636.kt"); } + @Test @TestMetadata("noInline.kt") public void testNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/noInline.kt"); } + @Test @TestMetadata("nonDefaultInlineInNoInline.kt") public void testNonDefaultInlineInNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/nonDefaultInlineInNoInline.kt"); } + @Test @TestMetadata("receiverClash.kt") public void testReceiverClash() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash.kt"); } + @Test @TestMetadata("receiverClash2.kt") public void testReceiverClash2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash2.kt"); } + @Test @TestMetadata("receiverClashInClass.kt") public void testReceiverClashInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass.kt"); } + @Test @TestMetadata("receiverClashInClass2.kt") public void testReceiverClashInClass2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass2.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simple.kt"); } + @Test @TestMetadata("simpleErased.kt") public void testSimpleErased() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErased.kt"); } + @Test @TestMetadata("simpleErasedStaticInstance.kt") public void testSimpleErasedStaticInstance() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErasedStaticInstance.kt"); } + @Test @TestMetadata("simpleExtension.kt") public void testSimpleExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleExtension.kt"); } + @Test @TestMetadata("simpleGeneric.kt") public void testSimpleGeneric() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleGeneric.kt"); } + @Test @TestMetadata("simpleStaticInstance.kt") public void testSimpleStaticInstance() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleStaticInstance.kt"); } + @Test @TestMetadata("thisClash.kt") public void testThisClash() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClash.kt"); } + @Test @TestMetadata("thisClashInClass.kt") public void testThisClashInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClashInClass.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CallableReferences extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class CallableReferences extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInCallableReferences() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("boundFunctionReference.kt") public void testBoundFunctionReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReference.kt"); } + @Test @TestMetadata("boundFunctionReferenceOnInt.kt") public void testBoundFunctionReferenceOnInt() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnInt.kt"); } + @Test @TestMetadata("boundFunctionReferenceOnLong.kt") public void testBoundFunctionReferenceOnLong() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnLong.kt"); } + @Test @TestMetadata("boundPropertyReference.kt") public void testBoundPropertyReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReference.kt"); } + @Test @TestMetadata("boundPropertyReferenceOnInt.kt") public void testBoundPropertyReferenceOnInt() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnInt.kt"); } + @Test @TestMetadata("boundPropertyReferenceOnLong.kt") public void testBoundPropertyReferenceOnLong() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnLong.kt"); } + @Test @TestMetadata("constuctorReference.kt") public void testConstuctorReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/constuctorReference.kt"); } + @Test @TestMetadata("differentInvokeSignature.kt") public void testDifferentInvokeSignature() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature.kt"); } + @Test @TestMetadata("differentInvokeSignature2.kt") public void testDifferentInvokeSignature2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature2.kt"); } + @Test @TestMetadata("functionImportedFromObject.kt") public void testFunctionImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionImportedFromObject.kt"); } + @Test @TestMetadata("functionReference.kt") public void testFunctionReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReference.kt"); } + @Test @TestMetadata("functionReferenceFromClass.kt") public void testFunctionReferenceFromClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromClass.kt"); } + @Test @TestMetadata("functionReferenceFromObject.kt") public void testFunctionReferenceFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromObject.kt"); } + @Test @TestMetadata("innerClassConstuctorReference.kt") public void testInnerClassConstuctorReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/innerClassConstuctorReference.kt"); } + @Test @TestMetadata("mutableBoundPropertyReferenceFromClass.kt") public void testMutableBoundPropertyReferenceFromClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutableBoundPropertyReferenceFromClass.kt"); } + @Test @TestMetadata("mutablePropertyReferenceFromClass.kt") public void testMutablePropertyReferenceFromClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutablePropertyReferenceFromClass.kt"); } + @Test @TestMetadata("privateFunctionReference.kt") public void testPrivateFunctionReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privateFunctionReference.kt"); } + @Test @TestMetadata("privatePropertyReference.kt") public void testPrivatePropertyReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privatePropertyReference.kt"); } + @Test @TestMetadata("propertyImportedFromObject.kt") public void testPropertyImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyImportedFromObject.kt"); } + @Test @TestMetadata("propertyReference.kt") public void testPropertyReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReference.kt"); } + @Test @TestMetadata("propertyReferenceFromClass.kt") public void testPropertyReferenceFromClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromClass.kt"); } + @Test @TestMetadata("propertyReferenceFromObject.kt") public void testPropertyReferenceFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromObject.kt"); @@ -1704,48 +1922,52 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/defaultValues/maskElimination") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MaskElimination extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class MaskElimination extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test @TestMetadata("32Parameters.kt") public void test32Parameters() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/32Parameters.kt"); } + @Test @TestMetadata("33Parameters.kt") public void test33Parameters() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/33Parameters.kt"); } + @Test public void testAllFilesPresentInMaskElimination() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/maskElimination"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("kt18792.kt") public void testKt18792() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt18792.kt"); } + @Test @TestMetadata("kt19679.kt") public void testKt19679() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679.kt"); } + @Test @TestMetadata("kt19679_2.kt") public void testKt19679_2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_2.kt"); } + @Test @TestMetadata("kt19679_3.kt") public void testKt19679_3() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_3.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/simple.kt"); @@ -1753,375 +1975,400 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/delegatedProperty") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DelegatedProperty extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class DelegatedProperty extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInDelegatedProperty() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/delegatedProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("kt16864.kt") public void testKt16864() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt16864.kt"); } + @Test @TestMetadata("local.kt") public void testLocal() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/local.kt"); } + @Test @TestMetadata("localDeclaredInLambda.kt") public void testLocalDeclaredInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/localDeclaredInLambda.kt"); } + @Test @TestMetadata("localInAnonymousObject.kt") public void testLocalInAnonymousObject() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/localInAnonymousObject.kt"); } + @Test @TestMetadata("localInLambda.kt") public void testLocalInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/localInLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/enclosingInfo") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class EnclosingInfo extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class EnclosingInfo extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInEnclosingInfo() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/enclosingInfo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("anonymousInLambda.kt") public void testAnonymousInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/anonymousInLambda.kt"); } + @Test @TestMetadata("inlineChain.kt") public void testInlineChain() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/inlineChain.kt"); } + @Test @TestMetadata("inlineChain2.kt") public void testInlineChain2() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/inlineChain2.kt"); } + @Test @TestMetadata("objectInInlineFun.kt") public void testObjectInInlineFun() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/objectInInlineFun.kt"); } + @Test @TestMetadata("transformedConstructor.kt") public void testTransformedConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/transformedConstructor.kt"); } + @Test @TestMetadata("transformedConstructorWithAdditionalObject.kt") public void testTransformedConstructorWithAdditionalObject() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/transformedConstructorWithAdditionalObject.kt"); } + @Test @TestMetadata("transformedConstructorWithNestedInline.kt") public void testTransformedConstructorWithNestedInline() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/transformedConstructorWithNestedInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/enum") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Enum extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Enum extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInEnum() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/enum"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("kt10569.kt") public void testKt10569() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/kt10569.kt"); } + @Test @TestMetadata("kt18254.kt") public void testKt18254() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/kt18254.kt"); } + @Test @TestMetadata("valueOf.kt") public void testValueOf() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOf.kt"); } + @Test @TestMetadata("valueOfCapturedType.kt") public void testValueOfCapturedType() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOfCapturedType.kt"); } + @Test @TestMetadata("valueOfChain.kt") public void testValueOfChain() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOfChain.kt"); } + @Test @TestMetadata("valueOfChainCapturedType.kt") public void testValueOfChainCapturedType() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOfChainCapturedType.kt"); } + @Test @TestMetadata("valueOfNonReified.kt") public void testValueOfNonReified() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOfNonReified.kt"); } + @Test @TestMetadata("values.kt") public void testValues() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/values.kt"); } + @Test @TestMetadata("valuesAsArray.kt") public void testValuesAsArray() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesAsArray.kt"); } + @Test @TestMetadata("valuesCapturedType.kt") public void testValuesCapturedType() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesCapturedType.kt"); } + @Test @TestMetadata("valuesChain.kt") public void testValuesChain() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesChain.kt"); } + @Test @TestMetadata("valuesChainCapturedType.kt") public void testValuesChainCapturedType() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesChainCapturedType.kt"); } + @Test @TestMetadata("valuesNonReified.kt") public void testValuesNonReified() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesNonReified.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/functionExpression") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class FunctionExpression extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class FunctionExpression extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInFunctionExpression() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/functionExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("extension.kt") public void testExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/functionExpression/extension.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineClasses extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class InlineClasses extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInInlineClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("inlineClassWithInlineValReturningInlineClass.kt") public void testInlineClassWithInlineValReturningInlineClass() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineClassWithInlineValReturningInlineClass.kt"); } + @Test @TestMetadata("inlineFunctionInsideInlineClassesBox.kt") public void testInlineFunctionInsideInlineClassesBox() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt"); } + @Test @TestMetadata("noReturnTypeManglingFun.kt") public void testNoReturnTypeManglingFun() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/noReturnTypeManglingFun.kt"); } + @Test @TestMetadata("noReturnTypeManglingFunJvmName.kt") public void testNoReturnTypeManglingFunJvmName() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/noReturnTypeManglingFunJvmName.kt"); } + @Test @TestMetadata("noReturnTypeManglingVal.kt") public void testNoReturnTypeManglingVal() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/noReturnTypeManglingVal.kt"); } + @Test @TestMetadata("withReturnTypeManglingFun.kt") public void testWithReturnTypeManglingFun() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/withReturnTypeManglingFun.kt"); } + @Test @TestMetadata("withReturnTypeManglingFunJvmName.kt") public void testWithReturnTypeManglingFunJvmName() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/withReturnTypeManglingFunJvmName.kt"); } + @Test @TestMetadata("withReturnTypeManglingVal.kt") public void testWithReturnTypeManglingVal() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/withReturnTypeManglingVal.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class UnboxGenericParameter extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class UnboxGenericParameter extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInUnboxGenericParameter() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class FunInterface extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class FunInterface extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInFunInterface() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("any.kt") public void testAny() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/any.kt"); } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/anyN.kt"); } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/iface.kt"); } + @Test @TestMetadata("ifaceChild.kt") public void testIfaceChild() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/ifaceChild.kt"); } + @Test @TestMetadata("primitive.kt") public void testPrimitive() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/primitive.kt"); } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/string.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Lambda extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Lambda extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("any.kt") public void testAny() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/any.kt"); } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/anyN.kt"); } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/iface.kt"); } + @Test @TestMetadata("ifaceChild.kt") public void testIfaceChild() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/ifaceChild.kt"); } + @Test @TestMetadata("primitive.kt") public void testPrimitive() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/primitive.kt"); } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/string.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ObjectLiteral extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class ObjectLiteral extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInObjectLiteral() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("any.kt") public void testAny() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/any.kt"); } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/anyN.kt"); } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/iface.kt"); } + @Test @TestMetadata("ifaceChild.kt") public void testIfaceChild() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChild.kt"); } + @Test @TestMetadata("primitive.kt") public void testPrimitive() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/primitive.kt"); } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/string.kt"); @@ -2130,239 +2377,231 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/innerClasses") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InnerClasses extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class InnerClasses extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInInnerClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/innerClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("captureThisAndOuter.kt") public void testCaptureThisAndOuter() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/captureThisAndOuter.kt"); } + @Test @TestMetadata("innerLambda.kt") public void testInnerLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/innerLambda.kt"); } + @Test @TestMetadata("kt10259.kt") public void testKt10259() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/kt10259.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/jvmName") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class JvmName extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class JvmName extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInJvmName() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/jvmName"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/jvmName/simple.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/jvmPackageName") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class JvmPackageName extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class JvmPackageName extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInJvmPackageName() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/jvmPackageName"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/jvmPackageName/simple.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/lambdaClassClash") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LambdaClassClash extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class LambdaClassClash extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInLambdaClassClash() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/lambdaClassClash"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("lambdaClassClash.kt") public void testLambdaClassClash() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaClassClash/lambdaClassClash.kt"); } + @Test @TestMetadata("noInlineLambdaX2.kt") public void testNoInlineLambdaX2() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaClassClash/noInlineLambdaX2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/lambdaTransformation") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LambdaTransformation extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class LambdaTransformation extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInLambdaTransformation() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/lambdaTransformation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("lambdaCloning.kt") public void testLambdaCloning() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/lambdaCloning.kt"); } + @Test @TestMetadata("lambdaInLambda2.kt") public void testLambdaInLambda2() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/lambdaInLambda2.kt"); } + @Test @TestMetadata("lambdaInLambdaNoInline.kt") public void testLambdaInLambdaNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/lambdaInLambdaNoInline.kt"); } + @Test @TestMetadata("regeneratedLambdaName.kt") public void testRegeneratedLambdaName() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/regeneratedLambdaName.kt"); } + @Test @TestMetadata("regeneratedLambdaName2.kt") public void testRegeneratedLambdaName2() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/regeneratedLambdaName2.kt"); } + @Test @TestMetadata("sameCaptured.kt") public void testSameCaptured() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/sameCaptured.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/localFunInLambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LocalFunInLambda extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class LocalFunInLambda extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInLocalFunInLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/localFunInLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("defaultParam.kt") public void testDefaultParam() throws Exception { runTest("compiler/testData/codegen/boxInline/localFunInLambda/defaultParam.kt"); } + @Test @TestMetadata("lambdaInLambdaCapturesAnotherFun.kt") public void testLambdaInLambdaCapturesAnotherFun() throws Exception { runTest("compiler/testData/codegen/boxInline/localFunInLambda/lambdaInLambdaCapturesAnotherFun.kt"); } + @Test @TestMetadata("localFunInLambda.kt") public void testLocalFunInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/localFunInLambda/localFunInLambda.kt"); } + @Test @TestMetadata("localFunInLambdaCapturesAnotherFun.kt") public void testLocalFunInLambdaCapturesAnotherFun() throws Exception { runTest("compiler/testData/codegen/boxInline/localFunInLambda/localFunInLambdaCapturesAnotherFun.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/multiModule") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MultiModule extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class MultiModule extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInMultiModule() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiModule"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("tryCatchWithRecursiveInline.kt") public void testTryCatchWithRecursiveInline() throws Exception { runTest("compiler/testData/codegen/boxInline/multiModule/tryCatchWithRecursiveInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/multifileClasses") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MultifileClasses extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class MultifileClasses extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInMultifileClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multifileClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("defaultArguments.kt") public void testDefaultArguments() throws Exception { runTest("compiler/testData/codegen/boxInline/multifileClasses/defaultArguments.kt"); } + @Test @TestMetadata("inlineFromOptimizedMultifileClass.kt") public void testInlineFromOptimizedMultifileClass() throws Exception { runTest("compiler/testData/codegen/boxInline/multifileClasses/inlineFromOptimizedMultifileClass.kt"); } + @Test @TestMetadata("inlineFromOtherPackage.kt") public void testInlineFromOtherPackage() throws Exception { runTest("compiler/testData/codegen/boxInline/multifileClasses/inlineFromOtherPackage.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/multiplatform") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Multiplatform extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Multiplatform extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInMultiplatform() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/multiplatform/defaultArguments") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultArguments extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class DefaultArguments extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInDefaultArguments() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiplatform/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("receiversAndParametersInLambda.kt") public void testReceiversAndParametersInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/multiplatform/defaultArguments/receiversAndParametersInLambda.kt"); @@ -2370,575 +2609,640 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/noInline") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class NoInline extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class NoInline extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInNoInline() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/noInline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("extensionReceiver.kt") public void testExtensionReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/extensionReceiver.kt"); } + @Test @TestMetadata("lambdaAsGeneric.kt") public void testLambdaAsGeneric() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/lambdaAsGeneric.kt"); } + @Test @TestMetadata("lambdaAsNonFunction.kt") public void testLambdaAsNonFunction() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/lambdaAsNonFunction.kt"); } + @Test @TestMetadata("noInline.kt") public void testNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/noInline.kt"); } + @Test @TestMetadata("noInlineLambdaChain.kt") public void testNoInlineLambdaChain() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/noInlineLambdaChain.kt"); } + @Test @TestMetadata("noInlineLambdaChainWithCapturedInline.kt") public void testNoInlineLambdaChainWithCapturedInline() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/noInlineLambdaChainWithCapturedInline.kt"); } + @Test @TestMetadata("withoutInline.kt") public void testWithoutInline() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/withoutInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class NonLocalReturns extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class NonLocalReturns extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInNonLocalReturns() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("explicitLocalReturn.kt") public void testExplicitLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/explicitLocalReturn.kt"); } + @Test @TestMetadata("fromArrayGenerator.kt") public void testFromArrayGenerator() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGenerator.kt"); } + @Test @TestMetadata("fromArrayGeneratorCatch.kt") public void testFromArrayGeneratorCatch() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorCatch.kt"); } + @Test @TestMetadata("fromArrayGeneratorNested.kt") public void testFromArrayGeneratorNested() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorNested.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithCapture.kt") public void testFromArrayGeneratorWithCapture() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithCapture.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithCatch.kt") public void testFromArrayGeneratorWithCatch() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithCatch.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithFinally.kt") public void testFromArrayGeneratorWithFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithFinally.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithFinallyX2.kt") public void testFromArrayGeneratorWithFinallyX2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithFinallyX2.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithFinallyX2_2.kt") public void testFromArrayGeneratorWithFinallyX2_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithFinallyX2_2.kt"); } + @Test @TestMetadata("fromInterfaceDefaultGetter.kt") public void testFromInterfaceDefaultGetter() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromInterfaceDefaultGetter.kt"); } + @Test @TestMetadata("justReturnInLambda.kt") public void testJustReturnInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/justReturnInLambda.kt"); } + @Test @TestMetadata("kt5199.kt") public void testKt5199() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt5199.kt"); } + @Test @TestMetadata("kt8948.kt") public void testKt8948() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948.kt"); } + @Test @TestMetadata("kt8948v2.kt") public void testKt8948v2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt"); } + @Test @TestMetadata("nestedNonLocals.kt") public void testNestedNonLocals() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/nestedNonLocals.kt"); } + @Test @TestMetadata("noInlineLocalReturn.kt") public void testNoInlineLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/noInlineLocalReturn.kt"); } + @Test @TestMetadata("nonLocalReturnFromOuterLambda.kt") public void testNonLocalReturnFromOuterLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/nonLocalReturnFromOuterLambda.kt"); } + @Test @TestMetadata("propertyAccessors.kt") public void testPropertyAccessors() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/propertyAccessors.kt"); } + @Test @TestMetadata("returnFromFunctionExpr.kt") public void testReturnFromFunctionExpr() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/returnFromFunctionExpr.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simple.kt"); } + @Test @TestMetadata("simpleFunctional.kt") public void testSimpleFunctional() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simpleFunctional.kt"); } + @Test @TestMetadata("simpleVoid.kt") public void testSimpleVoid() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simpleVoid.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Deparenthesize extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Deparenthesize extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInDeparenthesize() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("bracket.kt") public void testBracket() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize/bracket.kt"); } + @Test @TestMetadata("labeled.kt") public void testLabeled() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize/labeled.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class TryFinally extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class TryFinally extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInTryFinally() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("kt16417.kt") public void testKt16417() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt16417.kt"); } + @Test @TestMetadata("kt20433.kt") public void testKt20433() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433.kt"); } + @Test @TestMetadata("kt20433_2.kt") public void testKt20433_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2.kt"); } + @Test @TestMetadata("kt20433_2_void.kt") public void testKt20433_2_void() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2_void.kt"); } + @Test @TestMetadata("kt20433_void.kt") public void testKt20433_void() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_void.kt"); } + @Test @TestMetadata("kt26384.kt") public void testKt26384() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384.kt"); } + @Test @TestMetadata("kt26384_2.kt") public void testKt26384_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384_2.kt"); } + @Test @TestMetadata("kt28546.kt") public void testKt28546() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt28546.kt"); } + @Test @TestMetadata("kt6956.kt") public void testKt6956() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt6956.kt"); } + @Test @TestMetadata("kt7273.kt") public void testKt7273() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt7273.kt"); } + @Test @TestMetadata("nonLocalReturnFromCatchBlock.kt") public void testNonLocalReturnFromCatchBlock() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromCatchBlock.kt"); } + @Test @TestMetadata("nonLocalReturnFromOuterLambda.kt") public void testNonLocalReturnFromOuterLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromOuterLambda.kt"); } + @Test @TestMetadata("nonLocalReturnToCatchBlock.kt") public void testNonLocalReturnToCatchBlock() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnToCatchBlock.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CallSite extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class CallSite extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInCallSite() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("callSite.kt") public void testCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/callSite.kt"); } + @Test @TestMetadata("callSiteComplex.kt") public void testCallSiteComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/callSiteComplex.kt"); } + @Test @TestMetadata("exceptionTableSplit.kt") public void testExceptionTableSplit() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplit.kt"); } + @Test @TestMetadata("exceptionTableSplitNoReturn.kt") public void testExceptionTableSplitNoReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplitNoReturn.kt"); } + @Test @TestMetadata("finallyInFinally.kt") public void testFinallyInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/finallyInFinally.kt"); } + @Test @TestMetadata("wrongVarInterval.kt") public void testWrongVarInterval() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/wrongVarInterval.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Chained extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Chained extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInChained() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("finallyInFinally.kt") public void testFinallyInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally.kt"); } + @Test @TestMetadata("finallyInFinally2.kt") public void testFinallyInFinally2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally2.kt"); } + @Test @TestMetadata("intReturn.kt") public void testIntReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturn.kt"); } + @Test @TestMetadata("intReturnComplex.kt") public void testIntReturnComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex.kt"); } + @Test @TestMetadata("intReturnComplex2.kt") public void testIntReturnComplex2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex2.kt"); } + @Test @TestMetadata("intReturnComplex3.kt") public void testIntReturnComplex3() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex3.kt"); } + @Test @TestMetadata("intReturnComplex4.kt") public void testIntReturnComplex4() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex4.kt"); } + @Test @TestMetadata("nestedLambda.kt") public void testNestedLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/nestedLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DeclSite extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class DeclSite extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInDeclSite() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("complex.kt") public void testComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/complex.kt"); } + @Test @TestMetadata("intReturn.kt") public void testIntReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturn.kt"); } + @Test @TestMetadata("intReturnComplex.kt") public void testIntReturnComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturnComplex.kt"); } + @Test @TestMetadata("longReturn.kt") public void testLongReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/longReturn.kt"); } + @Test @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/nested.kt"); } + @Test @TestMetadata("returnInFinally.kt") public void testReturnInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInFinally.kt"); } + @Test @TestMetadata("returnInTry.kt") public void testReturnInTry() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTry.kt"); } + @Test @TestMetadata("returnInTryAndFinally.kt") public void testReturnInTryAndFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTryAndFinally.kt"); } + @Test @TestMetadata("severalInTry.kt") public void testSeveralInTry() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTry.kt"); } + @Test @TestMetadata("severalInTryComplex.kt") public void testSeveralInTryComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTryComplex.kt"); } + @Test @TestMetadata("voidInlineFun.kt") public void testVoidInlineFun() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidInlineFun.kt"); } + @Test @TestMetadata("voidNonLocal.kt") public void testVoidNonLocal() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidNonLocal.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ExceptionTable extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class ExceptionTable extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInExceptionTable() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("break.kt") public void testBreak() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/break.kt"); } + @Test @TestMetadata("continue.kt") public void testContinue() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/continue.kt"); } + @Test @TestMetadata("exceptionInFinally.kt") public void testExceptionInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/exceptionInFinally.kt"); } + @Test @TestMetadata("forInFinally.kt") public void testForInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/forInFinally.kt"); } + @Test @TestMetadata("innerAndExternal.kt") public void testInnerAndExternal() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternal.kt"); } + @Test @TestMetadata("innerAndExternalNested.kt") public void testInnerAndExternalNested() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalNested.kt"); } + @Test @TestMetadata("innerAndExternalSimple.kt") public void testInnerAndExternalSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalSimple.kt"); } + @Test @TestMetadata("kt31653.kt") public void testKt31653() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653.kt"); } + @Test @TestMetadata("kt31653_2.kt") public void testKt31653_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653_2.kt"); } + @Test @TestMetadata("kt31923.kt") public void testKt31923() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923.kt"); } + @Test @TestMetadata("kt31923_2.kt") public void testKt31923_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923_2.kt"); } + @Test @TestMetadata("kt31923_wrong.kt") public void testKt31923_wrong() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923_wrong.kt"); } + @Test @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nested.kt"); } + @Test @TestMetadata("nestedWithReturns.kt") public void testNestedWithReturns() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturns.kt"); } + @Test @TestMetadata("nestedWithReturnsSimple.kt") public void testNestedWithReturnsSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturnsSimple.kt"); } + @Test @TestMetadata("noFinally.kt") public void testNoFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/noFinally.kt"); } + @Test @TestMetadata("severalCatchClause.kt") public void testSeveralCatchClause() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/severalCatchClause.kt"); } + @Test @TestMetadata("simpleThrow.kt") public void testSimpleThrow() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/simpleThrow.kt"); } + @Test @TestMetadata("synchonized.kt") public void testSynchonized() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/synchonized.kt"); } + @Test @TestMetadata("throwInFinally.kt") public void testThrowInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/throwInFinally.kt"); } + @Test @TestMetadata("tryCatchInFinally.kt") public void testTryCatchInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/tryCatchInFinally.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Variables extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Variables extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInVariables() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("kt7792.kt") public void testKt7792() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables/kt7792.kt"); @@ -2947,450 +3251,501 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/optimizations") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Optimizations extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Optimizations extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInOptimizations() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/optimizations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("kt20844.kt") public void testKt20844() throws Exception { runTest("compiler/testData/codegen/boxInline/optimizations/kt20844.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/private") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Private extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Private extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test @TestMetadata("accessorForConst.kt") public void testAccessorForConst() throws Exception { runTest("compiler/testData/codegen/boxInline/private/accessorForConst.kt"); } + @Test @TestMetadata("accessorStability.kt") public void testAccessorStability() throws Exception { runTest("compiler/testData/codegen/boxInline/private/accessorStability.kt"); } + @Test @TestMetadata("accessorStabilityInClass.kt") public void testAccessorStabilityInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/private/accessorStabilityInClass.kt"); } + @Test public void testAllFilesPresentInPrivate() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/private"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("effectivePrivate.kt") public void testEffectivePrivate() throws Exception { runTest("compiler/testData/codegen/boxInline/private/effectivePrivate.kt"); } + @Test @TestMetadata("kt6453.kt") public void testKt6453() throws Exception { runTest("compiler/testData/codegen/boxInline/private/kt6453.kt"); } + @Test @TestMetadata("kt8094.kt") public void testKt8094() throws Exception { runTest("compiler/testData/codegen/boxInline/private/kt8094.kt"); } + @Test @TestMetadata("kt8095.kt") public void testKt8095() throws Exception { runTest("compiler/testData/codegen/boxInline/private/kt8095.kt"); } + @Test @TestMetadata("nestedInPrivateClass.kt") public void testNestedInPrivateClass() throws Exception { runTest("compiler/testData/codegen/boxInline/private/nestedInPrivateClass.kt"); } + @Test @TestMetadata("privateClass.kt") public void testPrivateClass() throws Exception { runTest("compiler/testData/codegen/boxInline/private/privateClass.kt"); } + @Test @TestMetadata("privateClassExtensionLambda.kt") public void testPrivateClassExtensionLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/private/privateClassExtensionLambda.kt"); } + @Test @TestMetadata("privateInInlineInMultiFileFacade.kt") public void testPrivateInInlineInMultiFileFacade() throws Exception { runTest("compiler/testData/codegen/boxInline/private/privateInInlineInMultiFileFacade.kt"); } + @Test @TestMetadata("privateInline.kt") public void testPrivateInline() throws Exception { runTest("compiler/testData/codegen/boxInline/private/privateInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/property") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Property extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Property extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInProperty() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/property"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("augAssignmentAndInc.kt") public void testAugAssignmentAndInc() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndInc.kt"); } + @Test @TestMetadata("augAssignmentAndIncInClass.kt") public void testAugAssignmentAndIncInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClass.kt"); } + @Test @TestMetadata("augAssignmentAndIncInClassViaConvention.kt") public void testAugAssignmentAndIncInClassViaConvention() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClassViaConvention.kt"); } + @Test @TestMetadata("augAssignmentAndIncOnExtension.kt") public void testAugAssignmentAndIncOnExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtension.kt"); } + @Test @TestMetadata("augAssignmentAndIncOnExtensionInClass.kt") public void testAugAssignmentAndIncOnExtensionInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtensionInClass.kt"); } + @Test @TestMetadata("augAssignmentAndIncViaConvention.kt") public void testAugAssignmentAndIncViaConvention() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncViaConvention.kt"); } + @Test @TestMetadata("fromObject.kt") public void testFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/property/fromObject.kt"); } + @Test @TestMetadata("kt22649.kt") public void testKt22649() throws Exception { runTest("compiler/testData/codegen/boxInline/property/kt22649.kt"); } + @Test @TestMetadata("property.kt") public void testProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/property/property.kt"); } + @Test @TestMetadata("reifiedVal.kt") public void testReifiedVal() throws Exception { runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt"); } + @Test @TestMetadata("reifiedVar.kt") public void testReifiedVar() throws Exception { runTest("compiler/testData/codegen/boxInline/property/reifiedVar.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/property/simple.kt"); } + @Test @TestMetadata("simpleExtension.kt") public void testSimpleExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/property/simpleExtension.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/reified") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Reified extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Reified extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInReified() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("arrayConstructor.kt") public void testArrayConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/arrayConstructor.kt"); } + @Test @TestMetadata("arrayOf.kt") public void testArrayOf() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/arrayOf.kt"); } + @Test @TestMetadata("capturedLambda.kt") public void testCapturedLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/capturedLambda.kt"); } + @Test @TestMetadata("capturedLambda2.kt") public void testCapturedLambda2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/capturedLambda2.kt"); } + @Test @TestMetadata("dontSubstituteNonReified.kt") public void testDontSubstituteNonReified() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/dontSubstituteNonReified.kt"); } + @Test @TestMetadata("kt11081.kt") public void testKt11081() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt11081.kt"); } + @Test @TestMetadata("kt11677.kt") public void testKt11677() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt11677.kt"); } + @Test @TestMetadata("kt15956.kt") public void testKt15956() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt15956.kt"); } + @Test @TestMetadata("kt15997.kt") public void testKt15997() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt15997.kt"); } + @Test @TestMetadata("kt15997_2.kt") public void testKt15997_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt15997_2.kt"); } + @Test @TestMetadata("kt18977.kt") public void testKt18977() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt"); } + @Test @TestMetadata("kt35511.kt") public void testKt35511() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511.kt"); } + @Test @TestMetadata("kt35511_try.kt") public void testKt35511_try() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511_try.kt"); } + @Test @TestMetadata("kt35511_try_valueOf.kt") public void testKt35511_try_valueOf() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511_try_valueOf.kt"); } + @Test @TestMetadata("kt35511_try_values.kt") public void testKt35511_try_values() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511_try_values.kt"); } + @Test @TestMetadata("kt6988.kt") public void testKt6988() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt6988.kt"); } + @Test @TestMetadata("kt6988_2.kt") public void testKt6988_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt6988_2.kt"); } + @Test @TestMetadata("kt6990.kt") public void testKt6990() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt6990.kt"); } + @Test @TestMetadata("kt7017.kt") public void testKt7017() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt7017.kt"); } + @Test @TestMetadata("kt8047.kt") public void testKt8047() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt8047.kt"); } + @Test @TestMetadata("kt8047_2.kt") public void testKt8047_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt8047_2.kt"); } + @Test @TestMetadata("kt9637.kt") public void testKt9637() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt9637.kt"); } + @Test @TestMetadata("kt9637_2.kt") public void testKt9637_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt9637_2.kt"); } + @Test @TestMetadata("nonCapturingObjectInLambda.kt") public void testNonCapturingObjectInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/nonCapturingObjectInLambda.kt"); } + @Test @TestMetadata("packages.kt") public void testPackages() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/packages.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/reified/checkCast") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CheckCast extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class CheckCast extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInCheckCast() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified/checkCast"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("chain.kt") public void testChain() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/chain.kt"); } + @Test @TestMetadata("kt26435.kt") public void testKt26435() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt26435.kt"); } + @Test @TestMetadata("kt26435_2.kt") public void testKt26435_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt26435_2.kt"); } + @Test @TestMetadata("kt26435_3.kt") public void testKt26435_3() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt26435_3.kt"); } + @Test @TestMetadata("kt8043.kt") public void testKt8043() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt8043.kt"); } + @Test @TestMetadata("maxStack.kt") public void testMaxStack() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/maxStack.kt"); } + @Test @TestMetadata("nullable.kt") public void testNullable() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/nullable.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/simple.kt"); } + @Test @TestMetadata("simpleSafe.kt") public void testSimpleSafe() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/simpleSafe.kt"); } + @Test @TestMetadata("simple_1_3.kt") public void testSimple_1_3() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/simple_1_3.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/reified/defaultLambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultLambda extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class DefaultLambda extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInDefaultLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified/defaultLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("chain.kt") public void testChain() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/chain.kt"); } + @Test @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nested.kt"); } + @Test @TestMetadata("nested2.kt") public void testNested2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nested2.kt"); } + @Test @TestMetadata("nested2Static.kt") public void testNested2Static() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nested2Static.kt"); } + @Test @TestMetadata("nestedStatic.kt") public void testNestedStatic() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nestedStatic.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/simple.kt"); } + @Test @TestMetadata("transitiveChain.kt") public void testTransitiveChain() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/transitiveChain.kt"); } + @Test @TestMetadata("transitiveChainStatic.kt") public void testTransitiveChainStatic() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/transitiveChainStatic.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/reified/isCheck") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class IsCheck extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class IsCheck extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInIsCheck() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified/isCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("chain.kt") public void testChain() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/isCheck/chain.kt"); } + @Test @TestMetadata("nullable.kt") public void testNullable() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/isCheck/nullable.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/isCheck/simple.kt"); @@ -3398,518 +3753,577 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/signature") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Signature extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Signature extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInSignature() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/signature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("inProjectionSubstitution.kt") public void testInProjectionSubstitution() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/inProjectionSubstitution.kt"); } + @Test @TestMetadata("outProjectionSubstitution.kt") public void testOutProjectionSubstitution() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/outProjectionSubstitution.kt"); } + @Test @TestMetadata("recursion.kt") public void testRecursion() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/recursion.kt"); } + @Test @TestMetadata("sameFormalParameterName.kt") public void testSameFormalParameterName() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/sameFormalParameterName.kt"); } + @Test @TestMetadata("sameReifiedFormalParameterName.kt") public void testSameReifiedFormalParameterName() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/sameReifiedFormalParameterName.kt"); } + @Test @TestMetadata("starProjectionSubstitution.kt") public void testStarProjectionSubstitution() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/starProjectionSubstitution.kt"); } + @Test @TestMetadata("typeParameterInLambda.kt") public void testTypeParameterInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/typeParameterInLambda.kt"); } + @Test @TestMetadata("typeParametersSubstitution.kt") public void testTypeParametersSubstitution() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/typeParametersSubstitution.kt"); } + @Test @TestMetadata("typeParametersSubstitution2.kt") public void testTypeParametersSubstitution2() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/typeParametersSubstitution2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/simple") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Simple extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Simple extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInSimple() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/simple"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("captureAndArgumentIncompatibleTypes.kt") public void testCaptureAndArgumentIncompatibleTypes() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/captureAndArgumentIncompatibleTypes.kt"); } + @Test @TestMetadata("classObject.kt") public void testClassObject() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/classObject.kt"); } + @Test @TestMetadata("destructuring.kt") public void testDestructuring() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/destructuring.kt"); } + @Test @TestMetadata("destructuringIndexClash.kt") public void testDestructuringIndexClash() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/destructuringIndexClash.kt"); } + @Test @TestMetadata("extension.kt") public void testExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/extension.kt"); } + @Test @TestMetadata("extensionLambda.kt") public void testExtensionLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/extensionLambda.kt"); } + @Test @TestMetadata("funImportedFromObject.kt") public void testFunImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/funImportedFromObject.kt"); } + @Test @TestMetadata("inlineCallInInlineLambda.kt") public void testInlineCallInInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/inlineCallInInlineLambda.kt"); } + @Test @TestMetadata("kt17431.kt") public void testKt17431() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/kt17431.kt"); } + @Test @TestMetadata("kt28547.kt") public void testKt28547() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/kt28547.kt"); } + @Test @TestMetadata("kt28547_2.kt") public void testKt28547_2() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/kt28547_2.kt"); } + @Test @TestMetadata("params.kt") public void testParams() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/params.kt"); } + @Test @TestMetadata("propImportedFromObject.kt") public void testPropImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/propImportedFromObject.kt"); } + @Test @TestMetadata("rootConstructor.kt") public void testRootConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/rootConstructor.kt"); } + @Test @TestMetadata("safeCall.kt") public void testSafeCall() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/safeCall.kt"); } + @Test @TestMetadata("severalClosures.kt") public void testSeveralClosures() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/severalClosures.kt"); } + @Test @TestMetadata("severalUsage.kt") public void testSeveralUsage() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/severalUsage.kt"); } + @Test @TestMetadata("simpleDouble.kt") public void testSimpleDouble() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleDouble.kt"); } + @Test @TestMetadata("simpleEnum.kt") public void testSimpleEnum() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleEnum.kt"); } + @Test @TestMetadata("simpleGenerics.kt") public void testSimpleGenerics() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleGenerics.kt"); } + @Test @TestMetadata("simpleInt.kt") public void testSimpleInt() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleInt.kt"); } + @Test @TestMetadata("simpleLambda.kt") public void testSimpleLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleLambda.kt"); } + @Test @TestMetadata("simpleObject.kt") public void testSimpleObject() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleObject.kt"); } + @Test @TestMetadata("vararg.kt") public void testVararg() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/vararg.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Smap extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Smap extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInSmap() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("assertion.kt") public void testAssertion() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/assertion.kt"); } + @Test @TestMetadata("classCycle.kt") public void testClassCycle() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/classCycle.kt"); } + @Test @TestMetadata("classFromDefaultPackage.kt") public void testClassFromDefaultPackage() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/classFromDefaultPackage.kt"); } + @Test @TestMetadata("crossroutines.kt") public void testCrossroutines() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/crossroutines.kt"); } + @Test @TestMetadata("defaultFunction.kt") public void testDefaultFunction() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultFunction.kt"); } + @Test @TestMetadata("defaultFunctionWithInlineCall.kt") public void testDefaultFunctionWithInlineCall() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultFunctionWithInlineCall.kt"); } + @Test @TestMetadata("forInline.kt") public void testForInline() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/forInline.kt"); } + @Test @TestMetadata("interleavedFiles.kt") public void testInterleavedFiles() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/interleavedFiles.kt"); } + @Test @TestMetadata("kt23369.kt") public void testKt23369() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/kt23369.kt"); } + @Test @TestMetadata("kt23369_2.kt") public void testKt23369_2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/kt23369_2.kt"); } + @Test @TestMetadata("kt23369_3.kt") public void testKt23369_3() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/kt23369_3.kt"); } + @Test @TestMetadata("kt35006.kt") public void testKt35006() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/kt35006.kt"); } + @Test @TestMetadata("multiFileFacade.kt") public void testMultiFileFacade() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/multiFileFacade.kt"); } + @Test @TestMetadata("oneFile.kt") public void testOneFile() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/oneFile.kt"); } + @Test @TestMetadata("rangeFolding.kt") public void testRangeFolding() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/rangeFolding.kt"); } + @Test @TestMetadata("rangeFoldingInClass.kt") public void testRangeFoldingInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/rangeFoldingInClass.kt"); } + @Test @TestMetadata("smap.kt") public void testSmap() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/smap.kt"); } + @Test @TestMetadata("smapWithNewSyntax.kt") public void testSmapWithNewSyntax() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/smapWithNewSyntax.kt"); } + @Test @TestMetadata("smapWithOldSyntax.kt") public void testSmapWithOldSyntax() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/smapWithOldSyntax.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/anonymous") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Anonymous extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Anonymous extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInAnonymous() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("kt19175.kt") public void testKt19175() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/kt19175.kt"); } + @Test @TestMetadata("lambda.kt") public void testLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/lambda.kt"); } + @Test @TestMetadata("lambdaOnCallSite.kt") public void testLambdaOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/lambdaOnCallSite.kt"); } + @Test @TestMetadata("lambdaOnInlineCallSite.kt") public void testLambdaOnInlineCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/lambdaOnInlineCallSite.kt"); } + @Test @TestMetadata("object.kt") public void testObject() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/object.kt"); } + @Test @TestMetadata("objectOnCallSite.kt") public void testObjectOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnCallSite.kt"); } + @Test @TestMetadata("objectOnInlineCallSite.kt") public void testObjectOnInlineCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSite.kt"); } + @Test @TestMetadata("objectOnInlineCallSite2.kt") public void testObjectOnInlineCallSite2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSite2.kt"); } + @Test @TestMetadata("objectOnInlineCallSiteWithCapture.kt") public void testObjectOnInlineCallSiteWithCapture() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSiteWithCapture.kt"); } + @Test @TestMetadata("severalMappingsForDefaultFile.kt") public void testSeveralMappingsForDefaultFile() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/severalMappingsForDefaultFile.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/defaultLambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultLambda extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class DefaultLambda extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInDefaultLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/defaultLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("defaultLambdaInAnonymous.kt") public void testDefaultLambdaInAnonymous() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/defaultLambdaInAnonymous.kt"); } + @Test @TestMetadata("inlinInDefault.kt") public void testInlinInDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlinInDefault.kt"); } + @Test @TestMetadata("inlinInDefault2.kt") public void testInlinInDefault2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlinInDefault2.kt"); } + @Test @TestMetadata("inlineAnonymousInDefault.kt") public void testInlineAnonymousInDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlineAnonymousInDefault.kt"); } + @Test @TestMetadata("inlineAnonymousInDefault2.kt") public void testInlineAnonymousInDefault2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlineAnonymousInDefault2.kt"); } + @Test @TestMetadata("kt21827.kt") public void testKt21827() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/kt21827.kt"); } + @Test @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/nested.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/simple.kt"); } + @Test @TestMetadata("simple2.kt") public void testSimple2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/simple2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/inlineOnly") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineOnly extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class InlineOnly extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInInlineOnly() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/inlineOnly"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("noSmap.kt") public void testNoSmap() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/noSmap.kt"); } + @Test @TestMetadata("noSmapWithProperty.kt") public void testNoSmapWithProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/noSmapWithProperty.kt"); } + @Test @TestMetadata("reified.kt") public void testReified() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/reified.kt"); } + @Test @TestMetadata("reifiedProperty.kt") public void testReifiedProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/reifiedProperty.kt"); } + @Test @TestMetadata("stdlibInlineOnly.kt") public void testStdlibInlineOnly() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/stdlibInlineOnly.kt"); } + @Test @TestMetadata("stdlibInlineOnlyOneLine.kt") public void testStdlibInlineOnlyOneLine() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/stdlibInlineOnlyOneLine.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/newsmap") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Newsmap extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Newsmap extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInNewsmap() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/newsmap"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("differentMapping.kt") public void testDifferentMapping() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/newsmap/differentMapping.kt"); } + @Test @TestMetadata("mappingInInlineFunLambda.kt") public void testMappingInInlineFunLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/newsmap/mappingInInlineFunLambda.kt"); } + @Test @TestMetadata("mappingInSubInlineLambda.kt") public void testMappingInSubInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/newsmap/mappingInSubInlineLambda.kt"); } + @Test @TestMetadata("mappingInSubInlineLambdaSameFileInline.kt") public void testMappingInSubInlineLambdaSameFileInline() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/newsmap/mappingInSubInlineLambdaSameFileInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/resolve") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Resolve extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Resolve extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInResolve() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/resolve"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("inlineComponent.kt") public void testInlineComponent() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/resolve/inlineComponent.kt"); } + @Test @TestMetadata("inlineIterator.kt") public void testInlineIterator() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/resolve/inlineIterator.kt"); @@ -3917,621 +4331,695 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/special") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Special extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Special extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInSpecial() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/special"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("identityCheck.kt") public void testIdentityCheck() throws Exception { runTest("compiler/testData/codegen/boxInline/special/identityCheck.kt"); } + @Test @TestMetadata("ifBranches.kt") public void testIfBranches() throws Exception { runTest("compiler/testData/codegen/boxInline/special/ifBranches.kt"); } + @Test @TestMetadata("iinc.kt") public void testIinc() throws Exception { runTest("compiler/testData/codegen/boxInline/special/iinc.kt"); } + @Test @TestMetadata("inlineChain.kt") public void testInlineChain() throws Exception { runTest("compiler/testData/codegen/boxInline/special/inlineChain.kt"); } + @Test @TestMetadata("loopInStoreLoadChains.kt") public void testLoopInStoreLoadChains() throws Exception { runTest("compiler/testData/codegen/boxInline/special/loopInStoreLoadChains.kt"); } + @Test @TestMetadata("loopInStoreLoadChains2.kt") public void testLoopInStoreLoadChains2() throws Exception { runTest("compiler/testData/codegen/boxInline/special/loopInStoreLoadChains2.kt"); } + @Test @TestMetadata("plusAssign.kt") public void testPlusAssign() throws Exception { runTest("compiler/testData/codegen/boxInline/special/plusAssign.kt"); } + @Test @TestMetadata("stackHeightBug.kt") public void testStackHeightBug() throws Exception { runTest("compiler/testData/codegen/boxInline/special/stackHeightBug.kt"); } + @Test @TestMetadata("unusedInlineLambda.kt") public void testUnusedInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/special/unusedInlineLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/stackOnReturn") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class StackOnReturn extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class StackOnReturn extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInStackOnReturn() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/stackOnReturn"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("elvis.kt") public void testElvis() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/elvis.kt"); } + @Test @TestMetadata("ifThenElse.kt") public void testIfThenElse() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/ifThenElse.kt"); } + @Test @TestMetadata("kt11499.kt") public void testKt11499() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt11499.kt"); } + @Test @TestMetadata("kt17591.kt") public void testKt17591() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt17591.kt"); } + @Test @TestMetadata("kt17591a.kt") public void testKt17591a() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt17591a.kt"); } + @Test @TestMetadata("kt17591b.kt") public void testKt17591b() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt17591b.kt"); } + @Test @TestMetadata("mixedTypesOnStack1.kt") public void testMixedTypesOnStack1() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack1.kt"); } + @Test @TestMetadata("mixedTypesOnStack2.kt") public void testMixedTypesOnStack2() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack2.kt"); } + @Test @TestMetadata("mixedTypesOnStack3.kt") public void testMixedTypesOnStack3() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack3.kt"); } + @Test @TestMetadata("nonLocalReturn1.kt") public void testNonLocalReturn1() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn1.kt"); } + @Test @TestMetadata("nonLocalReturn2.kt") public void testNonLocalReturn2() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn2.kt"); } + @Test @TestMetadata("nonLocalReturn3.kt") public void testNonLocalReturn3() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn3.kt"); } + @Test @TestMetadata("poppedLocalReturn.kt") public void testPoppedLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/poppedLocalReturn.kt"); } + @Test @TestMetadata("poppedLocalReturn2.kt") public void testPoppedLocalReturn2() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/poppedLocalReturn2.kt"); } + @Test @TestMetadata("returnLong.kt") public void testReturnLong() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/returnLong.kt"); } + @Test @TestMetadata("tryFinally.kt") public void testTryFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/tryFinally.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Suspend extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Suspend extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInSuspend() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("capturedVariables.kt") public void testCapturedVariables() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/capturedVariables.kt"); } + @Test @TestMetadata("crossinlineSuspendLambdaInsideCrossinlineSuspendLambda.kt") public void testCrossinlineSuspendLambdaInsideCrossinlineSuspendLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/crossinlineSuspendLambdaInsideCrossinlineSuspendLambda.kt"); } + @Test @TestMetadata("debugMetadataCrossinline.kt") public void testDebugMetadataCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/debugMetadataCrossinline.kt"); } + @Test @TestMetadata("delegatedProperties.kt") public void testDelegatedProperties() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/delegatedProperties.kt"); } + @Test @TestMetadata("doubleRegenerationWithNonSuspendingLambda.kt") public void testDoubleRegenerationWithNonSuspendingLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/doubleRegenerationWithNonSuspendingLambda.kt"); } + @Test @TestMetadata("enclodingMethod.kt") public void testEnclodingMethod() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/enclodingMethod.kt"); } + @Test @TestMetadata("fileNameInMetadata.kt") public void testFileNameInMetadata() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/fileNameInMetadata.kt"); } + @Test @TestMetadata("inlineOrdinaryOfCrossinlineSuspend.kt") public void testInlineOrdinaryOfCrossinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfCrossinlineSuspend.kt"); } + @Test @TestMetadata("inlineOrdinaryOfNoinlineSuspend.kt") public void testInlineOrdinaryOfNoinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfNoinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendContinuation.kt") public void testInlineSuspendContinuation() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendContinuation.kt"); } + @Test @TestMetadata("inlineSuspendInMultifileClass.kt") public void testInlineSuspendInMultifileClass() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendInMultifileClass.kt"); } + @Test @TestMetadata("inlineSuspendOfCrossinlineOrdinary.kt") public void testInlineSuspendOfCrossinlineOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfCrossinlineSuspend.kt") public void testInlineSuspendOfCrossinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfNoinlineOrdinary.kt") public void testInlineSuspendOfNoinlineOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfNoinlineSuspend.kt") public void testInlineSuspendOfNoinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfOrdinary.kt") public void testInlineSuspendOfOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfSuspend.kt") public void testInlineSuspendOfSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfSuspend.kt"); } + @Test @TestMetadata("jvmName.kt") public void testJvmName() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/jvmName.kt"); } + @Test @TestMetadata("kt26658.kt") public void testKt26658() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/kt26658.kt"); } + @Test @TestMetadata("maxStackWithCrossinline.kt") public void testMaxStackWithCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/maxStackWithCrossinline.kt"); } + @Test @TestMetadata("multipleLocals.kt") public void testMultipleLocals() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/multipleLocals.kt"); } + @Test @TestMetadata("multipleSuspensionPoints.kt") public void testMultipleSuspensionPoints() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/multipleSuspensionPoints.kt"); } + @Test @TestMetadata("nestedMethodWith2XParameter.kt") public void testNestedMethodWith2XParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/nestedMethodWith2XParameter.kt"); } + @Test @TestMetadata("nonLocalReturn.kt") public void testNonLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/nonLocalReturn.kt"); } + @Test @TestMetadata("nonSuspendCrossinline.kt") public void testNonSuspendCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/nonSuspendCrossinline.kt"); } + @Test @TestMetadata("returnValue.kt") public void testReturnValue() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/returnValue.kt"); } + @Test @TestMetadata("tryCatchReceiver.kt") public void testTryCatchReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/tryCatchReceiver.kt"); } + @Test @TestMetadata("tryCatchStackTransform.kt") public void testTryCatchStackTransform() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/tryCatchStackTransform.kt"); } + @Test @TestMetadata("twiceRegeneratedAnonymousObject.kt") public void testTwiceRegeneratedAnonymousObject() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/twiceRegeneratedAnonymousObject.kt"); } + @Test @TestMetadata("twiceRegeneratedSuspendLambda.kt") public void testTwiceRegeneratedSuspendLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/twiceRegeneratedSuspendLambda.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/callableReference") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CallableReference extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class CallableReference extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInCallableReference() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("isAsReified.kt") public void testIsAsReified() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/isAsReified.kt"); } + @Test @TestMetadata("isAsReified2.kt") public void testIsAsReified2() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/isAsReified2.kt"); } + @Test @TestMetadata("nonTailCall.kt") public void testNonTailCall() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/nonTailCall.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/simple.kt"); } + @Test @TestMetadata("unitReturn.kt") public void testUnitReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/unitReturn.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/defaultParameter") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultParameter extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class DefaultParameter extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInDefaultParameter() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/defaultParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("defaultValueCrossinline.kt") public void testDefaultValueCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueCrossinline.kt"); } + @Test @TestMetadata("defaultValueInClass.kt") public void testDefaultValueInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInClass.kt"); } + @Test @TestMetadata("defaultValueInline.kt") public void testDefaultValueInline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInline.kt"); } + @Test @TestMetadata("defaultValueInlineFromMultiFileFacade.kt") public void testDefaultValueInlineFromMultiFileFacade() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInlineFromMultiFileFacade.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/inlineClass") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineClass extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class InlineClass extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInInlineClass() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("returnUnboxedDirect.kt") public void testReturnUnboxedDirect() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineClass/returnUnboxedDirect.kt"); } + @Test @TestMetadata("returnUnboxedResume.kt") public void testReturnUnboxedResume() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineClass/returnUnboxedResume.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineUsedAsNoinline extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class InlineUsedAsNoinline extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInInlineUsedAsNoinline() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("inlineOnly.kt") public void testInlineOnly() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/inlineOnly.kt"); } + @Test @TestMetadata("simpleNamed.kt") public void testSimpleNamed() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/simpleNamed.kt"); } + @Test @TestMetadata("withCapturedInlineLambda.kt") public void testWithCapturedInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/withCapturedInlineLambda.kt"); } + @Test @TestMetadata("withCapturedInlineLambda2.kt") public void testWithCapturedInlineLambda2() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/withCapturedInlineLambda2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/receiver") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Receiver extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Receiver extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInReceiver() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/receiver"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("inlineOrdinaryOfCrossinlineSuspend.kt") public void testInlineOrdinaryOfCrossinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfCrossinlineSuspend.kt"); } + @Test @TestMetadata("inlineOrdinaryOfNoinlineSuspend.kt") public void testInlineOrdinaryOfNoinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfNoinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfCrossinlineOrdinary.kt") public void testInlineSuspendOfCrossinlineOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfCrossinlineSuspend.kt") public void testInlineSuspendOfCrossinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfNoinlineOrdinary.kt") public void testInlineSuspendOfNoinlineOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfNoinlineSuspend.kt") public void testInlineSuspendOfNoinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfOrdinary.kt") public void testInlineSuspendOfOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfSuspend.kt") public void testInlineSuspendOfSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfSuspend.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/stateMachine") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class StateMachine extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class StateMachine extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInStateMachine() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/stateMachine"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("crossingCoroutineBoundaries.kt") public void testCrossingCoroutineBoundaries() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/crossingCoroutineBoundaries.kt"); } + @Test @TestMetadata("independentInline.kt") public void testIndependentInline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/independentInline.kt"); } + @Test @TestMetadata("innerLambda.kt") public void testInnerLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambda.kt"); } + @Test @TestMetadata("innerLambdaInsideLambda.kt") public void testInnerLambdaInsideLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaInsideLambda.kt"); } + @Test @TestMetadata("innerLambdaWithoutCrossinline.kt") public void testInnerLambdaWithoutCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaWithoutCrossinline.kt"); } + @Test @TestMetadata("innerMadness.kt") public void testInnerMadness() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadness.kt"); } + @Test @TestMetadata("innerMadnessCallSite.kt") public void testInnerMadnessCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadnessCallSite.kt"); } + @Test @TestMetadata("innerObject.kt") public void testInnerObject() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObject.kt"); } + @Test @TestMetadata("innerObjectInsideInnerObject.kt") public void testInnerObjectInsideInnerObject() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectInsideInnerObject.kt"); } + @Test @TestMetadata("innerObjectRetransformation.kt") public void testInnerObjectRetransformation() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectRetransformation.kt"); } + @Test @TestMetadata("innerObjectSeveralFunctions.kt") public void testInnerObjectSeveralFunctions() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectSeveralFunctions.kt"); } + @Test @TestMetadata("innerObjectWithoutCapturingCrossinline.kt") public void testInnerObjectWithoutCapturingCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectWithoutCapturingCrossinline.kt"); } + @Test @TestMetadata("insideObject.kt") public void testInsideObject() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/insideObject.kt"); } + @Test @TestMetadata("kt30708.kt") public void testKt30708() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/kt30708.kt"); } + @Test @TestMetadata("lambdaTransformation.kt") public void testLambdaTransformation() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/lambdaTransformation.kt"); } + @Test @TestMetadata("normalInline.kt") public void testNormalInline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/normalInline.kt"); } + @Test @TestMetadata("numberOfSuspentions.kt") public void testNumberOfSuspentions() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/numberOfSuspentions.kt"); } + @Test @TestMetadata("objectInsideLambdas.kt") public void testObjectInsideLambdas() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/objectInsideLambdas.kt"); } + @Test @TestMetadata("oneInlineTwoCaptures.kt") public void testOneInlineTwoCaptures() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/oneInlineTwoCaptures.kt"); } + @Test @TestMetadata("passLambda.kt") public void testPassLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/passLambda.kt"); } + @Test @TestMetadata("passParameter.kt") public void testPassParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/passParameter.kt"); } + @Test @TestMetadata("passParameterLambda.kt") public void testPassParameterLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/passParameterLambda.kt"); } + @Test @TestMetadata("unreachableSuspendMarker.kt") public void testUnreachableSuspendMarker() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/unreachableSuspendMarker.kt"); @@ -4539,110 +5027,121 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/syntheticAccessors") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class SyntheticAccessors extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class SyntheticAccessors extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInSyntheticAccessors() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/syntheticAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("constField.kt") public void testConstField() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/constField.kt"); } + @Test @TestMetadata("packagePrivateMembers.kt") public void testPackagePrivateMembers() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/packagePrivateMembers.kt"); } + @Test @TestMetadata("propertyModifiers.kt") public void testPropertyModifiers() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/propertyModifiers.kt"); } + @Test @TestMetadata("protectedMembers.kt") public void testProtectedMembers() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/protectedMembers.kt"); } + @Test @TestMetadata("protectedMembersFromSuper.kt") public void testProtectedMembersFromSuper() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/protectedMembersFromSuper.kt"); } + @Test @TestMetadata("superCall.kt") public void testSuperCall() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/superCall.kt"); } + @Test @TestMetadata("superCallFromMultipleSubclasses.kt") public void testSuperCallFromMultipleSubclasses() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/superCallFromMultipleSubclasses.kt"); } + @Test @TestMetadata("superProperty.kt") public void testSuperProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/superProperty.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class WithinInlineLambda extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class WithinInlineLambda extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInWithinInlineLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("directFieldAccess.kt") public void testDirectFieldAccess() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/directFieldAccess.kt"); } + @Test @TestMetadata("directFieldAccessInCrossInline.kt") public void testDirectFieldAccessInCrossInline() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/directFieldAccessInCrossInline.kt"); } + @Test @TestMetadata("privateCall.kt") public void testPrivateCall() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateCall.kt"); } + @Test @TestMetadata("privateInCrossInline.kt") public void testPrivateInCrossInline() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInCrossInline.kt"); } + @Test @TestMetadata("privateInDefaultStubArgument.kt") public void testPrivateInDefaultStubArgument() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInDefaultStubArgument.kt"); } + @Test @TestMetadata("protectedInCrossinline.kt") public void testProtectedInCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/protectedInCrossinline.kt"); } + @Test @TestMetadata("protectedMembersFromSuper.kt") public void testProtectedMembersFromSuper() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/protectedMembersFromSuper.kt"); } + @Test @TestMetadata("superCall.kt") public void testSuperCall() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superCall.kt"); } + @Test @TestMetadata("superInCrossInline.kt") public void testSuperInCrossInline() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superInCrossInline.kt"); @@ -4650,79 +5149,78 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/trait") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Trait extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Trait extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInTrait() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/trait"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("trait.kt") public void testTrait() throws Exception { runTest("compiler/testData/codegen/boxInline/trait/trait.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/tryCatchFinally") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class TryCatchFinally extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class TryCatchFinally extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInTryCatchFinally() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/tryCatchFinally"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("kt5863.kt") public void testKt5863() throws Exception { runTest("compiler/testData/codegen/boxInline/tryCatchFinally/kt5863.kt"); } + @Test @TestMetadata("tryCatch.kt") public void testTryCatch() throws Exception { runTest("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch.kt"); } + @Test @TestMetadata("tryCatch2.kt") public void testTryCatch2() throws Exception { runTest("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch2.kt"); } + @Test @TestMetadata("tryCatchFinally.kt") public void testTryCatchFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatchFinally.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/varargs") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Varargs extends AbstractJvmIrAgainstOldBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Varargs extends AbstractJvmIrAgainstOldBoxInlineTest { + @Test public void testAllFilesPresentInVarargs() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/varargs"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true); } + @Test @TestMetadata("kt17653.kt") public void testKt17653() throws Exception { runTest("compiler/testData/codegen/boxInline/varargs/kt17653.kt"); } + @Test @TestMetadata("varargAndDefaultParameters.kt") public void testVarargAndDefaultParameters() throws Exception { runTest("compiler/testData/codegen/boxInline/varargs/varargAndDefaultParameters.kt"); } + @Test @TestMetadata("varargAndDefaultParameters2.kt") public void testVarargAndDefaultParameters2() throws Exception { runTest("compiler/testData/codegen/boxInline/varargs/varargAndDefaultParameters2.kt"); diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/JvmOldAgainstIrBoxInlineTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmOldAgainstIrBoxInlineTestGenerated.java similarity index 86% rename from compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/JvmOldAgainstIrBoxInlineTestGenerated.java rename to compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmOldAgainstIrBoxInlineTestGenerated.java index 60430f67eb4..3519109e320 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/JvmOldAgainstIrBoxInlineTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmOldAgainstIrBoxInlineTestGenerated.java @@ -3,579 +3,651 @@ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ -package org.jetbrains.kotlin.codegen.ir; +package org.jetbrains.kotlin.test.runners.codegen; import com.intellij.testFramework.TestDataPath; -import org.jetbrains.kotlin.test.JUnit3RunnerWithInners; -import org.jetbrains.kotlin.test.KotlinTestUtils; import org.jetbrains.kotlin.test.util.KtTestUtil; import org.jetbrains.kotlin.test.TargetBackend; import org.jetbrains.kotlin.test.TestMetadata; -import org.junit.runner.RunWith; +import org.junit.jupiter.api.Nested; +import org.junit.jupiter.api.Test; import java.io.File; import java.util.regex.Pattern; -/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */ +/** This class is generated by {@link GenerateNewCompilerTests.kt}. DO NOT MODIFY MANUALLY */ @SuppressWarnings("all") @TestMetadata("compiler/testData/codegen/boxInline") @TestDataPath("$PROJECT_ROOT") -@RunWith(JUnit3RunnerWithInners.class) public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + @Test public void testAllFilesPresentInBoxInline() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class AnonymousObject extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class AnonymousObject extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInAnonymousObject() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("anonymousObjectInDefault.kt") public void testAnonymousObjectInDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectInDefault.kt"); } + @Test @TestMetadata("anonymousObjectOnCallSite.kt") public void testAnonymousObjectOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnCallSite.kt"); } + @Test @TestMetadata("anonymousObjectOnCallSiteSuperParams.kt") public void testAnonymousObjectOnCallSiteSuperParams() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnCallSiteSuperParams.kt"); } + @Test @TestMetadata("anonymousObjectOnDeclarationSite.kt") public void testAnonymousObjectOnDeclarationSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnDeclarationSite.kt"); } + @Test @TestMetadata("anonymousObjectOnDeclarationSiteSuperParams.kt") public void testAnonymousObjectOnDeclarationSiteSuperParams() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnDeclarationSiteSuperParams.kt"); } + @Test @TestMetadata("capturedLambdaInInline.kt") public void testCapturedLambdaInInline() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline.kt"); } + @Test @TestMetadata("capturedLambdaInInline2.kt") public void testCapturedLambdaInInline2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline2.kt"); } + @Test @TestMetadata("capturedLambdaInInline3.kt") public void testCapturedLambdaInInline3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline3.kt"); } + @Test @TestMetadata("capturedLambdaInInlineObject.kt") public void testCapturedLambdaInInlineObject() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInlineObject.kt"); } + @Test @TestMetadata("capturedLocalFun.kt") public void testCapturedLocalFun() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLocalFun.kt"); } + @Test @TestMetadata("capturedLocalFunRef.kt") public void testCapturedLocalFunRef() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLocalFunRef.kt"); } + @Test @TestMetadata("changingReturnType.kt") public void testChangingReturnType() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/changingReturnType.kt"); } + @Test @TestMetadata("constructOriginalInRegenerated.kt") public void testConstructOriginalInRegenerated() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/constructOriginalInRegenerated.kt"); } + @Test @TestMetadata("constructorVisibility.kt") public void testConstructorVisibility() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/constructorVisibility.kt"); } + @Test @TestMetadata("constructorVisibilityInConstLambda.kt") public void testConstructorVisibilityInConstLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/constructorVisibilityInConstLambda.kt"); } + @Test @TestMetadata("constructorVisibilityInLambda.kt") public void testConstructorVisibilityInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/constructorVisibilityInLambda.kt"); } + @Test @TestMetadata("defineClass.kt") public void testDefineClass() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt"); } + @Test @TestMetadata("functionExpression.kt") public void testFunctionExpression() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/functionExpression.kt"); } + @Test @TestMetadata("inlineCallInsideInlineLambda.kt") public void testInlineCallInsideInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/inlineCallInsideInlineLambda.kt"); } + @Test @TestMetadata("kt13133.kt") public void testKt13133() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt13133.kt"); } + @Test @TestMetadata("kt13182.kt") public void testKt13182() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt13182.kt"); } + @Test @TestMetadata("kt13374.kt") public void testKt13374() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt13374.kt"); } + @Test @TestMetadata("kt14011.kt") public void testKt14011() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt14011.kt"); } + @Test @TestMetadata("kt14011_2.kt") public void testKt14011_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt14011_2.kt"); } + @Test @TestMetadata("kt14011_3.kt") public void testKt14011_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt14011_3.kt"); } + @Test @TestMetadata("kt15751.kt") public void testKt15751() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt15751.kt"); } + @Test @TestMetadata("kt16193.kt") public void testKt16193() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt16193.kt"); } + @Test @TestMetadata("kt17972.kt") public void testKt17972() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972.kt"); } + @Test @TestMetadata("kt17972_2.kt") public void testKt17972_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_2.kt"); } + @Test @TestMetadata("kt17972_3.kt") public void testKt17972_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_3.kt"); } + @Test @TestMetadata("kt17972_4.kt") public void testKt17972_4() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_4.kt"); } + @Test @TestMetadata("kt17972_5.kt") public void testKt17972_5() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_5.kt"); } + @Test @TestMetadata("kt17972_super.kt") public void testKt17972_super() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_super.kt"); } + @Test @TestMetadata("kt17972_super2.kt") public void testKt17972_super2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_super2.kt"); } + @Test @TestMetadata("kt17972_super3.kt") public void testKt17972_super3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_super3.kt"); } + @Test @TestMetadata("kt19389.kt") public void testKt19389() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19389.kt"); } + @Test @TestMetadata("kt19399.kt") public void testKt19399() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19399.kt"); } + @Test @TestMetadata("kt19434.kt") public void testKt19434() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19434.kt"); } + @Test @TestMetadata("kt19434_2.kt") public void testKt19434_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19434_2.kt"); } + @Test @TestMetadata("kt19723.kt") public void testKt19723() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19723.kt"); } + @Test @TestMetadata("kt29595.kt") public void testKt29595() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt29595.kt"); } + @Test @TestMetadata("kt34656.kt") public void testKt34656() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt34656.kt"); } + @Test @TestMetadata("kt38197.kt") public void testKt38197() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt"); } + @Test @TestMetadata("kt42815.kt") public void testKt42815() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt42815.kt"); } + @Test @TestMetadata("kt42815_delegated.kt") public void testKt42815_delegated() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt42815_delegated.kt"); } + @Test @TestMetadata("kt6007.kt") public void testKt6007() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6007.kt"); } + @Test @TestMetadata("kt6552.kt") public void testKt6552() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6552.kt"); } + @Test @TestMetadata("kt8133.kt") public void testKt8133() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt8133.kt"); } + @Test @TestMetadata("kt9064.kt") public void testKt9064() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9064.kt"); } + @Test @TestMetadata("kt9064v2.kt") public void testKt9064v2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9064v2.kt"); } + @Test @TestMetadata("kt9591.kt") public void testKt9591() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9591.kt"); } + @Test @TestMetadata("kt9877.kt") public void testKt9877() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9877.kt"); } + @Test @TestMetadata("kt9877_2.kt") public void testKt9877_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9877_2.kt"); } + @Test @TestMetadata("objectInLambdaCapturesAnotherObject.kt") public void testObjectInLambdaCapturesAnotherObject() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/objectInLambdaCapturesAnotherObject.kt"); } + @Test @TestMetadata("safeCall.kt") public void testSafeCall() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/safeCall.kt"); } + @Test @TestMetadata("safeCall_2.kt") public void testSafeCall_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/safeCall_2.kt"); } + @Test @TestMetadata("sam.kt") public void testSam() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam.kt"); } + @Test @TestMetadata("sharedFromCrossinline.kt") public void testSharedFromCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sharedFromCrossinline.kt"); } + @Test @TestMetadata("superConstructorWithObjectParameter.kt") public void testSuperConstructorWithObjectParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/superConstructorWithObjectParameter.kt"); } + @Test @TestMetadata("typeInfo.kt") public void testTypeInfo() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/typeInfo.kt"); } + @Test @TestMetadata("withInlineMethod.kt") public void testWithInlineMethod() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/withInlineMethod.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/enumWhen") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class EnumWhen extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class EnumWhen extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInEnumWhen() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/enumWhen"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("callSite.kt") public void testCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/callSite.kt"); } + @Test @TestMetadata("declSite.kt") public void testDeclSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/declSite.kt"); } + @Test @TestMetadata("declSiteSeveralMappings.kt") public void testDeclSiteSeveralMappings() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/declSiteSeveralMappings.kt"); } + @Test @TestMetadata("declSiteSeveralMappingsDifOrder.kt") public void testDeclSiteSeveralMappingsDifOrder() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/declSiteSeveralMappingsDifOrder.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ProperRecapturing extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class ProperRecapturing extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInProperRecapturing() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("inlineChain.kt") public void testInlineChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/inlineChain.kt"); } + @Test @TestMetadata("lambdaChain.kt") public void testLambdaChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChain.kt"); } + @Test @TestMetadata("lambdaChainSimple.kt") public void testLambdaChainSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChainSimple.kt"); } + @Test @TestMetadata("lambdaChain_2.kt") public void testLambdaChain_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChain_2.kt"); } + @Test @TestMetadata("lambdaChain_3.kt") public void testLambdaChain_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChain_3.kt"); } + @Test @TestMetadata("noInlineLambda.kt") public void testNoInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/noInlineLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ProperRecapturingInClass extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class ProperRecapturingInClass extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInProperRecapturingInClass() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("inlineChain.kt") public void testInlineChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/inlineChain.kt"); } + @Test @TestMetadata("inlinelambdaChain.kt") public void testInlinelambdaChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/inlinelambdaChain.kt"); } + @Test @TestMetadata("lambdaChain.kt") public void testLambdaChain() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain.kt"); } + @Test @TestMetadata("lambdaChainSimple.kt") public void testLambdaChainSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChainSimple.kt"); } + @Test @TestMetadata("lambdaChainSimple_2.kt") public void testLambdaChainSimple_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChainSimple_2.kt"); } + @Test @TestMetadata("lambdaChain_2.kt") public void testLambdaChain_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain_2.kt"); } + @Test @TestMetadata("lambdaChain_3.kt") public void testLambdaChain_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain_3.kt"); } + @Test @TestMetadata("noCapturedThisOnCallSite.kt") public void testNoCapturedThisOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/noCapturedThisOnCallSite.kt"); } + @Test @TestMetadata("noInlineLambda.kt") public void testNoInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/noInlineLambda.kt"); } + @Test @TestMetadata("twoInlineLambda.kt") public void testTwoInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/twoInlineLambda.kt"); } + @Test @TestMetadata("twoInlineLambdaComplex.kt") public void testTwoInlineLambdaComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/twoInlineLambdaComplex.kt"); } + @Test @TestMetadata("twoInlineLambdaComplex_2.kt") public void testTwoInlineLambdaComplex_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/twoInlineLambdaComplex_2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/sam") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Sam extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Sam extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInSam() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("anonymousObjectToSam.kt") public void testAnonymousObjectToSam() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/anonymousObjectToSam.kt"); } + @Test @TestMetadata("kt17091.kt") public void testKt17091() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt17091.kt"); } + @Test @TestMetadata("kt21671.kt") public void testKt21671() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671.kt"); } + @Test @TestMetadata("kt21671_2.kt") public void testKt21671_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671_2.kt"); } + @Test @TestMetadata("kt21671_3.kt") public void testKt21671_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt21671_3.kt"); } + @Test @TestMetadata("kt22304.kt") public void testKt22304() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/kt22304.kt"); } + @Test @TestMetadata("samOnCallSite.kt") public void testSamOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/sam/samOnCallSite.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class TwoCapturedReceivers extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class TwoCapturedReceivers extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInTwoCapturedReceivers() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("kt8668.kt") public void testKt8668() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668.kt"); } + @Test @TestMetadata("kt8668_2.kt") public void testKt8668_2() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_2.kt"); } + @Test @TestMetadata("kt8668_3.kt") public void testKt8668_3() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_3.kt"); } + @Test @TestMetadata("twoDifferentDispatchReceivers.kt") public void testTwoDifferentDispatchReceivers() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/twoDifferentDispatchReceivers.kt"); } + @Test @TestMetadata("twoExtensionReceivers.kt") public void testTwoExtensionReceivers() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/twoExtensionReceivers.kt"); @@ -583,470 +655,525 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/argumentOrder") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ArgumentOrder extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class ArgumentOrder extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInArgumentOrder() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/argumentOrder"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("boundFunctionReference.kt") public void testBoundFunctionReference() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/boundFunctionReference.kt"); } + @Test @TestMetadata("boundFunctionReference2.kt") public void testBoundFunctionReference2() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/boundFunctionReference2.kt"); } + @Test @TestMetadata("captured.kt") public void testCaptured() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/captured.kt"); } + @Test @TestMetadata("capturedInExtension.kt") public void testCapturedInExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/capturedInExtension.kt"); } + @Test @TestMetadata("defaultParametersAndLastVararg.kt") public void testDefaultParametersAndLastVararg() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/defaultParametersAndLastVararg.kt"); } + @Test @TestMetadata("defaultParametersAndLastVarargWithCorrectOrder.kt") public void testDefaultParametersAndLastVarargWithCorrectOrder() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/defaultParametersAndLastVarargWithCorrectOrder.kt"); } + @Test @TestMetadata("extension.kt") public void testExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/extension.kt"); } + @Test @TestMetadata("extensionInClass.kt") public void testExtensionInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/extensionInClass.kt"); } + @Test @TestMetadata("lambdaMigration.kt") public void testLambdaMigration() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/lambdaMigration.kt"); } + @Test @TestMetadata("lambdaMigrationInClass.kt") public void testLambdaMigrationInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/lambdaMigrationInClass.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/simple.kt"); } + @Test @TestMetadata("simpleInClass.kt") public void testSimpleInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/simpleInClass.kt"); } + @Test @TestMetadata("varargAndDefaultParameters.kt") public void testVarargAndDefaultParameters() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/varargAndDefaultParameters.kt"); } + @Test @TestMetadata("varargAndDefaultParametersWithCorrectOrder.kt") public void testVarargAndDefaultParametersWithCorrectOrder() throws Exception { runTest("compiler/testData/codegen/boxInline/argumentOrder/varargAndDefaultParametersWithCorrectOrder.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/arrayConvention") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ArrayConvention extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class ArrayConvention extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInArrayConvention() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/arrayConvention"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("simpleAccess.kt") public void testSimpleAccess() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccess.kt"); } + @Test @TestMetadata("simpleAccessInClass.kt") public void testSimpleAccessInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessInClass.kt"); } + @Test @TestMetadata("simpleAccessWithDefault.kt") public void testSimpleAccessWithDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithDefault.kt"); } + @Test @TestMetadata("simpleAccessWithDefaultInClass.kt") public void testSimpleAccessWithDefaultInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithDefaultInClass.kt"); } + @Test @TestMetadata("simpleAccessWithLambda.kt") public void testSimpleAccessWithLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithLambda.kt"); } + @Test @TestMetadata("simpleAccessWithLambdaInClass.kt") public void testSimpleAccessWithLambdaInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithLambdaInClass.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/assert") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Assert extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Assert extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInAssert() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/assert"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("jvmAssertInlineFunctionAssertionsDisabled.kt") public void testJvmAssertInlineFunctionAssertionsDisabled() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmAssertInlineFunctionAssertionsDisabled.kt"); } + @Test @TestMetadata("jvmAssertInlineFunctionAssertionsEnabled.kt") public void testJvmAssertInlineFunctionAssertionsEnabled() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmAssertInlineFunctionAssertionsEnabled.kt"); } + @Test @TestMetadata("jvmAssertInlineLambda.kt") public void testJvmAssertInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmAssertInlineLambda.kt"); } + @Test @TestMetadata("jvmClassInitializer.kt") public void testJvmClassInitializer() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmClassInitializer.kt"); } + @Test @TestMetadata("jvmCompanion.kt") public void testJvmCompanion() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCompanion.kt"); } + @Test @TestMetadata("jvmCrossinlineLambda.kt") public void testJvmCrossinlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambda.kt"); } + @Test @TestMetadata("jvmCrossinlineLambda2.kt") public void testJvmCrossinlineLambda2() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambda2.kt"); } + @Test @TestMetadata("jvmCrossinlineLambdaDeclarationSite.kt") public void testJvmCrossinlineLambdaDeclarationSite() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambdaDeclarationSite.kt"); } + @Test @TestMetadata("jvmCrossinlineLambdaDeclarationSiteOnly.kt") public void testJvmCrossinlineLambdaDeclarationSiteOnly() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambdaDeclarationSiteOnly.kt"); } + @Test @TestMetadata("jvmCrossinlineSAMDeclarationSite.kt") public void testJvmCrossinlineSAMDeclarationSite() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineSAMDeclarationSite.kt"); } + @Test @TestMetadata("jvmDoubleInline.kt") public void testJvmDoubleInline() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmDoubleInline.kt"); } + @Test @TestMetadata("jvmInlineUsedAsNoinline.kt") public void testJvmInlineUsedAsNoinline() throws Exception { runTest("compiler/testData/codegen/boxInline/assert/jvmInlineUsedAsNoinline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/builders") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Builders extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Builders extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInBuilders() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/builders"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("builders.kt") public void testBuilders() throws Exception { runTest("compiler/testData/codegen/boxInline/builders/builders.kt"); } + @Test @TestMetadata("buildersAndLambdaCapturing.kt") public void testBuildersAndLambdaCapturing() throws Exception { runTest("compiler/testData/codegen/boxInline/builders/buildersAndLambdaCapturing.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/bytecodePreprocessing") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class BytecodePreprocessing extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class BytecodePreprocessing extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInBytecodePreprocessing() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/bytecodePreprocessing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("apiVersionAtLeast1.kt") public void testApiVersionAtLeast1() throws Exception { runTest("compiler/testData/codegen/boxInline/bytecodePreprocessing/apiVersionAtLeast1.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/callableReference") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CallableReference extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class CallableReference extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test @TestMetadata("adapted.kt") public void testAdapted() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/adapted.kt"); } + @Test public void testAllFilesPresentInCallableReference() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("classLevel.kt") public void testClassLevel() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/classLevel.kt"); } + @Test @TestMetadata("classLevel2.kt") public void testClassLevel2() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/classLevel2.kt"); } + @Test @TestMetadata("constructor.kt") public void testConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/constructor.kt"); } + @Test @TestMetadata("innerGenericConstuctor.kt") public void testInnerGenericConstuctor() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/innerGenericConstuctor.kt"); } + @Test @TestMetadata("intrinsic.kt") public void testIntrinsic() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/intrinsic.kt"); } + @Test @TestMetadata("jvmFieldProperty.kt") public void testJvmFieldProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/jvmFieldProperty.kt"); } + @Test @TestMetadata("kt15449.kt") public void testKt15449() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/kt15449.kt"); } + @Test @TestMetadata("kt15751_2.kt") public void testKt15751_2() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/kt15751_2.kt"); } + @Test @TestMetadata("kt16411.kt") public void testKt16411() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/kt16411.kt"); } + @Test @TestMetadata("kt35101.kt") public void testKt35101() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/kt35101.kt"); } + @Test @TestMetadata("propertyIntrinsic.kt") public void testPropertyIntrinsic() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/propertyIntrinsic.kt"); } + @Test @TestMetadata("propertyReference.kt") public void testPropertyReference() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/propertyReference.kt"); } + @Test @TestMetadata("topLevel.kt") public void testTopLevel() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/topLevel.kt"); } + @Test @TestMetadata("topLevelExtension.kt") public void testTopLevelExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/topLevelExtension.kt"); } + @Test @TestMetadata("topLevelProperty.kt") public void testTopLevelProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/topLevelProperty.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/callableReference/bound") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Bound extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Bound extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInBound() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/callableReference/bound"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("classProperty.kt") public void testClassProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/classProperty.kt"); } + @Test @TestMetadata("emptyLhsFunction.kt") public void testEmptyLhsFunction() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsFunction.kt"); } + @Test @TestMetadata("emptyLhsOnInlineProperty.kt") public void testEmptyLhsOnInlineProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsOnInlineProperty.kt"); } + @Test @TestMetadata("emptyLhsProperty.kt") public void testEmptyLhsProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsProperty.kt"); } + @Test @TestMetadata("expression.kt") public void testExpression() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/expression.kt"); } + @Test @TestMetadata("extensionReceiver.kt") public void testExtensionReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/extensionReceiver.kt"); } + @Test @TestMetadata("filter.kt") public void testFilter() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/filter.kt"); } + @Test @TestMetadata("inlineValueParameterInsteadOfReceiver.kt") public void testInlineValueParameterInsteadOfReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/inlineValueParameterInsteadOfReceiver.kt"); } + @Test @TestMetadata("innerGenericConstuctor.kt") public void testInnerGenericConstuctor() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/innerGenericConstuctor.kt"); } + @Test @TestMetadata("intrinsic.kt") public void testIntrinsic() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/intrinsic.kt"); } + @Test @TestMetadata("jvmFieldProperty.kt") public void testJvmFieldProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/jvmFieldProperty.kt"); } + @Test @TestMetadata("kt18728.kt") public void testKt18728() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728.kt"); } + @Test @TestMetadata("kt18728_2.kt") public void testKt18728_2() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_2.kt"); } + @Test @TestMetadata("kt18728_3.kt") public void testKt18728_3() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_3.kt"); } + @Test @TestMetadata("kt18728_4.kt") public void testKt18728_4() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_4.kt"); } + @Test @TestMetadata("lambdaOnLhs.kt") public void testLambdaOnLhs() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/lambdaOnLhs.kt"); } + @Test @TestMetadata("map.kt") public void testMap() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/map.kt"); } + @Test @TestMetadata("mixed.kt") public void testMixed() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/mixed.kt"); } + @Test @TestMetadata("objectProperty.kt") public void testObjectProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/objectProperty.kt"); } + @Test @TestMetadata("propertyImportedFromObject.kt") public void testPropertyImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/propertyImportedFromObject.kt"); } + @Test @TestMetadata("sideEffect.kt") public void testSideEffect() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/sideEffect.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/simple.kt"); } + @Test @TestMetadata("simpleVal.kt") public void testSimpleVal() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/simpleVal.kt"); } + @Test @TestMetadata("simpleVal2.kt") public void testSimpleVal2() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/simpleVal2.kt"); } + @Test @TestMetadata("topLevelExtensionProperty.kt") public void testTopLevelExtensionProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/callableReference/bound/topLevelExtensionProperty.kt"); @@ -1054,649 +1181,740 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/capture") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Capture extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Capture extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInCapture() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/capture"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("captureInlinable.kt") public void testCaptureInlinable() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/captureInlinable.kt"); } + @Test @TestMetadata("captureInlinableAndOther.kt") public void testCaptureInlinableAndOther() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/captureInlinableAndOther.kt"); } + @Test @TestMetadata("captureThisAndReceiver.kt") public void testCaptureThisAndReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/captureThisAndReceiver.kt"); } + @Test @TestMetadata("generics.kt") public void testGenerics() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/generics.kt"); } + @Test @TestMetadata("simpleCapturingInClass.kt") public void testSimpleCapturingInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/simpleCapturingInClass.kt"); } + @Test @TestMetadata("simpleCapturingInPackage.kt") public void testSimpleCapturingInPackage() throws Exception { runTest("compiler/testData/codegen/boxInline/capture/simpleCapturingInPackage.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/complex") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Complex extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Complex extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInComplex() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/complex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("closureChain.kt") public void testClosureChain() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/closureChain.kt"); } + @Test @TestMetadata("forEachLine.kt") public void testForEachLine() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/forEachLine.kt"); } + @Test @TestMetadata("kt44429.kt") public void testKt44429() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/kt44429.kt"); } + @Test @TestMetadata("lambdaInLambda.kt") public void testLambdaInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/lambdaInLambda.kt"); } + @Test @TestMetadata("swapAndWith.kt") public void testSwapAndWith() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/swapAndWith.kt"); } + @Test @TestMetadata("swapAndWith2.kt") public void testSwapAndWith2() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/swapAndWith2.kt"); } + @Test @TestMetadata("use.kt") public void testUse() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/use.kt"); } + @Test @TestMetadata("with.kt") public void testWith() throws Exception { runTest("compiler/testData/codegen/boxInline/complex/with.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/complexStack") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ComplexStack extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class ComplexStack extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInComplexStack() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/complexStack"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("asCheck.kt") public void testAsCheck() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/asCheck.kt"); } + @Test @TestMetadata("asCheck2.kt") public void testAsCheck2() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/asCheck2.kt"); } + @Test @TestMetadata("breakContinueInInlineLambdaArgument.kt") public void testBreakContinueInInlineLambdaArgument() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/breakContinueInInlineLambdaArgument.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simple.kt"); } + @Test @TestMetadata("simple2.kt") public void testSimple2() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simple2.kt"); } + @Test @TestMetadata("simple3.kt") public void testSimple3() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simple3.kt"); } + @Test @TestMetadata("simple4.kt") public void testSimple4() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simple4.kt"); } + @Test @TestMetadata("simpleExtension.kt") public void testSimpleExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/simpleExtension.kt"); } + @Test @TestMetadata("spillConstructorArgumentsAndInlineLambdaParameter.kt") public void testSpillConstructorArgumentsAndInlineLambdaParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/complexStack/spillConstructorArgumentsAndInlineLambdaParameter.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/contracts") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Contracts extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Contracts extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInContracts() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/contracts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("cfgDependendValInitialization.kt") public void testCfgDependendValInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/cfgDependendValInitialization.kt"); } + @Test @TestMetadata("complexInitializer.kt") public void testComplexInitializer() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/complexInitializer.kt"); } + @Test @TestMetadata("complexInitializerWithStackTransformation.kt") public void testComplexInitializerWithStackTransformation() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/complexInitializerWithStackTransformation.kt"); } + @Test @TestMetadata("crossinlineCallableReference.kt") public void testCrossinlineCallableReference() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/crossinlineCallableReference.kt"); } + @Test @TestMetadata("definiteLongValInitialization.kt") public void testDefiniteLongValInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/definiteLongValInitialization.kt"); } + @Test @TestMetadata("definiteNestedValInitialization.kt") public void testDefiniteNestedValInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/definiteNestedValInitialization.kt"); } + @Test @TestMetadata("definiteValInitInInitializer.kt") public void testDefiniteValInitInInitializer() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/definiteValInitInInitializer.kt"); } + @Test @TestMetadata("definiteValInitialization.kt") public void testDefiniteValInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/definiteValInitialization.kt"); } + @Test @TestMetadata("exactlyOnceCrossinline.kt") public void testExactlyOnceCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline.kt"); } + @Test @TestMetadata("exactlyOnceCrossinline2.kt") public void testExactlyOnceCrossinline2() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline2.kt"); } + @Test @TestMetadata("exactlyOnceNoinline.kt") public void testExactlyOnceNoinline() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceNoinline.kt"); } + @Test @TestMetadata("nonLocalReturn.kt") public void testNonLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/nonLocalReturn.kt"); } + @Test @TestMetadata("nonLocalReturnWithCycle.kt") public void testNonLocalReturnWithCycle() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/nonLocalReturnWithCycle.kt"); } + @Test @TestMetadata("propertyInitialization.kt") public void testPropertyInitialization() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/propertyInitialization.kt"); } + @Test @TestMetadata("valInitializationAndUsageInNestedLambda.kt") public void testValInitializationAndUsageInNestedLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/contracts/valInitializationAndUsageInNestedLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/defaultValues") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultValues extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class DefaultValues extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test @TestMetadata("33Parameters.kt") public void test33Parameters() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/33Parameters.kt"); } + @Test @TestMetadata("33ParametersInConstructor.kt") public void test33ParametersInConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/33ParametersInConstructor.kt"); } + @Test public void testAllFilesPresentInDefaultValues() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("defaultInExtension.kt") public void testDefaultInExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/defaultInExtension.kt"); } + @Test @TestMetadata("defaultMethod.kt") public void testDefaultMethod() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/defaultMethod.kt"); } + @Test @TestMetadata("defaultMethodInClass.kt") public void testDefaultMethodInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/defaultMethodInClass.kt"); } + @Test @TestMetadata("defaultParamRemapping.kt") public void testDefaultParamRemapping() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/defaultParamRemapping.kt"); } + @Test @TestMetadata("inlineInDefaultParameter.kt") public void testInlineInDefaultParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/inlineInDefaultParameter.kt"); } + @Test @TestMetadata("inlineLambdaInNoInlineDefault.kt") public void testInlineLambdaInNoInlineDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/inlineLambdaInNoInlineDefault.kt"); } + @Test @TestMetadata("kt11479.kt") public void testKt11479() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt11479.kt"); } + @Test @TestMetadata("kt11479InlinedDefaultParameter.kt") public void testKt11479InlinedDefaultParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt11479InlinedDefaultParameter.kt"); } + @Test @TestMetadata("kt14564.kt") public void testKt14564() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564.kt"); } + @Test @TestMetadata("kt14564_2.kt") public void testKt14564_2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564_2.kt"); } + @Test @TestMetadata("kt16496.kt") public void testKt16496() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt16496.kt"); } + @Test @TestMetadata("kt18689.kt") public void testKt18689() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689.kt"); } + @Test @TestMetadata("kt18689_2.kt") public void testKt18689_2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_2.kt"); } + @Test @TestMetadata("kt18689_3.kt") public void testKt18689_3() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_3.kt"); } + @Test @TestMetadata("kt18689_4.kt") public void testKt18689_4() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_4.kt"); } + @Test @TestMetadata("kt5685.kt") public void testKt5685() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/kt5685.kt"); } + @Test @TestMetadata("simpleDefaultMethod.kt") public void testSimpleDefaultMethod() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/simpleDefaultMethod.kt"); } + @Test @TestMetadata("varArgNoInline.kt") public void testVarArgNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/varArgNoInline.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LambdaInlining extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class LambdaInlining extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInLambdaInlining() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("checkLambdaClassIsPresent.kt") public void testCheckLambdaClassIsPresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkLambdaClassIsPresent.kt"); } + @Test @TestMetadata("checkLambdaClassesArePresent.kt") public void testCheckLambdaClassesArePresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkLambdaClassesArePresent.kt"); } + @Test @TestMetadata("checkObjectClassIsPresent.kt") public void testCheckObjectClassIsPresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkObjectClassIsPresent.kt"); } + @Test @TestMetadata("checkStaticLambdaClassIsPresent.kt") public void testCheckStaticLambdaClassIsPresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticLambdaClassIsPresent.kt"); } + @Test @TestMetadata("checkStaticLambdaClassesArePresent.kt") public void testCheckStaticLambdaClassesArePresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticLambdaClassesArePresent.kt"); } + @Test @TestMetadata("checkStaticObjectClassIsPresent.kt") public void testCheckStaticObjectClassIsPresent() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticObjectClassIsPresent.kt"); } + @Test @TestMetadata("defaultCallInDefaultLambda.kt") public void testDefaultCallInDefaultLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultCallInDefaultLambda.kt"); } + @Test @TestMetadata("defaultLambdaInNoInline.kt") public void testDefaultLambdaInNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultLambdaInNoInline.kt"); } + @Test @TestMetadata("differentInvokeSignature.kt") public void testDifferentInvokeSignature() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/differentInvokeSignature.kt"); } + @Test @TestMetadata("genericLambda.kt") public void testGenericLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/genericLambda.kt"); } + @Test @TestMetadata("instanceCapturedInClass.kt") public void testInstanceCapturedInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInClass.kt"); } + @Test @TestMetadata("instanceCapturedInInterface.kt") public void testInstanceCapturedInInterface() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInInterface.kt"); } + @Test @TestMetadata("jvmStaticDefault.kt") public void testJvmStaticDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/jvmStaticDefault.kt"); } + @Test @TestMetadata("kt21827.kt") public void testKt21827() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21827.kt"); } + @Test @TestMetadata("kt21946.kt") public void testKt21946() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21946.kt"); } + @Test @TestMetadata("kt24477.kt") public void testKt24477() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt24477.kt"); } + @Test @TestMetadata("kt25106.kt") public void testKt25106() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt25106.kt"); } + @Test @TestMetadata("kt26636.kt") public void testKt26636() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt26636.kt"); } + @Test @TestMetadata("noInline.kt") public void testNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/noInline.kt"); } + @Test @TestMetadata("nonDefaultInlineInNoInline.kt") public void testNonDefaultInlineInNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/nonDefaultInlineInNoInline.kt"); } + @Test @TestMetadata("receiverClash.kt") public void testReceiverClash() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash.kt"); } + @Test @TestMetadata("receiverClash2.kt") public void testReceiverClash2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash2.kt"); } + @Test @TestMetadata("receiverClashInClass.kt") public void testReceiverClashInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass.kt"); } + @Test @TestMetadata("receiverClashInClass2.kt") public void testReceiverClashInClass2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass2.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simple.kt"); } + @Test @TestMetadata("simpleErased.kt") public void testSimpleErased() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErased.kt"); } + @Test @TestMetadata("simpleErasedStaticInstance.kt") public void testSimpleErasedStaticInstance() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErasedStaticInstance.kt"); } + @Test @TestMetadata("simpleExtension.kt") public void testSimpleExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleExtension.kt"); } + @Test @TestMetadata("simpleGeneric.kt") public void testSimpleGeneric() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleGeneric.kt"); } + @Test @TestMetadata("simpleStaticInstance.kt") public void testSimpleStaticInstance() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleStaticInstance.kt"); } + @Test @TestMetadata("thisClash.kt") public void testThisClash() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClash.kt"); } + @Test @TestMetadata("thisClashInClass.kt") public void testThisClashInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClashInClass.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CallableReferences extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class CallableReferences extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInCallableReferences() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("boundFunctionReference.kt") public void testBoundFunctionReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReference.kt"); } + @Test @TestMetadata("boundFunctionReferenceOnInt.kt") public void testBoundFunctionReferenceOnInt() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnInt.kt"); } + @Test @TestMetadata("boundFunctionReferenceOnLong.kt") public void testBoundFunctionReferenceOnLong() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnLong.kt"); } + @Test @TestMetadata("boundPropertyReference.kt") public void testBoundPropertyReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReference.kt"); } + @Test @TestMetadata("boundPropertyReferenceOnInt.kt") public void testBoundPropertyReferenceOnInt() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnInt.kt"); } + @Test @TestMetadata("boundPropertyReferenceOnLong.kt") public void testBoundPropertyReferenceOnLong() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnLong.kt"); } + @Test @TestMetadata("constuctorReference.kt") public void testConstuctorReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/constuctorReference.kt"); } + @Test @TestMetadata("differentInvokeSignature.kt") public void testDifferentInvokeSignature() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature.kt"); } + @Test @TestMetadata("differentInvokeSignature2.kt") public void testDifferentInvokeSignature2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature2.kt"); } + @Test @TestMetadata("functionImportedFromObject.kt") public void testFunctionImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionImportedFromObject.kt"); } + @Test @TestMetadata("functionReference.kt") public void testFunctionReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReference.kt"); } + @Test @TestMetadata("functionReferenceFromClass.kt") public void testFunctionReferenceFromClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromClass.kt"); } + @Test @TestMetadata("functionReferenceFromObject.kt") public void testFunctionReferenceFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromObject.kt"); } + @Test @TestMetadata("innerClassConstuctorReference.kt") public void testInnerClassConstuctorReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/innerClassConstuctorReference.kt"); } + @Test @TestMetadata("mutableBoundPropertyReferenceFromClass.kt") public void testMutableBoundPropertyReferenceFromClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutableBoundPropertyReferenceFromClass.kt"); } + @Test @TestMetadata("mutablePropertyReferenceFromClass.kt") public void testMutablePropertyReferenceFromClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutablePropertyReferenceFromClass.kt"); } + @Test @TestMetadata("privateFunctionReference.kt") public void testPrivateFunctionReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privateFunctionReference.kt"); } + @Test @TestMetadata("privatePropertyReference.kt") public void testPrivatePropertyReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privatePropertyReference.kt"); } + @Test @TestMetadata("propertyImportedFromObject.kt") public void testPropertyImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyImportedFromObject.kt"); } + @Test @TestMetadata("propertyReference.kt") public void testPropertyReference() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReference.kt"); } + @Test @TestMetadata("propertyReferenceFromClass.kt") public void testPropertyReferenceFromClass() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromClass.kt"); } + @Test @TestMetadata("propertyReferenceFromObject.kt") public void testPropertyReferenceFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromObject.kt"); @@ -1704,48 +1922,52 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/defaultValues/maskElimination") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MaskElimination extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class MaskElimination extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test @TestMetadata("32Parameters.kt") public void test32Parameters() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/32Parameters.kt"); } + @Test @TestMetadata("33Parameters.kt") public void test33Parameters() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/33Parameters.kt"); } + @Test public void testAllFilesPresentInMaskElimination() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/maskElimination"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("kt18792.kt") public void testKt18792() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt18792.kt"); } + @Test @TestMetadata("kt19679.kt") public void testKt19679() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679.kt"); } + @Test @TestMetadata("kt19679_2.kt") public void testKt19679_2() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_2.kt"); } + @Test @TestMetadata("kt19679_3.kt") public void testKt19679_3() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_3.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/simple.kt"); @@ -1753,375 +1975,400 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/delegatedProperty") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DelegatedProperty extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class DelegatedProperty extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInDelegatedProperty() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/delegatedProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("kt16864.kt") public void testKt16864() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt16864.kt"); } + @Test @TestMetadata("local.kt") public void testLocal() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/local.kt"); } + @Test @TestMetadata("localDeclaredInLambda.kt") public void testLocalDeclaredInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/localDeclaredInLambda.kt"); } + @Test @TestMetadata("localInAnonymousObject.kt") public void testLocalInAnonymousObject() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/localInAnonymousObject.kt"); } + @Test @TestMetadata("localInLambda.kt") public void testLocalInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/delegatedProperty/localInLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/enclosingInfo") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class EnclosingInfo extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class EnclosingInfo extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInEnclosingInfo() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/enclosingInfo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("anonymousInLambda.kt") public void testAnonymousInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/anonymousInLambda.kt"); } + @Test @TestMetadata("inlineChain.kt") public void testInlineChain() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/inlineChain.kt"); } + @Test @TestMetadata("inlineChain2.kt") public void testInlineChain2() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/inlineChain2.kt"); } + @Test @TestMetadata("objectInInlineFun.kt") public void testObjectInInlineFun() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/objectInInlineFun.kt"); } + @Test @TestMetadata("transformedConstructor.kt") public void testTransformedConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/transformedConstructor.kt"); } + @Test @TestMetadata("transformedConstructorWithAdditionalObject.kt") public void testTransformedConstructorWithAdditionalObject() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/transformedConstructorWithAdditionalObject.kt"); } + @Test @TestMetadata("transformedConstructorWithNestedInline.kt") public void testTransformedConstructorWithNestedInline() throws Exception { runTest("compiler/testData/codegen/boxInline/enclosingInfo/transformedConstructorWithNestedInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/enum") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Enum extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Enum extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInEnum() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/enum"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("kt10569.kt") public void testKt10569() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/kt10569.kt"); } + @Test @TestMetadata("kt18254.kt") public void testKt18254() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/kt18254.kt"); } + @Test @TestMetadata("valueOf.kt") public void testValueOf() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOf.kt"); } + @Test @TestMetadata("valueOfCapturedType.kt") public void testValueOfCapturedType() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOfCapturedType.kt"); } + @Test @TestMetadata("valueOfChain.kt") public void testValueOfChain() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOfChain.kt"); } + @Test @TestMetadata("valueOfChainCapturedType.kt") public void testValueOfChainCapturedType() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOfChainCapturedType.kt"); } + @Test @TestMetadata("valueOfNonReified.kt") public void testValueOfNonReified() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valueOfNonReified.kt"); } + @Test @TestMetadata("values.kt") public void testValues() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/values.kt"); } + @Test @TestMetadata("valuesAsArray.kt") public void testValuesAsArray() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesAsArray.kt"); } + @Test @TestMetadata("valuesCapturedType.kt") public void testValuesCapturedType() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesCapturedType.kt"); } + @Test @TestMetadata("valuesChain.kt") public void testValuesChain() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesChain.kt"); } + @Test @TestMetadata("valuesChainCapturedType.kt") public void testValuesChainCapturedType() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesChainCapturedType.kt"); } + @Test @TestMetadata("valuesNonReified.kt") public void testValuesNonReified() throws Exception { runTest("compiler/testData/codegen/boxInline/enum/valuesNonReified.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/functionExpression") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class FunctionExpression extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class FunctionExpression extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInFunctionExpression() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/functionExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("extension.kt") public void testExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/functionExpression/extension.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineClasses extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class InlineClasses extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInInlineClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("inlineClassWithInlineValReturningInlineClass.kt") public void testInlineClassWithInlineValReturningInlineClass() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineClassWithInlineValReturningInlineClass.kt"); } + @Test @TestMetadata("inlineFunctionInsideInlineClassesBox.kt") public void testInlineFunctionInsideInlineClassesBox() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt"); } + @Test @TestMetadata("noReturnTypeManglingFun.kt") public void testNoReturnTypeManglingFun() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/noReturnTypeManglingFun.kt"); } + @Test @TestMetadata("noReturnTypeManglingFunJvmName.kt") public void testNoReturnTypeManglingFunJvmName() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/noReturnTypeManglingFunJvmName.kt"); } + @Test @TestMetadata("noReturnTypeManglingVal.kt") public void testNoReturnTypeManglingVal() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/noReturnTypeManglingVal.kt"); } + @Test @TestMetadata("withReturnTypeManglingFun.kt") public void testWithReturnTypeManglingFun() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/withReturnTypeManglingFun.kt"); } + @Test @TestMetadata("withReturnTypeManglingFunJvmName.kt") public void testWithReturnTypeManglingFunJvmName() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/withReturnTypeManglingFunJvmName.kt"); } + @Test @TestMetadata("withReturnTypeManglingVal.kt") public void testWithReturnTypeManglingVal() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/withReturnTypeManglingVal.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class UnboxGenericParameter extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class UnboxGenericParameter extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInUnboxGenericParameter() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class FunInterface extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class FunInterface extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInFunInterface() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("any.kt") public void testAny() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/any.kt"); } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/anyN.kt"); } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/iface.kt"); } + @Test @TestMetadata("ifaceChild.kt") public void testIfaceChild() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/ifaceChild.kt"); } + @Test @TestMetadata("primitive.kt") public void testPrimitive() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/primitive.kt"); } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/funInterface/string.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Lambda extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Lambda extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("any.kt") public void testAny() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/any.kt"); } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/anyN.kt"); } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/iface.kt"); } + @Test @TestMetadata("ifaceChild.kt") public void testIfaceChild() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/ifaceChild.kt"); } + @Test @TestMetadata("primitive.kt") public void testPrimitive() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/primitive.kt"); } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/lambda/string.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ObjectLiteral extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class ObjectLiteral extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInObjectLiteral() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("any.kt") public void testAny() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/any.kt"); } + @Test @TestMetadata("anyN.kt") public void testAnyN() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/anyN.kt"); } + @Test @TestMetadata("iface.kt") public void testIface() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/iface.kt"); } + @Test @TestMetadata("ifaceChild.kt") public void testIfaceChild() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChild.kt"); } + @Test @TestMetadata("primitive.kt") public void testPrimitive() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/primitive.kt"); } + @Test @TestMetadata("string.kt") public void testString() throws Exception { runTest("compiler/testData/codegen/boxInline/inlineClasses/unboxGenericParameter/objectLiteral/string.kt"); @@ -2130,239 +2377,231 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/innerClasses") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InnerClasses extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class InnerClasses extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInInnerClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/innerClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("captureThisAndOuter.kt") public void testCaptureThisAndOuter() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/captureThisAndOuter.kt"); } + @Test @TestMetadata("innerLambda.kt") public void testInnerLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/innerLambda.kt"); } + @Test @TestMetadata("kt10259.kt") public void testKt10259() throws Exception { runTest("compiler/testData/codegen/boxInline/innerClasses/kt10259.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/jvmName") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class JvmName extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class JvmName extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInJvmName() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/jvmName"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/jvmName/simple.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/jvmPackageName") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class JvmPackageName extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class JvmPackageName extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInJvmPackageName() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/jvmPackageName"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/jvmPackageName/simple.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/lambdaClassClash") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LambdaClassClash extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class LambdaClassClash extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInLambdaClassClash() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/lambdaClassClash"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("lambdaClassClash.kt") public void testLambdaClassClash() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaClassClash/lambdaClassClash.kt"); } + @Test @TestMetadata("noInlineLambdaX2.kt") public void testNoInlineLambdaX2() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaClassClash/noInlineLambdaX2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/lambdaTransformation") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LambdaTransformation extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class LambdaTransformation extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInLambdaTransformation() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/lambdaTransformation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("lambdaCloning.kt") public void testLambdaCloning() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/lambdaCloning.kt"); } + @Test @TestMetadata("lambdaInLambda2.kt") public void testLambdaInLambda2() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/lambdaInLambda2.kt"); } + @Test @TestMetadata("lambdaInLambdaNoInline.kt") public void testLambdaInLambdaNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/lambdaInLambdaNoInline.kt"); } + @Test @TestMetadata("regeneratedLambdaName.kt") public void testRegeneratedLambdaName() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/regeneratedLambdaName.kt"); } + @Test @TestMetadata("regeneratedLambdaName2.kt") public void testRegeneratedLambdaName2() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/regeneratedLambdaName2.kt"); } + @Test @TestMetadata("sameCaptured.kt") public void testSameCaptured() throws Exception { runTest("compiler/testData/codegen/boxInline/lambdaTransformation/sameCaptured.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/localFunInLambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LocalFunInLambda extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class LocalFunInLambda extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInLocalFunInLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/localFunInLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("defaultParam.kt") public void testDefaultParam() throws Exception { runTest("compiler/testData/codegen/boxInline/localFunInLambda/defaultParam.kt"); } + @Test @TestMetadata("lambdaInLambdaCapturesAnotherFun.kt") public void testLambdaInLambdaCapturesAnotherFun() throws Exception { runTest("compiler/testData/codegen/boxInline/localFunInLambda/lambdaInLambdaCapturesAnotherFun.kt"); } + @Test @TestMetadata("localFunInLambda.kt") public void testLocalFunInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/localFunInLambda/localFunInLambda.kt"); } + @Test @TestMetadata("localFunInLambdaCapturesAnotherFun.kt") public void testLocalFunInLambdaCapturesAnotherFun() throws Exception { runTest("compiler/testData/codegen/boxInline/localFunInLambda/localFunInLambdaCapturesAnotherFun.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/multiModule") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MultiModule extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class MultiModule extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInMultiModule() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiModule"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("tryCatchWithRecursiveInline.kt") public void testTryCatchWithRecursiveInline() throws Exception { runTest("compiler/testData/codegen/boxInline/multiModule/tryCatchWithRecursiveInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/multifileClasses") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MultifileClasses extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class MultifileClasses extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInMultifileClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multifileClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("defaultArguments.kt") public void testDefaultArguments() throws Exception { runTest("compiler/testData/codegen/boxInline/multifileClasses/defaultArguments.kt"); } + @Test @TestMetadata("inlineFromOptimizedMultifileClass.kt") public void testInlineFromOptimizedMultifileClass() throws Exception { runTest("compiler/testData/codegen/boxInline/multifileClasses/inlineFromOptimizedMultifileClass.kt"); } + @Test @TestMetadata("inlineFromOtherPackage.kt") public void testInlineFromOtherPackage() throws Exception { runTest("compiler/testData/codegen/boxInline/multifileClasses/inlineFromOtherPackage.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/multiplatform") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Multiplatform extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Multiplatform extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInMultiplatform() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/multiplatform/defaultArguments") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultArguments extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class DefaultArguments extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInDefaultArguments() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiplatform/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("receiversAndParametersInLambda.kt") public void testReceiversAndParametersInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/multiplatform/defaultArguments/receiversAndParametersInLambda.kt"); @@ -2370,575 +2609,640 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/noInline") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class NoInline extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class NoInline extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInNoInline() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/noInline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("extensionReceiver.kt") public void testExtensionReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/extensionReceiver.kt"); } + @Test @TestMetadata("lambdaAsGeneric.kt") public void testLambdaAsGeneric() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/lambdaAsGeneric.kt"); } + @Test @TestMetadata("lambdaAsNonFunction.kt") public void testLambdaAsNonFunction() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/lambdaAsNonFunction.kt"); } + @Test @TestMetadata("noInline.kt") public void testNoInline() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/noInline.kt"); } + @Test @TestMetadata("noInlineLambdaChain.kt") public void testNoInlineLambdaChain() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/noInlineLambdaChain.kt"); } + @Test @TestMetadata("noInlineLambdaChainWithCapturedInline.kt") public void testNoInlineLambdaChainWithCapturedInline() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/noInlineLambdaChainWithCapturedInline.kt"); } + @Test @TestMetadata("withoutInline.kt") public void testWithoutInline() throws Exception { runTest("compiler/testData/codegen/boxInline/noInline/withoutInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class NonLocalReturns extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class NonLocalReturns extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInNonLocalReturns() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("explicitLocalReturn.kt") public void testExplicitLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/explicitLocalReturn.kt"); } + @Test @TestMetadata("fromArrayGenerator.kt") public void testFromArrayGenerator() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGenerator.kt"); } + @Test @TestMetadata("fromArrayGeneratorCatch.kt") public void testFromArrayGeneratorCatch() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorCatch.kt"); } + @Test @TestMetadata("fromArrayGeneratorNested.kt") public void testFromArrayGeneratorNested() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorNested.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithCapture.kt") public void testFromArrayGeneratorWithCapture() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithCapture.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithCatch.kt") public void testFromArrayGeneratorWithCatch() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithCatch.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithFinally.kt") public void testFromArrayGeneratorWithFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithFinally.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithFinallyX2.kt") public void testFromArrayGeneratorWithFinallyX2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithFinallyX2.kt"); } + @Test @TestMetadata("fromArrayGeneratorWithFinallyX2_2.kt") public void testFromArrayGeneratorWithFinallyX2_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromArrayGeneratorWithFinallyX2_2.kt"); } + @Test @TestMetadata("fromInterfaceDefaultGetter.kt") public void testFromInterfaceDefaultGetter() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromInterfaceDefaultGetter.kt"); } + @Test @TestMetadata("justReturnInLambda.kt") public void testJustReturnInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/justReturnInLambda.kt"); } + @Test @TestMetadata("kt5199.kt") public void testKt5199() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt5199.kt"); } + @Test @TestMetadata("kt8948.kt") public void testKt8948() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948.kt"); } + @Test @TestMetadata("kt8948v2.kt") public void testKt8948v2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt"); } + @Test @TestMetadata("nestedNonLocals.kt") public void testNestedNonLocals() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/nestedNonLocals.kt"); } + @Test @TestMetadata("noInlineLocalReturn.kt") public void testNoInlineLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/noInlineLocalReturn.kt"); } + @Test @TestMetadata("nonLocalReturnFromOuterLambda.kt") public void testNonLocalReturnFromOuterLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/nonLocalReturnFromOuterLambda.kt"); } + @Test @TestMetadata("propertyAccessors.kt") public void testPropertyAccessors() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/propertyAccessors.kt"); } + @Test @TestMetadata("returnFromFunctionExpr.kt") public void testReturnFromFunctionExpr() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/returnFromFunctionExpr.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simple.kt"); } + @Test @TestMetadata("simpleFunctional.kt") public void testSimpleFunctional() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simpleFunctional.kt"); } + @Test @TestMetadata("simpleVoid.kt") public void testSimpleVoid() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simpleVoid.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Deparenthesize extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Deparenthesize extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInDeparenthesize() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("bracket.kt") public void testBracket() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize/bracket.kt"); } + @Test @TestMetadata("labeled.kt") public void testLabeled() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize/labeled.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class TryFinally extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class TryFinally extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInTryFinally() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("kt16417.kt") public void testKt16417() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt16417.kt"); } + @Test @TestMetadata("kt20433.kt") public void testKt20433() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433.kt"); } + @Test @TestMetadata("kt20433_2.kt") public void testKt20433_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2.kt"); } + @Test @TestMetadata("kt20433_2_void.kt") public void testKt20433_2_void() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2_void.kt"); } + @Test @TestMetadata("kt20433_void.kt") public void testKt20433_void() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_void.kt"); } + @Test @TestMetadata("kt26384.kt") public void testKt26384() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384.kt"); } + @Test @TestMetadata("kt26384_2.kt") public void testKt26384_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384_2.kt"); } + @Test @TestMetadata("kt28546.kt") public void testKt28546() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt28546.kt"); } + @Test @TestMetadata("kt6956.kt") public void testKt6956() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt6956.kt"); } + @Test @TestMetadata("kt7273.kt") public void testKt7273() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt7273.kt"); } + @Test @TestMetadata("nonLocalReturnFromCatchBlock.kt") public void testNonLocalReturnFromCatchBlock() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromCatchBlock.kt"); } + @Test @TestMetadata("nonLocalReturnFromOuterLambda.kt") public void testNonLocalReturnFromOuterLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromOuterLambda.kt"); } + @Test @TestMetadata("nonLocalReturnToCatchBlock.kt") public void testNonLocalReturnToCatchBlock() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnToCatchBlock.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CallSite extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class CallSite extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInCallSite() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("callSite.kt") public void testCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/callSite.kt"); } + @Test @TestMetadata("callSiteComplex.kt") public void testCallSiteComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/callSiteComplex.kt"); } + @Test @TestMetadata("exceptionTableSplit.kt") public void testExceptionTableSplit() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplit.kt"); } + @Test @TestMetadata("exceptionTableSplitNoReturn.kt") public void testExceptionTableSplitNoReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplitNoReturn.kt"); } + @Test @TestMetadata("finallyInFinally.kt") public void testFinallyInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/finallyInFinally.kt"); } + @Test @TestMetadata("wrongVarInterval.kt") public void testWrongVarInterval() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/wrongVarInterval.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Chained extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Chained extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInChained() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("finallyInFinally.kt") public void testFinallyInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally.kt"); } + @Test @TestMetadata("finallyInFinally2.kt") public void testFinallyInFinally2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally2.kt"); } + @Test @TestMetadata("intReturn.kt") public void testIntReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturn.kt"); } + @Test @TestMetadata("intReturnComplex.kt") public void testIntReturnComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex.kt"); } + @Test @TestMetadata("intReturnComplex2.kt") public void testIntReturnComplex2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex2.kt"); } + @Test @TestMetadata("intReturnComplex3.kt") public void testIntReturnComplex3() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex3.kt"); } + @Test @TestMetadata("intReturnComplex4.kt") public void testIntReturnComplex4() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex4.kt"); } + @Test @TestMetadata("nestedLambda.kt") public void testNestedLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/nestedLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DeclSite extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class DeclSite extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInDeclSite() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("complex.kt") public void testComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/complex.kt"); } + @Test @TestMetadata("intReturn.kt") public void testIntReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturn.kt"); } + @Test @TestMetadata("intReturnComplex.kt") public void testIntReturnComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturnComplex.kt"); } + @Test @TestMetadata("longReturn.kt") public void testLongReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/longReturn.kt"); } + @Test @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/nested.kt"); } + @Test @TestMetadata("returnInFinally.kt") public void testReturnInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInFinally.kt"); } + @Test @TestMetadata("returnInTry.kt") public void testReturnInTry() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTry.kt"); } + @Test @TestMetadata("returnInTryAndFinally.kt") public void testReturnInTryAndFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTryAndFinally.kt"); } + @Test @TestMetadata("severalInTry.kt") public void testSeveralInTry() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTry.kt"); } + @Test @TestMetadata("severalInTryComplex.kt") public void testSeveralInTryComplex() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTryComplex.kt"); } + @Test @TestMetadata("voidInlineFun.kt") public void testVoidInlineFun() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidInlineFun.kt"); } + @Test @TestMetadata("voidNonLocal.kt") public void testVoidNonLocal() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidNonLocal.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ExceptionTable extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class ExceptionTable extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInExceptionTable() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("break.kt") public void testBreak() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/break.kt"); } + @Test @TestMetadata("continue.kt") public void testContinue() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/continue.kt"); } + @Test @TestMetadata("exceptionInFinally.kt") public void testExceptionInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/exceptionInFinally.kt"); } + @Test @TestMetadata("forInFinally.kt") public void testForInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/forInFinally.kt"); } + @Test @TestMetadata("innerAndExternal.kt") public void testInnerAndExternal() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternal.kt"); } + @Test @TestMetadata("innerAndExternalNested.kt") public void testInnerAndExternalNested() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalNested.kt"); } + @Test @TestMetadata("innerAndExternalSimple.kt") public void testInnerAndExternalSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalSimple.kt"); } + @Test @TestMetadata("kt31653.kt") public void testKt31653() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653.kt"); } + @Test @TestMetadata("kt31653_2.kt") public void testKt31653_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653_2.kt"); } + @Test @TestMetadata("kt31923.kt") public void testKt31923() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923.kt"); } + @Test @TestMetadata("kt31923_2.kt") public void testKt31923_2() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923_2.kt"); } + @Test @TestMetadata("kt31923_wrong.kt") public void testKt31923_wrong() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923_wrong.kt"); } + @Test @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nested.kt"); } + @Test @TestMetadata("nestedWithReturns.kt") public void testNestedWithReturns() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturns.kt"); } + @Test @TestMetadata("nestedWithReturnsSimple.kt") public void testNestedWithReturnsSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturnsSimple.kt"); } + @Test @TestMetadata("noFinally.kt") public void testNoFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/noFinally.kt"); } + @Test @TestMetadata("severalCatchClause.kt") public void testSeveralCatchClause() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/severalCatchClause.kt"); } + @Test @TestMetadata("simpleThrow.kt") public void testSimpleThrow() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/simpleThrow.kt"); } + @Test @TestMetadata("synchonized.kt") public void testSynchonized() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/synchonized.kt"); } + @Test @TestMetadata("throwInFinally.kt") public void testThrowInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/throwInFinally.kt"); } + @Test @TestMetadata("tryCatchInFinally.kt") public void testTryCatchInFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/tryCatchInFinally.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Variables extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Variables extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInVariables() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("kt7792.kt") public void testKt7792() throws Exception { runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables/kt7792.kt"); @@ -2947,450 +3251,501 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/optimizations") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Optimizations extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Optimizations extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInOptimizations() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/optimizations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("kt20844.kt") public void testKt20844() throws Exception { runTest("compiler/testData/codegen/boxInline/optimizations/kt20844.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/private") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Private extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Private extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test @TestMetadata("accessorForConst.kt") public void testAccessorForConst() throws Exception { runTest("compiler/testData/codegen/boxInline/private/accessorForConst.kt"); } + @Test @TestMetadata("accessorStability.kt") public void testAccessorStability() throws Exception { runTest("compiler/testData/codegen/boxInline/private/accessorStability.kt"); } + @Test @TestMetadata("accessorStabilityInClass.kt") public void testAccessorStabilityInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/private/accessorStabilityInClass.kt"); } + @Test public void testAllFilesPresentInPrivate() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/private"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("effectivePrivate.kt") public void testEffectivePrivate() throws Exception { runTest("compiler/testData/codegen/boxInline/private/effectivePrivate.kt"); } + @Test @TestMetadata("kt6453.kt") public void testKt6453() throws Exception { runTest("compiler/testData/codegen/boxInline/private/kt6453.kt"); } + @Test @TestMetadata("kt8094.kt") public void testKt8094() throws Exception { runTest("compiler/testData/codegen/boxInline/private/kt8094.kt"); } + @Test @TestMetadata("kt8095.kt") public void testKt8095() throws Exception { runTest("compiler/testData/codegen/boxInline/private/kt8095.kt"); } + @Test @TestMetadata("nestedInPrivateClass.kt") public void testNestedInPrivateClass() throws Exception { runTest("compiler/testData/codegen/boxInline/private/nestedInPrivateClass.kt"); } + @Test @TestMetadata("privateClass.kt") public void testPrivateClass() throws Exception { runTest("compiler/testData/codegen/boxInline/private/privateClass.kt"); } + @Test @TestMetadata("privateClassExtensionLambda.kt") public void testPrivateClassExtensionLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/private/privateClassExtensionLambda.kt"); } + @Test @TestMetadata("privateInInlineInMultiFileFacade.kt") public void testPrivateInInlineInMultiFileFacade() throws Exception { runTest("compiler/testData/codegen/boxInline/private/privateInInlineInMultiFileFacade.kt"); } + @Test @TestMetadata("privateInline.kt") public void testPrivateInline() throws Exception { runTest("compiler/testData/codegen/boxInline/private/privateInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/property") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Property extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Property extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInProperty() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/property"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("augAssignmentAndInc.kt") public void testAugAssignmentAndInc() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndInc.kt"); } + @Test @TestMetadata("augAssignmentAndIncInClass.kt") public void testAugAssignmentAndIncInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClass.kt"); } + @Test @TestMetadata("augAssignmentAndIncInClassViaConvention.kt") public void testAugAssignmentAndIncInClassViaConvention() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClassViaConvention.kt"); } + @Test @TestMetadata("augAssignmentAndIncOnExtension.kt") public void testAugAssignmentAndIncOnExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtension.kt"); } + @Test @TestMetadata("augAssignmentAndIncOnExtensionInClass.kt") public void testAugAssignmentAndIncOnExtensionInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtensionInClass.kt"); } + @Test @TestMetadata("augAssignmentAndIncViaConvention.kt") public void testAugAssignmentAndIncViaConvention() throws Exception { runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncViaConvention.kt"); } + @Test @TestMetadata("fromObject.kt") public void testFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/property/fromObject.kt"); } + @Test @TestMetadata("kt22649.kt") public void testKt22649() throws Exception { runTest("compiler/testData/codegen/boxInline/property/kt22649.kt"); } + @Test @TestMetadata("property.kt") public void testProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/property/property.kt"); } + @Test @TestMetadata("reifiedVal.kt") public void testReifiedVal() throws Exception { runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt"); } + @Test @TestMetadata("reifiedVar.kt") public void testReifiedVar() throws Exception { runTest("compiler/testData/codegen/boxInline/property/reifiedVar.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/property/simple.kt"); } + @Test @TestMetadata("simpleExtension.kt") public void testSimpleExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/property/simpleExtension.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/reified") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Reified extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Reified extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInReified() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("arrayConstructor.kt") public void testArrayConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/arrayConstructor.kt"); } + @Test @TestMetadata("arrayOf.kt") public void testArrayOf() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/arrayOf.kt"); } + @Test @TestMetadata("capturedLambda.kt") public void testCapturedLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/capturedLambda.kt"); } + @Test @TestMetadata("capturedLambda2.kt") public void testCapturedLambda2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/capturedLambda2.kt"); } + @Test @TestMetadata("dontSubstituteNonReified.kt") public void testDontSubstituteNonReified() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/dontSubstituteNonReified.kt"); } + @Test @TestMetadata("kt11081.kt") public void testKt11081() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt11081.kt"); } + @Test @TestMetadata("kt11677.kt") public void testKt11677() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt11677.kt"); } + @Test @TestMetadata("kt15956.kt") public void testKt15956() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt15956.kt"); } + @Test @TestMetadata("kt15997.kt") public void testKt15997() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt15997.kt"); } + @Test @TestMetadata("kt15997_2.kt") public void testKt15997_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt15997_2.kt"); } + @Test @TestMetadata("kt18977.kt") public void testKt18977() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt"); } + @Test @TestMetadata("kt35511.kt") public void testKt35511() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511.kt"); } + @Test @TestMetadata("kt35511_try.kt") public void testKt35511_try() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511_try.kt"); } + @Test @TestMetadata("kt35511_try_valueOf.kt") public void testKt35511_try_valueOf() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511_try_valueOf.kt"); } + @Test @TestMetadata("kt35511_try_values.kt") public void testKt35511_try_values() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt35511_try_values.kt"); } + @Test @TestMetadata("kt6988.kt") public void testKt6988() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt6988.kt"); } + @Test @TestMetadata("kt6988_2.kt") public void testKt6988_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt6988_2.kt"); } + @Test @TestMetadata("kt6990.kt") public void testKt6990() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt6990.kt"); } + @Test @TestMetadata("kt7017.kt") public void testKt7017() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt7017.kt"); } + @Test @TestMetadata("kt8047.kt") public void testKt8047() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt8047.kt"); } + @Test @TestMetadata("kt8047_2.kt") public void testKt8047_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt8047_2.kt"); } + @Test @TestMetadata("kt9637.kt") public void testKt9637() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt9637.kt"); } + @Test @TestMetadata("kt9637_2.kt") public void testKt9637_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/kt9637_2.kt"); } + @Test @TestMetadata("nonCapturingObjectInLambda.kt") public void testNonCapturingObjectInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/nonCapturingObjectInLambda.kt"); } + @Test @TestMetadata("packages.kt") public void testPackages() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/packages.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/reified/checkCast") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CheckCast extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class CheckCast extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInCheckCast() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified/checkCast"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("chain.kt") public void testChain() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/chain.kt"); } + @Test @TestMetadata("kt26435.kt") public void testKt26435() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt26435.kt"); } + @Test @TestMetadata("kt26435_2.kt") public void testKt26435_2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt26435_2.kt"); } + @Test @TestMetadata("kt26435_3.kt") public void testKt26435_3() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt26435_3.kt"); } + @Test @TestMetadata("kt8043.kt") public void testKt8043() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt8043.kt"); } + @Test @TestMetadata("maxStack.kt") public void testMaxStack() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/maxStack.kt"); } + @Test @TestMetadata("nullable.kt") public void testNullable() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/nullable.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/simple.kt"); } + @Test @TestMetadata("simpleSafe.kt") public void testSimpleSafe() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/simpleSafe.kt"); } + @Test @TestMetadata("simple_1_3.kt") public void testSimple_1_3() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/checkCast/simple_1_3.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/reified/defaultLambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultLambda extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class DefaultLambda extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInDefaultLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified/defaultLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("chain.kt") public void testChain() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/chain.kt"); } + @Test @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nested.kt"); } + @Test @TestMetadata("nested2.kt") public void testNested2() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nested2.kt"); } + @Test @TestMetadata("nested2Static.kt") public void testNested2Static() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nested2Static.kt"); } + @Test @TestMetadata("nestedStatic.kt") public void testNestedStatic() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/nestedStatic.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/simple.kt"); } + @Test @TestMetadata("transitiveChain.kt") public void testTransitiveChain() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/transitiveChain.kt"); } + @Test @TestMetadata("transitiveChainStatic.kt") public void testTransitiveChainStatic() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/defaultLambda/transitiveChainStatic.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/reified/isCheck") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class IsCheck extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class IsCheck extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInIsCheck() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified/isCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("chain.kt") public void testChain() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/isCheck/chain.kt"); } + @Test @TestMetadata("nullable.kt") public void testNullable() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/isCheck/nullable.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/reified/isCheck/simple.kt"); @@ -3398,518 +3753,577 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/signature") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Signature extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Signature extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInSignature() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/signature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("inProjectionSubstitution.kt") public void testInProjectionSubstitution() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/inProjectionSubstitution.kt"); } + @Test @TestMetadata("outProjectionSubstitution.kt") public void testOutProjectionSubstitution() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/outProjectionSubstitution.kt"); } + @Test @TestMetadata("recursion.kt") public void testRecursion() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/recursion.kt"); } + @Test @TestMetadata("sameFormalParameterName.kt") public void testSameFormalParameterName() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/sameFormalParameterName.kt"); } + @Test @TestMetadata("sameReifiedFormalParameterName.kt") public void testSameReifiedFormalParameterName() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/sameReifiedFormalParameterName.kt"); } + @Test @TestMetadata("starProjectionSubstitution.kt") public void testStarProjectionSubstitution() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/starProjectionSubstitution.kt"); } + @Test @TestMetadata("typeParameterInLambda.kt") public void testTypeParameterInLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/typeParameterInLambda.kt"); } + @Test @TestMetadata("typeParametersSubstitution.kt") public void testTypeParametersSubstitution() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/typeParametersSubstitution.kt"); } + @Test @TestMetadata("typeParametersSubstitution2.kt") public void testTypeParametersSubstitution2() throws Exception { runTest("compiler/testData/codegen/boxInline/signature/typeParametersSubstitution2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/simple") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Simple extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Simple extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInSimple() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/simple"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("captureAndArgumentIncompatibleTypes.kt") public void testCaptureAndArgumentIncompatibleTypes() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/captureAndArgumentIncompatibleTypes.kt"); } + @Test @TestMetadata("classObject.kt") public void testClassObject() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/classObject.kt"); } + @Test @TestMetadata("destructuring.kt") public void testDestructuring() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/destructuring.kt"); } + @Test @TestMetadata("destructuringIndexClash.kt") public void testDestructuringIndexClash() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/destructuringIndexClash.kt"); } + @Test @TestMetadata("extension.kt") public void testExtension() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/extension.kt"); } + @Test @TestMetadata("extensionLambda.kt") public void testExtensionLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/extensionLambda.kt"); } + @Test @TestMetadata("funImportedFromObject.kt") public void testFunImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/funImportedFromObject.kt"); } + @Test @TestMetadata("inlineCallInInlineLambda.kt") public void testInlineCallInInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/inlineCallInInlineLambda.kt"); } + @Test @TestMetadata("kt17431.kt") public void testKt17431() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/kt17431.kt"); } + @Test @TestMetadata("kt28547.kt") public void testKt28547() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/kt28547.kt"); } + @Test @TestMetadata("kt28547_2.kt") public void testKt28547_2() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/kt28547_2.kt"); } + @Test @TestMetadata("params.kt") public void testParams() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/params.kt"); } + @Test @TestMetadata("propImportedFromObject.kt") public void testPropImportedFromObject() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/propImportedFromObject.kt"); } + @Test @TestMetadata("rootConstructor.kt") public void testRootConstructor() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/rootConstructor.kt"); } + @Test @TestMetadata("safeCall.kt") public void testSafeCall() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/safeCall.kt"); } + @Test @TestMetadata("severalClosures.kt") public void testSeveralClosures() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/severalClosures.kt"); } + @Test @TestMetadata("severalUsage.kt") public void testSeveralUsage() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/severalUsage.kt"); } + @Test @TestMetadata("simpleDouble.kt") public void testSimpleDouble() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleDouble.kt"); } + @Test @TestMetadata("simpleEnum.kt") public void testSimpleEnum() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleEnum.kt"); } + @Test @TestMetadata("simpleGenerics.kt") public void testSimpleGenerics() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleGenerics.kt"); } + @Test @TestMetadata("simpleInt.kt") public void testSimpleInt() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleInt.kt"); } + @Test @TestMetadata("simpleLambda.kt") public void testSimpleLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleLambda.kt"); } + @Test @TestMetadata("simpleObject.kt") public void testSimpleObject() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/simpleObject.kt"); } + @Test @TestMetadata("vararg.kt") public void testVararg() throws Exception { runTest("compiler/testData/codegen/boxInline/simple/vararg.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Smap extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Smap extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInSmap() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("assertion.kt") public void testAssertion() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/assertion.kt"); } + @Test @TestMetadata("classCycle.kt") public void testClassCycle() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/classCycle.kt"); } + @Test @TestMetadata("classFromDefaultPackage.kt") public void testClassFromDefaultPackage() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/classFromDefaultPackage.kt"); } + @Test @TestMetadata("crossroutines.kt") public void testCrossroutines() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/crossroutines.kt"); } + @Test @TestMetadata("defaultFunction.kt") public void testDefaultFunction() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultFunction.kt"); } + @Test @TestMetadata("defaultFunctionWithInlineCall.kt") public void testDefaultFunctionWithInlineCall() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultFunctionWithInlineCall.kt"); } + @Test @TestMetadata("forInline.kt") public void testForInline() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/forInline.kt"); } + @Test @TestMetadata("interleavedFiles.kt") public void testInterleavedFiles() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/interleavedFiles.kt"); } + @Test @TestMetadata("kt23369.kt") public void testKt23369() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/kt23369.kt"); } + @Test @TestMetadata("kt23369_2.kt") public void testKt23369_2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/kt23369_2.kt"); } + @Test @TestMetadata("kt23369_3.kt") public void testKt23369_3() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/kt23369_3.kt"); } + @Test @TestMetadata("kt35006.kt") public void testKt35006() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/kt35006.kt"); } + @Test @TestMetadata("multiFileFacade.kt") public void testMultiFileFacade() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/multiFileFacade.kt"); } + @Test @TestMetadata("oneFile.kt") public void testOneFile() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/oneFile.kt"); } + @Test @TestMetadata("rangeFolding.kt") public void testRangeFolding() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/rangeFolding.kt"); } + @Test @TestMetadata("rangeFoldingInClass.kt") public void testRangeFoldingInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/rangeFoldingInClass.kt"); } + @Test @TestMetadata("smap.kt") public void testSmap() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/smap.kt"); } + @Test @TestMetadata("smapWithNewSyntax.kt") public void testSmapWithNewSyntax() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/smapWithNewSyntax.kt"); } + @Test @TestMetadata("smapWithOldSyntax.kt") public void testSmapWithOldSyntax() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/smapWithOldSyntax.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/anonymous") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Anonymous extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Anonymous extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInAnonymous() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("kt19175.kt") public void testKt19175() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/kt19175.kt"); } + @Test @TestMetadata("lambda.kt") public void testLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/lambda.kt"); } + @Test @TestMetadata("lambdaOnCallSite.kt") public void testLambdaOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/lambdaOnCallSite.kt"); } + @Test @TestMetadata("lambdaOnInlineCallSite.kt") public void testLambdaOnInlineCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/lambdaOnInlineCallSite.kt"); } + @Test @TestMetadata("object.kt") public void testObject() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/object.kt"); } + @Test @TestMetadata("objectOnCallSite.kt") public void testObjectOnCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnCallSite.kt"); } + @Test @TestMetadata("objectOnInlineCallSite.kt") public void testObjectOnInlineCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSite.kt"); } + @Test @TestMetadata("objectOnInlineCallSite2.kt") public void testObjectOnInlineCallSite2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSite2.kt"); } + @Test @TestMetadata("objectOnInlineCallSiteWithCapture.kt") public void testObjectOnInlineCallSiteWithCapture() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSiteWithCapture.kt"); } + @Test @TestMetadata("severalMappingsForDefaultFile.kt") public void testSeveralMappingsForDefaultFile() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/anonymous/severalMappingsForDefaultFile.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/defaultLambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultLambda extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class DefaultLambda extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInDefaultLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/defaultLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("defaultLambdaInAnonymous.kt") public void testDefaultLambdaInAnonymous() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/defaultLambdaInAnonymous.kt"); } + @Test @TestMetadata("inlinInDefault.kt") public void testInlinInDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlinInDefault.kt"); } + @Test @TestMetadata("inlinInDefault2.kt") public void testInlinInDefault2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlinInDefault2.kt"); } + @Test @TestMetadata("inlineAnonymousInDefault.kt") public void testInlineAnonymousInDefault() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlineAnonymousInDefault.kt"); } + @Test @TestMetadata("inlineAnonymousInDefault2.kt") public void testInlineAnonymousInDefault2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlineAnonymousInDefault2.kt"); } + @Test @TestMetadata("kt21827.kt") public void testKt21827() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/kt21827.kt"); } + @Test @TestMetadata("nested.kt") public void testNested() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/nested.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/simple.kt"); } + @Test @TestMetadata("simple2.kt") public void testSimple2() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/simple2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/inlineOnly") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineOnly extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class InlineOnly extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInInlineOnly() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/inlineOnly"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("noSmap.kt") public void testNoSmap() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/noSmap.kt"); } + @Test @TestMetadata("noSmapWithProperty.kt") public void testNoSmapWithProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/noSmapWithProperty.kt"); } + @Test @TestMetadata("reified.kt") public void testReified() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/reified.kt"); } + @Test @TestMetadata("reifiedProperty.kt") public void testReifiedProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/reifiedProperty.kt"); } + @Test @TestMetadata("stdlibInlineOnly.kt") public void testStdlibInlineOnly() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/stdlibInlineOnly.kt"); } + @Test @TestMetadata("stdlibInlineOnlyOneLine.kt") public void testStdlibInlineOnlyOneLine() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/stdlibInlineOnlyOneLine.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/newsmap") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Newsmap extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Newsmap extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInNewsmap() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/newsmap"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("differentMapping.kt") public void testDifferentMapping() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/newsmap/differentMapping.kt"); } + @Test @TestMetadata("mappingInInlineFunLambda.kt") public void testMappingInInlineFunLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/newsmap/mappingInInlineFunLambda.kt"); } + @Test @TestMetadata("mappingInSubInlineLambda.kt") public void testMappingInSubInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/newsmap/mappingInSubInlineLambda.kt"); } + @Test @TestMetadata("mappingInSubInlineLambdaSameFileInline.kt") public void testMappingInSubInlineLambdaSameFileInline() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/newsmap/mappingInSubInlineLambdaSameFileInline.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/smap/resolve") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Resolve extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Resolve extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInResolve() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/resolve"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("inlineComponent.kt") public void testInlineComponent() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/resolve/inlineComponent.kt"); } + @Test @TestMetadata("inlineIterator.kt") public void testInlineIterator() throws Exception { runTest("compiler/testData/codegen/boxInline/smap/resolve/inlineIterator.kt"); @@ -3917,621 +4331,695 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/special") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Special extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Special extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInSpecial() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/special"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("identityCheck.kt") public void testIdentityCheck() throws Exception { runTest("compiler/testData/codegen/boxInline/special/identityCheck.kt"); } + @Test @TestMetadata("ifBranches.kt") public void testIfBranches() throws Exception { runTest("compiler/testData/codegen/boxInline/special/ifBranches.kt"); } + @Test @TestMetadata("iinc.kt") public void testIinc() throws Exception { runTest("compiler/testData/codegen/boxInline/special/iinc.kt"); } + @Test @TestMetadata("inlineChain.kt") public void testInlineChain() throws Exception { runTest("compiler/testData/codegen/boxInline/special/inlineChain.kt"); } + @Test @TestMetadata("loopInStoreLoadChains.kt") public void testLoopInStoreLoadChains() throws Exception { runTest("compiler/testData/codegen/boxInline/special/loopInStoreLoadChains.kt"); } + @Test @TestMetadata("loopInStoreLoadChains2.kt") public void testLoopInStoreLoadChains2() throws Exception { runTest("compiler/testData/codegen/boxInline/special/loopInStoreLoadChains2.kt"); } + @Test @TestMetadata("plusAssign.kt") public void testPlusAssign() throws Exception { runTest("compiler/testData/codegen/boxInline/special/plusAssign.kt"); } + @Test @TestMetadata("stackHeightBug.kt") public void testStackHeightBug() throws Exception { runTest("compiler/testData/codegen/boxInline/special/stackHeightBug.kt"); } + @Test @TestMetadata("unusedInlineLambda.kt") public void testUnusedInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/special/unusedInlineLambda.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/stackOnReturn") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class StackOnReturn extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class StackOnReturn extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInStackOnReturn() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/stackOnReturn"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("elvis.kt") public void testElvis() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/elvis.kt"); } + @Test @TestMetadata("ifThenElse.kt") public void testIfThenElse() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/ifThenElse.kt"); } + @Test @TestMetadata("kt11499.kt") public void testKt11499() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt11499.kt"); } + @Test @TestMetadata("kt17591.kt") public void testKt17591() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt17591.kt"); } + @Test @TestMetadata("kt17591a.kt") public void testKt17591a() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt17591a.kt"); } + @Test @TestMetadata("kt17591b.kt") public void testKt17591b() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt17591b.kt"); } + @Test @TestMetadata("mixedTypesOnStack1.kt") public void testMixedTypesOnStack1() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack1.kt"); } + @Test @TestMetadata("mixedTypesOnStack2.kt") public void testMixedTypesOnStack2() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack2.kt"); } + @Test @TestMetadata("mixedTypesOnStack3.kt") public void testMixedTypesOnStack3() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack3.kt"); } + @Test @TestMetadata("nonLocalReturn1.kt") public void testNonLocalReturn1() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn1.kt"); } + @Test @TestMetadata("nonLocalReturn2.kt") public void testNonLocalReturn2() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn2.kt"); } + @Test @TestMetadata("nonLocalReturn3.kt") public void testNonLocalReturn3() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn3.kt"); } + @Test @TestMetadata("poppedLocalReturn.kt") public void testPoppedLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/poppedLocalReturn.kt"); } + @Test @TestMetadata("poppedLocalReturn2.kt") public void testPoppedLocalReturn2() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/poppedLocalReturn2.kt"); } + @Test @TestMetadata("returnLong.kt") public void testReturnLong() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/returnLong.kt"); } + @Test @TestMetadata("tryFinally.kt") public void testTryFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/stackOnReturn/tryFinally.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Suspend extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Suspend extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInSuspend() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("capturedVariables.kt") public void testCapturedVariables() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/capturedVariables.kt"); } + @Test @TestMetadata("crossinlineSuspendLambdaInsideCrossinlineSuspendLambda.kt") public void testCrossinlineSuspendLambdaInsideCrossinlineSuspendLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/crossinlineSuspendLambdaInsideCrossinlineSuspendLambda.kt"); } + @Test @TestMetadata("debugMetadataCrossinline.kt") public void testDebugMetadataCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/debugMetadataCrossinline.kt"); } + @Test @TestMetadata("delegatedProperties.kt") public void testDelegatedProperties() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/delegatedProperties.kt"); } + @Test @TestMetadata("doubleRegenerationWithNonSuspendingLambda.kt") public void testDoubleRegenerationWithNonSuspendingLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/doubleRegenerationWithNonSuspendingLambda.kt"); } + @Test @TestMetadata("enclodingMethod.kt") public void testEnclodingMethod() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/enclodingMethod.kt"); } + @Test @TestMetadata("fileNameInMetadata.kt") public void testFileNameInMetadata() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/fileNameInMetadata.kt"); } + @Test @TestMetadata("inlineOrdinaryOfCrossinlineSuspend.kt") public void testInlineOrdinaryOfCrossinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfCrossinlineSuspend.kt"); } + @Test @TestMetadata("inlineOrdinaryOfNoinlineSuspend.kt") public void testInlineOrdinaryOfNoinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfNoinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendContinuation.kt") public void testInlineSuspendContinuation() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendContinuation.kt"); } + @Test @TestMetadata("inlineSuspendInMultifileClass.kt") public void testInlineSuspendInMultifileClass() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendInMultifileClass.kt"); } + @Test @TestMetadata("inlineSuspendOfCrossinlineOrdinary.kt") public void testInlineSuspendOfCrossinlineOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfCrossinlineSuspend.kt") public void testInlineSuspendOfCrossinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfNoinlineOrdinary.kt") public void testInlineSuspendOfNoinlineOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfNoinlineSuspend.kt") public void testInlineSuspendOfNoinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfOrdinary.kt") public void testInlineSuspendOfOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfSuspend.kt") public void testInlineSuspendOfSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfSuspend.kt"); } + @Test @TestMetadata("jvmName.kt") public void testJvmName() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/jvmName.kt"); } + @Test @TestMetadata("kt26658.kt") public void testKt26658() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/kt26658.kt"); } + @Test @TestMetadata("maxStackWithCrossinline.kt") public void testMaxStackWithCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/maxStackWithCrossinline.kt"); } + @Test @TestMetadata("multipleLocals.kt") public void testMultipleLocals() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/multipleLocals.kt"); } + @Test @TestMetadata("multipleSuspensionPoints.kt") public void testMultipleSuspensionPoints() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/multipleSuspensionPoints.kt"); } + @Test @TestMetadata("nestedMethodWith2XParameter.kt") public void testNestedMethodWith2XParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/nestedMethodWith2XParameter.kt"); } + @Test @TestMetadata("nonLocalReturn.kt") public void testNonLocalReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/nonLocalReturn.kt"); } + @Test @TestMetadata("nonSuspendCrossinline.kt") public void testNonSuspendCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/nonSuspendCrossinline.kt"); } + @Test @TestMetadata("returnValue.kt") public void testReturnValue() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/returnValue.kt"); } + @Test @TestMetadata("tryCatchReceiver.kt") public void testTryCatchReceiver() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/tryCatchReceiver.kt"); } + @Test @TestMetadata("tryCatchStackTransform.kt") public void testTryCatchStackTransform() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/tryCatchStackTransform.kt"); } + @Test @TestMetadata("twiceRegeneratedAnonymousObject.kt") public void testTwiceRegeneratedAnonymousObject() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/twiceRegeneratedAnonymousObject.kt"); } + @Test @TestMetadata("twiceRegeneratedSuspendLambda.kt") public void testTwiceRegeneratedSuspendLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/twiceRegeneratedSuspendLambda.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/callableReference") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CallableReference extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class CallableReference extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInCallableReference() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("isAsReified.kt") public void testIsAsReified() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/isAsReified.kt"); } + @Test @TestMetadata("isAsReified2.kt") public void testIsAsReified2() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/isAsReified2.kt"); } + @Test @TestMetadata("nonTailCall.kt") public void testNonTailCall() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/nonTailCall.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/simple.kt"); } + @Test @TestMetadata("unitReturn.kt") public void testUnitReturn() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/callableReference/unitReturn.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/defaultParameter") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultParameter extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class DefaultParameter extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInDefaultParameter() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/defaultParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("defaultValueCrossinline.kt") public void testDefaultValueCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueCrossinline.kt"); } + @Test @TestMetadata("defaultValueInClass.kt") public void testDefaultValueInClass() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInClass.kt"); } + @Test @TestMetadata("defaultValueInline.kt") public void testDefaultValueInline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInline.kt"); } + @Test @TestMetadata("defaultValueInlineFromMultiFileFacade.kt") public void testDefaultValueInlineFromMultiFileFacade() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInlineFromMultiFileFacade.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/inlineClass") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineClass extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class InlineClass extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInInlineClass() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("returnUnboxedDirect.kt") public void testReturnUnboxedDirect() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineClass/returnUnboxedDirect.kt"); } + @Test @TestMetadata("returnUnboxedResume.kt") public void testReturnUnboxedResume() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineClass/returnUnboxedResume.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineUsedAsNoinline extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class InlineUsedAsNoinline extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInInlineUsedAsNoinline() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("inlineOnly.kt") public void testInlineOnly() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/inlineOnly.kt"); } + @Test @TestMetadata("simpleNamed.kt") public void testSimpleNamed() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/simpleNamed.kt"); } + @Test @TestMetadata("withCapturedInlineLambda.kt") public void testWithCapturedInlineLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/withCapturedInlineLambda.kt"); } + @Test @TestMetadata("withCapturedInlineLambda2.kt") public void testWithCapturedInlineLambda2() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/withCapturedInlineLambda2.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/receiver") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Receiver extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Receiver extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInReceiver() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/receiver"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("inlineOrdinaryOfCrossinlineSuspend.kt") public void testInlineOrdinaryOfCrossinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfCrossinlineSuspend.kt"); } + @Test @TestMetadata("inlineOrdinaryOfNoinlineSuspend.kt") public void testInlineOrdinaryOfNoinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfNoinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfCrossinlineOrdinary.kt") public void testInlineSuspendOfCrossinlineOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfCrossinlineSuspend.kt") public void testInlineSuspendOfCrossinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfNoinlineOrdinary.kt") public void testInlineSuspendOfNoinlineOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfNoinlineSuspend.kt") public void testInlineSuspendOfNoinlineSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineSuspend.kt"); } + @Test @TestMetadata("inlineSuspendOfOrdinary.kt") public void testInlineSuspendOfOrdinary() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfOrdinary.kt"); } + @Test @TestMetadata("inlineSuspendOfSuspend.kt") public void testInlineSuspendOfSuspend() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfSuspend.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/suspend/stateMachine") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class StateMachine extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class StateMachine extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInStateMachine() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/stateMachine"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("crossingCoroutineBoundaries.kt") public void testCrossingCoroutineBoundaries() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/crossingCoroutineBoundaries.kt"); } + @Test @TestMetadata("independentInline.kt") public void testIndependentInline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/independentInline.kt"); } + @Test @TestMetadata("innerLambda.kt") public void testInnerLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambda.kt"); } + @Test @TestMetadata("innerLambdaInsideLambda.kt") public void testInnerLambdaInsideLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaInsideLambda.kt"); } + @Test @TestMetadata("innerLambdaWithoutCrossinline.kt") public void testInnerLambdaWithoutCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaWithoutCrossinline.kt"); } + @Test @TestMetadata("innerMadness.kt") public void testInnerMadness() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadness.kt"); } + @Test @TestMetadata("innerMadnessCallSite.kt") public void testInnerMadnessCallSite() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadnessCallSite.kt"); } + @Test @TestMetadata("innerObject.kt") public void testInnerObject() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObject.kt"); } + @Test @TestMetadata("innerObjectInsideInnerObject.kt") public void testInnerObjectInsideInnerObject() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectInsideInnerObject.kt"); } + @Test @TestMetadata("innerObjectRetransformation.kt") public void testInnerObjectRetransformation() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectRetransformation.kt"); } + @Test @TestMetadata("innerObjectSeveralFunctions.kt") public void testInnerObjectSeveralFunctions() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectSeveralFunctions.kt"); } + @Test @TestMetadata("innerObjectWithoutCapturingCrossinline.kt") public void testInnerObjectWithoutCapturingCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectWithoutCapturingCrossinline.kt"); } + @Test @TestMetadata("insideObject.kt") public void testInsideObject() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/insideObject.kt"); } + @Test @TestMetadata("kt30708.kt") public void testKt30708() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/kt30708.kt"); } + @Test @TestMetadata("lambdaTransformation.kt") public void testLambdaTransformation() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/lambdaTransformation.kt"); } + @Test @TestMetadata("normalInline.kt") public void testNormalInline() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/normalInline.kt"); } + @Test @TestMetadata("numberOfSuspentions.kt") public void testNumberOfSuspentions() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/numberOfSuspentions.kt"); } + @Test @TestMetadata("objectInsideLambdas.kt") public void testObjectInsideLambdas() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/objectInsideLambdas.kt"); } + @Test @TestMetadata("oneInlineTwoCaptures.kt") public void testOneInlineTwoCaptures() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/oneInlineTwoCaptures.kt"); } + @Test @TestMetadata("passLambda.kt") public void testPassLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/passLambda.kt"); } + @Test @TestMetadata("passParameter.kt") public void testPassParameter() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/passParameter.kt"); } + @Test @TestMetadata("passParameterLambda.kt") public void testPassParameterLambda() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/passParameterLambda.kt"); } + @Test @TestMetadata("unreachableSuspendMarker.kt") public void testUnreachableSuspendMarker() throws Exception { runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/unreachableSuspendMarker.kt"); @@ -4539,110 +5027,121 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/syntheticAccessors") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class SyntheticAccessors extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class SyntheticAccessors extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInSyntheticAccessors() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/syntheticAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("constField.kt") public void testConstField() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/constField.kt"); } + @Test @TestMetadata("packagePrivateMembers.kt") public void testPackagePrivateMembers() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/packagePrivateMembers.kt"); } + @Test @TestMetadata("propertyModifiers.kt") public void testPropertyModifiers() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/propertyModifiers.kt"); } + @Test @TestMetadata("protectedMembers.kt") public void testProtectedMembers() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/protectedMembers.kt"); } + @Test @TestMetadata("protectedMembersFromSuper.kt") public void testProtectedMembersFromSuper() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/protectedMembersFromSuper.kt"); } + @Test @TestMetadata("superCall.kt") public void testSuperCall() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/superCall.kt"); } + @Test @TestMetadata("superCallFromMultipleSubclasses.kt") public void testSuperCallFromMultipleSubclasses() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/superCallFromMultipleSubclasses.kt"); } + @Test @TestMetadata("superProperty.kt") public void testSuperProperty() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/superProperty.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class WithinInlineLambda extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class WithinInlineLambda extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInWithinInlineLambda() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("directFieldAccess.kt") public void testDirectFieldAccess() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/directFieldAccess.kt"); } + @Test @TestMetadata("directFieldAccessInCrossInline.kt") public void testDirectFieldAccessInCrossInline() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/directFieldAccessInCrossInline.kt"); } + @Test @TestMetadata("privateCall.kt") public void testPrivateCall() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateCall.kt"); } + @Test @TestMetadata("privateInCrossInline.kt") public void testPrivateInCrossInline() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInCrossInline.kt"); } + @Test @TestMetadata("privateInDefaultStubArgument.kt") public void testPrivateInDefaultStubArgument() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInDefaultStubArgument.kt"); } + @Test @TestMetadata("protectedInCrossinline.kt") public void testProtectedInCrossinline() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/protectedInCrossinline.kt"); } + @Test @TestMetadata("protectedMembersFromSuper.kt") public void testProtectedMembersFromSuper() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/protectedMembersFromSuper.kt"); } + @Test @TestMetadata("superCall.kt") public void testSuperCall() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superCall.kt"); } + @Test @TestMetadata("superInCrossInline.kt") public void testSuperInCrossInline() throws Exception { runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superInCrossInline.kt"); @@ -4650,79 +5149,78 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/trait") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Trait extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Trait extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInTrait() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/trait"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("trait.kt") public void testTrait() throws Exception { runTest("compiler/testData/codegen/boxInline/trait/trait.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/tryCatchFinally") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class TryCatchFinally extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class TryCatchFinally extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInTryCatchFinally() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/tryCatchFinally"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("kt5863.kt") public void testKt5863() throws Exception { runTest("compiler/testData/codegen/boxInline/tryCatchFinally/kt5863.kt"); } + @Test @TestMetadata("tryCatch.kt") public void testTryCatch() throws Exception { runTest("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch.kt"); } + @Test @TestMetadata("tryCatch2.kt") public void testTryCatch2() throws Exception { runTest("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch2.kt"); } + @Test @TestMetadata("tryCatchFinally.kt") public void testTryCatchFinally() throws Exception { runTest("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatchFinally.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/boxInline/varargs") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Varargs extends AbstractJvmOldAgainstIrBoxInlineTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath, "// IGNORE_BACKEND_MULTI_MODULE: "); - } - + public class Varargs extends AbstractJvmOldAgainstIrBoxInlineTest { + @Test public void testAllFilesPresentInVarargs() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/varargs"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true); } + @Test @TestMetadata("kt17653.kt") public void testKt17653() throws Exception { runTest("compiler/testData/codegen/boxInline/varargs/kt17653.kt"); } + @Test @TestMetadata("varargAndDefaultParameters.kt") public void testVarargAndDefaultParameters() throws Exception { runTest("compiler/testData/codegen/boxInline/varargs/varargAndDefaultParameters.kt"); } + @Test @TestMetadata("varargAndDefaultParameters2.kt") public void testVarargAndDefaultParameters2() throws Exception { runTest("compiler/testData/codegen/boxInline/varargs/varargAndDefaultParameters2.kt"); diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/BlackBoxCodegenSuppressor.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/BlackBoxCodegenSuppressor.kt index 8f6388c5efd..9030f7b26f4 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/BlackBoxCodegenSuppressor.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/BlackBoxCodegenSuppressor.kt @@ -13,23 +13,32 @@ import org.jetbrains.kotlin.test.directives.model.DirectivesContainer import org.jetbrains.kotlin.test.directives.model.ValueDirective import org.jetbrains.kotlin.test.model.AfterAnalysisChecker import org.jetbrains.kotlin.test.model.FrontendKinds -import org.jetbrains.kotlin.test.services.TestModuleStructure -import org.jetbrains.kotlin.test.services.TestServices -import org.jetbrains.kotlin.test.services.moduleStructure +import org.jetbrains.kotlin.test.services.* import org.jetbrains.kotlin.test.util.joinToArrayString -class BlackBoxCodegenSuppressor(testServices: TestServices) : AfterAnalysisChecker(testServices) { +class BlackBoxCodegenSuppressor( + testServices: TestServices, + val customIgnoreDirective: ValueDirective? = null +) : AfterAnalysisChecker(testServices) { override val directives: List get() = listOf(CodegenTestDirectives) + @OptIn(ExperimentalStdlibApi::class) override fun suppressIfNeeded(failedAssertions: List): List { val moduleStructure = testServices.moduleStructure - val targetBackends = moduleStructure.modules.mapNotNull { it.targetBackend } - return when (moduleStructure.modules.map { it.frontendKind }.first()) { - FrontendKinds.ClassicFrontend -> processIgnoreBackend(moduleStructure, IGNORE_BACKEND, targetBackends, failedAssertions) - FrontendKinds.FIR -> processIgnoreBackend(moduleStructure, IGNORE_BACKEND_FIR, targetBackends, failedAssertions) - else -> failedAssertions + val targetBackends = buildList { + testServices.defaultsProvider.defaultTargetBackend?.let { + add(it) + return@buildList + } + moduleStructure.modules.mapNotNullTo(this) { it.targetBackend } } + val ignoreDirective = when (moduleStructure.modules.map { it.frontendKind }.first()) { + FrontendKinds.ClassicFrontend -> customIgnoreDirective ?: IGNORE_BACKEND + FrontendKinds.FIR -> IGNORE_BACKEND_FIR + else -> return failedAssertions + } + return processIgnoreBackend(moduleStructure, ignoreDirective, targetBackends, failedAssertions) } private fun processIgnoreBackend( diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/handlers/BytecodeInliningHandler.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/handlers/BytecodeInliningHandler.kt index 0d1acc2a738..00670637558 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/handlers/BytecodeInliningHandler.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/handlers/BytecodeInliningHandler.kt @@ -6,27 +6,34 @@ package org.jetbrains.kotlin.test.backend.handlers import org.jetbrains.kotlin.codegen.InlineTestUtil -import org.jetbrains.kotlin.codegen.filterClassFiles import org.jetbrains.kotlin.codegen.getClassFiles import org.jetbrains.kotlin.test.directives.CodegenTestDirectives import org.jetbrains.kotlin.test.directives.CodegenTestDirectives.NO_CHECK_LAMBDA_INLINING import org.jetbrains.kotlin.test.directives.CodegenTestDirectives.SKIP_INLINE_CHECK_IN import org.jetbrains.kotlin.test.directives.model.DirectivesContainer +import org.jetbrains.kotlin.test.model.ArtifactKinds import org.jetbrains.kotlin.test.model.BinaryArtifacts import org.jetbrains.kotlin.test.model.TestModule import org.jetbrains.kotlin.test.services.TestServices +import org.jetbrains.kotlin.test.services.dependencyProvider +import org.jetbrains.kotlin.test.services.moduleStructure class BytecodeInliningHandler(testServices: TestServices) : JvmBinaryArtifactHandler(testServices) { override val directivesContainers: List get() = listOf(CodegenTestDirectives) - override fun processModule(module: TestModule, info: BinaryArtifacts.Jvm) { - InlineTestUtil.checkNoCallsToInline( - info.classFileFactory.getClassFiles(), - skipParameterCheckingInDirectives = NO_CHECK_LAMBDA_INLINING in module.directives, - skippedMethods = module.directives[SKIP_INLINE_CHECK_IN].toSet() - ) - } + override fun processModule(module: TestModule, info: BinaryArtifacts.Jvm) {} - override fun processAfterAllModules(someAssertionWasFailed: Boolean) {} + override fun processAfterAllModules(someAssertionWasFailed: Boolean) { + val classFiles = testServices.moduleStructure.modules.flatMap { + testServices.dependencyProvider.getArtifact(it, ArtifactKinds.Jvm).classFileFactory.getClassFiles() + } + val allDirectives = testServices.moduleStructure.allDirectives + InlineTestUtil.checkNoCallsToInline( + classFiles, + skipParameterCheckingInDirectives = NO_CHECK_LAMBDA_INLINING in allDirectives, + skippedMethods = allDirectives[SKIP_INLINE_CHECK_IN].toSet() + ) + + } } diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/handlers/SMAPDumpHandler.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/handlers/SMAPDumpHandler.kt index 6b3a64d8114..02e0ca244e5 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/handlers/SMAPDumpHandler.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/handlers/SMAPDumpHandler.kt @@ -6,6 +6,7 @@ package org.jetbrains.kotlin.test.backend.handlers import org.jetbrains.kotlin.codegen.CommonSMAPTestUtil +import org.jetbrains.kotlin.codegen.getClassFiles import org.jetbrains.kotlin.codegen.inline.GENERATE_SMAP import org.jetbrains.kotlin.test.directives.CodegenTestDirectives import org.jetbrains.kotlin.test.directives.CodegenTestDirectives.DUMP_SMAP @@ -34,7 +35,7 @@ class SMAPDumpHandler(testServices: TestServices) : JvmBinaryArtifactHandler(tes if (!GENERATE_SMAP) return if (DUMP_SMAP !in module.directives) return - val compiledSmaps = CommonSMAPTestUtil.extractSMAPFromClasses(info.classFileFactory.currentOutput) + val compiledSmaps = CommonSMAPTestUtil.extractSMAPFromClasses(info.classFileFactory.getClassFiles()) CommonSMAPTestUtil.checkNoConflictMappings(compiledSmaps, assertions) @@ -54,6 +55,8 @@ class SMAPDumpHandler(testServices: TestServices) : JvmBinaryArtifactHandler(tes } override fun processAfterAllModules(someAssertionWasFailed: Boolean) { + if (dumper.isEmpty()) return + val separateDumpEnabled = separateDumpsEnabled() val isSeparateCompilation = isSeparateCompilation() diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/directives/CodegenTestDirectives.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/directives/CodegenTestDirectives.kt index 059ce196a89..61709ae7915 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/directives/CodegenTestDirectives.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/directives/CodegenTestDirectives.kt @@ -23,6 +23,11 @@ object CodegenTestDirectives : SimpleDirectivesContainer() { applicability = Global ) + val IGNORE_BACKEND_MULTI_MODULE by enumDirective( + description = "Ignore failures of multimodule test on target backend", + applicability = Global + ) + val JAVAC_OPTIONS by stringDirective( description = "Specify javac options to compile java files" ) diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/AbstractBlackBoxInlineCodegenTest.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/AbstractBlackBoxInlineCodegenTest.kt new file mode 100644 index 00000000000..82f5d8516c0 --- /dev/null +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/AbstractBlackBoxInlineCodegenTest.kt @@ -0,0 +1,29 @@ +/* + * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package org.jetbrains.kotlin.test.runners.codegen + +import org.jetbrains.kotlin.test.builders.TestConfigurationBuilder + +open class AbstractBlackBoxInlineCodegenTest : AbstractBlackBoxCodegenTest() { + override fun configure(builder: TestConfigurationBuilder) { + super.configure(builder) + builder.useInlineHandlers() + } +} + +open class AbstractIrBlackBoxInlineCodegenTest : AbstractIrBlackBoxCodegenTest() { + override fun configure(builder: TestConfigurationBuilder) { + super.configure(builder) + builder.useInlineHandlers() + } +} + +open class AbstractFirBlackBoxInlineCodegenTest : AbstractFirBlackBoxCodegenTest() { + override fun configure(builder: TestConfigurationBuilder) { + super.configure(builder) + builder.useInlineHandlers() + } +} diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/AbstractCompileKotlinAgainstInlineKotlinTest.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/AbstractCompileKotlinAgainstInlineKotlinTest.kt new file mode 100644 index 00000000000..0e0e8d7306c --- /dev/null +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/AbstractCompileKotlinAgainstInlineKotlinTest.kt @@ -0,0 +1,67 @@ +/* + * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package org.jetbrains.kotlin.test.runners.codegen + +import org.jetbrains.kotlin.test.Constructor +import org.jetbrains.kotlin.test.TargetBackend +import org.jetbrains.kotlin.test.TestInfrastructureInternals +import org.jetbrains.kotlin.test.backend.BlackBoxCodegenSuppressor +import org.jetbrains.kotlin.test.backend.classic.ClassicBackendInput +import org.jetbrains.kotlin.test.backend.classic.ClassicJvmBackendFacade +import org.jetbrains.kotlin.test.backend.ir.IrBackendInput +import org.jetbrains.kotlin.test.backend.ir.JvmIrBackendFacade +import org.jetbrains.kotlin.test.bind +import org.jetbrains.kotlin.test.builders.TestConfigurationBuilder +import org.jetbrains.kotlin.test.directives.CodegenTestDirectives.IGNORE_BACKEND_MULTI_MODULE +import org.jetbrains.kotlin.test.frontend.classic.ClassicFrontend2ClassicBackendConverter +import org.jetbrains.kotlin.test.frontend.classic.ClassicFrontend2IrConverter +import org.jetbrains.kotlin.test.frontend.classic.ClassicFrontendFacade +import org.jetbrains.kotlin.test.frontend.classic.ClassicFrontendOutputArtifact +import org.jetbrains.kotlin.test.model.* +import org.jetbrains.kotlin.test.runners.AbstractKotlinCompilerWithTargetBackendTest +import org.jetbrains.kotlin.test.services.ModuleTransformerForTwoFilesBoxTests + + +@OptIn(TestInfrastructureInternals::class) +abstract class AbstractCompileKotlinAgainstInlineKotlinTestBase>( + targetBackend: TargetBackend +) : AbstractKotlinCompilerWithTargetBackendTest(targetBackend) { + abstract val frontendToBackendConverter: Constructor> + abstract val backendFacade: Constructor> + + override fun TestConfigurationBuilder.configuration() { + commonConfigurationForCodegenTest( + FrontendKinds.ClassicFrontend, + ::ClassicFrontendFacade, + frontendToBackendConverter, + backendFacade + ) + useInlineHandlers() + commonHandlersForCodegenTest() + useModuleStructureTransformers( + ModuleTransformerForTwoFilesBoxTests() + ) + useAfterAnalysisCheckers(::BlackBoxCodegenSuppressor.bind(IGNORE_BACKEND_MULTI_MODULE)) + } +} + +open class AbstractCompileKotlinAgainstInlineKotlinTest : + AbstractCompileKotlinAgainstInlineKotlinTestBase(TargetBackend.JVM) { + override val frontendToBackendConverter: Constructor> + get() = ::ClassicFrontend2ClassicBackendConverter + + override val backendFacade: Constructor> + get() = ::ClassicJvmBackendFacade +} + +open class AbstractIrCompileKotlinAgainstInlineKotlinTest : + AbstractCompileKotlinAgainstInlineKotlinTestBase(TargetBackend.JVM_IR) { + override val frontendToBackendConverter: Constructor> + get() = ::ClassicFrontend2IrConverter + + override val backendFacade: Constructor> + get() = ::JvmIrBackendFacade +} diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/AbstractJvmBlackBoxCodegenTestBase.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/AbstractJvmBlackBoxCodegenTestBase.kt index 39058915bb5..cc4c397ae56 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/AbstractJvmBlackBoxCodegenTestBase.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/AbstractJvmBlackBoxCodegenTestBase.kt @@ -8,7 +8,7 @@ package org.jetbrains.kotlin.test.runners.codegen import org.jetbrains.kotlin.test.Constructor import org.jetbrains.kotlin.test.TargetBackend import org.jetbrains.kotlin.test.backend.BlackBoxCodegenSuppressor -import org.jetbrains.kotlin.test.backend.handlers.* +import org.jetbrains.kotlin.test.backend.handlers.BytecodeListingHandler import org.jetbrains.kotlin.test.builders.TestConfigurationBuilder import org.jetbrains.kotlin.test.model.* import org.jetbrains.kotlin.test.runners.AbstractKotlinCompilerWithTargetBackendTest @@ -23,19 +23,8 @@ abstract class AbstractJvmBlackBoxCodegenTestBase> TestConfigurationBuilder.commonCon useFrontend2BackendConverters(frontendToBackendConverter) useBackendFacades(backendFacade) } + +fun TestConfigurationBuilder.commonHandlersForCodegenTest() { + useFrontendHandlers( + ::NoCompilationErrorsHandler, + ::NoFirCompilationErrorsHandler, + ) + + useArtifactsHandlers( + ::JvmBoxRunner, + ::NoJvmSpecificCompilationErrorsHandler, + ::DxCheckerHandler, + ) +} + +fun TestConfigurationBuilder.useInlineHandlers() { + useArtifactsHandlers( + ::BytecodeInliningHandler + ) +} diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/ModuleTransformerForTwoFilesBoxTests.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/ModuleTransformerForTwoFilesBoxTests.kt index 7a9ec6def7d..593fdc325b8 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/ModuleTransformerForTwoFilesBoxTests.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/ModuleTransformerForTwoFilesBoxTests.kt @@ -47,8 +47,8 @@ class ModuleTransformerForTwoFilesBoxTests : ModuleStructureTransformer() { module.frontendKind, module.binaryKind, files = listOf(second) + additionalFiles, - dependencies = listOf(DependencyDescription("lib", DependencyKind.Binary, DependencyRelation.Dependency)), - friends = emptyList(), + dependencies = emptyList(), + friends = listOf(DependencyDescription("lib", DependencyKind.Binary, DependencyRelation.Dependency)), module.directives, module.languageVersionSettings ) diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/impl/ModuleStructureExtractorImpl.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/impl/ModuleStructureExtractorImpl.kt index aa6beb1b97a..ca947221ebc 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/impl/ModuleStructureExtractorImpl.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/impl/ModuleStructureExtractorImpl.kt @@ -62,7 +62,11 @@ class ModuleStructureExtractorImpl( val extractor = ModuleStructureExtractorWorker(listOf(testDataFile), directivesContainer) var result = extractor.splitTestDataByModules() for (transformer in moduleStructureTransformers) { - result = transformer.transformModuleStructure(result) + result = try { + transformer.transformModuleStructure(result) + } catch (e: Throwable) { + throw ExceptionFromModuleStructureTransformer(e, result) + } } return result } diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/codegen/AbstractCompileKotlinAgainstInlineKotlinTest.kt b/compiler/tests-common/tests/org/jetbrains/kotlin/codegen/AbstractCompileKotlinAgainstInlineKotlinTest.kt deleted file mode 100644 index 3c7f7a6e4c5..00000000000 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/codegen/AbstractCompileKotlinAgainstInlineKotlinTest.kt +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2010-2015 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.jetbrains.kotlin.codegen - -import org.jetbrains.kotlin.test.InTextDirectivesUtils -import java.io.File - -abstract class AbstractCompileKotlinAgainstInlineKotlinTest : AbstractCompileKotlinAgainstKotlinTest() { - override fun doMultiFileTest(wholeFile: File, files: List) { - val isIgnored = InTextDirectivesUtils.isIgnoredTarget(backend, wholeFile, ignoreBackendDirectivePrefix) - val (factory1, factory2) = doTwoFileTest( - files.filter { it.name.endsWith(".kt") }, - !isIgnored - ) - try { - val allGeneratedFiles = factory1.asList() + factory2.asList() - InlineTestUtil.checkNoCallsToInline( - allGeneratedFiles.filterClassFiles(), - skipParameterCheckingInDirectives = files.any { "NO_CHECK_LAMBDA_INLINING" in it.directives }, - skippedMethods = files.flatMapTo(mutableSetOf()) { it.directives.listValues("SKIP_INLINE_CHECK_IN") ?: emptyList() } - ) - SMAPTestUtil.checkSMAP(files, allGeneratedFiles.filterClassFiles(), true) - } catch (e: Throwable) { - if (!isIgnored) { - println("FIRST:\n\n${factory1.createText()}\n\nSECOND:\n\n${factory2.createText()}") - } - throw e - } - } - - override fun getIgnoreBackendDirectivePrefix(): String = "// IGNORE_BACKEND_MULTI_MODULE: " -} diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/codegen/ir/AbstractIrCompileKotlinAgainstInlineKotlinTest.kt b/compiler/tests-common/tests/org/jetbrains/kotlin/codegen/ir/AbstractIrCompileKotlinAgainstInlineKotlinTest.kt deleted file mode 100644 index ac226c250e3..00000000000 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/codegen/ir/AbstractIrCompileKotlinAgainstInlineKotlinTest.kt +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.codegen.ir - -import org.jetbrains.kotlin.codegen.AbstractCompileKotlinAgainstInlineKotlinTest -import org.jetbrains.kotlin.test.TargetBackend - -abstract class AbstractIrCompileKotlinAgainstInlineKotlinTest : AbstractCompileKotlinAgainstInlineKotlinTest() { - override val backend: TargetBackend get() = TargetBackend.JVM_IR -} - -abstract class AbstractJvmIrAgainstOldBoxInlineTest : AbstractIrCompileKotlinAgainstInlineKotlinTest() { - override val backend: TargetBackend get() = TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD - - override fun getBackendA(): TargetBackend = TargetBackend.JVM - override fun getBackendB(): TargetBackend = TargetBackend.JVM_IR -} - -abstract class AbstractJvmOldAgainstIrBoxInlineTest : AbstractIrCompileKotlinAgainstInlineKotlinTest() { - override val backend: TargetBackend get() = TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR - - override fun getBackendA(): TargetBackend = TargetBackend.JVM_IR - override fun getBackendB(): TargetBackend = TargetBackend.JVM -} diff --git a/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt b/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt index 564e8f07e8c..358fa93640d 100644 --- a/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt +++ b/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt @@ -113,10 +113,6 @@ fun generateJUnit3CompilerTests(args: Array) { model("codegen/asmLike", targetBackend = TargetBackend.JVM) } - testClass { - model("codegen/boxInline", targetBackend = TargetBackend.JVM) - } - testClass { model("codegen/boxAgainstJava") } @@ -474,10 +470,6 @@ fun generateJUnit3CompilerTests(args: Array) { model("debug/localVariables", targetBackend = TargetBackend.JVM_IR) } - testClass { - model("codegen/boxInline", targetBackend = TargetBackend.JVM_IR) - } - testClass { model("codegen/asmLike", targetBackend = TargetBackend.JVM_IR) } @@ -492,37 +484,11 @@ fun generateJUnit3CompilerTests(args: Array) { testRunnerMethodName = "runTestWithCustomIgnoreDirective", additionalRunnerArguments = listOf("\"// IGNORE_BACKEND_FIR: \"") ) { - testClass { - model("codegen/boxInline", targetBackend = TargetBackend.JVM_IR, excludeDirs = listOf("oldLanguageVersions")) - } - testClass { model("codegen/boxAgainstJava", targetBackend = TargetBackend.JVM_IR, excludeDirs = listOf("oldLanguageVersions")) } } - testGroup( - "compiler/tests-gen", "compiler/testData", - testRunnerMethodName = "runTestWithCustomIgnoreDirective", - additionalRunnerArguments = listOf("\"// IGNORE_BACKEND_MULTI_MODULE: \"") - ) { - testClass { - model("codegen/boxInline", targetBackend = TargetBackend.JVM) - } - testClass { - model("codegen/boxInline", targetBackend = TargetBackend.JVM_IR) - } - testClass { - model("codegen/boxInline", targetBackend = TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD) - } - testClass { - model( - "codegen/boxInline", - targetBackend = TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR - ) - } - } - testGroup("compiler/fir/raw-fir/psi2fir/tests-gen", "compiler/fir/raw-fir/psi2fir/testData") { testClass { model("rawBuilder", testMethod = "doRawFirTest") diff --git a/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit5CompilerTests.kt b/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit5CompilerTests.kt index cd795baedc4..8fc6d8eb260 100644 --- a/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit5CompilerTests.kt +++ b/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit5CompilerTests.kt @@ -79,6 +79,30 @@ fun generateJUnit5CompilerTests(args: Array) { testClass { model("codegen/bytecodeText", excludeDirs = listOf("oldLanguageVersions")) } + + testClass { + model("codegen/boxInline") + } + + testClass { + model("codegen/boxInline") + } + + testClass { + model("codegen/boxInline") + } + + testClass { + model("codegen/boxInline") + } + + testClass { + model("codegen/boxInline") + } + + testClass { + model("codegen/boxInline") + } } // ---------------------------------------------- FIR tests ---------------------------------------------- @@ -92,6 +116,10 @@ fun generateJUnit5CompilerTests(args: Array) { testClass { model("codegen/box", excludeDirs = listOf("oldLanguageVersions")) } + + testClass { + model("codegen/boxInline", excludeDirs = listOf("oldLanguageVersions")) + } } testGroup("compiler/fir/analysis-tests/tests-gen", "compiler/fir/analysis-tests/testData") {