From fe650456158b10e34dc51f9c7b3d07aca76ca840 Mon Sep 17 00:00:00 2001 From: Vitaly Date: Sat, 23 May 2020 13:52:11 +0300 Subject: [PATCH] [JS BE] add es6 BE and relevant generated tests --- .../jetbrains/kotlin/test/TargetBackend.kt | 1 + js/js.tests/build.gradle.kts | 23 + .../generators/tests/GenerateJsTests.kt | 17 + .../jetbrains/kotlin/js/test/BasicBoxTest.kt | 3 +- .../kotlin/js/test/BasicIrBoxES6Test.kt | 17 + .../kotlin/js/test/BasicIrBoxTest.kt | 23 +- .../semantics/IrBoxJsES6TestGenerated.java | 7642 +++++ .../IrJsCodegenBoxES6TestGenerated.java | 25205 ++++++++++++++++ .../IrJsCodegenInlineES6TestGenerated.java | 3918 +++ .../IrJsTypeScriptExportES6TestGenerated.java | 139 + .../abstractClassesForGeneratedIrTests.kt | 26 + .../AbstractIrJsTypeScriptExportTest.kt | 8 +- 12 files changed, 37011 insertions(+), 11 deletions(-) create mode 100644 js/js.tests/test/org/jetbrains/kotlin/js/test/BasicIrBoxES6Test.kt create mode 100644 js/js.tests/test/org/jetbrains/kotlin/js/test/es6/semantics/IrBoxJsES6TestGenerated.java create mode 100644 js/js.tests/test/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java create mode 100644 js/js.tests/test/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenInlineES6TestGenerated.java create mode 100644 js/js.tests/test/org/jetbrains/kotlin/js/test/es6/semantics/IrJsTypeScriptExportES6TestGenerated.java create mode 100644 js/js.tests/test/org/jetbrains/kotlin/js/test/es6/semantics/abstractClassesForGeneratedIrTests.kt diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/test/TargetBackend.kt b/compiler/tests-common/tests/org/jetbrains/kotlin/test/TargetBackend.kt index 851f6aaf8d7..d54656a7606 100644 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/test/TargetBackend.kt +++ b/compiler/tests-common/tests/org/jetbrains/kotlin/test/TargetBackend.kt @@ -15,6 +15,7 @@ enum class TargetBackend( JVM_IR(true, JVM), JS(false), JS_IR(true, JS), + JS_IR_ES6(true, JS_IR), WASM(true), ANDROID(false, JVM); diff --git a/js/js.tests/build.gradle.kts b/js/js.tests/build.gradle.kts index 684220516fe..b06230ab29a 100644 --- a/js/js.tests/build.gradle.kts +++ b/js/js.tests/build.gradle.kts @@ -112,6 +112,7 @@ fun Test.setUpJsBoxTests(jsEnabled: Boolean, jsIrEnabled: Boolean) { } exclude("org/jetbrains/kotlin/js/test/wasm/semantics/*") + exclude("org/jetbrains/kotlin/js/test/es6/semantics/*") if (jsEnabled && !jsIrEnabled) exclude("org/jetbrains/kotlin/js/test/ir/semantics/*") if (!jsEnabled && jsIrEnabled) include("org/jetbrains/kotlin/js/test/ir/semantics/*") @@ -148,6 +149,28 @@ projectTest("jsIrTest", true) { setUpJsBoxTests(jsEnabled = false, jsIrEnabled = true) } +projectTest("jsEs6IrTest", true) { + systemProperty("kotlin.js.ir.pir", "false") + systemProperty("kotlin.js.ir.es6", "true") + + dependsOn(":dist") + dependsOn(":kotlin-stdlib-js-ir:compileKotlinJs") + systemProperty("kotlin.js.full.stdlib.path", "libraries/stdlib/js-ir/build/classes/kotlin/js/main") + dependsOn(":kotlin-stdlib-js-ir-minimal-for-test:compileKotlinJs") + systemProperty("kotlin.js.reduced.stdlib.path", "libraries/stdlib/js-ir-minimal-for-test/build/classes/kotlin/js/main") + dependsOn(":kotlin-test:kotlin-test-js-ir:compileKotlinJs") + systemProperty("kotlin.js.kotlin.test.path", "libraries/kotlin.test/js-ir/build/classes/kotlin/js/main") + + exclude("org/jetbrains/kotlin/js/test/wasm/semantics/*") + exclude("org/jetbrains/kotlin/js/test/ir/semantics/*") + exclude("org/jetbrains/kotlin/js/test/semantics/*") + + include("org/jetbrains/kotlin/js/test/es6/semantics/*") + + jvmArgs("-da:jdk.nashorn.internal.runtime.RecompilableScriptFunctionData") // Disable assertion which fails due to a bug in nashorn (KT-23637) + setUpBoxTests() +} + projectTest("jsPirTest", true) { systemProperty("kotlin.js.ir.skipRegularMode", "true") setUpJsBoxTests(jsEnabled = false, jsIrEnabled = true) diff --git a/js/js.tests/test/org/jetbrains/kotlin/generators/tests/GenerateJsTests.kt b/js/js.tests/test/org/jetbrains/kotlin/generators/tests/GenerateJsTests.kt index 6c58a9928a2..bf026933952 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/generators/tests/GenerateJsTests.kt +++ b/js/js.tests/test/org/jetbrains/kotlin/generators/tests/GenerateJsTests.kt @@ -8,6 +8,7 @@ package org.jetbrains.kotlin.generators.tests import org.jetbrains.kotlin.generators.tests.generator.testGroup import org.jetbrains.kotlin.js.test.AbstractDceTest import org.jetbrains.kotlin.js.test.AbstractJsLineNumberTest +import org.jetbrains.kotlin.js.test.es6.semantics.* import org.jetbrains.kotlin.js.test.ir.semantics.* import org.jetbrains.kotlin.js.test.semantics.* import org.jetbrains.kotlin.js.test.wasm.semantics.AbstractIrWasmBoxWasmTest @@ -28,10 +29,18 @@ fun main(args: Array) { model("box/", pattern = "^([^_](.+))\\.kt$", targetBackend = TargetBackend.JS_IR) } + testClass { + model("box/", pattern = "^([^_](.+))\\.kt$", targetBackend = TargetBackend.JS_IR_ES6) + } + testClass { model("typescript-export/", pattern = "^([^_](.+))\\.kt$", targetBackend = TargetBackend.JS_IR) } + testClass { + model("typescript-export/", pattern = "^([^_](.+))\\.kt$", targetBackend = TargetBackend.JS_IR_ES6) + } + testClass { model("typescript-export/", pattern = "^([^_](.+))\\.kt$", targetBackend = TargetBackend.JS) } @@ -71,6 +80,10 @@ fun main(args: Array) { model("codegen/box", targetBackend = TargetBackend.JS_IR) } + testClass { + model("codegen/box", targetBackend = TargetBackend.JS_IR_ES6) + } + testClass { model("codegen/boxInline/", targetBackend = TargetBackend.JS) } @@ -79,6 +92,10 @@ fun main(args: Array) { model("codegen/boxInline/", targetBackend = TargetBackend.JS_IR) } + testClass { + model("codegen/boxInline/", targetBackend = TargetBackend.JS_IR_ES6) + } + testClass { model("codegen/box/arrays", targetBackend = TargetBackend.JS) } diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/BasicBoxTest.kt b/js/js.tests/test/org/jetbrains/kotlin/js/test/BasicBoxTest.kt index cc12c1dd553..8ba5a9a8d27 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/js/test/BasicBoxTest.kt +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/BasicBoxTest.kt @@ -178,7 +178,7 @@ abstract class BasicBoxTest( module.name.endsWith(OLD_MODULE_SUFFIX) -> null // JS_IR generates single js file for all modules (apart from runtime). // TODO: Split and refactor test runner for JS_IR - targetBackend == TargetBackend.JS_IR && !isMainModule -> null + targetBackend in listOf(TargetBackend.JS_IR, TargetBackend.JS_IR_ES6) && !isMainModule -> null else -> Pair(outputFileName, module) } } @@ -680,6 +680,7 @@ abstract class BasicBoxTest( } val libraries = when (targetBackend) { + TargetBackend.JS_IR_ES6 -> dependencies TargetBackend.JS_IR -> dependencies TargetBackend.JS -> JsConfig.JS_STDLIB + JsConfig.JS_KOTLIN_TEST + dependencies else -> error("Unsupported target backend: $targetBackend") diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/BasicIrBoxES6Test.kt b/js/js.tests/test/org/jetbrains/kotlin/js/test/BasicIrBoxES6Test.kt new file mode 100644 index 00000000000..c5b7d0455e1 --- /dev/null +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/BasicIrBoxES6Test.kt @@ -0,0 +1,17 @@ +/* + * Copyright 2010-2020 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.js.test + +import org.jetbrains.kotlin.test.TargetBackend + +abstract class BasicIrBoxES6Test( + pathToTestDir: String, + testGroupOutputDirPrefix: String +) : BasicIrBoxTest( + pathToTestDir, + testGroupOutputDirPrefix, + targetBackend = TargetBackend.JS_IR_ES6 +) diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/BasicIrBoxTest.kt b/js/js.tests/test/org/jetbrains/kotlin/js/test/BasicIrBoxTest.kt index 70f80bd19fd..f41e641624b 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/js/test/BasicIrBoxTest.kt +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/BasicIrBoxTest.kt @@ -16,6 +16,7 @@ import org.jetbrains.kotlin.js.config.JsConfig import org.jetbrains.kotlin.js.facade.MainCallParameters import org.jetbrains.kotlin.js.facade.TranslationUnit import org.jetbrains.kotlin.name.FqName +import org.jetbrains.kotlin.parsing.parseBoolean import org.jetbrains.kotlin.test.TargetBackend import org.jetbrains.kotlin.utils.fileUtils.withReplacedExtensionOrNull import java.io.File @@ -30,7 +31,8 @@ abstract class BasicIrBoxTest( testGroupOutputDirPrefix: String, pathToRootOutputDir: String = TEST_DATA_DIR_PATH, generateSourceMap: Boolean = false, - generateNodeJsRunner: Boolean = false + generateNodeJsRunner: Boolean = false, + targetBackend: TargetBackend = TargetBackend.JS_IR ) : BasicBoxTest( pathToTestDir, testGroupOutputDirPrefix, @@ -38,13 +40,13 @@ abstract class BasicIrBoxTest( typedArraysEnabled = true, generateSourceMap = generateSourceMap, generateNodeJsRunner = generateNodeJsRunner, - targetBackend = TargetBackend.JS_IR + targetBackend = targetBackend ) { open val generateDts = false override val skipMinification = true - private fun getBoolean(s: String, default: Boolean) = System.getProperty(s)?.let { getBoolean(it) } ?: default + private fun getBoolean(s: String, default: Boolean) = System.getProperty(s)?.let { parseBoolean(it) } ?: default override val skipRegularMode: Boolean = getBoolean("kotlin.js.ir.skipRegularMode") @@ -52,6 +54,8 @@ abstract class BasicIrBoxTest( override val runIrPir: Boolean = getBoolean("kotlin.js.ir.pir", true) + val runEs6Mode: Boolean = getBoolean("kotlin.js.ir.es6", false) + // TODO Design incremental compilation for IR and add test support override val incrementalCompilationChecksEnabled = false @@ -104,19 +108,20 @@ abstract class BasicIrBoxTest( if (isMainModule) { val debugMode = getBoolean("kotlin.js.debugMode") + val phases = if (runEs6Mode) jsEs6Phases else jsPhases val phaseConfig = if (debugMode) { - val allPhasesSet = jsPhases.toPhaseMap().values.toSet() + val allPhasesSet = phases.toPhaseMap().values.toSet() val dumpOutputDir = File(outputFile.parent, outputFile.nameWithoutExtension + "-irdump") println("\n ------ Dumping phases to file://$dumpOutputDir") PhaseConfig( - jsPhases, + phases, dumpToDirectory = dumpOutputDir.path, toDumpStateAfter = allPhasesSet, toValidateStateAfter = allPhasesSet, dumpOnlyFqName = null ) } else { - PhaseConfig(jsPhases) + PhaseConfig(phases) } if (!skipRegularMode) { @@ -131,7 +136,8 @@ abstract class BasicIrBoxTest( mainArguments = mainCallParameters.run { if (shouldBeGenerated()) arguments() else null }, exportedDeclarations = setOf(FqName.fromSegments(listOfNotNull(testPackage, testFunction))), generateFullJs = true, - generateDceJs = runIrDce + generateDceJs = runIrDce, + es6mode = runEs6Mode ) val wrappedCode = @@ -161,7 +167,8 @@ abstract class BasicIrBoxTest( friendDependencies = emptyList(), mainArguments = mainCallParameters.run { if (shouldBeGenerated()) arguments() else null }, exportedDeclarations = setOf(FqName.fromSegments(listOfNotNull(testPackage, testFunction))), - dceDriven = true + dceDriven = true, + es6mode = runEs6Mode ).jsCode!!.let { pirCode -> val pirWrappedCode = wrapWithModuleEmulationMarkers(pirCode, moduleId = config.moduleId, moduleKind = config.moduleKind) pirOutputFile.write(pirWrappedCode) diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/es6/semantics/IrBoxJsES6TestGenerated.java b/js/js.tests/test/org/jetbrains/kotlin/js/test/es6/semantics/IrBoxJsES6TestGenerated.java new file mode 100644 index 00000000000..4bf2e74a02d --- /dev/null +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/es6/semantics/IrBoxJsES6TestGenerated.java @@ -0,0 +1,7642 @@ +/* + * Copyright 2010-2020 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.js.test.es6.semantics; + +import com.intellij.testFramework.TestDataPath; +import org.jetbrains.kotlin.test.JUnit3RunnerWithInners; +import org.jetbrains.kotlin.test.KotlinTestUtils; +import org.jetbrains.kotlin.test.TargetBackend; +import org.jetbrains.kotlin.test.TestMetadata; +import org.junit.runner.RunWith; + +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 */ +@SuppressWarnings("all") +@TestMetadata("js/js.translator/testData/box") +@TestDataPath("$PROJECT_ROOT") +@RunWith(JUnit3RunnerWithInners.class) +public class IrBoxJsES6TestGenerated extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInBox() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("js/js.translator/testData/box/annotation") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Annotation extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInAnnotation() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/annotation"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("annotationClass.kt") + public void testAnnotationClass() throws Exception { + runTest("js/js.translator/testData/box/annotation/annotationClass.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/builtins") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Builtins extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInBuiltins() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/builtins"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("hashCode.kt") + public void testHashCode() throws Exception { + runTest("js/js.translator/testData/box/builtins/hashCode.kt"); + } + + @TestMetadata("superCallsToAnyMethods.kt") + public void testSuperCallsToAnyMethods() throws Exception { + runTest("js/js.translator/testData/box/builtins/superCallsToAnyMethods.kt"); + } + + @TestMetadata("toString.kt") + public void testToString() throws Exception { + runTest("js/js.translator/testData/box/builtins/toString.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/callableReference") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class CallableReference extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCallableReference() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/callableReference"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("js/js.translator/testData/box/callableReference/function") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Function extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInFunction() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/callableReference/function"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("classMemberAndNonExtensionCompatibility.kt") + public void testClassMemberAndNonExtensionCompatibility() throws Exception { + runTest("js/js.translator/testData/box/callableReference/function/classMemberAndNonExtensionCompatibility.kt"); + } + + @TestMetadata("classMemberOverridden.kt") + public void testClassMemberOverridden() throws Exception { + runTest("js/js.translator/testData/box/callableReference/function/classMemberOverridden.kt"); + } + + @TestMetadata("constructorsWithArgs.kt") + public void testConstructorsWithArgs() throws Exception { + runTest("js/js.translator/testData/box/callableReference/function/constructorsWithArgs.kt"); + } + + @TestMetadata("constructorsWithArgsSimple.kt") + public void testConstructorsWithArgsSimple() throws Exception { + runTest("js/js.translator/testData/box/callableReference/function/constructorsWithArgsSimple.kt"); + } + + @TestMetadata("extensionFromTopLevel.kt") + public void testExtensionFromTopLevel() throws Exception { + runTest("js/js.translator/testData/box/callableReference/function/extensionFromTopLevel.kt"); + } + + @TestMetadata("functionReferenceName.kt") + public void testFunctionReferenceName() throws Exception { + runTest("js/js.translator/testData/box/callableReference/function/functionReferenceName.kt"); + } + + @TestMetadata("localAndTopLevelExtensions.kt") + public void testLocalAndTopLevelExtensions() throws Exception { + runTest("js/js.translator/testData/box/callableReference/function/localAndTopLevelExtensions.kt"); + } + + @TestMetadata("stringNativeExtension.kt") + public void testStringNativeExtension() throws Exception { + runTest("js/js.translator/testData/box/callableReference/function/stringNativeExtension.kt"); + } + + @TestMetadata("topLevelFromTopLevelWithArg.kt") + public void testTopLevelFromTopLevelWithArg() throws Exception { + runTest("js/js.translator/testData/box/callableReference/function/topLevelFromTopLevelWithArg.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/callableReference/property") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Property extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInProperty() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/callableReference/property"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("extensionProperty.kt") + public void testExtensionProperty() throws Exception { + runTest("js/js.translator/testData/box/callableReference/property/extensionProperty.kt"); + } + + @TestMetadata("memberProperty.kt") + public void testMemberProperty() throws Exception { + runTest("js/js.translator/testData/box/callableReference/property/memberProperty.kt"); + } + + @TestMetadata("topLevelVar.kt") + public void testTopLevelVar() throws Exception { + runTest("js/js.translator/testData/box/callableReference/property/topLevelVar.kt"); + } + } + } + + @TestMetadata("js/js.translator/testData/box/char") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Char extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInChar() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/char"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("charBinaryOperations.kt") + public void testCharBinaryOperations() throws Exception { + runTest("js/js.translator/testData/box/char/charBinaryOperations.kt"); + } + + @TestMetadata("charCompareToIntrinsic.kt") + public void testCharCompareToIntrinsic() throws Exception { + runTest("js/js.translator/testData/box/char/charCompareToIntrinsic.kt"); + } + + @TestMetadata("charConstantByUnicodeId.kt") + public void testCharConstantByUnicodeId() throws Exception { + runTest("js/js.translator/testData/box/char/charConstantByUnicodeId.kt"); + } + + @TestMetadata("charConversions.kt") + public void testCharConversions() throws Exception { + runTest("js/js.translator/testData/box/char/charConversions.kt"); + } + + @TestMetadata("charElvis.kt") + public void testCharElvis() throws Exception { + runTest("js/js.translator/testData/box/char/charElvis.kt"); + } + + @TestMetadata("charEquals.kt") + public void testCharEquals() throws Exception { + runTest("js/js.translator/testData/box/char/charEquals.kt"); + } + + @TestMetadata("charInStringTemplate.kt") + public void testCharInStringTemplate() throws Exception { + runTest("js/js.translator/testData/box/char/charInStringTemplate.kt"); + } + + @TestMetadata("charIsCheck.kt") + public void testCharIsCheck() throws Exception { + runTest("js/js.translator/testData/box/char/charIsCheck.kt"); + } + + @TestMetadata("charRanges.kt") + public void testCharRanges() throws Exception { + runTest("js/js.translator/testData/box/char/charRanges.kt"); + } + + @TestMetadata("charUnaryOperations.kt") + public void testCharUnaryOperations() throws Exception { + runTest("js/js.translator/testData/box/char/charUnaryOperations.kt"); + } + + @TestMetadata("topLevelCallables.kt") + public void testTopLevelCallables() throws Exception { + runTest("js/js.translator/testData/box/char/topLevelCallables.kt"); + } + + @TestMetadata("unboxedCharSpecials.kt") + public void testUnboxedCharSpecials() throws Exception { + runTest("js/js.translator/testData/box/char/unboxedCharSpecials.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/classObject") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ClassObject extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("accessing.kt") + public void testAccessing() throws Exception { + runTest("js/js.translator/testData/box/classObject/accessing.kt"); + } + + public void testAllFilesPresentInClassObject() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/classObject"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("defaultObjectSameNamesAsInOuter.kt") + public void testDefaultObjectSameNamesAsInOuter() throws Exception { + runTest("js/js.translator/testData/box/classObject/defaultObjectSameNamesAsInOuter.kt"); + } + + @TestMetadata("enumCompanionObject.kt") + public void testEnumCompanionObject() throws Exception { + runTest("js/js.translator/testData/box/classObject/enumCompanionObject.kt"); + } + + @TestMetadata("inTrait.kt") + public void testInTrait() throws Exception { + runTest("js/js.translator/testData/box/classObject/inTrait.kt"); + } + + @TestMetadata("invokeOperatorInCompanionObject.kt") + public void testInvokeOperatorInCompanionObject() throws Exception { + runTest("js/js.translator/testData/box/classObject/invokeOperatorInCompanionObject.kt"); + } + + @TestMetadata("namedClassObject.kt") + public void testNamedClassObject() throws Exception { + runTest("js/js.translator/testData/box/classObject/namedClassObject.kt"); + } + + @TestMetadata("objectInCompanionObject.kt") + public void testObjectInCompanionObject() throws Exception { + runTest("js/js.translator/testData/box/classObject/objectInCompanionObject.kt"); + } + + @TestMetadata("setVar.kt") + public void testSetVar() throws Exception { + runTest("js/js.translator/testData/box/classObject/setVar.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("js/js.translator/testData/box/classObject/simple.kt"); + } + + @TestMetadata("withInheritance.kt") + public void testWithInheritance() throws Exception { + runTest("js/js.translator/testData/box/classObject/withInheritance.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/closure") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Closure extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInClosure() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/closure"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("closureArrayListInstance.kt") + public void testClosureArrayListInstance() throws Exception { + runTest("js/js.translator/testData/box/closure/closureArrayListInstance.kt"); + } + + @TestMetadata("closureFunctionAsArgument.kt") + public void testClosureFunctionAsArgument() throws Exception { + runTest("js/js.translator/testData/box/closure/closureFunctionAsArgument.kt"); + } + + @TestMetadata("closureFunctionByInnerFunction.kt") + public void testClosureFunctionByInnerFunction() throws Exception { + runTest("js/js.translator/testData/box/closure/closureFunctionByInnerFunction.kt"); + } + + @TestMetadata("closureGenericTypeValue.kt") + public void testClosureGenericTypeValue() throws Exception { + runTest("js/js.translator/testData/box/closure/closureGenericTypeValue.kt"); + } + + @TestMetadata("closureInFewFunctionWithDifferentName.kt") + public void testClosureInFewFunctionWithDifferentName() throws Exception { + runTest("js/js.translator/testData/box/closure/closureInFewFunctionWithDifferentName.kt"); + } + + @TestMetadata("closureInNestedFunctions.kt") + public void testClosureInNestedFunctions() throws Exception { + runTest("js/js.translator/testData/box/closure/closureInNestedFunctions.kt"); + } + + @TestMetadata("closureInNestedFunctionsInMethod.kt") + public void testClosureInNestedFunctionsInMethod() throws Exception { + runTest("js/js.translator/testData/box/closure/closureInNestedFunctionsInMethod.kt"); + } + + @TestMetadata("closureInNestedFunctionsWhichMixedWithObject.kt") + public void testClosureInNestedFunctionsWhichMixedWithObject() throws Exception { + runTest("js/js.translator/testData/box/closure/closureInNestedFunctionsWhichMixedWithObject.kt"); + } + + @TestMetadata("closureInNestedLambdasInObject.kt") + public void testClosureInNestedLambdasInObject() throws Exception { + runTest("js/js.translator/testData/box/closure/closureInNestedLambdasInObject.kt"); + } + + @TestMetadata("closureInObject.kt") + public void testClosureInObject() throws Exception { + runTest("js/js.translator/testData/box/closure/closureInObject.kt"); + } + + @TestMetadata("closureInWithInsideWith.kt") + public void testClosureInWithInsideWith() throws Exception { + runTest("js/js.translator/testData/box/closure/closureInWithInsideWith.kt"); + } + + @TestMetadata("closureLambdaVarInLambda.kt") + public void testClosureLambdaVarInLambda() throws Exception { + runTest("js/js.translator/testData/box/closure/closureLambdaVarInLambda.kt"); + } + + @TestMetadata("closureLocalFunction.kt") + public void testClosureLocalFunction() throws Exception { + runTest("js/js.translator/testData/box/closure/closureLocalFunction.kt"); + } + + @TestMetadata("closureLocalFunctionByInnerFunction.kt") + public void testClosureLocalFunctionByInnerFunction() throws Exception { + runTest("js/js.translator/testData/box/closure/closureLocalFunctionByInnerFunction.kt"); + } + + @TestMetadata("closureLocalFunctionByInnerFunctionInConstructor.kt") + public void testClosureLocalFunctionByInnerFunctionInConstructor() throws Exception { + runTest("js/js.translator/testData/box/closure/closureLocalFunctionByInnerFunctionInConstructor.kt"); + } + + @TestMetadata("closureLocalInNestedObject.kt") + public void testClosureLocalInNestedObject() throws Exception { + runTest("js/js.translator/testData/box/closure/closureLocalInNestedObject.kt"); + } + + @TestMetadata("closureLocalLiteralFunction.kt") + public void testClosureLocalLiteralFunction() throws Exception { + runTest("js/js.translator/testData/box/closure/closureLocalLiteralFunction.kt"); + } + + @TestMetadata("closureReceiverInLocalExtFunByLocalExtFun.kt") + public void testClosureReceiverInLocalExtFunByLocalExtFun() throws Exception { + runTest("js/js.translator/testData/box/closure/closureReceiverInLocalExtFunByLocalExtFun.kt"); + } + + @TestMetadata("closureReferencingMember.kt") + public void testClosureReferencingMember() throws Exception { + runTest("js/js.translator/testData/box/closure/closureReferencingMember.kt"); + } + + @TestMetadata("closureThisAndClassObject.kt") + public void testClosureThisAndClassObject() throws Exception { + runTest("js/js.translator/testData/box/closure/closureThisAndClassObject.kt"); + } + + @TestMetadata("closureThisAndReceiver.kt") + public void testClosureThisAndReceiver() throws Exception { + runTest("js/js.translator/testData/box/closure/closureThisAndReceiver.kt"); + } + + @TestMetadata("closureThisByUsingMethodFromParentClass.kt") + public void testClosureThisByUsingMethodFromParentClass() throws Exception { + runTest("js/js.translator/testData/box/closure/closureThisByUsingMethodFromParentClass.kt"); + } + + @TestMetadata("closureThisInConstructor.kt") + public void testClosureThisInConstructor() throws Exception { + runTest("js/js.translator/testData/box/closure/closureThisInConstructor.kt"); + } + + @TestMetadata("closureThisInExtLambdaInsideMethod.kt") + public void testClosureThisInExtLambdaInsideMethod() throws Exception { + runTest("js/js.translator/testData/box/closure/closureThisInExtLambdaInsideMethod.kt"); + } + + @TestMetadata("closureThisInFunctionWhichNamedSameAsParentClass.kt") + public void testClosureThisInFunctionWhichNamedSameAsParentClass() throws Exception { + runTest("js/js.translator/testData/box/closure/closureThisInFunctionWhichNamedSameAsParentClass.kt"); + } + + @TestMetadata("closureThisInLambdaInsideMethod.kt") + public void testClosureThisInLambdaInsideMethod() throws Exception { + runTest("js/js.translator/testData/box/closure/closureThisInLambdaInsideMethod.kt"); + } + + @TestMetadata("closureThisInLambdaInsideObject.kt") + public void testClosureThisInLambdaInsideObject() throws Exception { + runTest("js/js.translator/testData/box/closure/closureThisInLambdaInsideObject.kt"); + } + + @TestMetadata("closureThisInLocalFunction.kt") + public void testClosureThisInLocalFunction() throws Exception { + runTest("js/js.translator/testData/box/closure/closureThisInLocalFunction.kt"); + } + + @TestMetadata("closureValToScopeWithSameNameDeclaration.kt") + public void testClosureValToScopeWithSameNameDeclaration() throws Exception { + runTest("js/js.translator/testData/box/closure/closureValToScopeWithSameNameDeclaration.kt"); + } + + @TestMetadata("closureVarToScopeWithSameNameDeclaration.kt") + public void testClosureVarToScopeWithSameNameDeclaration() throws Exception { + runTest("js/js.translator/testData/box/closure/closureVarToScopeWithSameNameDeclaration.kt"); + } + + @TestMetadata("deepInnerClassInLocalClass.kt") + public void testDeepInnerClassInLocalClass() throws Exception { + runTest("js/js.translator/testData/box/closure/deepInnerClassInLocalClass.kt"); + } + + @TestMetadata("deepInnerClassInLocalClassFromExtension.kt") + public void testDeepInnerClassInLocalClassFromExtension() throws Exception { + runTest("js/js.translator/testData/box/closure/deepInnerClassInLocalClassFromExtension.kt"); + } + + @TestMetadata("enclosingClassFromInnerLocalClass.kt") + public void testEnclosingClassFromInnerLocalClass() throws Exception { + runTest("js/js.translator/testData/box/closure/enclosingClassFromInnerLocalClass.kt"); + } + + @TestMetadata("enclosingClassFromLocalClass.kt") + public void testEnclosingClassFromLocalClass() throws Exception { + runTest("js/js.translator/testData/box/closure/enclosingClassFromLocalClass.kt"); + } + + @TestMetadata("implicitGenericReceiverInExtensionInLocalClass.kt") + public void testImplicitGenericReceiverInExtensionInLocalClass() throws Exception { + runTest("js/js.translator/testData/box/closure/implicitGenericReceiverInExtensionInLocalClass.kt"); + } + + @TestMetadata("iteratingCallbacks.kt") + public void testIteratingCallbacks() throws Exception { + runTest("js/js.translator/testData/box/closure/iteratingCallbacks.kt"); + } + + @TestMetadata("lambdaInLocalFun.kt") + public void testLambdaInLocalFun() throws Exception { + runTest("js/js.translator/testData/box/closure/lambdaInLocalFun.kt"); + } + + @TestMetadata("localConstructorAndMethod.kt") + public void testLocalConstructorAndMethod() throws Exception { + runTest("js/js.translator/testData/box/closure/localConstructorAndMethod.kt"); + } + + @TestMetadata("localParameterInCallback.kt") + public void testLocalParameterInCallback() throws Exception { + runTest("js/js.translator/testData/box/closure/localParameterInCallback.kt"); + } + + @TestMetadata("objectWithInvokeOperator.kt") + public void testObjectWithInvokeOperator() throws Exception { + runTest("js/js.translator/testData/box/closure/objectWithInvokeOperator.kt"); + } + + @TestMetadata("recursiveExtFunction.kt") + public void testRecursiveExtFunction() throws Exception { + runTest("js/js.translator/testData/box/closure/recursiveExtFunction.kt"); + } + + @TestMetadata("recursiveFunction.kt") + public void testRecursiveFunction() throws Exception { + runTest("js/js.translator/testData/box/closure/recursiveFunction.kt"); + } + + @TestMetadata("recursiveFunctionWithSameNameDeclaration.kt") + public void testRecursiveFunctionWithSameNameDeclaration() throws Exception { + runTest("js/js.translator/testData/box/closure/recursiveFunctionWithSameNameDeclaration.kt"); + } + + @TestMetadata("withManyClosuresInNestedFunctionsAndObjects.kt") + public void testWithManyClosuresInNestedFunctionsAndObjects() throws Exception { + runTest("js/js.translator/testData/box/closure/withManyClosuresInNestedFunctionsAndObjects.kt"); + } + + @TestMetadata("wrappedVariableInExtensionFun.kt") + public void testWrappedVariableInExtensionFun() throws Exception { + runTest("js/js.translator/testData/box/closure/wrappedVariableInExtensionFun.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/coercion") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Coercion extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCoercion() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/coercion"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("bridgeChar.kt") + public void testBridgeChar() throws Exception { + runTest("js/js.translator/testData/box/coercion/bridgeChar.kt"); + } + + @TestMetadata("charValParameter.kt") + public void testCharValParameter() throws Exception { + runTest("js/js.translator/testData/box/coercion/charValParameter.kt"); + } + + @TestMetadata("classProperty.kt") + public void testClassProperty() throws Exception { + runTest("js/js.translator/testData/box/coercion/classProperty.kt"); + } + + @TestMetadata("defaultAccessors.kt") + public void testDefaultAccessors() throws Exception { + runTest("js/js.translator/testData/box/coercion/defaultAccessors.kt"); + } + + @TestMetadata("derivedFunctionReturningChar.kt") + public void testDerivedFunctionReturningChar() throws Exception { + runTest("js/js.translator/testData/box/coercion/derivedFunctionReturningChar.kt"); + } + + @TestMetadata("derivedFunctionReturningUnit.kt") + public void testDerivedFunctionReturningUnit() throws Exception { + runTest("js/js.translator/testData/box/coercion/derivedFunctionReturningUnit.kt"); + } + + @TestMetadata("destructuringToUnit.kt") + public void testDestructuringToUnit() throws Exception { + runTest("js/js.translator/testData/box/coercion/destructuringToUnit.kt"); + } + + @TestMetadata("extensionReceiver.kt") + public void testExtensionReceiver() throws Exception { + runTest("js/js.translator/testData/box/coercion/extensionReceiver.kt"); + } + + @TestMetadata("ifWithUnit.kt") + public void testIfWithUnit() throws Exception { + runTest("js/js.translator/testData/box/coercion/ifWithUnit.kt"); + } + + @TestMetadata("inlineFunReturningUnit.kt") + public void testInlineFunReturningUnit() throws Exception { + runTest("js/js.translator/testData/box/coercion/inlineFunReturningUnit.kt"); + } + + @TestMetadata("lambdaParameters.kt") + public void testLambdaParameters() throws Exception { + runTest("js/js.translator/testData/box/coercion/lambdaParameters.kt"); + } + + @TestMetadata("loopOverUnits.kt") + public void testLoopOverUnits() throws Exception { + runTest("js/js.translator/testData/box/coercion/loopOverUnits.kt"); + } + + @TestMetadata("propertyBridgeChar.kt") + public void testPropertyBridgeChar() throws Exception { + runTest("js/js.translator/testData/box/coercion/propertyBridgeChar.kt"); + } + + @TestMetadata("receiverSmartCast.kt") + public void testReceiverSmartCast() throws Exception { + runTest("js/js.translator/testData/box/coercion/receiverSmartCast.kt"); + } + + @TestMetadata("safeCallLetReturningUnit.kt") + public void testSafeCallLetReturningUnit() throws Exception { + runTest("js/js.translator/testData/box/coercion/safeCallLetReturningUnit.kt"); + } + + @TestMetadata("topLevelProperty.kt") + public void testTopLevelProperty() throws Exception { + runTest("js/js.translator/testData/box/coercion/topLevelProperty.kt"); + } + + @TestMetadata("tryWithEmptyCatch.kt") + public void testTryWithEmptyCatch() throws Exception { + runTest("js/js.translator/testData/box/coercion/tryWithEmptyCatch.kt"); + } + + @TestMetadata("unitAsExtensionReceiver.kt") + public void testUnitAsExtensionReceiver() throws Exception { + runTest("js/js.translator/testData/box/coercion/unitAsExtensionReceiver.kt"); + } + + @TestMetadata("unitIsAs.kt") + public void testUnitIsAs() throws Exception { + runTest("js/js.translator/testData/box/coercion/unitIsAs.kt"); + } + + @TestMetadata("unitNullCheck.kt") + public void testUnitNullCheck() throws Exception { + runTest("js/js.translator/testData/box/coercion/unitNullCheck.kt"); + } + + @TestMetadata("unitSafeCall.kt") + public void testUnitSafeCall() throws Exception { + runTest("js/js.translator/testData/box/coercion/unitSafeCall.kt"); + } + + @TestMetadata("whenWithUnit.kt") + public void testWhenWithUnit() throws Exception { + runTest("js/js.translator/testData/box/coercion/whenWithUnit.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/coroutines") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Coroutines extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCoroutines() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/coroutines"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("debugStatement.kt") + public void testDebugStatement() throws Exception { + runTest("js/js.translator/testData/box/coroutines/debugStatement.kt"); + } + + @TestMetadata("localVarOptimization.kt") + public void testLocalVarOptimization() throws Exception { + runTest("js/js.translator/testData/box/coroutines/localVarOptimization.kt"); + } + + @TestMetadata("nativeExceptions.kt") + public void testNativeExceptions() throws Exception { + runTest("js/js.translator/testData/box/coroutines/nativeExceptions.kt"); + } + + @TestMetadata("onlyInlineSuspendFunction.kt") + public void testOnlyInlineSuspendFunction() throws Exception { + runTest("js/js.translator/testData/box/coroutines/onlyInlineSuspendFunction.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/crossModuleRef") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class CrossModuleRef extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCrossModuleRef() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/crossModuleRef"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("callableObjectRef.kt") + public void testCallableObjectRef() throws Exception { + runTest("js/js.translator/testData/box/crossModuleRef/callableObjectRef.kt"); + } + + @TestMetadata("constructor.kt") + public void testConstructor() throws Exception { + runTest("js/js.translator/testData/box/crossModuleRef/constructor.kt"); + } + + @TestMetadata("inheritance.kt") + public void testInheritance() throws Exception { + runTest("js/js.translator/testData/box/crossModuleRef/inheritance.kt"); + } + + @TestMetadata("inlineJsModule.kt") + public void testInlineJsModule() throws Exception { + runTest("js/js.translator/testData/box/crossModuleRef/inlineJsModule.kt"); + } + + @TestMetadata("inlineJsModuleNonIdentifier.kt") + public void testInlineJsModuleNonIdentifier() throws Exception { + runTest("js/js.translator/testData/box/crossModuleRef/inlineJsModuleNonIdentifier.kt"); + } + + @TestMetadata("inlineJsModulePackage.kt") + public void testInlineJsModulePackage() throws Exception { + runTest("js/js.translator/testData/box/crossModuleRef/inlineJsModulePackage.kt"); + } + + @TestMetadata("inlineModule.kt") + public void testInlineModule() throws Exception { + runTest("js/js.translator/testData/box/crossModuleRef/inlineModule.kt"); + } + + @TestMetadata("inlineModuleNonIndentifier.kt") + public void testInlineModuleNonIndentifier() throws Exception { + runTest("js/js.translator/testData/box/crossModuleRef/inlineModuleNonIndentifier.kt"); + } + + @TestMetadata("lambda.kt") + public void testLambda() throws Exception { + runTest("js/js.translator/testData/box/crossModuleRef/lambda.kt"); + } + + @TestMetadata("object.kt") + public void testObject() throws Exception { + runTest("js/js.translator/testData/box/crossModuleRef/object.kt"); + } + + @TestMetadata("objectInInlineClosure.kt") + public void testObjectInInlineClosure() throws Exception { + runTest("js/js.translator/testData/box/crossModuleRef/objectInInlineClosure.kt"); + } + + @TestMetadata("objectIsObject.kt") + public void testObjectIsObject() throws Exception { + runTest("js/js.translator/testData/box/crossModuleRef/objectIsObject.kt"); + } + + @TestMetadata("topLevelExtension.kt") + public void testTopLevelExtension() throws Exception { + runTest("js/js.translator/testData/box/crossModuleRef/topLevelExtension.kt"); + } + + @TestMetadata("topLevelFunction.kt") + public void testTopLevelFunction() throws Exception { + runTest("js/js.translator/testData/box/crossModuleRef/topLevelFunction.kt"); + } + + @TestMetadata("topLevelMutableProperty.kt") + public void testTopLevelMutableProperty() throws Exception { + runTest("js/js.translator/testData/box/crossModuleRef/topLevelMutableProperty.kt"); + } + + @TestMetadata("topLevelProperty.kt") + public void testTopLevelProperty() throws Exception { + runTest("js/js.translator/testData/box/crossModuleRef/topLevelProperty.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/dataClass") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DataClass extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDataClass() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/dataClass"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("components.kt") + public void testComponents() throws Exception { + runTest("js/js.translator/testData/box/dataClass/components.kt"); + } + + @TestMetadata("copy.kt") + public void testCopy() throws Exception { + runTest("js/js.translator/testData/box/dataClass/copy.kt"); + } + + @TestMetadata("equals.kt") + public void testEquals() throws Exception { + runTest("js/js.translator/testData/box/dataClass/equals.kt"); + } + + @TestMetadata("hashcode.kt") + public void testHashcode() throws Exception { + runTest("js/js.translator/testData/box/dataClass/hashcode.kt"); + } + + @TestMetadata("keyrole.kt") + public void testKeyrole() throws Exception { + runTest("js/js.translator/testData/box/dataClass/keyrole.kt"); + } + + @TestMetadata("override.kt") + public void testOverride() throws Exception { + runTest("js/js.translator/testData/box/dataClass/override.kt"); + } + + @TestMetadata("privateFields.kt") + public void testPrivateFields() throws Exception { + runTest("js/js.translator/testData/box/dataClass/privateFields.kt"); + } + + @TestMetadata("tostring.kt") + public void testTostring() throws Exception { + runTest("js/js.translator/testData/box/dataClass/tostring.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/defaultArguments") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DefaultArguments extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDefaultArguments() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/defaultArguments"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("complexExpressionAsConstructorDefaultArgument.kt") + public void testComplexExpressionAsConstructorDefaultArgument() throws Exception { + runTest("js/js.translator/testData/box/defaultArguments/complexExpressionAsConstructorDefaultArgument.kt"); + } + + @TestMetadata("complexExpressionAsDefaultArgument.kt") + public void testComplexExpressionAsDefaultArgument() throws Exception { + runTest("js/js.translator/testData/box/defaultArguments/complexExpressionAsDefaultArgument.kt"); + } + + @TestMetadata("complexExpressionAsOverriddenDefaultArgument.kt") + public void testComplexExpressionAsOverriddenDefaultArgument() throws Exception { + runTest("js/js.translator/testData/box/defaultArguments/complexExpressionAsOverriddenDefaultArgument.kt"); + } + + @TestMetadata("constructorCallWithDefArg1.kt") + public void testConstructorCallWithDefArg1() throws Exception { + runTest("js/js.translator/testData/box/defaultArguments/constructorCallWithDefArg1.kt"); + } + + @TestMetadata("constructorCallWithDefArg2.kt") + public void testConstructorCallWithDefArg2() throws Exception { + runTest("js/js.translator/testData/box/defaultArguments/constructorCallWithDefArg2.kt"); + } + + @TestMetadata("defArgsWithSuperCall.kt") + public void testDefArgsWithSuperCall() throws Exception { + runTest("js/js.translator/testData/box/defaultArguments/defArgsWithSuperCall.kt"); + } + + @TestMetadata("defaultArgumentsInFunctionWithExpressionAsBody.kt") + public void testDefaultArgumentsInFunctionWithExpressionAsBody() throws Exception { + runTest("js/js.translator/testData/box/defaultArguments/defaultArgumentsInFunctionWithExpressionAsBody.kt"); + } + + @TestMetadata("enumSuperConstructor.kt") + public void testEnumSuperConstructor() throws Exception { + runTest("js/js.translator/testData/box/defaultArguments/enumSuperConstructor.kt"); + } + + @TestMetadata("enumWithDefArg.kt") + public void testEnumWithDefArg() throws Exception { + runTest("js/js.translator/testData/box/defaultArguments/enumWithDefArg.kt"); + } + + @TestMetadata("enumWithOneDefArg.kt") + public void testEnumWithOneDefArg() throws Exception { + runTest("js/js.translator/testData/box/defaultArguments/enumWithOneDefArg.kt"); + } + + @TestMetadata("enumWithTwoDefArgs.kt") + public void testEnumWithTwoDefArgs() throws Exception { + runTest("js/js.translator/testData/box/defaultArguments/enumWithTwoDefArgs.kt"); + } + + @TestMetadata("extensionFunWithDefArgs.kt") + public void testExtensionFunWithDefArgs() throws Exception { + runTest("js/js.translator/testData/box/defaultArguments/extensionFunWithDefArgs.kt"); + } + + @TestMetadata("funInAbstractClassWithDefArg.kt") + public void testFunInAbstractClassWithDefArg() throws Exception { + runTest("js/js.translator/testData/box/defaultArguments/funInAbstractClassWithDefArg.kt"); + } + + @TestMetadata("inheritViaAnotherInterface.kt") + public void testInheritViaAnotherInterface() throws Exception { + runTest("js/js.translator/testData/box/defaultArguments/inheritViaAnotherInterface.kt"); + } + + @TestMetadata("inheritViaAnotherInterfaceIndirectly.kt") + public void testInheritViaAnotherInterfaceIndirectly() throws Exception { + runTest("js/js.translator/testData/box/defaultArguments/inheritViaAnotherInterfaceIndirectly.kt"); + } + + @TestMetadata("overloadFunWithDefArg.kt") + public void testOverloadFunWithDefArg() throws Exception { + runTest("js/js.translator/testData/box/defaultArguments/overloadFunWithDefArg.kt"); + } + + @TestMetadata("primarySuperConstructor.kt") + public void testPrimarySuperConstructor() throws Exception { + runTest("js/js.translator/testData/box/defaultArguments/primarySuperConstructor.kt"); + } + + @TestMetadata("secondarySuperConstructor.kt") + public void testSecondarySuperConstructor() throws Exception { + runTest("js/js.translator/testData/box/defaultArguments/secondarySuperConstructor.kt"); + } + + @TestMetadata("superCall.kt") + public void testSuperCall() throws Exception { + runTest("js/js.translator/testData/box/defaultArguments/superCall.kt"); + } + + @TestMetadata("virtualCallWithDefArg.kt") + public void testVirtualCallWithDefArg() throws Exception { + runTest("js/js.translator/testData/box/defaultArguments/virtualCallWithDefArg.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/delegateProperty") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DelegateProperty extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDelegateProperty() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/delegateProperty"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("capturedLocalVal.kt") + public void testCapturedLocalVal() throws Exception { + runTest("js/js.translator/testData/box/delegateProperty/capturedLocalVal.kt"); + } + + @TestMetadata("capturedLocalValNoInline.kt") + public void testCapturedLocalValNoInline() throws Exception { + runTest("js/js.translator/testData/box/delegateProperty/capturedLocalValNoInline.kt"); + } + + @TestMetadata("capturedLocalVar.kt") + public void testCapturedLocalVar() throws Exception { + runTest("js/js.translator/testData/box/delegateProperty/capturedLocalVar.kt"); + } + + @TestMetadata("capturedLocalVarNoInline.kt") + public void testCapturedLocalVarNoInline() throws Exception { + runTest("js/js.translator/testData/box/delegateProperty/capturedLocalVarNoInline.kt"); + } + + @TestMetadata("clashingNameInSubclass.kt") + public void testClashingNameInSubclass() throws Exception { + runTest("js/js.translator/testData/box/delegateProperty/clashingNameInSubclass.kt"); + } + + @TestMetadata("delegateByExtensionProperty.kt") + public void testDelegateByExtensionProperty() throws Exception { + runTest("js/js.translator/testData/box/delegateProperty/delegateByExtensionProperty.kt"); + } + + @TestMetadata("delegateByTopLevelFun.kt") + public void testDelegateByTopLevelFun() throws Exception { + runTest("js/js.translator/testData/box/delegateProperty/delegateByTopLevelFun.kt"); + } + + @TestMetadata("delegateByTopLevelProperty.kt") + public void testDelegateByTopLevelProperty() throws Exception { + runTest("js/js.translator/testData/box/delegateProperty/delegateByTopLevelProperty.kt"); + } + + @TestMetadata("delegateWithPropertyAccess.kt") + public void testDelegateWithPropertyAccess() throws Exception { + runTest("js/js.translator/testData/box/delegateProperty/delegateWithPropertyAccess.kt"); + } + + @TestMetadata("getAsExtensionFun.kt") + public void testGetAsExtensionFun() throws Exception { + runTest("js/js.translator/testData/box/delegateProperty/getAsExtensionFun.kt"); + } + + @TestMetadata("localVal.kt") + public void testLocalVal() throws Exception { + runTest("js/js.translator/testData/box/delegateProperty/localVal.kt"); + } + + @TestMetadata("localVar.kt") + public void testLocalVar() throws Exception { + runTest("js/js.translator/testData/box/delegateProperty/localVar.kt"); + } + + @TestMetadata("localVarInc.kt") + public void testLocalVarInc() throws Exception { + runTest("js/js.translator/testData/box/delegateProperty/localVarInc.kt"); + } + + @TestMetadata("localVarPlusAssign.kt") + public void testLocalVarPlusAssign() throws Exception { + runTest("js/js.translator/testData/box/delegateProperty/localVarPlusAssign.kt"); + } + + @TestMetadata("metadataReferentialEquality.kt") + public void testMetadataReferentialEquality() throws Exception { + runTest("js/js.translator/testData/box/delegateProperty/metadataReferentialEquality.kt"); + } + + @TestMetadata("peculiarName.kt") + public void testPeculiarName() throws Exception { + runTest("js/js.translator/testData/box/delegateProperty/peculiarName.kt"); + } + + @TestMetadata("propertyMetadata.kt") + public void testPropertyMetadata() throws Exception { + runTest("js/js.translator/testData/box/delegateProperty/propertyMetadata.kt"); + } + + @TestMetadata("setAsExtensionFun.kt") + public void testSetAsExtensionFun() throws Exception { + runTest("js/js.translator/testData/box/delegateProperty/setAsExtensionFun.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("js/js.translator/testData/box/delegateProperty/simple.kt"); + } + + @TestMetadata("topLevelVal.kt") + public void testTopLevelVal() throws Exception { + runTest("js/js.translator/testData/box/delegateProperty/topLevelVal.kt"); + } + + @TestMetadata("topLevelVar.kt") + public void testTopLevelVar() throws Exception { + runTest("js/js.translator/testData/box/delegateProperty/topLevelVar.kt"); + } + + @TestMetadata("unusedPropertyMetadata.kt") + public void testUnusedPropertyMetadata() throws Exception { + runTest("js/js.translator/testData/box/delegateProperty/unusedPropertyMetadata.kt"); + } + + @TestMetadata("withGenerics.kt") + public void testWithGenerics() throws Exception { + runTest("js/js.translator/testData/box/delegateProperty/withGenerics.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/delegation") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Delegation extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDelegation() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/delegation"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("complexDelegation.kt") + public void testComplexDelegation() throws Exception { + runTest("js/js.translator/testData/box/delegation/complexDelegation.kt"); + } + + @TestMetadata("delegationByArg.kt") + public void testDelegationByArg() throws Exception { + runTest("js/js.translator/testData/box/delegation/delegationByArg.kt"); + } + + @TestMetadata("delegationByExprWithArgs.kt") + public void testDelegationByExprWithArgs() throws Exception { + runTest("js/js.translator/testData/box/delegation/delegationByExprWithArgs.kt"); + } + + @TestMetadata("delegationByFunExpr.kt") + public void testDelegationByFunExpr() throws Exception { + runTest("js/js.translator/testData/box/delegation/delegationByFunExpr.kt"); + } + + @TestMetadata("delegationByIfExpr.kt") + public void testDelegationByIfExpr() throws Exception { + runTest("js/js.translator/testData/box/delegation/delegationByIfExpr.kt"); + } + + @TestMetadata("delegationByInh.kt") + public void testDelegationByInh() throws Exception { + runTest("js/js.translator/testData/box/delegation/delegationByInh.kt"); + } + + @TestMetadata("delegationByNewInstance.kt") + public void testDelegationByNewInstance() throws Exception { + runTest("js/js.translator/testData/box/delegation/delegationByNewInstance.kt"); + } + + @TestMetadata("delegationChain.kt") + public void testDelegationChain() throws Exception { + runTest("js/js.translator/testData/box/delegation/delegationChain.kt"); + } + + @TestMetadata("delegationEvaluationOrder1.kt") + public void testDelegationEvaluationOrder1() throws Exception { + runTest("js/js.translator/testData/box/delegation/delegationEvaluationOrder1.kt"); + } + + @TestMetadata("delegationEvaluationOrder2.kt") + public void testDelegationEvaluationOrder2() throws Exception { + runTest("js/js.translator/testData/box/delegation/delegationEvaluationOrder2.kt"); + } + + @TestMetadata("delegationExtFun1.kt") + public void testDelegationExtFun1() throws Exception { + runTest("js/js.translator/testData/box/delegation/delegationExtFun1.kt"); + } + + @TestMetadata("delegationExtFun2.kt") + public void testDelegationExtFun2() throws Exception { + runTest("js/js.translator/testData/box/delegation/delegationExtFun2.kt"); + } + + @TestMetadata("delegationExtProp.kt") + public void testDelegationExtProp() throws Exception { + runTest("js/js.translator/testData/box/delegation/delegationExtProp.kt"); + } + + @TestMetadata("delegationExtensionPropertyDelegated.kt") + public void testDelegationExtensionPropertyDelegated() throws Exception { + runTest("js/js.translator/testData/box/delegation/delegationExtensionPropertyDelegated.kt"); + } + + @TestMetadata("jsNamePropertyDelegation.kt") + public void testJsNamePropertyDelegation() throws Exception { + runTest("js/js.translator/testData/box/delegation/jsNamePropertyDelegation.kt"); + } + + @TestMetadata("onObject.kt") + public void testOnObject() throws Exception { + runTest("js/js.translator/testData/box/delegation/onObject.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/dynamic") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Dynamic extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDynamic() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/dynamic"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("binaryOperations.kt") + public void testBinaryOperations() throws Exception { + runTest("js/js.translator/testData/box/dynamic/binaryOperations.kt"); + } + + @TestMetadata("callGetMethod.kt") + public void testCallGetMethod() throws Exception { + runTest("js/js.translator/testData/box/dynamic/callGetMethod.kt"); + } + + @TestMetadata("callMethods.kt") + public void testCallMethods() throws Exception { + runTest("js/js.translator/testData/box/dynamic/callMethods.kt"); + } + + @TestMetadata("callSetMethod.kt") + public void testCallSetMethod() throws Exception { + runTest("js/js.translator/testData/box/dynamic/callSetMethod.kt"); + } + + @TestMetadata("compareTo.kt") + public void testCompareTo() throws Exception { + runTest("js/js.translator/testData/box/dynamic/compareTo.kt"); + } + + @TestMetadata("equals.kt") + public void testEquals() throws Exception { + runTest("js/js.translator/testData/box/dynamic/equals.kt"); + } + + @TestMetadata("getByBrackets.kt") + public void testGetByBrackets() throws Exception { + runTest("js/js.translator/testData/box/dynamic/getByBrackets.kt"); + } + + @TestMetadata("identityEquals.kt") + public void testIdentityEquals() throws Exception { + runTest("js/js.translator/testData/box/dynamic/identityEquals.kt"); + } + + @TestMetadata("incrementAndDecrement.kt") + public void testIncrementAndDecrement() throws Exception { + runTest("js/js.translator/testData/box/dynamic/incrementAndDecrement.kt"); + } + + @TestMetadata("infixCall.kt") + public void testInfixCall() throws Exception { + runTest("js/js.translator/testData/box/dynamic/infixCall.kt"); + } + + @TestMetadata("invoke.kt") + public void testInvoke() throws Exception { + runTest("js/js.translator/testData/box/dynamic/invoke.kt"); + } + + @TestMetadata("is.kt") + public void testIs() throws Exception { + runTest("js/js.translator/testData/box/dynamic/is.kt"); + } + + @TestMetadata("isJsPrimitiveType.kt") + public void testIsJsPrimitiveType() throws Exception { + runTest("js/js.translator/testData/box/dynamic/isJsPrimitiveType.kt"); + } + + @TestMetadata("iterator.kt") + public void testIterator() throws Exception { + runTest("js/js.translator/testData/box/dynamic/iterator.kt"); + } + + @TestMetadata("operationsWithAssignment.kt") + public void testOperationsWithAssignment() throws Exception { + runTest("js/js.translator/testData/box/dynamic/operationsWithAssignment.kt"); + } + + @TestMetadata("propertyAccess.kt") + public void testPropertyAccess() throws Exception { + runTest("js/js.translator/testData/box/dynamic/propertyAccess.kt"); + } + + @TestMetadata("propertySideEffect.kt") + public void testPropertySideEffect() throws Exception { + runTest("js/js.translator/testData/box/dynamic/propertySideEffect.kt"); + } + + @TestMetadata("setByBrackets.kt") + public void testSetByBrackets() throws Exception { + runTest("js/js.translator/testData/box/dynamic/setByBrackets.kt"); + } + + @TestMetadata("unaryOperations.kt") + public void testUnaryOperations() throws Exception { + runTest("js/js.translator/testData/box/dynamic/unaryOperations.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/enum") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Enum extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("accessing.kt") + public void testAccessing() throws Exception { + runTest("js/js.translator/testData/box/enum/accessing.kt"); + } + + public void testAllFilesPresentInEnum() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/enum"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("enumInheritedFromTrait.kt") + public void testEnumInheritedFromTrait() throws Exception { + runTest("js/js.translator/testData/box/enum/enumInheritedFromTrait.kt"); + } + + @TestMetadata("enumIsComparable.kt") + public void testEnumIsComparable() throws Exception { + runTest("js/js.translator/testData/box/enum/enumIsComparable.kt"); + } + + @TestMetadata("enumWithInheritance.kt") + public void testEnumWithInheritance() throws Exception { + runTest("js/js.translator/testData/box/enum/enumWithInheritance.kt"); + } + + @TestMetadata("equals.kt") + public void testEquals() throws Exception { + runTest("js/js.translator/testData/box/enum/equals.kt"); + } + + @TestMetadata("equalsNullUndefined.kt") + public void testEqualsNullUndefined() throws Exception { + runTest("js/js.translator/testData/box/enum/equalsNullUndefined.kt"); + } + + @TestMetadata("implementsComparable.kt") + public void testImplementsComparable() throws Exception { + runTest("js/js.translator/testData/box/enum/implementsComparable.kt"); + } + + @TestMetadata("initializationOrder.kt") + public void testInitializationOrder() throws Exception { + runTest("js/js.translator/testData/box/enum/initializationOrder.kt"); + } + + @TestMetadata("nativeEnum.kt") + public void testNativeEnum() throws Exception { + runTest("js/js.translator/testData/box/enum/nativeEnum.kt"); + } + + @TestMetadata("simpleEnum.kt") + public void testSimpleEnum() throws Exception { + runTest("js/js.translator/testData/box/enum/simpleEnum.kt"); + } + + @TestMetadata("standardFunctions.kt") + public void testStandardFunctions() throws Exception { + runTest("js/js.translator/testData/box/enum/standardFunctions.kt"); + } + + @TestMetadata("standardMethods.kt") + public void testStandardMethods() throws Exception { + runTest("js/js.translator/testData/box/enum/standardMethods.kt"); + } + + @TestMetadata("superCallInEnumLiteral.kt") + public void testSuperCallInEnumLiteral() throws Exception { + runTest("js/js.translator/testData/box/enum/superCallInEnumLiteral.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/es6classes") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Es6classes extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInEs6classes() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/es6classes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("builtItTypes.kt") + public void testBuiltItTypes() throws Exception { + runTest("js/js.translator/testData/box/es6classes/builtItTypes.kt"); + } + + @TestMetadata("defaultPrimary.kt") + public void testDefaultPrimary() throws Exception { + runTest("js/js.translator/testData/box/es6classes/defaultPrimary.kt"); + } + + @TestMetadata("defaultPrimaryExtendsAny.kt") + public void testDefaultPrimaryExtendsAny() throws Exception { + runTest("js/js.translator/testData/box/es6classes/defaultPrimaryExtendsAny.kt"); + } + + @TestMetadata("defaultPrimaryExtendsExternal.kt") + public void testDefaultPrimaryExtendsExternal() throws Exception { + runTest("js/js.translator/testData/box/es6classes/defaultPrimaryExtendsExternal.kt"); + } + + @TestMetadata("defaultPrimaryWithSuper.kt") + public void testDefaultPrimaryWithSuper() throws Exception { + runTest("js/js.translator/testData/box/es6classes/defaultPrimaryWithSuper.kt"); + } + + @TestMetadata("delegation.kt") + public void testDelegation() throws Exception { + runTest("js/js.translator/testData/box/es6classes/delegation.kt"); + } + + @TestMetadata("fieldAccess.kt") + public void testFieldAccess() throws Exception { + runTest("js/js.translator/testData/box/es6classes/fieldAccess.kt"); + } + + @TestMetadata("inheritedFromExternalBySecondaryCtor.kt") + public void testInheritedFromExternalBySecondaryCtor() throws Exception { + runTest("js/js.translator/testData/box/es6classes/inheritedFromExternalBySecondaryCtor.kt"); + } + + @TestMetadata("inheritedFromExternalClass.kt") + public void testInheritedFromExternalClass() throws Exception { + runTest("js/js.translator/testData/box/es6classes/inheritedFromExternalClass.kt"); + } + + @TestMetadata("initBlocks.kt") + public void testInitBlocks() throws Exception { + runTest("js/js.translator/testData/box/es6classes/initBlocks.kt"); + } + + @TestMetadata("innerClasses.kt") + public void testInnerClasses() throws Exception { + runTest("js/js.translator/testData/box/es6classes/innerClasses.kt"); + } + + @TestMetadata("isInitializedFieldBeforeObjectCreation.kt") + public void testIsInitializedFieldBeforeObjectCreation() throws Exception { + runTest("js/js.translator/testData/box/es6classes/isInitializedFieldBeforeObjectCreation.kt"); + } + + @TestMetadata("primaryToSecondary.kt") + public void testPrimaryToSecondary() throws Exception { + runTest("js/js.translator/testData/box/es6classes/primaryToSecondary.kt"); + } + + @TestMetadata("typeCorrectness.kt") + public void testTypeCorrectness() throws Exception { + runTest("js/js.translator/testData/box/es6classes/typeCorrectness.kt"); + } + + @TestMetadata("unboxChain.kt") + public void testUnboxChain() throws Exception { + runTest("js/js.translator/testData/box/es6classes/unboxChain.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/examples") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Examples extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInExamples() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/examples"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("basicmethod.kt") + public void testBasicmethod() throws Exception { + runTest("js/js.translator/testData/box/examples/basicmethod.kt"); + } + + @TestMetadata("newInstanceDefaultConstructor.kt") + public void testNewInstanceDefaultConstructor() throws Exception { + runTest("js/js.translator/testData/box/examples/newInstanceDefaultConstructor.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/export") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Export extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInExport() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("nonIndetifierModuleName.kt") + public void testNonIndetifierModuleName() throws Exception { + runTest("js/js.translator/testData/box/export/nonIndetifierModuleName.kt"); + } + + @TestMetadata("reservedModuleName.kt") + public void testReservedModuleName() throws Exception { + runTest("js/js.translator/testData/box/export/reservedModuleName.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/expression") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Expression extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInExpression() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/expression"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("js/js.translator/testData/box/expression/cast") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Cast extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCast() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/expression/cast"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("castExtensionToKMutableProperty.kt") + public void testCastExtensionToKMutableProperty() throws Exception { + runTest("js/js.translator/testData/box/expression/cast/castExtensionToKMutableProperty.kt"); + } + + @TestMetadata("castExtensionToKProperty1.kt") + public void testCastExtensionToKProperty1() throws Exception { + runTest("js/js.translator/testData/box/expression/cast/castExtensionToKProperty1.kt"); + } + + @TestMetadata("castToAny.kt") + public void testCastToAny() throws Exception { + runTest("js/js.translator/testData/box/expression/cast/castToAny.kt"); + } + + @TestMetadata("castToArray.kt") + public void testCastToArray() throws Exception { + runTest("js/js.translator/testData/box/expression/cast/castToArray.kt"); + } + + @TestMetadata("castToFunction.kt") + public void testCastToFunction() throws Exception { + runTest("js/js.translator/testData/box/expression/cast/castToFunction.kt"); + } + + @TestMetadata("castToGenericType.kt") + public void testCastToGenericType() throws Exception { + runTest("js/js.translator/testData/box/expression/cast/castToGenericType.kt"); + } + + @TestMetadata("castToGenericTypeWithMultipleUpperBounds.kt") + public void testCastToGenericTypeWithMultipleUpperBounds() throws Exception { + runTest("js/js.translator/testData/box/expression/cast/castToGenericTypeWithMultipleUpperBounds.kt"); + } + + @TestMetadata("castToGenericTypeWithUpperBound.kt") + public void testCastToGenericTypeWithUpperBound() throws Exception { + runTest("js/js.translator/testData/box/expression/cast/castToGenericTypeWithUpperBound.kt"); + } + + @TestMetadata("castToKMutableProperty0.kt") + public void testCastToKMutableProperty0() throws Exception { + runTest("js/js.translator/testData/box/expression/cast/castToKMutableProperty0.kt"); + } + + @TestMetadata("castToKMutableProperty1.kt") + public void testCastToKMutableProperty1() throws Exception { + runTest("js/js.translator/testData/box/expression/cast/castToKMutableProperty1.kt"); + } + + @TestMetadata("castToKProperty0.kt") + public void testCastToKProperty0() throws Exception { + runTest("js/js.translator/testData/box/expression/cast/castToKProperty0.kt"); + } + + @TestMetadata("castToKProperty1.kt") + public void testCastToKProperty1() throws Exception { + runTest("js/js.translator/testData/box/expression/cast/castToKProperty1.kt"); + } + + @TestMetadata("castToNotNull.kt") + public void testCastToNotNull() throws Exception { + runTest("js/js.translator/testData/box/expression/cast/castToNotNull.kt"); + } + + @TestMetadata("castToNullable.kt") + public void testCastToNullable() throws Exception { + runTest("js/js.translator/testData/box/expression/cast/castToNullable.kt"); + } + + @TestMetadata("checkThrowCCE.kt") + public void testCheckThrowCCE() throws Exception { + runTest("js/js.translator/testData/box/expression/cast/checkThrowCCE.kt"); + } + + @TestMetadata("implicitCastToLong.kt") + public void testImplicitCastToLong() throws Exception { + runTest("js/js.translator/testData/box/expression/cast/implicitCastToLong.kt"); + } + + @TestMetadata("primitiveToClass.kt") + public void testPrimitiveToClass() throws Exception { + runTest("js/js.translator/testData/box/expression/cast/primitiveToClass.kt"); + } + + @TestMetadata("reifiedToNotNull.kt") + public void testReifiedToNotNull() throws Exception { + runTest("js/js.translator/testData/box/expression/cast/reifiedToNotNull.kt"); + } + + @TestMetadata("reifiedToNullable1.kt") + public void testReifiedToNullable1() throws Exception { + runTest("js/js.translator/testData/box/expression/cast/reifiedToNullable1.kt"); + } + + @TestMetadata("reifiedToNullable2.kt") + public void testReifiedToNullable2() throws Exception { + runTest("js/js.translator/testData/box/expression/cast/reifiedToNullable2.kt"); + } + + @TestMetadata("safeCastToGenericTypeWithUpperBound.kt") + public void testSafeCastToGenericTypeWithUpperBound() throws Exception { + runTest("js/js.translator/testData/box/expression/cast/safeCastToGenericTypeWithUpperBound.kt"); + } + + @TestMetadata("safeCastToNotNull.kt") + public void testSafeCastToNotNull() throws Exception { + runTest("js/js.translator/testData/box/expression/cast/safeCastToNotNull.kt"); + } + + @TestMetadata("safeCastToNullable.kt") + public void testSafeCastToNullable() throws Exception { + runTest("js/js.translator/testData/box/expression/cast/safeCastToNullable.kt"); + } + + @TestMetadata("safeCastToReifiedNotNull.kt") + public void testSafeCastToReifiedNotNull() throws Exception { + runTest("js/js.translator/testData/box/expression/cast/safeCastToReifiedNotNull.kt"); + } + + @TestMetadata("safeCastToReifiedNullable.kt") + public void testSafeCastToReifiedNullable() throws Exception { + runTest("js/js.translator/testData/box/expression/cast/safeCastToReifiedNullable.kt"); + } + + @TestMetadata("smartCastInExtensionFunction.kt") + public void testSmartCastInExtensionFunction() throws Exception { + runTest("js/js.translator/testData/box/expression/cast/smartCastInExtensionFunction.kt"); + } + + @TestMetadata("smartCastInFunction.kt") + public void testSmartCastInFunction() throws Exception { + runTest("js/js.translator/testData/box/expression/cast/smartCastInFunction.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/expression/compareTo") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class CompareTo extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCompareTo() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/expression/compareTo"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("booleanCompareTo.kt") + public void testBooleanCompareTo() throws Exception { + runTest("js/js.translator/testData/box/expression/compareTo/booleanCompareTo.kt"); + } + + @TestMetadata("customCompareToMethod.kt") + public void testCustomCompareToMethod() throws Exception { + runTest("js/js.translator/testData/box/expression/compareTo/customCompareToMethod.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/expression/dollarParameter") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DollarParameter extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDollarParameter() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/expression/dollarParameter"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("dollarParameter.kt") + public void testDollarParameter() throws Exception { + runTest("js/js.translator/testData/box/expression/dollarParameter/dollarParameter.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/expression/equals") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Equals extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInEquals() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/expression/equals"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("arrays.kt") + public void testArrays() throws Exception { + runTest("js/js.translator/testData/box/expression/equals/arrays.kt"); + } + + @TestMetadata("compareNullableListWithNull.kt") + public void testCompareNullableListWithNull() throws Exception { + runTest("js/js.translator/testData/box/expression/equals/compareNullableListWithNull.kt"); + } + + @TestMetadata("compareNullablesWithCustomEquals.kt") + public void testCompareNullablesWithCustomEquals() throws Exception { + runTest("js/js.translator/testData/box/expression/equals/compareNullablesWithCustomEquals.kt"); + } + + @TestMetadata("compareToNullWithCustomEquals.kt") + public void testCompareToNullWithCustomEquals() throws Exception { + runTest("js/js.translator/testData/box/expression/equals/compareToNullWithCustomEquals.kt"); + } + + @TestMetadata("customEqualsMethod.kt") + public void testCustomEqualsMethod() throws Exception { + runTest("js/js.translator/testData/box/expression/equals/customEqualsMethod.kt"); + } + + @TestMetadata("customEqualsMethodOnAny.kt") + public void testCustomEqualsMethodOnAny() throws Exception { + runTest("js/js.translator/testData/box/expression/equals/customEqualsMethodOnAny.kt"); + } + + @TestMetadata("equalsBehaviorOnNull.kt") + public void testEqualsBehaviorOnNull() throws Exception { + runTest("js/js.translator/testData/box/expression/equals/equalsBehaviorOnNull.kt"); + } + + @TestMetadata("equalsNullOrUndefined.kt") + public void testEqualsNullOrUndefined() throws Exception { + runTest("js/js.translator/testData/box/expression/equals/equalsNullOrUndefined.kt"); + } + + @TestMetadata("explicitEqualsMethod.kt") + public void testExplicitEqualsMethod() throws Exception { + runTest("js/js.translator/testData/box/expression/equals/explicitEqualsMethod.kt"); + } + + @TestMetadata("explicitEqualsMethodForPrimitives.kt") + public void testExplicitEqualsMethodForPrimitives() throws Exception { + runTest("js/js.translator/testData/box/expression/equals/explicitEqualsMethodForPrimitives.kt"); + } + + @TestMetadata("kt2370.kt") + public void testKt2370() throws Exception { + runTest("js/js.translator/testData/box/expression/equals/kt2370.kt"); + } + + @TestMetadata("stringsEqual.kt") + public void testStringsEqual() throws Exception { + runTest("js/js.translator/testData/box/expression/equals/stringsEqual.kt"); + } + + @TestMetadata("superEquals.kt") + public void testSuperEquals() throws Exception { + runTest("js/js.translator/testData/box/expression/equals/superEquals.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/expression/evaluationOrder") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class EvaluationOrder extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("2dangerousInExpression.kt") + public void test2dangerousInExpression() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/2dangerousInExpression.kt"); + } + + public void testAllFilesPresentInEvaluationOrder() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/expression/evaluationOrder"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("andAndWithBreakContinueReturn.kt") + public void testAndAndWithBreakContinueReturn() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/andAndWithBreakContinueReturn.kt"); + } + + @TestMetadata("andAndWithSideEffect.kt") + public void testAndAndWithSideEffect() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/andAndWithSideEffect.kt"); + } + + @TestMetadata("andAndWithTmpVarRhs.kt") + public void testAndAndWithTmpVarRhs() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/andAndWithTmpVarRhs.kt"); + } + + @TestMetadata("assignToArrayElementWithSideEffect.kt") + public void testAssignToArrayElementWithSideEffect() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/assignToArrayElementWithSideEffect.kt"); + } + + @TestMetadata("assignToDotQualifiedWithSideEffect.kt") + public void testAssignToDotQualifiedWithSideEffect() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/assignToDotQualifiedWithSideEffect.kt"); + } + + @TestMetadata("booleanAndOr.kt") + public void testBooleanAndOr() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/booleanAndOr.kt"); + } + + @TestMetadata("callArgs.kt") + public void testCallArgs() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/callArgs.kt"); + } + + @TestMetadata("callVarargs.kt") + public void testCallVarargs() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/callVarargs.kt"); + } + + @TestMetadata("callWithBreakContinueReturn.kt") + public void testCallWithBreakContinueReturn() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/callWithBreakContinueReturn.kt"); + } + + @TestMetadata("castWithBreakContinueReturn.kt") + public void testCastWithBreakContinueReturn() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/castWithBreakContinueReturn.kt"); + } + + @TestMetadata("compareToIntrinsicWithSideEffect.kt") + public void testCompareToIntrinsicWithSideEffect() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/compareToIntrinsicWithSideEffect.kt"); + } + + @TestMetadata("concatWithTerminator.kt") + public void testConcatWithTerminator() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/concatWithTerminator.kt"); + } + + @TestMetadata("dangerousInline.kt") + public void testDangerousInline() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/dangerousInline.kt"); + } + + @TestMetadata("dangerousInsideDangerous.kt") + public void testDangerousInsideDangerous() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/dangerousInsideDangerous.kt"); + } + + @TestMetadata("deepExpression.kt") + public void testDeepExpression() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/deepExpression.kt"); + } + + @TestMetadata("delegationCtorWithExpression.kt") + public void testDelegationCtorWithExpression() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/delegationCtorWithExpression.kt"); + } + + @TestMetadata("elvisComplex.kt") + public void testElvisComplex() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/elvisComplex.kt"); + } + + @TestMetadata("elvisWithBreakContinueReturn.kt") + public void testElvisWithBreakContinueReturn() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/elvisWithBreakContinueReturn.kt"); + } + + @TestMetadata("emptyLoopWithBreakContinueReturnInCondition.kt") + public void testEmptyLoopWithBreakContinueReturnInCondition() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/emptyLoopWithBreakContinueReturnInCondition.kt"); + } + + @TestMetadata("equalsIntrinsicWithSideEffect.kt") + public void testEqualsIntrinsicWithSideEffect() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/equalsIntrinsicWithSideEffect.kt"); + } + + @TestMetadata("evaluationOrder1.kt") + public void testEvaluationOrder1() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/evaluationOrder1.kt"); + } + + @TestMetadata("evaluationOrder2.kt") + public void testEvaluationOrder2() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/evaluationOrder2.kt"); + } + + @TestMetadata("ifAsFunArgument.kt") + public void testIfAsFunArgument() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/ifAsFunArgument.kt"); + } + + @TestMetadata("ifAsPlusArgument.kt") + public void testIfAsPlusArgument() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/ifAsPlusArgument.kt"); + } + + @TestMetadata("ifWithComplex.kt") + public void testIfWithComplex() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/ifWithComplex.kt"); + } + + @TestMetadata("intrinsicComplex.kt") + public void testIntrinsicComplex() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/intrinsicComplex.kt"); + } + + @TestMetadata("intrinsicWithBreakContinueReturn.kt") + public void testIntrinsicWithBreakContinueReturn() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/intrinsicWithBreakContinueReturn.kt"); + } + + @TestMetadata("literalFunctionAsArgumentWithSideEffect.kt") + public void testLiteralFunctionAsArgumentWithSideEffect() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/literalFunctionAsArgumentWithSideEffect.kt"); + } + + @TestMetadata("loopWithBreakContinueReturnInCondition.kt") + public void testLoopWithBreakContinueReturnInCondition() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/loopWithBreakContinueReturnInCondition.kt"); + } + + @TestMetadata("orOrWithBreakContinueReturn.kt") + public void testOrOrWithBreakContinueReturn() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/orOrWithBreakContinueReturn.kt"); + } + + @TestMetadata("orOrWithSideEffect.kt") + public void testOrOrWithSideEffect() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/orOrWithSideEffect.kt"); + } + + @TestMetadata("reassignmentLhsCaching.kt") + public void testReassignmentLhsCaching() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/reassignmentLhsCaching.kt"); + } + + @TestMetadata("secondaryConstructorTemporaryVars.kt") + public void testSecondaryConstructorTemporaryVars() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/secondaryConstructorTemporaryVars.kt"); + } + + @TestMetadata("singleComponentDestructuring.kt") + public void testSingleComponentDestructuring() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/singleComponentDestructuring.kt"); + } + + @TestMetadata("throwableDelegation.kt") + public void testThrowableDelegation() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/throwableDelegation.kt"); + } + + @TestMetadata("whenAsMinusArgument.kt") + public void testWhenAsMinusArgument() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/whenAsMinusArgument.kt"); + } + + @TestMetadata("whenJsLiteralWithSideEffect.kt") + public void testWhenJsLiteralWithSideEffect() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/whenJsLiteralWithSideEffect.kt"); + } + + @TestMetadata("whenWithComplexConditions.kt") + public void testWhenWithComplexConditions() throws Exception { + runTest("js/js.translator/testData/box/expression/evaluationOrder/whenWithComplexConditions.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/expression/for") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class For extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInFor() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/expression/for"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("forIteratesOverArray.kt") + public void testForIteratesOverArray() throws Exception { + runTest("js/js.translator/testData/box/expression/for/forIteratesOverArray.kt"); + } + + @TestMetadata("forIteratesOverLiteralRange.kt") + public void testForIteratesOverLiteralRange() throws Exception { + runTest("js/js.translator/testData/box/expression/for/forIteratesOverLiteralRange.kt"); + } + + @TestMetadata("forIteratesOverNonLiteralRange.kt") + public void testForIteratesOverNonLiteralRange() throws Exception { + runTest("js/js.translator/testData/box/expression/for/forIteratesOverNonLiteralRange.kt"); + } + + @TestMetadata("forIteratesOverSomethingWithIterator.kt") + public void testForIteratesOverSomethingWithIterator() throws Exception { + runTest("js/js.translator/testData/box/expression/for/forIteratesOverSomethingWithIterator.kt"); + } + + @TestMetadata("forIteratesOverTypeParameter.kt") + public void testForIteratesOverTypeParameter() throws Exception { + runTest("js/js.translator/testData/box/expression/for/forIteratesOverTypeParameter.kt"); + } + + @TestMetadata("forOnEmptyArray.kt") + public void testForOnEmptyArray() throws Exception { + runTest("js/js.translator/testData/box/expression/for/forOnEmptyArray.kt"); + } + + @TestMetadata("forWithComplexOneStatement.kt") + public void testForWithComplexOneStatement() throws Exception { + runTest("js/js.translator/testData/box/expression/for/forWithComplexOneStatement.kt"); + } + + @TestMetadata("forWithEmptyBody.kt") + public void testForWithEmptyBody() throws Exception { + runTest("js/js.translator/testData/box/expression/for/forWithEmptyBody.kt"); + } + + @TestMetadata("forWithSideEffectImElementAccessAndWithEmptyBody.kt") + public void testForWithSideEffectImElementAccessAndWithEmptyBody() throws Exception { + runTest("js/js.translator/testData/box/expression/for/forWithSideEffectImElementAccessAndWithEmptyBody.kt"); + } + + @TestMetadata("labeledFor.kt") + public void testLabeledFor() throws Exception { + runTest("js/js.translator/testData/box/expression/for/labeledFor.kt"); + } + + @TestMetadata("labeledForWithContinue.kt") + public void testLabeledForWithContinue() throws Exception { + runTest("js/js.translator/testData/box/expression/for/labeledForWithContinue.kt"); + } + + @TestMetadata("labeledForWithWhile.kt") + public void testLabeledForWithWhile() throws Exception { + runTest("js/js.translator/testData/box/expression/for/labeledForWithWhile.kt"); + } + + @TestMetadata("overArrayWithIndex.kt") + public void testOverArrayWithIndex() throws Exception { + runTest("js/js.translator/testData/box/expression/for/overArrayWithIndex.kt"); + } + + @TestMetadata("overCollectionWithIndex.kt") + public void testOverCollectionWithIndex() throws Exception { + runTest("js/js.translator/testData/box/expression/for/overCollectionWithIndex.kt"); + } + + @TestMetadata("rangeOptimization.kt") + public void testRangeOptimization() throws Exception { + runTest("js/js.translator/testData/box/expression/for/rangeOptimization.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/expression/function") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Function extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("adderClosure.kt") + public void testAdderClosure() throws Exception { + runTest("js/js.translator/testData/box/expression/function/adderClosure.kt"); + } + + public void testAllFilesPresentInFunction() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/expression/function"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("anonymousWithLambda.kt") + public void testAnonymousWithLambda() throws Exception { + runTest("js/js.translator/testData/box/expression/function/anonymousWithLambda.kt"); + } + + @TestMetadata("callFunInInit.kt") + public void testCallFunInInit() throws Exception { + runTest("js/js.translator/testData/box/expression/function/callFunInInit.kt"); + } + + @TestMetadata("closureWithParameter.kt") + public void testClosureWithParameter() throws Exception { + runTest("js/js.translator/testData/box/expression/function/closureWithParameter.kt"); + } + + @TestMetadata("closureWithParameterAndBoxing.kt") + public void testClosureWithParameterAndBoxing() throws Exception { + runTest("js/js.translator/testData/box/expression/function/closureWithParameterAndBoxing.kt"); + } + + @TestMetadata("defaultParameters.kt") + public void testDefaultParameters() throws Exception { + runTest("js/js.translator/testData/box/expression/function/defaultParameters.kt"); + } + + @TestMetadata("enclosingThis.kt") + public void testEnclosingThis() throws Exception { + runTest("js/js.translator/testData/box/expression/function/enclosingThis.kt"); + } + + @TestMetadata("expressionAsExtFunction.kt") + public void testExpressionAsExtFunction() throws Exception { + runTest("js/js.translator/testData/box/expression/function/expressionAsExtFunction.kt"); + } + + @TestMetadata("expressionAsFunction.kt") + public void testExpressionAsFunction() throws Exception { + runTest("js/js.translator/testData/box/expression/function/expressionAsFunction.kt"); + } + + @TestMetadata("functionExpression.kt") + public void testFunctionExpression() throws Exception { + runTest("js/js.translator/testData/box/expression/function/functionExpression.kt"); + } + + @TestMetadata("functionInsideFunction.kt") + public void testFunctionInsideFunction() throws Exception { + runTest("js/js.translator/testData/box/expression/function/functionInsideFunction.kt"); + } + + @TestMetadata("functionLiteral.kt") + public void testFunctionLiteral() throws Exception { + runTest("js/js.translator/testData/box/expression/function/functionLiteral.kt"); + } + + @TestMetadata("functionLiteralAsLastParameter.kt") + public void testFunctionLiteralAsLastParameter() throws Exception { + runTest("js/js.translator/testData/box/expression/function/functionLiteralAsLastParameter.kt"); + } + + @TestMetadata("functionLiteralAsParameter.kt") + public void testFunctionLiteralAsParameter() throws Exception { + runTest("js/js.translator/testData/box/expression/function/functionLiteralAsParameter.kt"); + } + + @TestMetadata("functionUsedBeforeDeclaration.kt") + public void testFunctionUsedBeforeDeclaration() throws Exception { + runTest("js/js.translator/testData/box/expression/function/functionUsedBeforeDeclaration.kt"); + } + + @TestMetadata("functionWithTwoParametersCall.kt") + public void testFunctionWithTwoParametersCall() throws Exception { + runTest("js/js.translator/testData/box/expression/function/functionWithTwoParametersCall.kt"); + } + + @TestMetadata("implicitItParameter.kt") + public void testImplicitItParameter() throws Exception { + runTest("js/js.translator/testData/box/expression/function/implicitItParameter.kt"); + } + + @TestMetadata("KT-921.kt") + public void testKT_921() throws Exception { + runTest("js/js.translator/testData/box/expression/function/KT-921.kt"); + } + + @TestMetadata("lambdaOrLocalFunInsideEnumMethod.kt") + public void testLambdaOrLocalFunInsideEnumMethod() throws Exception { + runTest("js/js.translator/testData/box/expression/function/lambdaOrLocalFunInsideEnumMethod.kt"); + } + + @TestMetadata("localExtFunction.kt") + public void testLocalExtFunction() throws Exception { + runTest("js/js.translator/testData/box/expression/function/localExtFunction.kt"); + } + + @TestMetadata("localInInitBlock.kt") + public void testLocalInInitBlock() throws Exception { + runTest("js/js.translator/testData/box/expression/function/localInInitBlock.kt"); + } + + @TestMetadata("loopClosure.kt") + public void testLoopClosure() throws Exception { + runTest("js/js.translator/testData/box/expression/function/loopClosure.kt"); + } + + @TestMetadata("mangling.kt") + public void testMangling() throws Exception { + runTest("js/js.translator/testData/box/expression/function/mangling.kt"); + } + + @TestMetadata("manglingAnyMethods.kt") + public void testManglingAnyMethods() throws Exception { + runTest("js/js.translator/testData/box/expression/function/manglingAnyMethods.kt"); + } + + @TestMetadata("manglingClashFunctionsAndClasses.kt") + public void testManglingClashFunctionsAndClasses() throws Exception { + runTest("js/js.translator/testData/box/expression/function/manglingClashFunctionsAndClasses.kt"); + } + + @TestMetadata("manglingClashWithFunctionsWithoutParameters.kt") + public void testManglingClashWithFunctionsWithoutParameters() throws Exception { + runTest("js/js.translator/testData/box/expression/function/manglingClashWithFunctionsWithoutParameters.kt"); + } + + @TestMetadata("manglingImportedFromObjectWithNI.kt") + public void testManglingImportedFromObjectWithNI() throws Exception { + runTest("js/js.translator/testData/box/expression/function/manglingImportedFromObjectWithNI.kt"); + } + + @TestMetadata("manglingStability.kt") + public void testManglingStability() throws Exception { + runTest("js/js.translator/testData/box/expression/function/manglingStability.kt"); + } + + @TestMetadata("namedArguments.kt") + public void testNamedArguments() throws Exception { + runTest("js/js.translator/testData/box/expression/function/namedArguments.kt"); + } + + @TestMetadata("overloadClassConstructorByFactoryMethod.kt") + public void testOverloadClassConstructorByFactoryMethod() throws Exception { + runTest("js/js.translator/testData/box/expression/function/overloadClassConstructorByFactoryMethod.kt"); + } + + @TestMetadata("overloadOverridenFun.kt") + public void testOverloadOverridenFun() throws Exception { + runTest("js/js.translator/testData/box/expression/function/overloadOverridenFun.kt"); + } + + @TestMetadata("overloadingWithInheritance.kt") + public void testOverloadingWithInheritance() throws Exception { + runTest("js/js.translator/testData/box/expression/function/overloadingWithInheritance.kt"); + } + + @TestMetadata("vararg.kt") + public void testVararg() throws Exception { + runTest("js/js.translator/testData/box/expression/function/vararg.kt"); + } + + @TestMetadata("varargUInt.kt") + public void testVarargUInt() throws Exception { + runTest("js/js.translator/testData/box/expression/function/varargUInt.kt"); + } + + @TestMetadata("whenFunction.kt") + public void testWhenFunction() throws Exception { + runTest("js/js.translator/testData/box/expression/function/whenFunction.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/expression/identifierClash") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class IdentifierClash extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInIdentifierClash() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/expression/identifierClash"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("overloadedFun.kt") + public void testOverloadedFun() throws Exception { + runTest("js/js.translator/testData/box/expression/identifierClash/overloadedFun.kt"); + } + + @TestMetadata("privateDeclarations.kt") + public void testPrivateDeclarations() throws Exception { + runTest("js/js.translator/testData/box/expression/identifierClash/privateDeclarations.kt"); + } + + @TestMetadata("useVariableOfNameOfFunction.kt") + public void testUseVariableOfNameOfFunction() throws Exception { + runTest("js/js.translator/testData/box/expression/identifierClash/useVariableOfNameOfFunction.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/expression/identityEquals") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class IdentityEquals extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInIdentityEquals() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/expression/identityEquals"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("identityEqualsMethod.kt") + public void testIdentityEqualsMethod() throws Exception { + runTest("js/js.translator/testData/box/expression/identityEquals/identityEqualsMethod.kt"); + } + + @TestMetadata("identityEqualsMethodForPrimitives.kt") + public void testIdentityEqualsMethodForPrimitives() throws Exception { + runTest("js/js.translator/testData/box/expression/identityEquals/identityEqualsMethodForPrimitives.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/expression/if") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class If extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInIf() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/expression/if"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("ifElseAsExpressionWithThrow.kt") + public void testIfElseAsExpressionWithThrow() throws Exception { + runTest("js/js.translator/testData/box/expression/if/ifElseAsExpressionWithThrow.kt"); + } + + @TestMetadata("ifElseCurlyBraces.kt") + public void testIfElseCurlyBraces() throws Exception { + runTest("js/js.translator/testData/box/expression/if/ifElseCurlyBraces.kt"); + } + + @TestMetadata("ifInsideLambda.kt") + public void testIfInsideLambda() throws Exception { + runTest("js/js.translator/testData/box/expression/if/ifInsideLambda.kt"); + } + + @TestMetadata("nestedIf.kt") + public void testNestedIf() throws Exception { + runTest("js/js.translator/testData/box/expression/if/nestedIf.kt"); + } + + @TestMetadata("withEmptyBlocks.kt") + public void testWithEmptyBlocks() throws Exception { + runTest("js/js.translator/testData/box/expression/if/withEmptyBlocks.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/expression/invoke") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Invoke extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInvoke() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/expression/invoke"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("explicitInvokeLambda.kt") + public void testExplicitInvokeLambda() throws Exception { + runTest("js/js.translator/testData/box/expression/invoke/explicitInvokeLambda.kt"); + } + + @TestMetadata("extensionInvoke.kt") + public void testExtensionInvoke() throws Exception { + runTest("js/js.translator/testData/box/expression/invoke/extensionInvoke.kt"); + } + + @TestMetadata("inheritFromFunctionTraits.kt") + public void testInheritFromFunctionTraits() throws Exception { + runTest("js/js.translator/testData/box/expression/invoke/inheritFromFunctionTraits.kt"); + } + + @TestMetadata("internalFunctionFromSuperclass.kt") + public void testInternalFunctionFromSuperclass() throws Exception { + runTest("js/js.translator/testData/box/expression/invoke/internalFunctionFromSuperclass.kt"); + } + + @TestMetadata("invokeInExtensionFunctionLiteral.kt") + public void testInvokeInExtensionFunctionLiteral() throws Exception { + runTest("js/js.translator/testData/box/expression/invoke/invokeInExtensionFunctionLiteral.kt"); + } + + @TestMetadata("invokeInFunctionLiteral.kt") + public void testInvokeInFunctionLiteral() throws Exception { + runTest("js/js.translator/testData/box/expression/invoke/invokeInFunctionLiteral.kt"); + } + + @TestMetadata("invokeMethod.kt") + public void testInvokeMethod() throws Exception { + runTest("js/js.translator/testData/box/expression/invoke/invokeMethod.kt"); + } + + @TestMetadata("invokeOnExprByConvention.kt") + public void testInvokeOnExprByConvention() throws Exception { + runTest("js/js.translator/testData/box/expression/invoke/invokeOnExprByConvention.kt"); + } + + @TestMetadata("invokeWithDispatchAndExtensionReceivers.kt") + public void testInvokeWithDispatchAndExtensionReceivers() throws Exception { + runTest("js/js.translator/testData/box/expression/invoke/invokeWithDispatchAndExtensionReceivers.kt"); + } + + @TestMetadata("invokeWithDispatchReceiver.kt") + public void testInvokeWithDispatchReceiver() throws Exception { + runTest("js/js.translator/testData/box/expression/invoke/invokeWithDispatchReceiver.kt"); + } + + @TestMetadata("invokeWithExtensionReceiver.kt") + public void testInvokeWithExtensionReceiver() throws Exception { + runTest("js/js.translator/testData/box/expression/invoke/invokeWithExtensionReceiver.kt"); + } + + @TestMetadata("invokeWithImplicitDispatchReceiverAndExtensionReceiver.kt") + public void testInvokeWithImplicitDispatchReceiverAndExtensionReceiver() throws Exception { + runTest("js/js.translator/testData/box/expression/invoke/invokeWithImplicitDispatchReceiverAndExtensionReceiver.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/expression/misc") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Misc extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInMisc() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/expression/misc"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("classWithoutPackage.kt") + public void testClassWithoutPackage() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/classWithoutPackage.kt"); + } + + @TestMetadata("elvis.kt") + public void testElvis() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/elvis.kt"); + } + + @TestMetadata("elvisReturnNested.kt") + public void testElvisReturnNested() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/elvisReturnNested.kt"); + } + + @TestMetadata("elvisReturnSimple.kt") + public void testElvisReturnSimple() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/elvisReturnSimple.kt"); + } + + @TestMetadata("elvisWithThrow.kt") + public void testElvisWithThrow() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/elvisWithThrow.kt"); + } + + @TestMetadata("exclExcl.kt") + public void testExclExcl() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/exclExcl.kt"); + } + + @TestMetadata("exclExclResultIsComputedOnce.kt") + public void testExclExclResultIsComputedOnce() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/exclExclResultIsComputedOnce.kt"); + } + + @TestMetadata("exclExclThrows.kt") + public void testExclExclThrows() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/exclExclThrows.kt"); + } + + @TestMetadata("extensionLiteralCalledInsideExtensionFunction.kt") + public void testExtensionLiteralCalledInsideExtensionFunction() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/extensionLiteralCalledInsideExtensionFunction.kt"); + } + + @TestMetadata("extensionLiteralCreatedAtPackageLevel.kt") + public void testExtensionLiteralCreatedAtPackageLevel() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/extensionLiteralCreatedAtPackageLevel.kt"); + } + + @TestMetadata("funInConstructor.kt") + public void testFunInConstructor() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/funInConstructor.kt"); + } + + @TestMetadata("funInConstructorBlock.kt") + public void testFunInConstructorBlock() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/funInConstructorBlock.kt"); + } + + @TestMetadata("inheritFromJetIterator.kt") + public void testInheritFromJetIterator() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/inheritFromJetIterator.kt"); + } + + @TestMetadata("intRange.kt") + public void testIntRange() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/intRange.kt"); + } + + @TestMetadata("KT-1052.kt") + public void testKT_1052() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/KT-1052.kt"); + } + + @TestMetadata("KT-1052-2.kt") + public void testKT_1052_2() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/KT-1052-2.kt"); + } + + @TestMetadata("KT-1361-1.kt") + public void testKT_1361_1() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/KT-1361-1.kt"); + } + + @TestMetadata("KT-1361-2.kt") + public void testKT_1361_2() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/KT-1361-2.kt"); + } + + @TestMetadata("KT-1865.kt") + public void testKT_1865() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/KT-1865.kt"); + } + + @TestMetadata("KT-2314.kt") + public void testKT_2314() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/KT-2314.kt"); + } + + @TestMetadata("KT-5058.kt") + public void testKT_5058() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/KT-5058.kt"); + } + + @TestMetadata("KT-740.kt") + public void testKT_740() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/KT-740.kt"); + } + + @TestMetadata("KT-740-2.kt") + public void testKT_740_2() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/KT-740-2.kt"); + } + + @TestMetadata("KT-740-3.kt") + public void testKT_740_3() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/KT-740-3.kt"); + } + + @TestMetadata("KT-817.kt") + public void testKT_817() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/KT-817.kt"); + } + + @TestMetadata("kt9443.kt") + public void testKt9443() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/kt9443.kt"); + } + + @TestMetadata("lazyProperty.kt") + public void testLazyProperty() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/lazyProperty.kt"); + } + + @TestMetadata("localProperty.kt") + public void testLocalProperty() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/localProperty.kt"); + } + + @TestMetadata("localVarAsFunction.kt") + public void testLocalVarAsFunction() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/localVarAsFunction.kt"); + } + + @TestMetadata("packageLevelVarInPackage.kt") + public void testPackageLevelVarInPackage() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/packageLevelVarInPackage.kt"); + } + + @TestMetadata("packageLevelVarInRoot.kt") + public void testPackageLevelVarInRoot() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/packageLevelVarInRoot.kt"); + } + + @TestMetadata("packagePropertyCalledAsFun.kt") + public void testPackagePropertyCalledAsFun() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/packagePropertyCalledAsFun.kt"); + } + + @TestMetadata("propertiesWithExplicitlyDefinedAccessorsWithoutBodies.kt") + public void testPropertiesWithExplicitlyDefinedAccessorsWithoutBodies() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/propertiesWithExplicitlyDefinedAccessorsWithoutBodies.kt"); + } + + @TestMetadata("propertyAsFunCalledOnConstructor.kt") + public void testPropertyAsFunCalledOnConstructor() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/propertyAsFunCalledOnConstructor.kt"); + } + + @TestMetadata("rightAssocForGeneratedConditionalOperator.kt") + public void testRightAssocForGeneratedConditionalOperator() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/rightAssocForGeneratedConditionalOperator.kt"); + } + + @TestMetadata("safeCallComputesExpressionOnlyOnce.kt") + public void testSafeCallComputesExpressionOnlyOnce() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/safeCallComputesExpressionOnlyOnce.kt"); + } + + @TestMetadata("stringInterpolationEvaluationOrder.kt") + public void testStringInterpolationEvaluationOrder() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/stringInterpolationEvaluationOrder.kt"); + } + + @TestMetadata("temporaryVariableCreatedInPackageInitializer.kt") + public void testTemporaryVariableCreatedInPackageInitializer() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/temporaryVariableCreatedInPackageInitializer.kt"); + } + + @TestMetadata("throwThrow.kt") + public void testThrowThrow() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/throwThrow.kt"); + } + + @TestMetadata("toGeneratorInStdlib.kt") + public void testToGeneratorInStdlib() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/toGeneratorInStdlib.kt"); + } + + @TestMetadata("whenReturnedWithoutBlock.kt") + public void testWhenReturnedWithoutBlock() throws Exception { + runTest("js/js.translator/testData/box/expression/misc/whenReturnedWithoutBlock.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/expression/stringClass") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class StringClass extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInStringClass() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/expression/stringClass"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("extensionMethods.kt") + public void testExtensionMethods() throws Exception { + runTest("js/js.translator/testData/box/expression/stringClass/extensionMethods.kt"); + } + + @TestMetadata("intInTemplate.kt") + public void testIntInTemplate() throws Exception { + runTest("js/js.translator/testData/box/expression/stringClass/intInTemplate.kt"); + } + + @TestMetadata("kt2227.kt") + public void testKt2227() throws Exception { + runTest("js/js.translator/testData/box/expression/stringClass/kt2227.kt"); + } + + @TestMetadata("kt2227_2.kt") + public void testKt2227_2() throws Exception { + runTest("js/js.translator/testData/box/expression/stringClass/kt2227_2.kt"); + } + + @TestMetadata("multipleExpressionsInTemplate.kt") + public void testMultipleExpressionsInTemplate() throws Exception { + runTest("js/js.translator/testData/box/expression/stringClass/multipleExpressionsInTemplate.kt"); + } + + @TestMetadata("nullableTypeInStringTemplate.kt") + public void testNullableTypeInStringTemplate() throws Exception { + runTest("js/js.translator/testData/box/expression/stringClass/nullableTypeInStringTemplate.kt"); + } + + @TestMetadata("numbersInTemplate.kt") + public void testNumbersInTemplate() throws Exception { + runTest("js/js.translator/testData/box/expression/stringClass/numbersInTemplate.kt"); + } + + @TestMetadata("objectToStringCallInTemplate.kt") + public void testObjectToStringCallInTemplate() throws Exception { + runTest("js/js.translator/testData/box/expression/stringClass/objectToStringCallInTemplate.kt"); + } + + @TestMetadata("stringAssignment.kt") + public void testStringAssignment() throws Exception { + runTest("js/js.translator/testData/box/expression/stringClass/stringAssignment.kt"); + } + + @TestMetadata("stringConstant.kt") + public void testStringConstant() throws Exception { + runTest("js/js.translator/testData/box/expression/stringClass/stringConstant.kt"); + } + + @TestMetadata("stringInTemplate.kt") + public void testStringInTemplate() throws Exception { + runTest("js/js.translator/testData/box/expression/stringClass/stringInTemplate.kt"); + } + + @TestMetadata("stringNotEqualToNumber.kt") + public void testStringNotEqualToNumber() throws Exception { + runTest("js/js.translator/testData/box/expression/stringClass/stringNotEqualToNumber.kt"); + } + + @TestMetadata("subSequence.kt") + public void testSubSequence() throws Exception { + runTest("js/js.translator/testData/box/expression/stringClass/subSequence.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/expression/stringTemplates") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class StringTemplates extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInStringTemplates() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/expression/stringTemplates"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("nonStrings.kt") + public void testNonStrings() throws Exception { + runTest("js/js.translator/testData/box/expression/stringTemplates/nonStrings.kt"); + } + + @TestMetadata("objectWithToString.kt") + public void testObjectWithToString() throws Exception { + runTest("js/js.translator/testData/box/expression/stringTemplates/objectWithToString.kt"); + } + + @TestMetadata("stringValues.kt") + public void testStringValues() throws Exception { + runTest("js/js.translator/testData/box/expression/stringTemplates/stringValues.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/expression/try") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Try extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInTry() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/expression/try"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("exceptionToString.kt") + public void testExceptionToString() throws Exception { + runTest("js/js.translator/testData/box/expression/try/exceptionToString.kt"); + } + + @TestMetadata("kt22053.kt") + public void testKt22053() throws Exception { + runTest("js/js.translator/testData/box/expression/try/kt22053.kt"); + } + + @TestMetadata("multipleCatchBlocks.kt") + public void testMultipleCatchBlocks() throws Exception { + runTest("js/js.translator/testData/box/expression/try/multipleCatchBlocks.kt"); + } + + @TestMetadata("nestedTryCatchInCatch.kt") + public void testNestedTryCatchInCatch() throws Exception { + runTest("js/js.translator/testData/box/expression/try/nestedTryCatchInCatch.kt"); + } + + @TestMetadata("overrideThrowableProperties.kt") + public void testOverrideThrowableProperties() throws Exception { + runTest("js/js.translator/testData/box/expression/try/overrideThrowableProperties.kt"); + } + + @TestMetadata("rethrowExceptionIfNotCaught.kt") + public void testRethrowExceptionIfNotCaught() throws Exception { + runTest("js/js.translator/testData/box/expression/try/rethrowExceptionIfNotCaught.kt"); + } + + @TestMetadata("tryCatchCorrectForSubclasses.kt") + public void testTryCatchCorrectForSubclasses() throws Exception { + runTest("js/js.translator/testData/box/expression/try/tryCatchCorrectForSubclasses.kt"); + } + + @TestMetadata("tryCatchDynamic.kt") + public void testTryCatchDynamic() throws Exception { + runTest("js/js.translator/testData/box/expression/try/tryCatchDynamic.kt"); + } + + @TestMetadata("tryCatchExpr.kt") + public void testTryCatchExpr() throws Exception { + runTest("js/js.translator/testData/box/expression/try/tryCatchExpr.kt"); + } + + @TestMetadata("tryCatchExpressionWithMessage.kt") + public void testTryCatchExpressionWithMessage() throws Exception { + runTest("js/js.translator/testData/box/expression/try/tryCatchExpressionWithMessage.kt"); + } + + @TestMetadata("tryCatchThrowable.kt") + public void testTryCatchThrowable() throws Exception { + runTest("js/js.translator/testData/box/expression/try/tryCatchThrowable.kt"); + } + + @TestMetadata("tryCatchWithDifferentParameterNames.kt") + public void testTryCatchWithDifferentParameterNames() throws Exception { + runTest("js/js.translator/testData/box/expression/try/tryCatchWithDifferentParameterNames.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/expression/typeCheck") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class TypeCheck extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInTypeCheck() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/expression/typeCheck"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("simpleAsClass.kt") + public void testSimpleAsClass() throws Exception { + runTest("js/js.translator/testData/box/expression/typeCheck/simpleAsClass.kt"); + } + + @TestMetadata("simpleAsInterface.kt") + public void testSimpleAsInterface() throws Exception { + runTest("js/js.translator/testData/box/expression/typeCheck/simpleAsInterface.kt"); + } + + @TestMetadata("simpleIsClass.kt") + public void testSimpleIsClass() throws Exception { + runTest("js/js.translator/testData/box/expression/typeCheck/simpleIsClass.kt"); + } + + @TestMetadata("simpleIsInterface.kt") + public void testSimpleIsInterface() throws Exception { + runTest("js/js.translator/testData/box/expression/typeCheck/simpleIsInterface.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/expression/when") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class When extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInWhen() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/expression/when"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("doWhileWithOneStmWhen.kt") + public void testDoWhileWithOneStmWhen() throws Exception { + runTest("js/js.translator/testData/box/expression/when/doWhileWithOneStmWhen.kt"); + } + + @TestMetadata("empty.kt") + public void testEmpty() throws Exception { + runTest("js/js.translator/testData/box/expression/when/empty.kt"); + } + + @TestMetadata("exhaustiveCheckException.kt") + public void testExhaustiveCheckException() throws Exception { + runTest("js/js.translator/testData/box/expression/when/exhaustiveCheckException.kt"); + } + + @TestMetadata("externalEnumSubject.kt") + public void testExternalEnumSubject() throws Exception { + runTest("js/js.translator/testData/box/expression/when/externalEnumSubject.kt"); + } + + @TestMetadata("forWithOneStmWhen.kt") + public void testForWithOneStmWhen() throws Exception { + runTest("js/js.translator/testData/box/expression/when/forWithOneStmWhen.kt"); + } + + @TestMetadata("ifInWhen.kt") + public void testIfInWhen() throws Exception { + runTest("js/js.translator/testData/box/expression/when/ifInWhen.kt"); + } + + @TestMetadata("ifInWhenDanglingElseIssue.kt") + public void testIfInWhenDanglingElseIssue() throws Exception { + runTest("js/js.translator/testData/box/expression/when/ifInWhenDanglingElseIssue.kt"); + } + + @TestMetadata("ifWithOneStmWhen.kt") + public void testIfWithOneStmWhen() throws Exception { + runTest("js/js.translator/testData/box/expression/when/ifWithOneStmWhen.kt"); + } + + @TestMetadata("kt1665.kt") + public void testKt1665() throws Exception { + runTest("js/js.translator/testData/box/expression/when/kt1665.kt"); + } + + @TestMetadata("matchNullableType.kt") + public void testMatchNullableType() throws Exception { + runTest("js/js.translator/testData/box/expression/when/matchNullableType.kt"); + } + + @TestMetadata("multipleCases.kt") + public void testMultipleCases() throws Exception { + runTest("js/js.translator/testData/box/expression/when/multipleCases.kt"); + } + + @TestMetadata("whenAsExpression.kt") + public void testWhenAsExpression() throws Exception { + runTest("js/js.translator/testData/box/expression/when/whenAsExpression.kt"); + } + + @TestMetadata("whenAsExpressionWithThrow.kt") + public void testWhenAsExpressionWithThrow() throws Exception { + runTest("js/js.translator/testData/box/expression/when/whenAsExpressionWithThrow.kt"); + } + + @TestMetadata("whenConditionWithReturn.kt") + public void testWhenConditionWithReturn() throws Exception { + runTest("js/js.translator/testData/box/expression/when/whenConditionWithReturn.kt"); + } + + @TestMetadata("whenEqualsPattern.kt") + public void testWhenEqualsPattern() throws Exception { + runTest("js/js.translator/testData/box/expression/when/whenEqualsPattern.kt"); + } + + @TestMetadata("whenEvaluatesArgumentOnlyOnce.kt") + public void testWhenEvaluatesArgumentOnlyOnce() throws Exception { + runTest("js/js.translator/testData/box/expression/when/whenEvaluatesArgumentOnlyOnce.kt"); + } + + @TestMetadata("whenExecutesOnlyOnce.kt") + public void testWhenExecutesOnlyOnce() throws Exception { + runTest("js/js.translator/testData/box/expression/when/whenExecutesOnlyOnce.kt"); + } + + @TestMetadata("whenNotType.kt") + public void testWhenNotType() throws Exception { + runTest("js/js.translator/testData/box/expression/when/whenNotType.kt"); + } + + @TestMetadata("whenStatementWithRangeClause.kt") + public void testWhenStatementWithRangeClause() throws Exception { + runTest("js/js.translator/testData/box/expression/when/whenStatementWithRangeClause.kt"); + } + + @TestMetadata("whenType.kt") + public void testWhenType() throws Exception { + runTest("js/js.translator/testData/box/expression/when/whenType.kt"); + } + + @TestMetadata("whenValue.kt") + public void testWhenValue() throws Exception { + runTest("js/js.translator/testData/box/expression/when/whenValue.kt"); + } + + @TestMetadata("whenValueOrType.kt") + public void testWhenValueOrType() throws Exception { + runTest("js/js.translator/testData/box/expression/when/whenValueOrType.kt"); + } + + @TestMetadata("whenWithCharRangeClause.kt") + public void testWhenWithCharRangeClause() throws Exception { + runTest("js/js.translator/testData/box/expression/when/whenWithCharRangeClause.kt"); + } + + @TestMetadata("whenWithCustomRangeClause.kt") + public void testWhenWithCustomRangeClause() throws Exception { + runTest("js/js.translator/testData/box/expression/when/whenWithCustomRangeClause.kt"); + } + + @TestMetadata("whenWithIf.kt") + public void testWhenWithIf() throws Exception { + runTest("js/js.translator/testData/box/expression/when/whenWithIf.kt"); + } + + @TestMetadata("whenWithIfConditionAndOnlyElse.kt") + public void testWhenWithIfConditionAndOnlyElse() throws Exception { + runTest("js/js.translator/testData/box/expression/when/whenWithIfConditionAndOnlyElse.kt"); + } + + @TestMetadata("whenWithLongRangeClause.kt") + public void testWhenWithLongRangeClause() throws Exception { + runTest("js/js.translator/testData/box/expression/when/whenWithLongRangeClause.kt"); + } + + @TestMetadata("whenWithMapRangeClause.kt") + public void testWhenWithMapRangeClause() throws Exception { + runTest("js/js.translator/testData/box/expression/when/whenWithMapRangeClause.kt"); + } + + @TestMetadata("whenWithOneStmWhen.kt") + public void testWhenWithOneStmWhen() throws Exception { + runTest("js/js.translator/testData/box/expression/when/whenWithOneStmWhen.kt"); + } + + @TestMetadata("whenWithOnlyElse.kt") + public void testWhenWithOnlyElse() throws Exception { + runTest("js/js.translator/testData/box/expression/when/whenWithOnlyElse.kt"); + } + + @TestMetadata("whenWithRangeClause.kt") + public void testWhenWithRangeClause() throws Exception { + runTest("js/js.translator/testData/box/expression/when/whenWithRangeClause.kt"); + } + + @TestMetadata("whenWithoutExpression.kt") + public void testWhenWithoutExpression() throws Exception { + runTest("js/js.translator/testData/box/expression/when/whenWithoutExpression.kt"); + } + + @TestMetadata("whileWithOneStmWhen.kt") + public void testWhileWithOneStmWhen() throws Exception { + runTest("js/js.translator/testData/box/expression/when/whileWithOneStmWhen.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/expression/while") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class While extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInWhile() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/expression/while"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("doWhileWithComplexCondition.kt") + public void testDoWhileWithComplexCondition() throws Exception { + runTest("js/js.translator/testData/box/expression/while/doWhileWithComplexCondition.kt"); + } + + @TestMetadata("doWhileWithComplexConditionAndContinue.kt") + public void testDoWhileWithComplexConditionAndContinue() throws Exception { + runTest("js/js.translator/testData/box/expression/while/doWhileWithComplexConditionAndContinue.kt"); + } + + @TestMetadata("whileWithComplexCondition.kt") + public void testWhileWithComplexCondition() throws Exception { + runTest("js/js.translator/testData/box/expression/while/whileWithComplexCondition.kt"); + } + + @TestMetadata("whileWithComplexConditionAndContinue.kt") + public void testWhileWithComplexConditionAndContinue() throws Exception { + runTest("js/js.translator/testData/box/expression/while/whileWithComplexConditionAndContinue.kt"); + } + + @TestMetadata("whileWithComplexOneStatement.kt") + public void testWhileWithComplexOneStatement() throws Exception { + runTest("js/js.translator/testData/box/expression/while/whileWithComplexOneStatement.kt"); + } + } + } + + @TestMetadata("js/js.translator/testData/box/extensionFunction") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ExtensionFunction extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInExtensionFunction() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/extensionFunction"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("extensionForSuperclass.kt") + public void testExtensionForSuperclass() throws Exception { + runTest("js/js.translator/testData/box/extensionFunction/extensionForSuperclass.kt"); + } + + @TestMetadata("extensionFunctionCalledFromExtensionFunction.kt") + public void testExtensionFunctionCalledFromExtensionFunction() throws Exception { + runTest("js/js.translator/testData/box/extensionFunction/extensionFunctionCalledFromExtensionFunction.kt"); + } + + @TestMetadata("extensionFunctionCalledFromFor.kt") + public void testExtensionFunctionCalledFromFor() throws Exception { + runTest("js/js.translator/testData/box/extensionFunction/extensionFunctionCalledFromFor.kt"); + } + + @TestMetadata("extensionFunctionOnExpression.kt") + public void testExtensionFunctionOnExpression() throws Exception { + runTest("js/js.translator/testData/box/extensionFunction/extensionFunctionOnExpression.kt"); + } + + @TestMetadata("extensionInsideFunctionLiteral.kt") + public void testExtensionInsideFunctionLiteral() throws Exception { + runTest("js/js.translator/testData/box/extensionFunction/extensionInsideFunctionLiteral.kt"); + } + + @TestMetadata("extensionLiteralPassedToFunction.kt") + public void testExtensionLiteralPassedToFunction() throws Exception { + runTest("js/js.translator/testData/box/extensionFunction/extensionLiteralPassedToFunction.kt"); + } + + @TestMetadata("extensionOnClassWithExplicitAndImplicitReceiver.kt") + public void testExtensionOnClassWithExplicitAndImplicitReceiver() throws Exception { + runTest("js/js.translator/testData/box/extensionFunction/extensionOnClassWithExplicitAndImplicitReceiver.kt"); + } + + @TestMetadata("extensionPropertyOnClassWithExplicitAndImplicitReceiver.kt") + public void testExtensionPropertyOnClassWithExplicitAndImplicitReceiver() throws Exception { + runTest("js/js.translator/testData/box/extensionFunction/extensionPropertyOnClassWithExplicitAndImplicitReceiver.kt"); + } + + @TestMetadata("extensionUsedInsideClass.kt") + public void testExtensionUsedInsideClass() throws Exception { + runTest("js/js.translator/testData/box/extensionFunction/extensionUsedInsideClass.kt"); + } + + @TestMetadata("extensionWithImplicitReceiver.kt") + public void testExtensionWithImplicitReceiver() throws Exception { + runTest("js/js.translator/testData/box/extensionFunction/extensionWithImplicitReceiver.kt"); + } + + @TestMetadata("generic.kt") + public void testGeneric() throws Exception { + runTest("js/js.translator/testData/box/extensionFunction/generic.kt"); + } + + @TestMetadata("implicitReceiverInExtension.kt") + public void testImplicitReceiverInExtension() throws Exception { + runTest("js/js.translator/testData/box/extensionFunction/implicitReceiverInExtension.kt"); + } + + @TestMetadata("intExtension.kt") + public void testIntExtension() throws Exception { + runTest("js/js.translator/testData/box/extensionFunction/intExtension.kt"); + } + + @TestMetadata("superClassMemberInExtension.kt") + public void testSuperClassMemberInExtension() throws Exception { + runTest("js/js.translator/testData/box/extensionFunction/superClassMemberInExtension.kt"); + } + + @TestMetadata("virtualExtension.kt") + public void testVirtualExtension() throws Exception { + runTest("js/js.translator/testData/box/extensionFunction/virtualExtension.kt"); + } + + @TestMetadata("virtualExtensionOverride.kt") + public void testVirtualExtensionOverride() throws Exception { + runTest("js/js.translator/testData/box/extensionFunction/virtualExtensionOverride.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/extensionProperty") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ExtensionProperty extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("absExtension.kt") + public void testAbsExtension() throws Exception { + runTest("js/js.translator/testData/box/extensionProperty/absExtension.kt"); + } + + public void testAllFilesPresentInExtensionProperty() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/extensionProperty"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("externalExtensionProperty.kt") + public void testExternalExtensionProperty() throws Exception { + runTest("js/js.translator/testData/box/extensionProperty/externalExtensionProperty.kt"); + } + + @TestMetadata("inClass.kt") + public void testInClass() throws Exception { + runTest("js/js.translator/testData/box/extensionProperty/inClass.kt"); + } + + @TestMetadata("privateExtensionProperty.kt") + public void testPrivateExtensionProperty() throws Exception { + runTest("js/js.translator/testData/box/extensionProperty/privateExtensionProperty.kt"); + } + + @TestMetadata("propertyWithGetterAndSetter.kt") + public void testPropertyWithGetterAndSetter() throws Exception { + runTest("js/js.translator/testData/box/extensionProperty/propertyWithGetterAndSetter.kt"); + } + + @TestMetadata("simplePropertyWithGetter.kt") + public void testSimplePropertyWithGetter() throws Exception { + runTest("js/js.translator/testData/box/extensionProperty/simplePropertyWithGetter.kt"); + } + + @TestMetadata("withSameNameAndDiffReceiverType.kt") + public void testWithSameNameAndDiffReceiverType() throws Exception { + runTest("js/js.translator/testData/box/extensionProperty/withSameNameAndDiffReceiverType.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/incremental") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Incremental extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInIncremental() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/incremental"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("catchScope.kt") + public void testCatchScope() throws Exception { + runTest("js/js.translator/testData/box/incremental/catchScope.kt"); + } + + @TestMetadata("classReferencingClass.kt") + public void testClassReferencingClass() throws Exception { + runTest("js/js.translator/testData/box/incremental/classReferencingClass.kt"); + } + + @TestMetadata("coroutines.kt") + public void testCoroutines() throws Exception { + runTest("js/js.translator/testData/box/incremental/coroutines.kt"); + } + + @TestMetadata("defaultArguments.kt") + public void testDefaultArguments() throws Exception { + runTest("js/js.translator/testData/box/incremental/defaultArguments.kt"); + } + + @TestMetadata("enumUsage.kt") + public void testEnumUsage() throws Exception { + runTest("js/js.translator/testData/box/incremental/enumUsage.kt"); + } + + @TestMetadata("exportedPackage.kt") + public void testExportedPackage() throws Exception { + runTest("js/js.translator/testData/box/incremental/exportedPackage.kt"); + } + + @TestMetadata("functionReferencingClass.kt") + public void testFunctionReferencingClass() throws Exception { + runTest("js/js.translator/testData/box/incremental/functionReferencingClass.kt"); + } + + @TestMetadata("inline.kt") + public void testInline() throws Exception { + runTest("js/js.translator/testData/box/incremental/inline.kt"); + } + + @TestMetadata("inlineLambda.kt") + public void testInlineLambda() throws Exception { + runTest("js/js.translator/testData/box/incremental/inlineLambda.kt"); + } + + @TestMetadata("inlineModuleVariable.kt") + public void testInlineModuleVariable() throws Exception { + runTest("js/js.translator/testData/box/incremental/inlineModuleVariable.kt"); + } + + @TestMetadata("inlineSuspendFun.kt") + public void testInlineSuspendFun() throws Exception { + runTest("js/js.translator/testData/box/incremental/inlineSuspendFun.kt"); + } + + @TestMetadata("jsModule.kt") + public void testJsModule() throws Exception { + runTest("js/js.translator/testData/box/incremental/jsModule.kt"); + } + + @TestMetadata("multipleExport.kt") + public void testMultipleExport() throws Exception { + runTest("js/js.translator/testData/box/incremental/multipleExport.kt"); + } + + @TestMetadata("multipleReimport.kt") + public void testMultipleReimport() throws Exception { + runTest("js/js.translator/testData/box/incremental/multipleReimport.kt"); + } + + @TestMetadata("packagesWithSameName.kt") + public void testPackagesWithSameName() throws Exception { + runTest("js/js.translator/testData/box/incremental/packagesWithSameName.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("js/js.translator/testData/box/incremental/simple.kt"); + } + + @TestMetadata("sourceMapSourceEmbedding.kt") + public void testSourceMapSourceEmbedding() throws Exception { + runTest("js/js.translator/testData/box/incremental/sourceMapSourceEmbedding.kt"); + } + + @TestMetadata("syntheticStatement.kt") + public void testSyntheticStatement() throws Exception { + runTest("js/js.translator/testData/box/incremental/syntheticStatement.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/inheritance") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Inheritance extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("abstractVarOverride.kt") + public void testAbstractVarOverride() throws Exception { + runTest("js/js.translator/testData/box/inheritance/abstractVarOverride.kt"); + } + + public void testAllFilesPresentInInheritance() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/inheritance"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("baseCall.kt") + public void testBaseCall() throws Exception { + runTest("js/js.translator/testData/box/inheritance/baseCall.kt"); + } + + @TestMetadata("baseCallOrder.kt") + public void testBaseCallOrder() throws Exception { + runTest("js/js.translator/testData/box/inheritance/baseCallOrder.kt"); + } + + @TestMetadata("baseClassDefinedAfterDerived.kt") + public void testBaseClassDefinedAfterDerived() throws Exception { + runTest("js/js.translator/testData/box/inheritance/baseClassDefinedAfterDerived.kt"); + } + + @TestMetadata("complexInitializationOrder.kt") + public void testComplexInitializationOrder() throws Exception { + runTest("js/js.translator/testData/box/inheritance/complexInitializationOrder.kt"); + } + + @TestMetadata("definitionOrder.kt") + public void testDefinitionOrder() throws Exception { + runTest("js/js.translator/testData/box/inheritance/definitionOrder.kt"); + } + + @TestMetadata("fromFakeClasses.kt") + public void testFromFakeClasses() throws Exception { + runTest("js/js.translator/testData/box/inheritance/fromFakeClasses.kt"); + } + + @TestMetadata("fromNativeInterface.kt") + public void testFromNativeInterface() throws Exception { + runTest("js/js.translator/testData/box/inheritance/fromNativeInterface.kt"); + } + + @TestMetadata("fromNestedNativeClass.kt") + public void testFromNestedNativeClass() throws Exception { + runTest("js/js.translator/testData/box/inheritance/fromNestedNativeClass.kt"); + } + + @TestMetadata("inheritFromCharIterator.kt") + public void testInheritFromCharIterator() throws Exception { + runTest("js/js.translator/testData/box/inheritance/inheritFromCharIterator.kt"); + } + + @TestMetadata("initializationOrder.kt") + public void testInitializationOrder() throws Exception { + runTest("js/js.translator/testData/box/inheritance/initializationOrder.kt"); + } + + @TestMetadata("initializersOfBasicClassExecute.kt") + public void testInitializersOfBasicClassExecute() throws Exception { + runTest("js/js.translator/testData/box/inheritance/initializersOfBasicClassExecute.kt"); + } + + @TestMetadata("kt3499.kt") + public void testKt3499() throws Exception { + runTest("js/js.translator/testData/box/inheritance/kt3499.kt"); + } + + @TestMetadata("methodOverride.kt") + public void testMethodOverride() throws Exception { + runTest("js/js.translator/testData/box/inheritance/methodOverride.kt"); + } + + @TestMetadata("nativeNativeKotlin.kt") + public void testNativeNativeKotlin() throws Exception { + runTest("js/js.translator/testData/box/inheritance/nativeNativeKotlin.kt"); + } + + @TestMetadata("overrideAnyMethods.kt") + public void testOverrideAnyMethods() throws Exception { + runTest("js/js.translator/testData/box/inheritance/overrideAnyMethods.kt"); + } + + @TestMetadata("prototypeOrder.kt") + public void testPrototypeOrder() throws Exception { + runTest("js/js.translator/testData/box/inheritance/prototypeOrder.kt"); + } + + @TestMetadata("valOverride.kt") + public void testValOverride() throws Exception { + runTest("js/js.translator/testData/box/inheritance/valOverride.kt"); + } + + @TestMetadata("valuePassedToAncestorConstructor.kt") + public void testValuePassedToAncestorConstructor() throws Exception { + runTest("js/js.translator/testData/box/inheritance/valuePassedToAncestorConstructor.kt"); + } + + @TestMetadata("withInitializeMethod.kt") + public void testWithInitializeMethod() throws Exception { + runTest("js/js.translator/testData/box/inheritance/withInitializeMethod.kt"); + } + + @TestMetadata("js/js.translator/testData/box/inheritance/interfaces") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Interfaces extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("abstractClassInheritingDefaultMethod.kt") + public void testAbstractClassInheritingDefaultMethod() throws Exception { + runTest("js/js.translator/testData/box/inheritance/interfaces/abstractClassInheritingDefaultMethod.kt"); + } + + public void testAllFilesPresentInInterfaces() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/inheritance/interfaces"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("fromExternalInterface.kt") + public void testFromExternalInterface() throws Exception { + runTest("js/js.translator/testData/box/inheritance/interfaces/fromExternalInterface.kt"); + } + + @TestMetadata("withDefaultMethod.kt") + public void testWithDefaultMethod() throws Exception { + runTest("js/js.translator/testData/box/inheritance/interfaces/withDefaultMethod.kt"); + } + + @TestMetadata("withDefaultMethodFromSuperInterface.kt") + public void testWithDefaultMethodFromSuperInterface() throws Exception { + runTest("js/js.translator/testData/box/inheritance/interfaces/withDefaultMethodFromSuperInterface.kt"); + } + + @TestMetadata("withDefaultProperty.kt") + public void testWithDefaultProperty() throws Exception { + runTest("js/js.translator/testData/box/inheritance/interfaces/withDefaultProperty.kt"); + } + } + } + + @TestMetadata("js/js.translator/testData/box/initialize") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Initialize extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInitialize() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/initialize"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("classInitializer.kt") + public void testClassInitializer() throws Exception { + runTest("js/js.translator/testData/box/initialize/classInitializer.kt"); + } + + @TestMetadata("complexPropertyInitializer.kt") + public void testComplexPropertyInitializer() throws Exception { + runTest("js/js.translator/testData/box/initialize/complexPropertyInitializer.kt"); + } + + @TestMetadata("complexTopLevelPropertyInitializer.kt") + public void testComplexTopLevelPropertyInitializer() throws Exception { + runTest("js/js.translator/testData/box/initialize/complexTopLevelPropertyInitializer.kt"); + } + + @TestMetadata("declarationInitializedWithThrow.kt") + public void testDeclarationInitializedWithThrow() throws Exception { + runTest("js/js.translator/testData/box/initialize/declarationInitializedWithThrow.kt"); + } + + @TestMetadata("lateinit.kt") + public void testLateinit() throws Exception { + runTest("js/js.translator/testData/box/initialize/lateinit.kt"); + } + + @TestMetadata("propertyInitializationOrder.kt") + public void testPropertyInitializationOrder() throws Exception { + runTest("js/js.translator/testData/box/initialize/propertyInitializationOrder.kt"); + } + + @TestMetadata("rootPackageValInit.kt") + public void testRootPackageValInit() throws Exception { + runTest("js/js.translator/testData/box/initialize/rootPackageValInit.kt"); + } + + @TestMetadata("rootValInit.kt") + public void testRootValInit() throws Exception { + runTest("js/js.translator/testData/box/initialize/rootValInit.kt"); + } + + @TestMetadata("uninitializedLateinit.kt") + public void testUninitializedLateinit() throws Exception { + runTest("js/js.translator/testData/box/initialize/uninitializedLateinit.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/inline") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Inline extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInline() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/inline"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("anonymousFunction.kt") + public void testAnonymousFunction() throws Exception { + runTest("js/js.translator/testData/box/inline/anonymousFunction.kt"); + } + + @TestMetadata("anonymousObjectInlineMethod.kt") + public void testAnonymousObjectInlineMethod() throws Exception { + runTest("js/js.translator/testData/box/inline/anonymousObjectInlineMethod.kt"); + } + + @TestMetadata("arrayLiteralAliasing.kt") + public void testArrayLiteralAliasing() throws Exception { + runTest("js/js.translator/testData/box/inline/arrayLiteralAliasing.kt"); + } + + @TestMetadata("astCopy.kt") + public void testAstCopy() throws Exception { + runTest("js/js.translator/testData/box/inline/astCopy.kt"); + } + + @TestMetadata("callFunction.kt") + public void testCallFunction() throws Exception { + runTest("js/js.translator/testData/box/inline/callFunction.kt"); + } + + @TestMetadata("callInlineFunctionOnTopLevel.kt") + public void testCallInlineFunctionOnTopLevel() throws Exception { + runTest("js/js.translator/testData/box/inline/callInlineFunctionOnTopLevel.kt"); + } + + @TestMetadata("callInlineFunctionOnTopLevelSimple.kt") + public void testCallInlineFunctionOnTopLevelSimple() throws Exception { + runTest("js/js.translator/testData/box/inline/callInlineFunctionOnTopLevelSimple.kt"); + } + + @TestMetadata("callableReference.kt") + public void testCallableReference() throws Exception { + runTest("js/js.translator/testData/box/inline/callableReference.kt"); + } + + @TestMetadata("callableReferenceOfLocalInline.kt") + public void testCallableReferenceOfLocalInline() throws Exception { + runTest("js/js.translator/testData/box/inline/callableReferenceOfLocalInline.kt"); + } + + @TestMetadata("classObject.kt") + public void testClassObject() throws Exception { + runTest("js/js.translator/testData/box/inline/classObject.kt"); + } + + @TestMetadata("continueInLoopWithInlinableCondition.kt") + public void testContinueInLoopWithInlinableCondition() throws Exception { + runTest("js/js.translator/testData/box/inline/continueInLoopWithInlinableCondition.kt"); + } + + @TestMetadata("crossModuleUnsignedLiterals.kt") + public void testCrossModuleUnsignedLiterals() throws Exception { + runTest("js/js.translator/testData/box/inline/crossModuleUnsignedLiterals.kt"); + } + + @TestMetadata("dontInlineFunctionCall.kt") + public void testDontInlineFunctionCall() throws Exception { + runTest("js/js.translator/testData/box/inline/dontInlineFunctionCall.kt"); + } + + @TestMetadata("expressionBodyWithLambdaCall.kt") + public void testExpressionBodyWithLambdaCall() throws Exception { + runTest("js/js.translator/testData/box/inline/expressionBodyWithLambdaCall.kt"); + } + + @TestMetadata("extension.kt") + public void testExtension() throws Exception { + runTest("js/js.translator/testData/box/inline/extension.kt"); + } + + @TestMetadata("extensionWithManyArguments.kt") + public void testExtensionWithManyArguments() throws Exception { + runTest("js/js.translator/testData/box/inline/extensionWithManyArguments.kt"); + } + + @TestMetadata("fakeOverrideInlining.kt") + public void testFakeOverrideInlining() throws Exception { + runTest("js/js.translator/testData/box/inline/fakeOverrideInlining.kt"); + } + + @TestMetadata("fakeOverrideInliningCrossModule.kt") + public void testFakeOverrideInliningCrossModule() throws Exception { + runTest("js/js.translator/testData/box/inline/fakeOverrideInliningCrossModule.kt"); + } + + @TestMetadata("faultyRedundantCallElimination.kt") + public void testFaultyRedundantCallElimination() throws Exception { + runTest("js/js.translator/testData/box/inline/faultyRedundantCallElimination.kt"); + } + + @TestMetadata("identityEquals.kt") + public void testIdentityEquals() throws Exception { + runTest("js/js.translator/testData/box/inline/identityEquals.kt"); + } + + @TestMetadata("incrementProperty.kt") + public void testIncrementProperty() throws Exception { + runTest("js/js.translator/testData/box/inline/incrementProperty.kt"); + } + + @TestMetadata("inlineCallInsideStringTemplate.kt") + public void testInlineCallInsideStringTemplate() throws Exception { + runTest("js/js.translator/testData/box/inline/inlineCallInsideStringTemplate.kt"); + } + + @TestMetadata("inlineCallNoInline.kt") + public void testInlineCallNoInline() throws Exception { + runTest("js/js.translator/testData/box/inline/inlineCallNoInline.kt"); + } + + @TestMetadata("inlineCapturingThis.kt") + public void testInlineCapturingThis() throws Exception { + runTest("js/js.translator/testData/box/inline/inlineCapturingThis.kt"); + } + + @TestMetadata("inlineChain.kt") + public void testInlineChain() throws Exception { + runTest("js/js.translator/testData/box/inline/inlineChain.kt"); + } + + @TestMetadata("inlineChainCrossModule.kt") + public void testInlineChainCrossModule() throws Exception { + runTest("js/js.translator/testData/box/inline/inlineChainCrossModule.kt"); + } + + @TestMetadata("inlineChainWithFewStatements.kt") + public void testInlineChainWithFewStatements() throws Exception { + runTest("js/js.translator/testData/box/inline/inlineChainWithFewStatements.kt"); + } + + @TestMetadata("inlineDefaultArgument.kt") + public void testInlineDefaultArgument() throws Exception { + runTest("js/js.translator/testData/box/inline/inlineDefaultArgument.kt"); + } + + @TestMetadata("inlineFunctionInLambda.kt") + public void testInlineFunctionInLambda() throws Exception { + runTest("js/js.translator/testData/box/inline/inlineFunctionInLambda.kt"); + } + + @TestMetadata("inlineGenericSimple.kt") + public void testInlineGenericSimple() throws Exception { + runTest("js/js.translator/testData/box/inline/inlineGenericSimple.kt"); + } + + @TestMetadata("inlineIf.kt") + public void testInlineIf() throws Exception { + runTest("js/js.translator/testData/box/inline/inlineIf.kt"); + } + + @TestMetadata("inlineImportNameClash.kt") + public void testInlineImportNameClash() throws Exception { + runTest("js/js.translator/testData/box/inline/inlineImportNameClash.kt"); + } + + @TestMetadata("inlineInInlineWithLambda.kt") + public void testInlineInInlineWithLambda() throws Exception { + runTest("js/js.translator/testData/box/inline/inlineInInlineWithLambda.kt"); + } + + @TestMetadata("inlineInInlineWithLambdaPrivate.kt") + public void testInlineInInlineWithLambdaPrivate() throws Exception { + runTest("js/js.translator/testData/box/inline/inlineInInlineWithLambdaPrivate.kt"); + } + + @TestMetadata("inlineInc.kt") + public void testInlineInc() throws Exception { + runTest("js/js.translator/testData/box/inline/inlineInc.kt"); + } + + @TestMetadata("inlineIntSimple.kt") + public void testInlineIntSimple() throws Exception { + runTest("js/js.translator/testData/box/inline/inlineIntSimple.kt"); + } + + @TestMetadata("inlineLambdaNoCapture.kt") + public void testInlineLambdaNoCapture() throws Exception { + runTest("js/js.translator/testData/box/inline/inlineLambdaNoCapture.kt"); + } + + @TestMetadata("inlineLambdaWithCapture.kt") + public void testInlineLambdaWithCapture() throws Exception { + runTest("js/js.translator/testData/box/inline/inlineLambdaWithCapture.kt"); + } + + @TestMetadata("inlineMethod.kt") + public void testInlineMethod() throws Exception { + runTest("js/js.translator/testData/box/inline/inlineMethod.kt"); + } + + @TestMetadata("inlineNoReturn.kt") + public void testInlineNoReturn() throws Exception { + runTest("js/js.translator/testData/box/inline/inlineNoReturn.kt"); + } + + @TestMetadata("inlineOrder.kt") + public void testInlineOrder() throws Exception { + runTest("js/js.translator/testData/box/inline/inlineOrder.kt"); + } + + @TestMetadata("inlineSimpleAssignment.kt") + public void testInlineSimpleAssignment() throws Exception { + runTest("js/js.translator/testData/box/inline/inlineSimpleAssignment.kt"); + } + + @TestMetadata("inlinedObjectLiteralIsCheck.kt") + public void testInlinedObjectLiteralIsCheck() throws Exception { + runTest("js/js.translator/testData/box/inline/inlinedObjectLiteralIsCheck.kt"); + } + + @TestMetadata("innerOuterThis.kt") + public void testInnerOuterThis() throws Exception { + runTest("js/js.translator/testData/box/inline/innerOuterThis.kt"); + } + + @TestMetadata("invokeOnField.kt") + public void testInvokeOnField() throws Exception { + runTest("js/js.translator/testData/box/inline/invokeOnField.kt"); + } + + @TestMetadata("iteratorOnInlineFunctionResult.kt") + public void testIteratorOnInlineFunctionResult() throws Exception { + runTest("js/js.translator/testData/box/inline/iteratorOnInlineFunctionResult.kt"); + } + + @TestMetadata("jsCode.kt") + public void testJsCode() throws Exception { + runTest("js/js.translator/testData/box/inline/jsCode.kt"); + } + + @TestMetadata("jsCodeVarDeclared.kt") + public void testJsCodeVarDeclared() throws Exception { + runTest("js/js.translator/testData/box/inline/jsCodeVarDeclared.kt"); + } + + @TestMetadata("kt26117.kt") + public void testKt26117() throws Exception { + runTest("js/js.translator/testData/box/inline/kt26117.kt"); + } + + @TestMetadata("kt26466.kt") + public void testKt26466() throws Exception { + runTest("js/js.translator/testData/box/inline/kt26466.kt"); + } + + @TestMetadata("kt26787.kt") + public void testKt26787() throws Exception { + runTest("js/js.translator/testData/box/inline/kt26787.kt"); + } + + @TestMetadata("lambdaInLambda.kt") + public void testLambdaInLambda() throws Exception { + runTest("js/js.translator/testData/box/inline/lambdaInLambda.kt"); + } + + @TestMetadata("lambdaReassignment.kt") + public void testLambdaReassignment() throws Exception { + runTest("js/js.translator/testData/box/inline/lambdaReassignment.kt"); + } + + @TestMetadata("lambdaReassignmentWithCapture.kt") + public void testLambdaReassignmentWithCapture() throws Exception { + runTest("js/js.translator/testData/box/inline/lambdaReassignmentWithCapture.kt"); + } + + @TestMetadata("localDeclarationsClash.kt") + public void testLocalDeclarationsClash() throws Exception { + runTest("js/js.translator/testData/box/inline/localDeclarationsClash.kt"); + } + + @TestMetadata("localInlineExtensionFunction.kt") + public void testLocalInlineExtensionFunction() throws Exception { + runTest("js/js.translator/testData/box/inline/localInlineExtensionFunction.kt"); + } + + @TestMetadata("localInlineFunction.kt") + public void testLocalInlineFunction() throws Exception { + runTest("js/js.translator/testData/box/inline/localInlineFunction.kt"); + } + + @TestMetadata("localInlineFunctionComplex.kt") + public void testLocalInlineFunctionComplex() throws Exception { + runTest("js/js.translator/testData/box/inline/localInlineFunctionComplex.kt"); + } + + @TestMetadata("localInlineFunctionDeclaredInLambda.kt") + public void testLocalInlineFunctionDeclaredInLambda() throws Exception { + runTest("js/js.translator/testData/box/inline/localInlineFunctionDeclaredInLambda.kt"); + } + + @TestMetadata("localInlineFunctionNameClash.kt") + public void testLocalInlineFunctionNameClash() throws Exception { + runTest("js/js.translator/testData/box/inline/localInlineFunctionNameClash.kt"); + } + + @TestMetadata("localInlineFunctionReference.kt") + public void testLocalInlineFunctionReference() throws Exception { + runTest("js/js.translator/testData/box/inline/localInlineFunctionReference.kt"); + } + + @TestMetadata("loopWithInlinableCondition.kt") + public void testLoopWithInlinableCondition() throws Exception { + runTest("js/js.translator/testData/box/inline/loopWithInlinableCondition.kt"); + } + + @TestMetadata("metadataForPublicFunction.kt") + public void testMetadataForPublicFunction() throws Exception { + runTest("js/js.translator/testData/box/inline/metadataForPublicFunction.kt"); + } + + @TestMetadata("multiDeclaration.kt") + public void testMultiDeclaration() throws Exception { + runTest("js/js.translator/testData/box/inline/multiDeclaration.kt"); + } + + @TestMetadata("noInlineLambda.kt") + public void testNoInlineLambda() throws Exception { + runTest("js/js.translator/testData/box/inline/noInlineLambda.kt"); + } + + @TestMetadata("operators.kt") + public void testOperators() throws Exception { + runTest("js/js.translator/testData/box/inline/operators.kt"); + } + + @TestMetadata("params.kt") + public void testParams() throws Exception { + runTest("js/js.translator/testData/box/inline/params.kt"); + } + + @TestMetadata("privateProperty.kt") + public void testPrivateProperty() throws Exception { + runTest("js/js.translator/testData/box/inline/privateProperty.kt"); + } + + @TestMetadata("rootConstructor.kt") + public void testRootConstructor() throws Exception { + runTest("js/js.translator/testData/box/inline/rootConstructor.kt"); + } + + @TestMetadata("safeCall.kt") + public void testSafeCall() throws Exception { + runTest("js/js.translator/testData/box/inline/safeCall.kt"); + } + + @TestMetadata("sameNameOfDeclarationsInSameModule.kt") + public void testSameNameOfDeclarationsInSameModule() throws Exception { + runTest("js/js.translator/testData/box/inline/sameNameOfDeclarationsInSameModule.kt"); + } + + @TestMetadata("severalClosures.kt") + public void testSeveralClosures() throws Exception { + runTest("js/js.translator/testData/box/inline/severalClosures.kt"); + } + + @TestMetadata("severalUsage.kt") + public void testSeveralUsage() throws Exception { + runTest("js/js.translator/testData/box/inline/severalUsage.kt"); + } + + @TestMetadata("simpleDouble.kt") + public void testSimpleDouble() throws Exception { + runTest("js/js.translator/testData/box/inline/simpleDouble.kt"); + } + + @TestMetadata("simpleEnum.kt") + public void testSimpleEnum() throws Exception { + runTest("js/js.translator/testData/box/inline/simpleEnum.kt"); + } + + @TestMetadata("simpleInt.kt") + public void testSimpleInt() throws Exception { + runTest("js/js.translator/testData/box/inline/simpleInt.kt"); + } + + @TestMetadata("simpleLambda.kt") + public void testSimpleLambda() throws Exception { + runTest("js/js.translator/testData/box/inline/simpleLambda.kt"); + } + + @TestMetadata("simpleObject.kt") + public void testSimpleObject() throws Exception { + runTest("js/js.translator/testData/box/inline/simpleObject.kt"); + } + + @TestMetadata("simpleReturnFunctionWithResultUnused.kt") + public void testSimpleReturnFunctionWithResultUnused() throws Exception { + runTest("js/js.translator/testData/box/inline/simpleReturnFunctionWithResultUnused.kt"); + } + + @TestMetadata("statementsAfterReturn.kt") + public void testStatementsAfterReturn() throws Exception { + runTest("js/js.translator/testData/box/inline/statementsAfterReturn.kt"); + } + + @TestMetadata("thisImplicitlyCaptured.kt") + public void testThisImplicitlyCaptured() throws Exception { + runTest("js/js.translator/testData/box/inline/thisImplicitlyCaptured.kt"); + } + + @TestMetadata("thisLiteralAliasing.kt") + public void testThisLiteralAliasing() throws Exception { + runTest("js/js.translator/testData/box/inline/thisLiteralAliasing.kt"); + } + + @TestMetadata("vararg.kt") + public void testVararg() throws Exception { + runTest("js/js.translator/testData/box/inline/vararg.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/inlineEvaluationOrder") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class InlineEvaluationOrder extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInlineEvaluationOrder() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/inlineEvaluationOrder"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("alsoWithReassingment.kt") + public void testAlsoWithReassingment() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/alsoWithReassingment.kt"); + } + + @TestMetadata("argumentOfCall.kt") + public void testArgumentOfCall() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/argumentOfCall.kt"); + } + + @TestMetadata("argumentOfCallMultipleInlineCalls.kt") + public void testArgumentOfCallMultipleInlineCalls() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/argumentOfCallMultipleInlineCalls.kt"); + } + + @TestMetadata("argumentOfInlineCall.kt") + public void testArgumentOfInlineCall() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/argumentOfInlineCall.kt"); + } + + @TestMetadata("argumentOfNew.kt") + public void testArgumentOfNew() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/argumentOfNew.kt"); + } + + @TestMetadata("arrayAccess1.kt") + public void testArrayAccess1() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/arrayAccess1.kt"); + } + + @TestMetadata("arrayAccess2.kt") + public void testArrayAccess2() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/arrayAccess2.kt"); + } + + @TestMetadata("arrayAccess3.kt") + public void testArrayAccess3() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/arrayAccess3.kt"); + } + + @TestMetadata("arrayAccessLhsDecomposed.kt") + public void testArrayAccessLhsDecomposed() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/arrayAccessLhsDecomposed.kt"); + } + + @TestMetadata("arrayLiteral.kt") + public void testArrayLiteral() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/arrayLiteral.kt"); + } + + @TestMetadata("arrayLiteralMultipleInlineCalls.kt") + public void testArrayLiteralMultipleInlineCalls() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/arrayLiteralMultipleInlineCalls.kt"); + } + + @TestMetadata("arrayLiteralNested.kt") + public void testArrayLiteralNested() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/arrayLiteralNested.kt"); + } + + @TestMetadata("assignment.kt") + public void testAssignment() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/assignment.kt"); + } + + @TestMetadata("binaryOperator.kt") + public void testBinaryOperator() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/binaryOperator.kt"); + } + + @TestMetadata("binaryOperatorMultipleInlineCalls.kt") + public void testBinaryOperatorMultipleInlineCalls() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/binaryOperatorMultipleInlineCalls.kt"); + } + + @TestMetadata("callQualifier.kt") + public void testCallQualifier() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/callQualifier.kt"); + } + + @TestMetadata("callQualifierComplex.kt") + public void testCallQualifierComplex() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/callQualifierComplex.kt"); + } + + @TestMetadata("capturedVarAsArgument.kt") + public void testCapturedVarAsArgument() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/capturedVarAsArgument.kt"); + } + + @TestMetadata("conditional.kt") + public void testConditional() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/conditional.kt"); + } + + @TestMetadata("conditionalElvis.kt") + public void testConditionalElvis() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/conditionalElvis.kt"); + } + + @TestMetadata("conditionalNested.kt") + public void testConditionalNested() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/conditionalNested.kt"); + } + + @TestMetadata("conditionalTestExpression.kt") + public void testConditionalTestExpression() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/conditionalTestExpression.kt"); + } + + @TestMetadata("conditionalTestExpressionElvis.kt") + public void testConditionalTestExpressionElvis() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/conditionalTestExpressionElvis.kt"); + } + + @TestMetadata("continueInExtractedDoWhile.kt") + public void testContinueInExtractedDoWhile() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/continueInExtractedDoWhile.kt"); + } + + @TestMetadata("doWhile.kt") + public void testDoWhile() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/doWhile.kt"); + } + + @TestMetadata("doWhileComplex.kt") + public void testDoWhileComplex() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/doWhileComplex.kt"); + } + + @TestMetadata("for.kt") + public void testFor() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/for.kt"); + } + + @TestMetadata("if.kt") + public void testIf() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/if.kt"); + } + + @TestMetadata("inlineFunctionAsParameterOfQualifiedCall.kt") + public void testInlineFunctionAsParameterOfQualifiedCall() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/inlineFunctionAsParameterOfQualifiedCall.kt"); + } + + @TestMetadata("lambdaPropertyExtracted.kt") + public void testLambdaPropertyExtracted() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/lambdaPropertyExtracted.kt"); + } + + @TestMetadata("lambdaWithClosure.kt") + public void testLambdaWithClosure() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/lambdaWithClosure.kt"); + } + + @TestMetadata("logicalAnd.kt") + public void testLogicalAnd() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/logicalAnd.kt"); + } + + @TestMetadata("logicalAndOrMultipleInlineCalls.kt") + public void testLogicalAndOrMultipleInlineCalls() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/logicalAndOrMultipleInlineCalls.kt"); + } + + @TestMetadata("logicalOr.kt") + public void testLogicalOr() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/logicalOr.kt"); + } + + @TestMetadata("methodCallQualifierWithSideEffect.kt") + public void testMethodCallQualifierWithSideEffect() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/methodCallQualifierWithSideEffect.kt"); + } + + @TestMetadata("methodDecomposedWithBind.kt") + public void testMethodDecomposedWithBind() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/methodDecomposedWithBind.kt"); + } + + @TestMetadata("methodInlineCallQualifierWithSideEffect.kt") + public void testMethodInlineCallQualifierWithSideEffect() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/methodInlineCallQualifierWithSideEffect.kt"); + } + + @TestMetadata("multiDeclaration.kt") + public void testMultiDeclaration() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/multiDeclaration.kt"); + } + + @TestMetadata("multiDeclarationComplex.kt") + public void testMultiDeclarationComplex() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/multiDeclarationComplex.kt"); + } + + @TestMetadata("nestedContinueInExtractedDoWhile.kt") + public void testNestedContinueInExtractedDoWhile() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/nestedContinueInExtractedDoWhile.kt"); + } + + @TestMetadata("nestedInlineCall.kt") + public void testNestedInlineCall() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/nestedInlineCall.kt"); + } + + @TestMetadata("propertiesInitializationOrder.kt") + public void testPropertiesInitializationOrder() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/propertiesInitializationOrder.kt"); + } + + @TestMetadata("propertiesInitializationOrderSimple.kt") + public void testPropertiesInitializationOrderSimple() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/propertiesInitializationOrderSimple.kt"); + } + + @TestMetadata("propertyAccessAfterModification.kt") + public void testPropertyAccessAfterModification() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/propertyAccessAfterModification.kt"); + } + + @TestMetadata("propertyAccessAndInitializer.kt") + public void testPropertyAccessAndInitializer() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/propertyAccessAndInitializer.kt"); + } + + @TestMetadata("propertyAccessWithSideEffect.kt") + public void testPropertyAccessWithSideEffect() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/propertyAccessWithSideEffect.kt"); + } + + @TestMetadata("propertyWithSideEffectExtracted.kt") + public void testPropertyWithSideEffectExtracted() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/propertyWithSideEffectExtracted.kt"); + } + + @TestMetadata("propertyWithSideEffectPassedToInlineFunction.kt") + public void testPropertyWithSideEffectPassedToInlineFunction() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/propertyWithSideEffectPassedToInlineFunction.kt"); + } + + @TestMetadata("temporaryVarNonTrivial.kt") + public void testTemporaryVarNonTrivial() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/temporaryVarNonTrivial.kt"); + } + + @TestMetadata("ternaryConditional.kt") + public void testTernaryConditional() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/ternaryConditional.kt"); + } + + @TestMetadata("while.kt") + public void testWhile() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/while.kt"); + } + + @TestMetadata("whileComplex.kt") + public void testWhileComplex() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/whileComplex.kt"); + } + + @TestMetadata("whileConditionExtracted.kt") + public void testWhileConditionExtracted() throws Exception { + runTest("js/js.translator/testData/box/inlineEvaluationOrder/whileConditionExtracted.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/inlineMultiFile") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class InlineMultiFile extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInlineMultiFile() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/inlineMultiFile"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("anonymousObjectInSimilarFunctions.kt") + public void testAnonymousObjectInSimilarFunctions() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/anonymousObjectInSimilarFunctions.kt"); + } + + @TestMetadata("anonymousObjectOnCallSite.kt") + public void testAnonymousObjectOnCallSite() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/anonymousObjectOnCallSite.kt"); + } + + @TestMetadata("anonymousObjectOnCallSiteSuperParams.kt") + public void testAnonymousObjectOnCallSiteSuperParams() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/anonymousObjectOnCallSiteSuperParams.kt"); + } + + @TestMetadata("anonymousObjectOnDeclarationSite.kt") + public void testAnonymousObjectOnDeclarationSite() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/anonymousObjectOnDeclarationSite.kt"); + } + + @TestMetadata("anonymousObjectOnDeclarationSiteSuperParams.kt") + public void testAnonymousObjectOnDeclarationSiteSuperParams() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/anonymousObjectOnDeclarationSiteSuperParams.kt"); + } + + @TestMetadata("builders.kt") + public void testBuilders() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/builders.kt"); + } + + @TestMetadata("buildersAndLambdaCapturing.kt") + public void testBuildersAndLambdaCapturing() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/buildersAndLambdaCapturing.kt"); + } + + @TestMetadata("captureInlinable.kt") + public void testCaptureInlinable() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/captureInlinable.kt"); + } + + @TestMetadata("captureInlinableAndOther.kt") + public void testCaptureInlinableAndOther() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/captureInlinableAndOther.kt"); + } + + @TestMetadata("captureThisAndReceiver.kt") + public void testCaptureThisAndReceiver() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/captureThisAndReceiver.kt"); + } + + @TestMetadata("closureChain.kt") + public void testClosureChain() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/closureChain.kt"); + } + + @TestMetadata("defaultMethod.kt") + public void testDefaultMethod() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/defaultMethod.kt"); + } + + @TestMetadata("generics.kt") + public void testGenerics() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/generics.kt"); + } + + @TestMetadata("inlineInDefaultParameter.kt") + public void testInlineInDefaultParameter() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/inlineInDefaultParameter.kt"); + } + + @TestMetadata("inlineMultiFileSimple.kt") + public void testInlineMultiFileSimple() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/inlineMultiFileSimple.kt"); + } + + @TestMetadata("lambdaCloning.kt") + public void testLambdaCloning() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/lambdaCloning.kt"); + } + + @TestMetadata("lambdaInLambda2.kt") + public void testLambdaInLambda2() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/lambdaInLambda2.kt"); + } + + @TestMetadata("lambdaInLambdaNoInline.kt") + public void testLambdaInLambdaNoInline() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/lambdaInLambdaNoInline.kt"); + } + + @TestMetadata("privateVarFromInline.kt") + public void testPrivateVarFromInline() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/privateVarFromInline.kt"); + } + + @TestMetadata("regeneratedLambdaName.kt") + public void testRegeneratedLambdaName() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/regeneratedLambdaName.kt"); + } + + @TestMetadata("sameCaptured.kt") + public void testSameCaptured() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/sameCaptured.kt"); + } + + @TestMetadata("simpleCapturingInClass.kt") + public void testSimpleCapturingInClass() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/simpleCapturingInClass.kt"); + } + + @TestMetadata("simpleCapturingInPackage.kt") + public void testSimpleCapturingInPackage() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/simpleCapturingInPackage.kt"); + } + + @TestMetadata("simpleDefaultMethod.kt") + public void testSimpleDefaultMethod() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/simpleDefaultMethod.kt"); + } + + @TestMetadata("trait.kt") + public void testTrait() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/trait.kt"); + } + + @TestMetadata("tryCatch.kt") + public void testTryCatch() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/tryCatch.kt"); + } + + @TestMetadata("tryCatch2.kt") + public void testTryCatch2() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/tryCatch2.kt"); + } + + @TestMetadata("tryCatchFinally.kt") + public void testTryCatchFinally() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/tryCatchFinally.kt"); + } + + @TestMetadata("use.kt") + public void testUse() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/use.kt"); + } + + @TestMetadata("with.kt") + public void testWith() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiFile/with.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/inlineMultiModule") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class InlineMultiModule extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInlineMultiModule() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/inlineMultiModule"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("anotherModuleValInClosure.kt") + public void testAnotherModuleValInClosure() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/anotherModuleValInClosure.kt"); + } + + @TestMetadata("callFunction.kt") + public void testCallFunction() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/callFunction.kt"); + } + + @TestMetadata("callableReference.kt") + public void testCallableReference() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/callableReference.kt"); + } + + @TestMetadata("calledByFqName.kt") + public void testCalledByFqName() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/calledByFqName.kt"); + } + + @TestMetadata("extensionLambda.kt") + public void testExtensionLambda() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/extensionLambda.kt"); + } + + @TestMetadata("externalInlineCallDecomposed.kt") + public void testExternalInlineCallDecomposed() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/externalInlineCallDecomposed.kt"); + } + + @TestMetadata("externalInlineNewDecomposed.kt") + public void testExternalInlineNewDecomposed() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/externalInlineNewDecomposed.kt"); + } + + @TestMetadata("fakeFunctionInAnotherModule.kt") + public void testFakeFunctionInAnotherModule() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/fakeFunctionInAnotherModule.kt"); + } + + @TestMetadata("importObjectInstance.kt") + public void testImportObjectInstance() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/importObjectInstance.kt"); + } + + @TestMetadata("importStdLib.kt") + public void testImportStdLib() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/importStdLib.kt"); + } + + @TestMetadata("inlineInInlineWithLambdaMultiModule.kt") + public void testInlineInInlineWithLambdaMultiModule() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/inlineInInlineWithLambdaMultiModule.kt"); + } + + @TestMetadata("inlineMemberFunWithLambda.kt") + public void testInlineMemberFunWithLambda() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/inlineMemberFunWithLambda.kt"); + } + + @TestMetadata("inlineableAliasForExternalDeclaration.kt") + public void testInlineableAliasForExternalDeclaration() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/inlineableAliasForExternalDeclaration.kt"); + } + + @TestMetadata("internalFriend.kt") + public void testInternalFriend() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/internalFriend.kt"); + } + + @TestMetadata("internalNameClash.kt") + public void testInternalNameClash() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/internalNameClash.kt"); + } + + @TestMetadata("keywordAsMemberName.kt") + public void testKeywordAsMemberName() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/keywordAsMemberName.kt"); + } + + @TestMetadata("kt16144.kt") + public void testKt16144() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/kt16144.kt"); + } + + @TestMetadata("kt16160.kt") + public void testKt16160() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/kt16160.kt"); + } + + @TestMetadata("lambda.kt") + public void testLambda() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/lambda.kt"); + } + + @TestMetadata("lambdaCalledInObjectLiteral.kt") + public void testLambdaCalledInObjectLiteral() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/lambdaCalledInObjectLiteral.kt"); + } + + @TestMetadata("lambdaWithClosure.kt") + public void testLambdaWithClosure() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/lambdaWithClosure.kt"); + } + + @TestMetadata("localNameClash.kt") + public void testLocalNameClash() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/localNameClash.kt"); + } + + @TestMetadata("localObjectLiteralWithInheritance.kt") + public void testLocalObjectLiteralWithInheritance() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/localObjectLiteralWithInheritance.kt"); + } + + @TestMetadata("method.kt") + public void testMethod() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/method.kt"); + } + + @TestMetadata("operators.kt") + public void testOperators() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/operators.kt"); + } + + @TestMetadata("parameterWithDefaultValue.kt") + public void testParameterWithDefaultValue() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/parameterWithDefaultValue.kt"); + } + + @TestMetadata("property.kt") + public void testProperty() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/property.kt"); + } + + @TestMetadata("reexportDuringInline.kt") + public void testReexportDuringInline() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/reexportDuringInline.kt"); + } + + @TestMetadata("repeatedImport.kt") + public void testRepeatedImport() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/repeatedImport.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/simple.kt"); + } + + @TestMetadata("topLevelNestedInline.kt") + public void testTopLevelNestedInline() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/topLevelNestedInline.kt"); + } + + @TestMetadata("typeParametersMangling.kt") + public void testTypeParametersMangling() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/typeParametersMangling.kt"); + } + + @TestMetadata("typealiases.kt") + public void testTypealiases() throws Exception { + runTest("js/js.translator/testData/box/inlineMultiModule/typealiases.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/inlineSizeReduction") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class InlineSizeReduction extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInlineSizeReduction() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/inlineSizeReduction"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("inlineImportCleanup.kt") + public void testInlineImportCleanup() throws Exception { + runTest("js/js.translator/testData/box/inlineSizeReduction/inlineImportCleanup.kt"); + } + + @TestMetadata("inlineLambdaCleanup.kt") + public void testInlineLambdaCleanup() throws Exception { + runTest("js/js.translator/testData/box/inlineSizeReduction/inlineLambdaCleanup.kt"); + } + + @TestMetadata("inlineOrder.kt") + public void testInlineOrder() throws Exception { + runTest("js/js.translator/testData/box/inlineSizeReduction/inlineOrder.kt"); + } + + @TestMetadata("lastBreak.kt") + public void testLastBreak() throws Exception { + runTest("js/js.translator/testData/box/inlineSizeReduction/lastBreak.kt"); + } + + @TestMetadata("multiModuleDefaultArgsCleanup.kt") + public void testMultiModuleDefaultArgsCleanup() throws Exception { + runTest("js/js.translator/testData/box/inlineSizeReduction/multiModuleDefaultArgsCleanup.kt"); + } + + @TestMetadata("noDuplicateVariableDeclaration.kt") + public void testNoDuplicateVariableDeclaration() throws Exception { + runTest("js/js.translator/testData/box/inlineSizeReduction/noDuplicateVariableDeclaration.kt"); + } + + @TestMetadata("oneTopLevelReturn.kt") + public void testOneTopLevelReturn() throws Exception { + runTest("js/js.translator/testData/box/inlineSizeReduction/oneTopLevelReturn.kt"); + } + + @TestMetadata("propertyAssignment.kt") + public void testPropertyAssignment() throws Exception { + runTest("js/js.translator/testData/box/inlineSizeReduction/propertyAssignment.kt"); + } + + @TestMetadata("propertyReassignment.kt") + public void testPropertyReassignment() throws Exception { + runTest("js/js.translator/testData/box/inlineSizeReduction/propertyReassignment.kt"); + } + + @TestMetadata("propertyReferenceDoesNotProduceSideEffect.kt") + public void testPropertyReferenceDoesNotProduceSideEffect() throws Exception { + runTest("js/js.translator/testData/box/inlineSizeReduction/propertyReferenceDoesNotProduceSideEffect.kt"); + } + + @TestMetadata("returnInlineCall.kt") + public void testReturnInlineCall() throws Exception { + runTest("js/js.translator/testData/box/inlineSizeReduction/returnInlineCall.kt"); + } + + @TestMetadata("simpleReturnFunction.kt") + public void testSimpleReturnFunction() throws Exception { + runTest("js/js.translator/testData/box/inlineSizeReduction/simpleReturnFunction.kt"); + } + + @TestMetadata("ternaryConditional.kt") + public void testTernaryConditional() throws Exception { + runTest("js/js.translator/testData/box/inlineSizeReduction/ternaryConditional.kt"); + } + + @TestMetadata("this.kt") + public void testThis() throws Exception { + runTest("js/js.translator/testData/box/inlineSizeReduction/this.kt"); + } + + @TestMetadata("valAssignment.kt") + public void testValAssignment() throws Exception { + runTest("js/js.translator/testData/box/inlineSizeReduction/valAssignment.kt"); + } + + @TestMetadata("valDeclaration.kt") + public void testValDeclaration() throws Exception { + runTest("js/js.translator/testData/box/inlineSizeReduction/valDeclaration.kt"); + } + + @TestMetadata("varargTemporaryVar.kt") + public void testVarargTemporaryVar() throws Exception { + runTest("js/js.translator/testData/box/inlineSizeReduction/varargTemporaryVar.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/inlineStdlib") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class InlineStdlib extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInlineStdlib() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/inlineStdlib"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("callNameClash.kt") + public void testCallNameClash() throws Exception { + runTest("js/js.translator/testData/box/inlineStdlib/callNameClash.kt"); + } + + @TestMetadata("callableRefToFunInCurrentModule.kt") + public void testCallableRefToFunInCurrentModule() throws Exception { + runTest("js/js.translator/testData/box/inlineStdlib/callableRefToFunInCurrentModule.kt"); + } + + @TestMetadata("closure.kt") + public void testClosure() throws Exception { + runTest("js/js.translator/testData/box/inlineStdlib/closure.kt"); + } + + @TestMetadata("closureInObjectLiteral.kt") + public void testClosureInObjectLiteral() throws Exception { + runTest("js/js.translator/testData/box/inlineStdlib/closureInObjectLiteral.kt"); + } + + @TestMetadata("closureNested.kt") + public void testClosureNested() throws Exception { + runTest("js/js.translator/testData/box/inlineStdlib/closureNested.kt"); + } + + @TestMetadata("localNamesClash.kt") + public void testLocalNamesClash() throws Exception { + runTest("js/js.translator/testData/box/inlineStdlib/localNamesClash.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("js/js.translator/testData/box/inlineStdlib/simple.kt"); + } + + @TestMetadata("thisInExtension.kt") + public void testThisInExtension() throws Exception { + runTest("js/js.translator/testData/box/inlineStdlib/thisInExtension.kt"); + } + + @TestMetadata("unsafeCast.kt") + public void testUnsafeCast() throws Exception { + runTest("js/js.translator/testData/box/inlineStdlib/unsafeCast.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/intrinsics") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Intrinsics extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInIntrinsics() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/intrinsics"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("typeof.kt") + public void testTypeof() throws Exception { + runTest("js/js.translator/testData/box/intrinsics/typeof.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/java") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Java extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInJava() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/java"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("js/js.translator/testData/box/java/abstractList") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class AbstractList extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInAbstractList() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/java/abstractList"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("iterator.kt") + public void testIterator() throws Exception { + runTest("js/js.translator/testData/box/java/abstractList/iterator.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/java/arrayList") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ArrayList extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("access.kt") + public void testAccess() throws Exception { + runTest("js/js.translator/testData/box/java/arrayList/access.kt"); + } + + public void testAllFilesPresentInArrayList() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/java/arrayList"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("arrayAccess.kt") + public void testArrayAccess() throws Exception { + runTest("js/js.translator/testData/box/java/arrayList/arrayAccess.kt"); + } + + @TestMetadata("constructWithCapacity.kt") + public void testConstructWithCapacity() throws Exception { + runTest("js/js.translator/testData/box/java/arrayList/constructWithCapacity.kt"); + } + + @TestMetadata("constructWithSideEffectParam.kt") + public void testConstructWithSideEffectParam() throws Exception { + runTest("js/js.translator/testData/box/java/arrayList/constructWithSideEffectParam.kt"); + } + + @TestMetadata("containsAll.kt") + public void testContainsAll() throws Exception { + runTest("js/js.translator/testData/box/java/arrayList/containsAll.kt"); + } + + @TestMetadata("emptyList.kt") + public void testEmptyList() throws Exception { + runTest("js/js.translator/testData/box/java/arrayList/emptyList.kt"); + } + + @TestMetadata("indexOOB.kt") + public void testIndexOOB() throws Exception { + runTest("js/js.translator/testData/box/java/arrayList/indexOOB.kt"); + } + + @TestMetadata("indexOf.kt") + public void testIndexOf() throws Exception { + runTest("js/js.translator/testData/box/java/arrayList/indexOf.kt"); + } + + @TestMetadata("isEmpty.kt") + public void testIsEmpty() throws Exception { + runTest("js/js.translator/testData/box/java/arrayList/isEmpty.kt"); + } + + @TestMetadata("iterate.kt") + public void testIterate() throws Exception { + runTest("js/js.translator/testData/box/java/arrayList/iterate.kt"); + } + + @TestMetadata("misc.kt") + public void testMisc() throws Exception { + runTest("js/js.translator/testData/box/java/arrayList/misc.kt"); + } + + @TestMetadata("remove.kt") + public void testRemove() throws Exception { + runTest("js/js.translator/testData/box/java/arrayList/remove.kt"); + } + + @TestMetadata("removeAll.kt") + public void testRemoveAll() throws Exception { + runTest("js/js.translator/testData/box/java/arrayList/removeAll.kt"); + } + + @TestMetadata("removeWithIndexOutOfBounds.kt") + public void testRemoveWithIndexOutOfBounds() throws Exception { + runTest("js/js.translator/testData/box/java/arrayList/removeWithIndexOutOfBounds.kt"); + } + + @TestMetadata("retainAll.kt") + public void testRetainAll() throws Exception { + runTest("js/js.translator/testData/box/java/arrayList/retainAll.kt"); + } + + @TestMetadata("toArray.kt") + public void testToArray() throws Exception { + runTest("js/js.translator/testData/box/java/arrayList/toArray.kt"); + } + } + } + + @TestMetadata("js/js.translator/testData/box/jsCode") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class JsCode extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInJsCode() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/jsCode"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("break.kt") + public void testBreak() throws Exception { + runTest("js/js.translator/testData/box/jsCode/break.kt"); + } + + @TestMetadata("catchScope.kt") + public void testCatchScope() throws Exception { + runTest("js/js.translator/testData/box/jsCode/catchScope.kt"); + } + + @TestMetadata("codeFromVariable.kt") + public void testCodeFromVariable() throws Exception { + runTest("js/js.translator/testData/box/jsCode/codeFromVariable.kt"); + } + + @TestMetadata("continue.kt") + public void testContinue() throws Exception { + runTest("js/js.translator/testData/box/jsCode/continue.kt"); + } + + @TestMetadata("doWhile.kt") + public void testDoWhile() throws Exception { + runTest("js/js.translator/testData/box/jsCode/doWhile.kt"); + } + + @TestMetadata("for.kt") + public void testFor() throws Exception { + runTest("js/js.translator/testData/box/jsCode/for.kt"); + } + + @TestMetadata("forIn.kt") + public void testForIn() throws Exception { + runTest("js/js.translator/testData/box/jsCode/forIn.kt"); + } + + @TestMetadata("forWithoutInit.kt") + public void testForWithoutInit() throws Exception { + runTest("js/js.translator/testData/box/jsCode/forWithoutInit.kt"); + } + + @TestMetadata("function.kt") + public void testFunction() throws Exception { + runTest("js/js.translator/testData/box/jsCode/function.kt"); + } + + @TestMetadata("functionName.kt") + public void testFunctionName() throws Exception { + runTest("js/js.translator/testData/box/jsCode/functionName.kt"); + } + + @TestMetadata("if.kt") + public void testIf() throws Exception { + runTest("js/js.translator/testData/box/jsCode/if.kt"); + } + + @TestMetadata("invocation.kt") + public void testInvocation() throws Exception { + runTest("js/js.translator/testData/box/jsCode/invocation.kt"); + } + + @TestMetadata("label.kt") + public void testLabel() throws Exception { + runTest("js/js.translator/testData/box/jsCode/label.kt"); + } + + @TestMetadata("labelNestedClash.kt") + public void testLabelNestedClash() throws Exception { + runTest("js/js.translator/testData/box/jsCode/labelNestedClash.kt"); + } + + @TestMetadata("labelNestedClashWithKotlin.kt") + public void testLabelNestedClashWithKotlin() throws Exception { + runTest("js/js.translator/testData/box/jsCode/labelNestedClashWithKotlin.kt"); + } + + @TestMetadata("labelSiblingClash.kt") + public void testLabelSiblingClash() throws Exception { + runTest("js/js.translator/testData/box/jsCode/labelSiblingClash.kt"); + } + + @TestMetadata("literal.kt") + public void testLiteral() throws Exception { + runTest("js/js.translator/testData/box/jsCode/literal.kt"); + } + + @TestMetadata("numberLiteralOverflow.kt") + public void testNumberLiteralOverflow() throws Exception { + runTest("js/js.translator/testData/box/jsCode/numberLiteralOverflow.kt"); + } + + @TestMetadata("object.kt") + public void testObject() throws Exception { + runTest("js/js.translator/testData/box/jsCode/object.kt"); + } + + @TestMetadata("objectExpression.kt") + public void testObjectExpression() throws Exception { + runTest("js/js.translator/testData/box/jsCode/objectExpression.kt"); + } + + @TestMetadata("objectScopes.kt") + public void testObjectScopes() throws Exception { + runTest("js/js.translator/testData/box/jsCode/objectScopes.kt"); + } + + @TestMetadata("operators.kt") + public void testOperators() throws Exception { + runTest("js/js.translator/testData/box/jsCode/operators.kt"); + } + + @TestMetadata("quotes.kt") + public void testQuotes() throws Exception { + runTest("js/js.translator/testData/box/jsCode/quotes.kt"); + } + + @TestMetadata("referenceToKotlin.kt") + public void testReferenceToKotlin() throws Exception { + runTest("js/js.translator/testData/box/jsCode/referenceToKotlin.kt"); + } + + @TestMetadata("switch.kt") + public void testSwitch() throws Exception { + runTest("js/js.translator/testData/box/jsCode/switch.kt"); + } + + @TestMetadata("tryCatchFinally.kt") + public void testTryCatchFinally() throws Exception { + runTest("js/js.translator/testData/box/jsCode/tryCatchFinally.kt"); + } + + @TestMetadata("while.kt") + public void testWhile() throws Exception { + runTest("js/js.translator/testData/box/jsCode/while.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/jsModule") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class JsModule extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInJsModule() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/jsModule"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("externalClass.kt") + public void testExternalClass() throws Exception { + runTest("js/js.translator/testData/box/jsModule/externalClass.kt"); + } + + @TestMetadata("externalClassWithDefaults.kt") + public void testExternalClassWithDefaults() throws Exception { + runTest("js/js.translator/testData/box/jsModule/externalClassWithDefaults.kt"); + } + + @TestMetadata("externalConstructor.kt") + public void testExternalConstructor() throws Exception { + runTest("js/js.translator/testData/box/jsModule/externalConstructor.kt"); + } + + @TestMetadata("externalFunction.kt") + public void testExternalFunction() throws Exception { + runTest("js/js.translator/testData/box/jsModule/externalFunction.kt"); + } + + @TestMetadata("externalFunctionNameClash.kt") + public void testExternalFunctionNameClash() throws Exception { + runTest("js/js.translator/testData/box/jsModule/externalFunctionNameClash.kt"); + } + + @TestMetadata("externalFunctionPlain.kt") + public void testExternalFunctionPlain() throws Exception { + runTest("js/js.translator/testData/box/jsModule/externalFunctionPlain.kt"); + } + + @TestMetadata("externalFunctionUmd.kt") + public void testExternalFunctionUmd() throws Exception { + runTest("js/js.translator/testData/box/jsModule/externalFunctionUmd.kt"); + } + + @TestMetadata("externalFunctionUmdFallback.kt") + public void testExternalFunctionUmdFallback() throws Exception { + runTest("js/js.translator/testData/box/jsModule/externalFunctionUmdFallback.kt"); + } + + @TestMetadata("externalObject.kt") + public void testExternalObject() throws Exception { + runTest("js/js.translator/testData/box/jsModule/externalObject.kt"); + } + + @TestMetadata("externalPackage.kt") + public void testExternalPackage() throws Exception { + runTest("js/js.translator/testData/box/jsModule/externalPackage.kt"); + } + + @TestMetadata("externalPackageInDifferentFile.kt") + public void testExternalPackageInDifferentFile() throws Exception { + runTest("js/js.translator/testData/box/jsModule/externalPackageInDifferentFile.kt"); + } + + @TestMetadata("externalPackagePlain.kt") + public void testExternalPackagePlain() throws Exception { + runTest("js/js.translator/testData/box/jsModule/externalPackagePlain.kt"); + } + + @TestMetadata("externalPackageUmdFallback.kt") + public void testExternalPackageUmdFallback() throws Exception { + runTest("js/js.translator/testData/box/jsModule/externalPackageUmdFallback.kt"); + } + + @TestMetadata("externalProperty.kt") + public void testExternalProperty() throws Exception { + runTest("js/js.translator/testData/box/jsModule/externalProperty.kt"); + } + + @TestMetadata("importCountCommonJS.kt") + public void testImportCountCommonJS() throws Exception { + runTest("js/js.translator/testData/box/jsModule/importCountCommonJS.kt"); + } + + @TestMetadata("importCountUmd.kt") + public void testImportCountUmd() throws Exception { + runTest("js/js.translator/testData/box/jsModule/importCountUmd.kt"); + } + + @TestMetadata("topLevelVarargFun.kt") + public void testTopLevelVarargFun() throws Exception { + runTest("js/js.translator/testData/box/jsModule/topLevelVarargFun.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/jsName") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class JsName extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInJsName() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/jsName"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("avoidNameClash.kt") + public void testAvoidNameClash() throws Exception { + runTest("js/js.translator/testData/box/jsName/avoidNameClash.kt"); + } + + @TestMetadata("classes.kt") + public void testClasses() throws Exception { + runTest("js/js.translator/testData/box/jsName/classes.kt"); + } + + @TestMetadata("inheritFromRenamedNativeClass.kt") + public void testInheritFromRenamedNativeClass() throws Exception { + runTest("js/js.translator/testData/box/jsName/inheritFromRenamedNativeClass.kt"); + } + + @TestMetadata("inheritFromRenamedNativeClassMultimodule.kt") + public void testInheritFromRenamedNativeClassMultimodule() throws Exception { + runTest("js/js.translator/testData/box/jsName/inheritFromRenamedNativeClassMultimodule.kt"); + } + + @TestMetadata("jsName.kt") + public void testJsName() throws Exception { + runTest("js/js.translator/testData/box/jsName/jsName.kt"); + } + + @TestMetadata("jsNamePropertyAccessors.kt") + public void testJsNamePropertyAccessors() throws Exception { + runTest("js/js.translator/testData/box/jsName/jsNamePropertyAccessors.kt"); + } + + @TestMetadata("overriddenMethod.kt") + public void testOverriddenMethod() throws Exception { + runTest("js/js.translator/testData/box/jsName/overriddenMethod.kt"); + } + + @TestMetadata("overridenFromInterface.kt") + public void testOverridenFromInterface() throws Exception { + runTest("js/js.translator/testData/box/jsName/overridenFromInterface.kt"); + } + + @TestMetadata("peculiarIdentifiers.kt") + public void testPeculiarIdentifiers() throws Exception { + runTest("js/js.translator/testData/box/jsName/peculiarIdentifiers.kt"); + } + + @TestMetadata("privateMethod.kt") + public void testPrivateMethod() throws Exception { + runTest("js/js.translator/testData/box/jsName/privateMethod.kt"); + } + + @TestMetadata("propertyAccessorFromOtherModule.kt") + public void testPropertyAccessorFromOtherModule() throws Exception { + runTest("js/js.translator/testData/box/jsName/propertyAccessorFromOtherModule.kt"); + } + + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() throws Exception { + runTest("js/js.translator/testData/box/jsName/secondaryConstructor.kt"); + } + + @TestMetadata("simpleJsName.kt") + public void testSimpleJsName() throws Exception { + runTest("js/js.translator/testData/box/jsName/simpleJsName.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/jsQualifier") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class JsQualifier extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInJsQualifier() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/jsQualifier"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("classes.kt") + public void testClasses() throws Exception { + runTest("js/js.translator/testData/box/jsQualifier/classes.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("js/js.translator/testData/box/jsQualifier/simple.kt"); + } + + @TestMetadata("umdFallback.kt") + public void testUmdFallback() throws Exception { + runTest("js/js.translator/testData/box/jsQualifier/umdFallback.kt"); + } + + @TestMetadata("withModule.kt") + public void testWithModule() throws Exception { + runTest("js/js.translator/testData/box/jsQualifier/withModule.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/kotlin.test") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Kotlin_test extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInKotlin_test() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/kotlin.test"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("beforeAfter.kt") + public void testBeforeAfter() throws Exception { + runTest("js/js.translator/testData/box/kotlin.test/beforeAfter.kt"); + } + + @TestMetadata("ignore.kt") + public void testIgnore() throws Exception { + runTest("js/js.translator/testData/box/kotlin.test/ignore.kt"); + } + + @TestMetadata("incremental.kt") + public void testIncremental() throws Exception { + runTest("js/js.translator/testData/box/kotlin.test/incremental.kt"); + } + + @TestMetadata("inherited.kt") + public void testInherited() throws Exception { + runTest("js/js.translator/testData/box/kotlin.test/inherited.kt"); + } + + @TestMetadata("mpp.kt") + public void testMpp() throws Exception { + runTest("js/js.translator/testData/box/kotlin.test/mpp.kt"); + } + + @TestMetadata("nested.kt") + public void testNested() throws Exception { + runTest("js/js.translator/testData/box/kotlin.test/nested.kt"); + } + + @TestMetadata("returnTestResult.kt") + public void testReturnTestResult() throws Exception { + runTest("js/js.translator/testData/box/kotlin.test/returnTestResult.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("js/js.translator/testData/box/kotlin.test/simple.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/labels") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Labels extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInLabels() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/labels"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("labelOnExpression.kt") + public void testLabelOnExpression() throws Exception { + runTest("js/js.translator/testData/box/labels/labelOnExpression.kt"); + } + + @TestMetadata("labelWithVariableClashing.kt") + public void testLabelWithVariableClashing() throws Exception { + runTest("js/js.translator/testData/box/labels/labelWithVariableClashing.kt"); + } + + @TestMetadata("nestedInlineLabels.kt") + public void testNestedInlineLabels() throws Exception { + runTest("js/js.translator/testData/box/labels/nestedInlineLabels.kt"); + } + + @TestMetadata("nestedLabels.kt") + public void testNestedLabels() throws Exception { + runTest("js/js.translator/testData/box/labels/nestedLabels.kt"); + } + + @TestMetadata("nestedLabelsInlinedClashing.kt") + public void testNestedLabelsInlinedClashing() throws Exception { + runTest("js/js.translator/testData/box/labels/nestedLabelsInlinedClashing.kt"); + } + + @TestMetadata("nestedLabelsInlinedClashingAtFunctionsWithClosure.kt") + public void testNestedLabelsInlinedClashingAtFunctionsWithClosure() throws Exception { + runTest("js/js.translator/testData/box/labels/nestedLabelsInlinedClashingAtFunctionsWithClosure.kt"); + } + + @TestMetadata("peculiarNames.kt") + public void testPeculiarNames() throws Exception { + runTest("js/js.translator/testData/box/labels/peculiarNames.kt"); + } + + @TestMetadata("siblingLabels.kt") + public void testSiblingLabels() throws Exception { + runTest("js/js.translator/testData/box/labels/siblingLabels.kt"); + } + + @TestMetadata("siblingLabelsInlined.kt") + public void testSiblingLabelsInlined() throws Exception { + runTest("js/js.translator/testData/box/labels/siblingLabelsInlined.kt"); + } + + @TestMetadata("siblingLabelsInlinedClashing.kt") + public void testSiblingLabelsInlinedClashing() throws Exception { + runTest("js/js.translator/testData/box/labels/siblingLabelsInlinedClashing.kt"); + } + + @TestMetadata("simpleLabel.kt") + public void testSimpleLabel() throws Exception { + runTest("js/js.translator/testData/box/labels/simpleLabel.kt"); + } + + @TestMetadata("simpleLabelInlined.kt") + public void testSimpleLabelInlined() throws Exception { + runTest("js/js.translator/testData/box/labels/simpleLabelInlined.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/main") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Main extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInMain() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/main"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("differentMains.kt") + public void testDifferentMains() throws Exception { + runTest("js/js.translator/testData/box/main/differentMains.kt"); + } + + @TestMetadata("incremental.kt") + public void testIncremental() throws Exception { + runTest("js/js.translator/testData/box/main/incremental.kt"); + } + + @TestMetadata("noArgs.kt") + public void testNoArgs() throws Exception { + runTest("js/js.translator/testData/box/main/noArgs.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("js/js.translator/testData/box/main/simple.kt"); + } + + @TestMetadata("suspendMain.kt") + public void testSuspendMain() throws Exception { + runTest("js/js.translator/testData/box/main/suspendMain.kt"); + } + + @TestMetadata("suspendMainNoArgs.kt") + public void testSuspendMainNoArgs() throws Exception { + runTest("js/js.translator/testData/box/main/suspendMainNoArgs.kt"); + } + + @TestMetadata("suspendMainThrows.kt") + public void testSuspendMainThrows() throws Exception { + runTest("js/js.translator/testData/box/main/suspendMainThrows.kt"); + } + + @TestMetadata("twoMains.kt") + public void testTwoMains() throws Exception { + runTest("js/js.translator/testData/box/main/twoMains.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/multiFile") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class MultiFile extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInMultiFile() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/multiFile"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("classOfTheSameNameInAnotherPackage.kt") + public void testClassOfTheSameNameInAnotherPackage() throws Exception { + runTest("js/js.translator/testData/box/multiFile/classOfTheSameNameInAnotherPackage.kt"); + } + + @TestMetadata("classesInheritedFromOtherFile.kt") + public void testClassesInheritedFromOtherFile() throws Exception { + runTest("js/js.translator/testData/box/multiFile/classesInheritedFromOtherFile.kt"); + } + + @TestMetadata("functionsVisibleFromOtherFile.kt") + public void testFunctionsVisibleFromOtherFile() throws Exception { + runTest("js/js.translator/testData/box/multiFile/functionsVisibleFromOtherFile.kt"); + } + + @TestMetadata("importedDeclarationMangling.kt") + public void testImportedDeclarationMangling() throws Exception { + runTest("js/js.translator/testData/box/multiFile/importedDeclarationMangling.kt"); + } + + @TestMetadata("packageAndMangledMethodDoNotClash.kt") + public void testPackageAndMangledMethodDoNotClash() throws Exception { + runTest("js/js.translator/testData/box/multiFile/packageAndMangledMethodDoNotClash.kt"); + } + + @TestMetadata("packageAndPrivateDeclarationDoNotClash.kt") + public void testPackageAndPrivateDeclarationDoNotClash() throws Exception { + runTest("js/js.translator/testData/box/multiFile/packageAndPrivateDeclarationDoNotClash.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/multiModule") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class MultiModule extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInMultiModule() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/multiModule"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("clashedDeclLinkage.kt") + public void testClashedDeclLinkage() throws Exception { + runTest("js/js.translator/testData/box/multiModule/clashedDeclLinkage.kt"); + } + + @TestMetadata("clashedInternalDeclarations.kt") + public void testClashedInternalDeclarations() throws Exception { + runTest("js/js.translator/testData/box/multiModule/clashedInternalDeclarations.kt"); + } + + @TestMetadata("interfaceMethodWithDefaultParameter.kt") + public void testInterfaceMethodWithDefaultParameter() throws Exception { + runTest("js/js.translator/testData/box/multiModule/interfaceMethodWithDefaultParameter.kt"); + } + + @TestMetadata("localClassMetadata.kt") + public void testLocalClassMetadata() throws Exception { + runTest("js/js.translator/testData/box/multiModule/localClassMetadata.kt"); + } + + @TestMetadata("moduleAndVariableNameClash.kt") + public void testModuleAndVariableNameClash() throws Exception { + runTest("js/js.translator/testData/box/multiModule/moduleAndVariableNameClash.kt"); + } + + @TestMetadata("privateInterfaceMethodInheritance.kt") + public void testPrivateInterfaceMethodInheritance() throws Exception { + runTest("js/js.translator/testData/box/multiModule/privateInterfaceMethodInheritance.kt"); + } + + @TestMetadata("privateInterfaceNameClash.kt") + public void testPrivateInterfaceNameClash() throws Exception { + runTest("js/js.translator/testData/box/multiModule/privateInterfaceNameClash.kt"); + } + + @TestMetadata("privateNameClash.kt") + public void testPrivateNameClash() throws Exception { + runTest("js/js.translator/testData/box/multiModule/privateNameClash.kt"); + } + + @TestMetadata("publishedApiMangling.kt") + public void testPublishedApiMangling() throws Exception { + runTest("js/js.translator/testData/box/multiModule/publishedApiMangling.kt"); + } + + @TestMetadata("samePackageNames.kt") + public void testSamePackageNames() throws Exception { + runTest("js/js.translator/testData/box/multiModule/samePackageNames.kt"); + } + + @TestMetadata("useElementsFromDefaultPackageInAnotherModule.kt") + public void testUseElementsFromDefaultPackageInAnotherModule() throws Exception { + runTest("js/js.translator/testData/box/multiModule/useElementsFromDefaultPackageInAnotherModule.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/multiModuleWrappers") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class MultiModuleWrappers extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInMultiModuleWrappers() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/multiModuleWrappers"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("js/js.translator/testData/box/multiModuleWrappers/amd") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Amd extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInAmd() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/multiModuleWrappers/amd"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("jsModuleOnPackage.kt") + public void testJsModuleOnPackage() throws Exception { + runTest("js/js.translator/testData/box/multiModuleWrappers/amd/jsModuleOnPackage.kt"); + } + + @TestMetadata("moduleWithNonIdentifierName.kt") + public void testModuleWithNonIdentifierName() throws Exception { + runTest("js/js.translator/testData/box/multiModuleWrappers/amd/moduleWithNonIdentifierName.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("js/js.translator/testData/box/multiModuleWrappers/amd/simple.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/multiModuleWrappers/common_js") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Common_js extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCommon_js() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/multiModuleWrappers/common_js"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("inlineFromModuleWithNonIdentifierName.kt") + public void testInlineFromModuleWithNonIdentifierName() throws Exception { + runTest("js/js.translator/testData/box/multiModuleWrappers/common_js/inlineFromModuleWithNonIdentifierName.kt"); + } + + @TestMetadata("moduleWithNonIdentifierName.kt") + public void testModuleWithNonIdentifierName() throws Exception { + runTest("js/js.translator/testData/box/multiModuleWrappers/common_js/moduleWithNonIdentifierName.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("js/js.translator/testData/box/multiModuleWrappers/common_js/simple.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/multiModuleWrappers/plain") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Plain extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInPlain() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/multiModuleWrappers/plain"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("inlineFromModuleWithNonIdentifierName.kt") + public void testInlineFromModuleWithNonIdentifierName() throws Exception { + runTest("js/js.translator/testData/box/multiModuleWrappers/plain/inlineFromModuleWithNonIdentifierName.kt"); + } + + @TestMetadata("moduleWithNonIdentifierName.kt") + public void testModuleWithNonIdentifierName() throws Exception { + runTest("js/js.translator/testData/box/multiModuleWrappers/plain/moduleWithNonIdentifierName.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("js/js.translator/testData/box/multiModuleWrappers/plain/simple.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/multiModuleWrappers/umd") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Umd extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInUmd() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/multiModuleWrappers/umd"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("moduleWithNonIdentifierName.kt") + public void testModuleWithNonIdentifierName() throws Exception { + runTest("js/js.translator/testData/box/multiModuleWrappers/umd/moduleWithNonIdentifierName.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("js/js.translator/testData/box/multiModuleWrappers/umd/simple.kt"); + } + } + } + + @TestMetadata("js/js.translator/testData/box/multiPackage") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class MultiPackage extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInMultiPackage() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/multiPackage"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("classesInheritedFromOtherPackage.kt") + public void testClassesInheritedFromOtherPackage() throws Exception { + runTest("js/js.translator/testData/box/multiPackage/classesInheritedFromOtherPackage.kt"); + } + + @TestMetadata("createClassFromOtherPackage.kt") + public void testCreateClassFromOtherPackage() throws Exception { + runTest("js/js.translator/testData/box/multiPackage/createClassFromOtherPackage.kt"); + } + + @TestMetadata("createClassFromOtherPackageUsingImport.kt") + public void testCreateClassFromOtherPackageUsingImport() throws Exception { + runTest("js/js.translator/testData/box/multiPackage/createClassFromOtherPackageUsingImport.kt"); + } + + @TestMetadata("functionsVisibleFromOtherPackage.kt") + public void testFunctionsVisibleFromOtherPackage() throws Exception { + runTest("js/js.translator/testData/box/multiPackage/functionsVisibleFromOtherPackage.kt"); + } + + @TestMetadata("nestedPackageFunctionCalledFromOtherPackage.kt") + public void testNestedPackageFunctionCalledFromOtherPackage() throws Exception { + runTest("js/js.translator/testData/box/multiPackage/nestedPackageFunctionCalledFromOtherPackage.kt"); + } + + @TestMetadata("packageVariableVisibleFromOtherPackage.kt") + public void testPackageVariableVisibleFromOtherPackage() throws Exception { + runTest("js/js.translator/testData/box/multiPackage/packageVariableVisibleFromOtherPackage.kt"); + } + + @TestMetadata("reflectionFromOtherPackage.kt") + public void testReflectionFromOtherPackage() throws Exception { + runTest("js/js.translator/testData/box/multiPackage/reflectionFromOtherPackage.kt"); + } + + @TestMetadata("subpackagesWithClashingNames.kt") + public void testSubpackagesWithClashingNames() throws Exception { + runTest("js/js.translator/testData/box/multiPackage/subpackagesWithClashingNames.kt"); + } + + @TestMetadata("subpackagesWithClashingNamesUsingImport.kt") + public void testSubpackagesWithClashingNamesUsingImport() throws Exception { + runTest("js/js.translator/testData/box/multiPackage/subpackagesWithClashingNamesUsingImport.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/multideclaration") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Multideclaration extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInMultideclaration() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/multideclaration"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("multiValForArray.kt") + public void testMultiValForArray() throws Exception { + runTest("js/js.translator/testData/box/multideclaration/multiValForArray.kt"); + } + + @TestMetadata("multiValForMap.kt") + public void testMultiValForMap() throws Exception { + runTest("js/js.translator/testData/box/multideclaration/multiValForMap.kt"); + } + + @TestMetadata("multiValForRange.kt") + public void testMultiValForRange() throws Exception { + runTest("js/js.translator/testData/box/multideclaration/multiValForRange.kt"); + } + + @TestMetadata("multiValInFor.kt") + public void testMultiValInFor() throws Exception { + runTest("js/js.translator/testData/box/multideclaration/multiValInFor.kt"); + } + + @TestMetadata("multiValInIntFor.kt") + public void testMultiValInIntFor() throws Exception { + runTest("js/js.translator/testData/box/multideclaration/multiValInIntFor.kt"); + } + + @TestMetadata("multiValInIntRangeFor.kt") + public void testMultiValInIntRangeFor() throws Exception { + runTest("js/js.translator/testData/box/multideclaration/multiValInIntRangeFor.kt"); + } + + @TestMetadata("multiValOrVar.kt") + public void testMultiValOrVar() throws Exception { + runTest("js/js.translator/testData/box/multideclaration/multiValOrVar.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/nameClashes") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NameClashes extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNameClashes() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/nameClashes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("classAndCompanionObjectMembers.kt") + public void testClassAndCompanionObjectMembers() throws Exception { + runTest("js/js.translator/testData/box/nameClashes/classAndCompanionObjectMembers.kt"); + } + + @TestMetadata("constructorLocalVar.kt") + public void testConstructorLocalVar() throws Exception { + runTest("js/js.translator/testData/box/nameClashes/constructorLocalVar.kt"); + } + + @TestMetadata("constructorsCrossFile.kt") + public void testConstructorsCrossFile() throws Exception { + runTest("js/js.translator/testData/box/nameClashes/constructorsCrossFile.kt"); + } + + @TestMetadata("differenceInCapitalization.kt") + public void testDifferenceInCapitalization() throws Exception { + runTest("js/js.translator/testData/box/nameClashes/differenceInCapitalization.kt"); + } + + @TestMetadata("extensionFunctionAndProperty.kt") + public void testExtensionFunctionAndProperty() throws Exception { + runTest("js/js.translator/testData/box/nameClashes/extensionFunctionAndProperty.kt"); + } + + @TestMetadata("extensionPropertiesWithDifferentReceivers.kt") + public void testExtensionPropertiesWithDifferentReceivers() throws Exception { + runTest("js/js.translator/testData/box/nameClashes/extensionPropertiesWithDifferentReceivers.kt"); + } + + @TestMetadata("extensionPropertyAndMethod.kt") + public void testExtensionPropertyAndMethod() throws Exception { + runTest("js/js.translator/testData/box/nameClashes/extensionPropertyAndMethod.kt"); + } + + @TestMetadata("jsNameAndPrivate.kt") + public void testJsNameAndPrivate() throws Exception { + runTest("js/js.translator/testData/box/nameClashes/jsNameAndPrivate.kt"); + } + + @TestMetadata("localFunctionInLambda.kt") + public void testLocalFunctionInLambda() throws Exception { + runTest("js/js.translator/testData/box/nameClashes/localFunctionInLambda.kt"); + } + + @TestMetadata("localFunctions.kt") + public void testLocalFunctions() throws Exception { + runTest("js/js.translator/testData/box/nameClashes/localFunctions.kt"); + } + + @TestMetadata("methodAndPrivateProperty.kt") + public void testMethodAndPrivateProperty() throws Exception { + runTest("js/js.translator/testData/box/nameClashes/methodAndPrivateProperty.kt"); + } + + @TestMetadata("methodOverload.kt") + public void testMethodOverload() throws Exception { + runTest("js/js.translator/testData/box/nameClashes/methodOverload.kt"); + } + + @TestMetadata("methodOverloadInClassWithTwoUpperBounds.kt") + public void testMethodOverloadInClassWithTwoUpperBounds() throws Exception { + runTest("js/js.translator/testData/box/nameClashes/methodOverloadInClassWithTwoUpperBounds.kt"); + } + + @TestMetadata("nativeAndTopLevelFunction.kt") + public void testNativeAndTopLevelFunction() throws Exception { + runTest("js/js.translator/testData/box/nameClashes/nativeAndTopLevelFunction.kt"); + } + + @TestMetadata("nativeDeclarationAndLocalVar.kt") + public void testNativeDeclarationAndLocalVar() throws Exception { + runTest("js/js.translator/testData/box/nameClashes/nativeDeclarationAndLocalVar.kt"); + } + + @TestMetadata("overloadExtension.kt") + public void testOverloadExtension() throws Exception { + runTest("js/js.translator/testData/box/nameClashes/overloadExtension.kt"); + } + + @TestMetadata("propertyAndNativeMethod.kt") + public void testPropertyAndNativeMethod() throws Exception { + runTest("js/js.translator/testData/box/nameClashes/propertyAndNativeMethod.kt"); + } + + @TestMetadata("topLevelFunctionAndParameter.kt") + public void testTopLevelFunctionAndParameter() throws Exception { + runTest("js/js.translator/testData/box/nameClashes/topLevelFunctionAndParameter.kt"); + } + + @TestMetadata("withBuiltin.kt") + public void testWithBuiltin() throws Exception { + runTest("js/js.translator/testData/box/nameClashes/withBuiltin.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/native") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Native extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("accessToCompanionObjectFromInlineFun.kt") + public void testAccessToCompanionObjectFromInlineFun() throws Exception { + runTest("js/js.translator/testData/box/native/accessToCompanionObjectFromInlineFun.kt"); + } + + public void testAllFilesPresentInNative() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/native"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("callbackOptionalParameter.kt") + public void testCallbackOptionalParameter() throws Exception { + runTest("js/js.translator/testData/box/native/callbackOptionalParameter.kt"); + } + + @TestMetadata("castToNativeClassChecked.kt") + public void testCastToNativeClassChecked() throws Exception { + runTest("js/js.translator/testData/box/native/castToNativeClassChecked.kt"); + } + + @TestMetadata("castToNativeInterface.kt") + public void testCastToNativeInterface() throws Exception { + runTest("js/js.translator/testData/box/native/castToNativeInterface.kt"); + } + + @TestMetadata("castToNativeInterfaceChecked.kt") + public void testCastToNativeInterfaceChecked() throws Exception { + runTest("js/js.translator/testData/box/native/castToNativeInterfaceChecked.kt"); + } + + @TestMetadata("castToNullableNativeInterface.kt") + public void testCastToNullableNativeInterface() throws Exception { + runTest("js/js.translator/testData/box/native/castToNullableNativeInterface.kt"); + } + + @TestMetadata("castToTypeParamBoundedByNativeInterface.kt") + public void testCastToTypeParamBoundedByNativeInterface() throws Exception { + runTest("js/js.translator/testData/box/native/castToTypeParamBoundedByNativeInterface.kt"); + } + + @TestMetadata("class.kt") + public void testClass() throws Exception { + runTest("js/js.translator/testData/box/native/class.kt"); + } + + @TestMetadata("classObject.kt") + public void testClassObject() throws Exception { + runTest("js/js.translator/testData/box/native/classObject.kt"); + } + + @TestMetadata("equalsMangling.kt") + public void testEqualsMangling() throws Exception { + runTest("js/js.translator/testData/box/native/equalsMangling.kt"); + } + + @TestMetadata("eval.kt") + public void testEval() throws Exception { + runTest("js/js.translator/testData/box/native/eval.kt"); + } + + @TestMetadata("exception.kt") + public void testException() throws Exception { + runTest("js/js.translator/testData/box/native/exception.kt"); + } + + @TestMetadata("inheritanceFromNativeClass.kt") + public void testInheritanceFromNativeClass() throws Exception { + runTest("js/js.translator/testData/box/native/inheritanceFromNativeClass.kt"); + } + + @TestMetadata("inheritanceFromNativeTrait.kt") + public void testInheritanceFromNativeTrait() throws Exception { + runTest("js/js.translator/testData/box/native/inheritanceFromNativeTrait.kt"); + } + + @TestMetadata("inheritanceInNativeClass.kt") + public void testInheritanceInNativeClass() throws Exception { + runTest("js/js.translator/testData/box/native/inheritanceInNativeClass.kt"); + } + + @TestMetadata("kt2209.kt") + public void testKt2209() throws Exception { + runTest("js/js.translator/testData/box/native/kt2209.kt"); + } + + @TestMetadata("nativeClassAsReifiedTypeArgument.kt") + public void testNativeClassAsReifiedTypeArgument() throws Exception { + runTest("js/js.translator/testData/box/native/nativeClassAsReifiedTypeArgument.kt"); + } + + @TestMetadata("nativeGetterAndNativeSetter.kt") + public void testNativeGetterAndNativeSetter() throws Exception { + runTest("js/js.translator/testData/box/native/nativeGetterAndNativeSetter.kt"); + } + + @TestMetadata("nativeInvoke.kt") + public void testNativeInvoke() throws Exception { + runTest("js/js.translator/testData/box/native/nativeInvoke.kt"); + } + + @TestMetadata("nestedElements.kt") + public void testNestedElements() throws Exception { + runTest("js/js.translator/testData/box/native/nestedElements.kt"); + } + + @TestMetadata("objectFunWithVararg.kt") + public void testObjectFunWithVararg() throws Exception { + runTest("js/js.translator/testData/box/native/objectFunWithVararg.kt"); + } + + @TestMetadata("overrideNativeOverloadedFunction.kt") + public void testOverrideNativeOverloadedFunction() throws Exception { + runTest("js/js.translator/testData/box/native/overrideNativeOverloadedFunction.kt"); + } + + @TestMetadata("passExtLambdaFromNative.kt") + public void testPassExtLambdaFromNative() throws Exception { + runTest("js/js.translator/testData/box/native/passExtLambdaFromNative.kt"); + } + + @TestMetadata("passExtLambdaToNative.kt") + public void testPassExtLambdaToNative() throws Exception { + runTest("js/js.translator/testData/box/native/passExtLambdaToNative.kt"); + } + + @TestMetadata("passMemberOrExtFromNative.kt") + public void testPassMemberOrExtFromNative() throws Exception { + runTest("js/js.translator/testData/box/native/passMemberOrExtFromNative.kt"); + } + + @TestMetadata("passMemberOrExtToNative.kt") + public void testPassMemberOrExtToNative() throws Exception { + runTest("js/js.translator/testData/box/native/passMemberOrExtToNative.kt"); + } + + @TestMetadata("passTopLevelFunctionFromNative.kt") + public void testPassTopLevelFunctionFromNative() throws Exception { + runTest("js/js.translator/testData/box/native/passTopLevelFunctionFromNative.kt"); + } + + @TestMetadata("passTopLevelOrLocalFunctionToNative.kt") + public void testPassTopLevelOrLocalFunctionToNative() throws Exception { + runTest("js/js.translator/testData/box/native/passTopLevelOrLocalFunctionToNative.kt"); + } + + @TestMetadata("print.kt") + public void testPrint() throws Exception { + runTest("js/js.translator/testData/box/native/print.kt"); + } + + @TestMetadata("privateExternal.kt") + public void testPrivateExternal() throws Exception { + runTest("js/js.translator/testData/box/native/privateExternal.kt"); + } + + @TestMetadata("safeCastToNativeInterface.kt") + public void testSafeCastToNativeInterface() throws Exception { + runTest("js/js.translator/testData/box/native/safeCastToNativeInterface.kt"); + } + + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() throws Exception { + runTest("js/js.translator/testData/box/native/secondaryConstructor.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("js/js.translator/testData/box/native/simple.kt"); + } + + @TestMetadata("simpleUndefined.kt") + public void testSimpleUndefined() throws Exception { + runTest("js/js.translator/testData/box/native/simpleUndefined.kt"); + } + + @TestMetadata("typeof.kt") + public void testTypeof() throws Exception { + runTest("js/js.translator/testData/box/native/typeof.kt"); + } + + @TestMetadata("undefined.kt") + public void testUndefined() throws Exception { + runTest("js/js.translator/testData/box/native/undefined.kt"); + } + + @TestMetadata("useClassFromInlineFun.kt") + public void testUseClassFromInlineFun() throws Exception { + runTest("js/js.translator/testData/box/native/useClassFromInlineFun.kt"); + } + + @TestMetadata("vararg.kt") + public void testVararg() throws Exception { + runTest("js/js.translator/testData/box/native/vararg.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/nestedTypes") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NestedTypes extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNestedTypes() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/nestedTypes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("implicitOuterThisFromLambda.kt") + public void testImplicitOuterThisFromLambda() throws Exception { + runTest("js/js.translator/testData/box/nestedTypes/implicitOuterThisFromLambda.kt"); + } + + @TestMetadata("implicitOuterThisFromLocalClass.kt") + public void testImplicitOuterThisFromLocalClass() throws Exception { + runTest("js/js.translator/testData/box/nestedTypes/implicitOuterThisFromLocalClass.kt"); + } + + @TestMetadata("inheritanceFromNestedBuiltIn.kt") + public void testInheritanceFromNestedBuiltIn() throws Exception { + runTest("js/js.translator/testData/box/nestedTypes/inheritanceFromNestedBuiltIn.kt"); + } + + @TestMetadata("inner.kt") + public void testInner() throws Exception { + runTest("js/js.translator/testData/box/nestedTypes/inner.kt"); + } + + @TestMetadata("innerObjectRefFromConstructor.kt") + public void testInnerObjectRefFromConstructor() throws Exception { + runTest("js/js.translator/testData/box/nestedTypes/innerObjectRefFromConstructor.kt"); + } + + @TestMetadata("innerReferenceFromChild.kt") + public void testInnerReferenceFromChild() throws Exception { + runTest("js/js.translator/testData/box/nestedTypes/innerReferenceFromChild.kt"); + } + + @TestMetadata("nested.kt") + public void testNested() throws Exception { + runTest("js/js.translator/testData/box/nestedTypes/nested.kt"); + } + + @TestMetadata("nestedInInterface.kt") + public void testNestedInInterface() throws Exception { + runTest("js/js.translator/testData/box/nestedTypes/nestedInInterface.kt"); + } + + @TestMetadata("nestedObjectLazyInitialized.kt") + public void testNestedObjectLazyInitialized() throws Exception { + runTest("js/js.translator/testData/box/nestedTypes/nestedObjectLazyInitialized.kt"); + } + + @TestMetadata("outerClassReferenceFromSecondaryConstructor.kt") + public void testOuterClassReferenceFromSecondaryConstructor() throws Exception { + runTest("js/js.translator/testData/box/nestedTypes/outerClassReferenceFromSecondaryConstructor.kt"); + } + + @TestMetadata("outerCompanion.kt") + public void testOuterCompanion() throws Exception { + runTest("js/js.translator/testData/box/nestedTypes/outerCompanion.kt"); + } + + @TestMetadata("outerNative.kt") + public void testOuterNative() throws Exception { + runTest("js/js.translator/testData/box/nestedTypes/outerNative.kt"); + } + + @TestMetadata("outerObject.kt") + public void testOuterObject() throws Exception { + runTest("js/js.translator/testData/box/nestedTypes/outerObject.kt"); + } + + @TestMetadata("outerThis.kt") + public void testOuterThis() throws Exception { + runTest("js/js.translator/testData/box/nestedTypes/outerThis.kt"); + } + + @TestMetadata("privateFieldNotOverridenInNestedSubclass.kt") + public void testPrivateFieldNotOverridenInNestedSubclass() throws Exception { + runTest("js/js.translator/testData/box/nestedTypes/privateFieldNotOverridenInNestedSubclass.kt"); + } + + @TestMetadata("receivers.kt") + public void testReceivers() throws Exception { + runTest("js/js.translator/testData/box/nestedTypes/receivers.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/number") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Number extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNumber() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/number"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("assignmentIntOverflow.kt") + public void testAssignmentIntOverflow() throws Exception { + runTest("js/js.translator/testData/box/number/assignmentIntOverflow.kt"); + } + + @TestMetadata("byteAndShortConversions.kt") + public void testByteAndShortConversions() throws Exception { + runTest("js/js.translator/testData/box/number/byteAndShortConversions.kt"); + } + + @TestMetadata("constantPropagation.kt") + public void testConstantPropagation() throws Exception { + runTest("js/js.translator/testData/box/number/constantPropagation.kt"); + } + + @TestMetadata("conversionsWithTruncation.kt") + public void testConversionsWithTruncation() throws Exception { + runTest("js/js.translator/testData/box/number/conversionsWithTruncation.kt"); + } + + @TestMetadata("conversionsWithoutTruncation.kt") + public void testConversionsWithoutTruncation() throws Exception { + runTest("js/js.translator/testData/box/number/conversionsWithoutTruncation.kt"); + } + + @TestMetadata("division.kt") + public void testDivision() throws Exception { + runTest("js/js.translator/testData/box/number/division.kt"); + } + + @TestMetadata("doubleConversions.kt") + public void testDoubleConversions() throws Exception { + runTest("js/js.translator/testData/box/number/doubleConversions.kt"); + } + + @TestMetadata("hashCode.kt") + public void testHashCode() throws Exception { + runTest("js/js.translator/testData/box/number/hashCode.kt"); + } + + @TestMetadata("hexadecimalConstant.kt") + public void testHexadecimalConstant() throws Exception { + runTest("js/js.translator/testData/box/number/hexadecimalConstant.kt"); + } + + @TestMetadata("incDecOptimization.kt") + public void testIncDecOptimization() throws Exception { + runTest("js/js.translator/testData/box/number/incDecOptimization.kt"); + } + + @TestMetadata("intConversions.kt") + public void testIntConversions() throws Exception { + runTest("js/js.translator/testData/box/number/intConversions.kt"); + } + + @TestMetadata("intDivFloat.kt") + public void testIntDivFloat() throws Exception { + runTest("js/js.translator/testData/box/number/intDivFloat.kt"); + } + + @TestMetadata("intIncDecOverflow.kt") + public void testIntIncDecOverflow() throws Exception { + runTest("js/js.translator/testData/box/number/intIncDecOverflow.kt"); + } + + @TestMetadata("intOverflow.kt") + public void testIntOverflow() throws Exception { + runTest("js/js.translator/testData/box/number/intOverflow.kt"); + } + + @TestMetadata("kt2342.kt") + public void testKt2342() throws Exception { + runTest("js/js.translator/testData/box/number/kt2342.kt"); + } + + @TestMetadata("kt26706.kt") + public void testKt26706() throws Exception { + runTest("js/js.translator/testData/box/number/kt26706.kt"); + } + + @TestMetadata("longArray.kt") + public void testLongArray() throws Exception { + runTest("js/js.translator/testData/box/number/longArray.kt"); + } + + @TestMetadata("longBinaryOperations.kt") + public void testLongBinaryOperations() throws Exception { + runTest("js/js.translator/testData/box/number/longBinaryOperations.kt"); + } + + @TestMetadata("longBitOperations.kt") + public void testLongBitOperations() throws Exception { + runTest("js/js.translator/testData/box/number/longBitOperations.kt"); + } + + @TestMetadata("longCompareToIntrinsic.kt") + public void testLongCompareToIntrinsic() throws Exception { + runTest("js/js.translator/testData/box/number/longCompareToIntrinsic.kt"); + } + + @TestMetadata("longEqualsIntrinsic.kt") + public void testLongEqualsIntrinsic() throws Exception { + runTest("js/js.translator/testData/box/number/longEqualsIntrinsic.kt"); + } + + @TestMetadata("longHashCode.kt") + public void testLongHashCode() throws Exception { + runTest("js/js.translator/testData/box/number/longHashCode.kt"); + } + + @TestMetadata("longUnaryOperations.kt") + public void testLongUnaryOperations() throws Exception { + runTest("js/js.translator/testData/box/number/longUnaryOperations.kt"); + } + + @TestMetadata("mixedTypesOverflow.kt") + public void testMixedTypesOverflow() throws Exception { + runTest("js/js.translator/testData/box/number/mixedTypesOverflow.kt"); + } + + @TestMetadata("mulInt32.kt") + public void testMulInt32() throws Exception { + runTest("js/js.translator/testData/box/number/mulInt32.kt"); + } + + @TestMetadata("numberCompareTo.kt") + public void testNumberCompareTo() throws Exception { + runTest("js/js.translator/testData/box/number/numberCompareTo.kt"); + } + + @TestMetadata("numberConversions.kt") + public void testNumberConversions() throws Exception { + runTest("js/js.translator/testData/box/number/numberConversions.kt"); + } + + @TestMetadata("numberEquals.kt") + public void testNumberEquals() throws Exception { + runTest("js/js.translator/testData/box/number/numberEquals.kt"); + } + + @TestMetadata("numberIncDec.kt") + public void testNumberIncDec() throws Exception { + runTest("js/js.translator/testData/box/number/numberIncDec.kt"); + } + + @TestMetadata("numberIsCheck.kt") + public void testNumberIsCheck() throws Exception { + runTest("js/js.translator/testData/box/number/numberIsCheck.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/objectDeclaration") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ObjectDeclaration extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInObjectDeclaration() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/objectDeclaration"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("dontPolluteObject.kt") + public void testDontPolluteObject() throws Exception { + runTest("js/js.translator/testData/box/objectDeclaration/dontPolluteObject.kt"); + } + + @TestMetadata("kt3684.kt") + public void testKt3684() throws Exception { + runTest("js/js.translator/testData/box/objectDeclaration/kt3684.kt"); + } + + @TestMetadata("kt37386.kt") + public void testKt37386() throws Exception { + runTest("js/js.translator/testData/box/objectDeclaration/kt37386.kt"); + } + + @TestMetadata("lambdaInObjectInsideObject.kt") + public void testLambdaInObjectInsideObject() throws Exception { + runTest("js/js.translator/testData/box/objectDeclaration/lambdaInObjectInsideObject.kt"); + } + + @TestMetadata("objectDeclaration.kt") + public void testObjectDeclaration() throws Exception { + runTest("js/js.translator/testData/box/objectDeclaration/objectDeclaration.kt"); + } + + @TestMetadata("objectDeclarationWithVars.kt") + public void testObjectDeclarationWithVars() throws Exception { + runTest("js/js.translator/testData/box/objectDeclaration/objectDeclarationWithVars.kt"); + } + + @TestMetadata("objectInMethod.kt") + public void testObjectInMethod() throws Exception { + runTest("js/js.translator/testData/box/objectDeclaration/objectInMethod.kt"); + } + + @TestMetadata("objectInObject.kt") + public void testObjectInObject() throws Exception { + runTest("js/js.translator/testData/box/objectDeclaration/objectInObject.kt"); + } + + @TestMetadata("objectInObjectWithClosure.kt") + public void testObjectInObjectWithClosure() throws Exception { + runTest("js/js.translator/testData/box/objectDeclaration/objectInObjectWithClosure.kt"); + } + + @TestMetadata("objectInheritingFromATrait.kt") + public void testObjectInheritingFromATrait() throws Exception { + runTest("js/js.translator/testData/box/objectDeclaration/objectInheritingFromATrait.kt"); + } + + @TestMetadata("objectInheritingFromClass.kt") + public void testObjectInheritingFromClass() throws Exception { + runTest("js/js.translator/testData/box/objectDeclaration/objectInheritingFromClass.kt"); + } + + @TestMetadata("objectWithMethods.kt") + public void testObjectWithMethods() throws Exception { + runTest("js/js.translator/testData/box/objectDeclaration/objectWithMethods.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/operatorOverloading") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class OperatorOverloading extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInOperatorOverloading() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/operatorOverloading"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("augmentedAssignmentLhs.kt") + public void testAugmentedAssignmentLhs() throws Exception { + runTest("js/js.translator/testData/box/operatorOverloading/augmentedAssignmentLhs.kt"); + } + + @TestMetadata("binaryDivOverload.kt") + public void testBinaryDivOverload() throws Exception { + runTest("js/js.translator/testData/box/operatorOverloading/binaryDivOverload.kt"); + } + + @TestMetadata("compareTo.kt") + public void testCompareTo() throws Exception { + runTest("js/js.translator/testData/box/operatorOverloading/compareTo.kt"); + } + + @TestMetadata("compareToByName.kt") + public void testCompareToByName() throws Exception { + runTest("js/js.translator/testData/box/operatorOverloading/compareToByName.kt"); + } + + @TestMetadata("lambdaRhs.kt") + public void testLambdaRhs() throws Exception { + runTest("js/js.translator/testData/box/operatorOverloading/lambdaRhs.kt"); + } + + @TestMetadata("notOverload.kt") + public void testNotOverload() throws Exception { + runTest("js/js.translator/testData/box/operatorOverloading/notOverload.kt"); + } + + @TestMetadata("operatorOverloadOnPropertyCallGetterAndSetterOnlyOnce.kt") + public void testOperatorOverloadOnPropertyCallGetterAndSetterOnlyOnce() throws Exception { + runTest("js/js.translator/testData/box/operatorOverloading/operatorOverloadOnPropertyCallGetterAndSetterOnlyOnce.kt"); + } + + @TestMetadata("overloadPlusAssignArrayList.kt") + public void testOverloadPlusAssignArrayList() throws Exception { + runTest("js/js.translator/testData/box/operatorOverloading/overloadPlusAssignArrayList.kt"); + } + + @TestMetadata("overloadPlusAssignViaExtensionFunction.kt") + public void testOverloadPlusAssignViaExtensionFunction() throws Exception { + runTest("js/js.translator/testData/box/operatorOverloading/overloadPlusAssignViaExtensionFunction.kt"); + } + + @TestMetadata("overloadPlusAssignViaPlusExtensionFunction.kt") + public void testOverloadPlusAssignViaPlusExtensionFunction() throws Exception { + runTest("js/js.translator/testData/box/operatorOverloading/overloadPlusAssignViaPlusExtensionFunction.kt"); + } + + @TestMetadata("overloadPlusViaExtensionFunction.kt") + public void testOverloadPlusViaExtensionFunction() throws Exception { + runTest("js/js.translator/testData/box/operatorOverloading/overloadPlusViaExtensionFunction.kt"); + } + + @TestMetadata("overloadUnaryOperationsViaExtensionFunctions.kt") + public void testOverloadUnaryOperationsViaExtensionFunctions() throws Exception { + runTest("js/js.translator/testData/box/operatorOverloading/overloadUnaryOperationsViaExtensionFunctions.kt"); + } + + @TestMetadata("overloadedCallOnProperty.kt") + public void testOverloadedCallOnProperty() throws Exception { + runTest("js/js.translator/testData/box/operatorOverloading/overloadedCallOnProperty.kt"); + } + + @TestMetadata("plusAndMinusAsAnExpression.kt") + public void testPlusAndMinusAsAnExpression() throws Exception { + runTest("js/js.translator/testData/box/operatorOverloading/plusAndMinusAsAnExpression.kt"); + } + + @TestMetadata("plusAssignNoReassign.kt") + public void testPlusAssignNoReassign() throws Exception { + runTest("js/js.translator/testData/box/operatorOverloading/plusAssignNoReassign.kt"); + } + + @TestMetadata("plusOverload.kt") + public void testPlusOverload() throws Exception { + runTest("js/js.translator/testData/box/operatorOverloading/plusOverload.kt"); + } + + @TestMetadata("postfixInc.kt") + public void testPostfixInc() throws Exception { + runTest("js/js.translator/testData/box/operatorOverloading/postfixInc.kt"); + } + + @TestMetadata("postfixOnProperty.kt") + public void testPostfixOnProperty() throws Exception { + runTest("js/js.translator/testData/box/operatorOverloading/postfixOnProperty.kt"); + } + + @TestMetadata("prefixDecOverload.kt") + public void testPrefixDecOverload() throws Exception { + runTest("js/js.translator/testData/box/operatorOverloading/prefixDecOverload.kt"); + } + + @TestMetadata("prefixIncReturnsCorrectValue.kt") + public void testPrefixIncReturnsCorrectValue() throws Exception { + runTest("js/js.translator/testData/box/operatorOverloading/prefixIncReturnsCorrectValue.kt"); + } + + @TestMetadata("unaryOnIntProperty.kt") + public void testUnaryOnIntProperty() throws Exception { + runTest("js/js.translator/testData/box/operatorOverloading/unaryOnIntProperty.kt"); + } + + @TestMetadata("unaryOnIntPropertyAsStatement.kt") + public void testUnaryOnIntPropertyAsStatement() throws Exception { + runTest("js/js.translator/testData/box/operatorOverloading/unaryOnIntPropertyAsStatement.kt"); + } + + @TestMetadata("usingModInCaseModAssignNotAvailable.kt") + public void testUsingModInCaseModAssignNotAvailable() throws Exception { + runTest("js/js.translator/testData/box/operatorOverloading/usingModInCaseModAssignNotAvailable.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/package") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Package extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInPackage() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/package"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("classCreatedInDeeplyNestedPackage.kt") + public void testClassCreatedInDeeplyNestedPackage() throws Exception { + runTest("js/js.translator/testData/box/package/classCreatedInDeeplyNestedPackage.kt"); + } + + @TestMetadata("deeplyNestedPackage.kt") + public void testDeeplyNestedPackage() throws Exception { + runTest("js/js.translator/testData/box/package/deeplyNestedPackage.kt"); + } + + @TestMetadata("deeplyNestedPackageFunctionCalled.kt") + public void testDeeplyNestedPackageFunctionCalled() throws Exception { + runTest("js/js.translator/testData/box/package/deeplyNestedPackageFunctionCalled.kt"); + } + + @TestMetadata("initializersOfNestedPackagesExecute.kt") + public void testInitializersOfNestedPackagesExecute() throws Exception { + runTest("js/js.translator/testData/box/package/initializersOfNestedPackagesExecute.kt"); + } + + @TestMetadata("nestedPackage.kt") + public void testNestedPackage() throws Exception { + runTest("js/js.translator/testData/box/package/nestedPackage.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/propertyAccess") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class PropertyAccess extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("accessToInstanceProperty.kt") + public void testAccessToInstanceProperty() throws Exception { + runTest("js/js.translator/testData/box/propertyAccess/accessToInstanceProperty.kt"); + } + + public void testAllFilesPresentInPropertyAccess() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/propertyAccess"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("classUsesPackageProperties.kt") + public void testClassUsesPackageProperties() throws Exception { + runTest("js/js.translator/testData/box/propertyAccess/classUsesPackageProperties.kt"); + } + + @TestMetadata("configurable.kt") + public void testConfigurable() throws Exception { + runTest("js/js.translator/testData/box/propertyAccess/configurable.kt"); + } + + @TestMetadata("customGetter.kt") + public void testCustomGetter() throws Exception { + runTest("js/js.translator/testData/box/propertyAccess/customGetter.kt"); + } + + @TestMetadata("customSetter.kt") + public void testCustomSetter() throws Exception { + runTest("js/js.translator/testData/box/propertyAccess/customSetter.kt"); + } + + @TestMetadata("enumerable.kt") + public void testEnumerable() throws Exception { + runTest("js/js.translator/testData/box/propertyAccess/enumerable.kt"); + } + + @TestMetadata("extensionLiteralSafeCall.kt") + public void testExtensionLiteralSafeCall() throws Exception { + runTest("js/js.translator/testData/box/propertyAccess/extensionLiteralSafeCall.kt"); + } + + @TestMetadata("field.kt") + public void testField() throws Exception { + runTest("js/js.translator/testData/box/propertyAccess/field.kt"); + } + + @TestMetadata("initInstanceProperties.kt") + public void testInitInstanceProperties() throws Exception { + runTest("js/js.translator/testData/box/propertyAccess/initInstanceProperties.kt"); + } + + @TestMetadata("initValInConstructor.kt") + public void testInitValInConstructor() throws Exception { + runTest("js/js.translator/testData/box/propertyAccess/initValInConstructor.kt"); + } + + @TestMetadata("overloadedOverriddenFunctionPropertyName.kt") + public void testOverloadedOverriddenFunctionPropertyName() throws Exception { + runTest("js/js.translator/testData/box/propertyAccess/overloadedOverriddenFunctionPropertyName.kt"); + } + + @TestMetadata("packageCustomAccessors.kt") + public void testPackageCustomAccessors() throws Exception { + runTest("js/js.translator/testData/box/propertyAccess/packageCustomAccessors.kt"); + } + + @TestMetadata("packagePropertyInitializer.kt") + public void testPackagePropertyInitializer() throws Exception { + runTest("js/js.translator/testData/box/propertyAccess/packagePropertyInitializer.kt"); + } + + @TestMetadata("packagePropertySet.kt") + public void testPackagePropertySet() throws Exception { + runTest("js/js.translator/testData/box/propertyAccess/packagePropertySet.kt"); + } + + @TestMetadata("privateClassesWithPrivateMembers.kt") + public void testPrivateClassesWithPrivateMembers() throws Exception { + runTest("js/js.translator/testData/box/propertyAccess/privateClassesWithPrivateMembers.kt"); + } + + @TestMetadata("privatePropertyAccessFromMethod.kt") + public void testPrivatePropertyAccessFromMethod() throws Exception { + runTest("js/js.translator/testData/box/propertyAccess/privatePropertyAccessFromMethod.kt"); + } + + @TestMetadata("propertyAssignment.kt") + public void testPropertyAssignment() throws Exception { + runTest("js/js.translator/testData/box/propertyAccess/propertyAssignment.kt"); + } + + @TestMetadata("publicNameClash.kt") + public void testPublicNameClash() throws Exception { + runTest("js/js.translator/testData/box/propertyAccess/publicNameClash.kt"); + } + + @TestMetadata("setter.kt") + public void testSetter() throws Exception { + runTest("js/js.translator/testData/box/propertyAccess/setter.kt"); + } + + @TestMetadata("simpleLateInitIsInitialized.kt") + public void testSimpleLateInitIsInitialized() throws Exception { + runTest("js/js.translator/testData/box/propertyAccess/simpleLateInitIsInitialized.kt"); + } + + @TestMetadata("staticAccessorsWithJsName.kt") + public void testStaticAccessorsWithJsName() throws Exception { + runTest("js/js.translator/testData/box/propertyAccess/staticAccessorsWithJsName.kt"); + } + + @TestMetadata("subclassAccessorsWithJsNameInSuper.kt") + public void testSubclassAccessorsWithJsNameInSuper() throws Exception { + runTest("js/js.translator/testData/box/propertyAccess/subclassAccessorsWithJsNameInSuper.kt"); + } + + @TestMetadata("twoClassesWithProperties.kt") + public void testTwoClassesWithProperties() throws Exception { + runTest("js/js.translator/testData/box/propertyAccess/twoClassesWithProperties.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/propertyOverride") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class PropertyOverride extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInPropertyOverride() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/propertyOverride"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("checkSupertypeOrder.kt") + public void testCheckSupertypeOrder() throws Exception { + runTest("js/js.translator/testData/box/propertyOverride/checkSupertypeOrder.kt"); + } + + @TestMetadata("initOverrideInConstructor.kt") + public void testInitOverrideInConstructor() throws Exception { + runTest("js/js.translator/testData/box/propertyOverride/initOverrideInConstructor.kt"); + } + + @TestMetadata("initOverrideInConstructorComplex.kt") + public void testInitOverrideInConstructorComplex() throws Exception { + runTest("js/js.translator/testData/box/propertyOverride/initOverrideInConstructorComplex.kt"); + } + + @TestMetadata("initOverrideInConstructorExplicitThis.kt") + public void testInitOverrideInConstructorExplicitThis() throws Exception { + runTest("js/js.translator/testData/box/propertyOverride/initOverrideInConstructorExplicitThis.kt"); + } + + @TestMetadata("initOverrideVarInConstructor.kt") + public void testInitOverrideVarInConstructor() throws Exception { + runTest("js/js.translator/testData/box/propertyOverride/initOverrideVarInConstructor.kt"); + } + + @TestMetadata("overloadPrivateVal.kt") + public void testOverloadPrivateVal() throws Exception { + runTest("js/js.translator/testData/box/propertyOverride/overloadPrivateVal.kt"); + } + + @TestMetadata("overrideExtensionProperty.kt") + public void testOverrideExtensionProperty() throws Exception { + runTest("js/js.translator/testData/box/propertyOverride/overrideExtensionProperty.kt"); + } + + @TestMetadata("overrideNotDirectlySuper.kt") + public void testOverrideNotDirectlySuper() throws Exception { + runTest("js/js.translator/testData/box/propertyOverride/overrideNotDirectlySuper.kt"); + } + + @TestMetadata("overrideValFromTraits.kt") + public void testOverrideValFromTraits() throws Exception { + runTest("js/js.translator/testData/box/propertyOverride/overrideValFromTraits.kt"); + } + + @TestMetadata("overrideValWithBackendFiled.kt") + public void testOverrideValWithBackendFiled() throws Exception { + runTest("js/js.translator/testData/box/propertyOverride/overrideValWithBackendFiled.kt"); + } + + @TestMetadata("simpleOverride.kt") + public void testSimpleOverride() throws Exception { + runTest("js/js.translator/testData/box/propertyOverride/simpleOverride.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/range") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Range extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInRange() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/range"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("creatingProgressions.kt") + public void testCreatingProgressions() throws Exception { + runTest("js/js.translator/testData/box/range/creatingProgressions.kt"); + } + + @TestMetadata("explicitRange.kt") + public void testExplicitRange() throws Exception { + runTest("js/js.translator/testData/box/range/explicitRange.kt"); + } + + @TestMetadata("intDownTo.kt") + public void testIntDownTo() throws Exception { + runTest("js/js.translator/testData/box/range/intDownTo.kt"); + } + + @TestMetadata("intInRange.kt") + public void testIntInRange() throws Exception { + runTest("js/js.translator/testData/box/range/intInRange.kt"); + } + + @TestMetadata("intUpTo.kt") + public void testIntUpTo() throws Exception { + runTest("js/js.translator/testData/box/range/intUpTo.kt"); + } + + @TestMetadata("iteratingOverRanges.kt") + public void testIteratingOverRanges() throws Exception { + runTest("js/js.translator/testData/box/range/iteratingOverRanges.kt"); + } + + @TestMetadata("numberRangesOptimized.kt") + public void testNumberRangesOptimized() throws Exception { + runTest("js/js.translator/testData/box/range/numberRangesOptimized.kt"); + } + + @TestMetadata("rangeEquals.kt") + public void testRangeEquals() throws Exception { + runTest("js/js.translator/testData/box/range/rangeEquals.kt"); + } + + @TestMetadata("rangeSugarSyntax.kt") + public void testRangeSugarSyntax() throws Exception { + runTest("js/js.translator/testData/box/range/rangeSugarSyntax.kt"); + } + + @TestMetadata("rangeToDoesNotIterate.kt") + public void testRangeToDoesNotIterate() throws Exception { + runTest("js/js.translator/testData/box/range/rangeToDoesNotIterate.kt"); + } + + @TestMetadata("reverse.kt") + public void testReverse() throws Exception { + runTest("js/js.translator/testData/box/range/reverse.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/reflection") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Reflection extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInReflection() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/reflection"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("classJsName.kt") + public void testClassJsName() throws Exception { + runTest("js/js.translator/testData/box/reflection/classJsName.kt"); + } + + @TestMetadata("external.kt") + public void testExternal() throws Exception { + runTest("js/js.translator/testData/box/reflection/external.kt"); + } + + @TestMetadata("findAssociatedObject.kt") + public void testFindAssociatedObject() throws Exception { + runTest("js/js.translator/testData/box/reflection/findAssociatedObject.kt"); + } + + @TestMetadata("findAssociatedObject_oldBE.kt") + public void testFindAssociatedObject_oldBE() throws Exception { + runTest("js/js.translator/testData/box/reflection/findAssociatedObject_oldBE.kt"); + } + + @TestMetadata("kClass.kt") + public void testKClass() throws Exception { + runTest("js/js.translator/testData/box/reflection/kClass.kt"); + } + + @TestMetadata("kClassIsInstance.kt") + public void testKClassIsInstance() throws Exception { + runTest("js/js.translator/testData/box/reflection/kClassIsInstance.kt"); + } + + @TestMetadata("kClassOnReifiedType.kt") + public void testKClassOnReifiedType() throws Exception { + runTest("js/js.translator/testData/box/reflection/kClassOnReifiedType.kt"); + } + + @TestMetadata("kClassOnReifiedTypeInLambda.kt") + public void testKClassOnReifiedTypeInLambda() throws Exception { + runTest("js/js.translator/testData/box/reflection/kClassOnReifiedTypeInLambda.kt"); + } + + @TestMetadata("kClassOnReifiedTypeInLambda-advanced.kt") + public void testKClassOnReifiedTypeInLambda_advanced() throws Exception { + runTest("js/js.translator/testData/box/reflection/kClassOnReifiedTypeInLambda-advanced.kt"); + } + + @TestMetadata("kClassSimpleName.kt") + public void testKClassSimpleName() throws Exception { + runTest("js/js.translator/testData/box/reflection/kClassSimpleName.kt"); + } + + @TestMetadata("kClassToAndFromJsClass.kt") + public void testKClassToAndFromJsClass() throws Exception { + runTest("js/js.translator/testData/box/reflection/kClassToAndFromJsClass.kt"); + } + + @TestMetadata("primitiveKClassOnReifiedType.kt") + public void testPrimitiveKClassOnReifiedType() throws Exception { + runTest("js/js.translator/testData/box/reflection/primitiveKClassOnReifiedType.kt"); + } + + @TestMetadata("primitives.kt") + public void testPrimitives() throws Exception { + runTest("js/js.translator/testData/box/reflection/primitives.kt"); + } + + @TestMetadata("primitives-11.kt") + public void testPrimitives_11() throws Exception { + runTest("js/js.translator/testData/box/reflection/primitives-11.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/regression") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Regression extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInRegression() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/regression"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("companionObjectInExternalInterface.kt") + public void testCompanionObjectInExternalInterface() throws Exception { + runTest("js/js.translator/testData/box/regression/companionObjectInExternalInterface.kt"); + } + + @TestMetadata("enumEntryInitOrder.kt") + public void testEnumEntryInitOrder() throws Exception { + runTest("js/js.translator/testData/box/regression/enumEntryInitOrder.kt"); + } + + @TestMetadata("kt2470.kt") + public void testKt2470() throws Exception { + runTest("js/js.translator/testData/box/regression/kt2470.kt"); + } + + @TestMetadata("tmpInsidePrimaryConstructor.kt") + public void testTmpInsidePrimaryConstructor() throws Exception { + runTest("js/js.translator/testData/box/regression/tmpInsidePrimaryConstructor.kt"); + } + + @TestMetadata("wrappers.kt") + public void testWrappers() throws Exception { + runTest("js/js.translator/testData/box/regression/wrappers.kt"); + } + + @TestMetadata("js/js.translator/testData/box/regression/stdlibTestSnippets") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class StdlibTestSnippets extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("abstractCollectionToArray.kt") + public void testAbstractCollectionToArray() throws Exception { + runTest("js/js.translator/testData/box/regression/stdlibTestSnippets/abstractCollectionToArray.kt"); + } + + public void testAllFilesPresentInStdlibTestSnippets() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/regression/stdlibTestSnippets"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("arrayTest_plusInference.kt") + public void testArrayTest_plusInference() throws Exception { + runTest("js/js.translator/testData/box/regression/stdlibTestSnippets/arrayTest_plusInference.kt"); + } + + @TestMetadata("iterableChunked.kt") + public void testIterableChunked() throws Exception { + runTest("js/js.translator/testData/box/regression/stdlibTestSnippets/iterableChunked.kt"); + } + + @TestMetadata("json.kt") + public void testJson() throws Exception { + runTest("js/js.translator/testData/box/regression/stdlibTestSnippets/json.kt"); + } + + @TestMetadata("throwable.kt") + public void testThrowable() throws Exception { + runTest("js/js.translator/testData/box/regression/stdlibTestSnippets/throwable.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/regression/typeChecks") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class TypeChecks extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInTypeChecks() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/regression/typeChecks"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("booleanOperatorsTypes.kt") + public void testBooleanOperatorsTypes() throws Exception { + runTest("js/js.translator/testData/box/regression/typeChecks/booleanOperatorsTypes.kt"); + } + + @TestMetadata("emptyVarargInConstructorCall.kt") + public void testEmptyVarargInConstructorCall() throws Exception { + runTest("js/js.translator/testData/box/regression/typeChecks/emptyVarargInConstructorCall.kt"); + } + + @TestMetadata("taggedArrayCopy.kt") + public void testTaggedArrayCopy() throws Exception { + runTest("js/js.translator/testData/box/regression/typeChecks/taggedArrayCopy.kt"); + } + + @TestMetadata("toStringExtension.kt") + public void testToStringExtension() throws Exception { + runTest("js/js.translator/testData/box/regression/typeChecks/toStringExtension.kt"); + } + } + } + + @TestMetadata("js/js.translator/testData/box/reified") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Reified extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInReified() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/reified"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("callChain.kt") + public void testCallChain() throws Exception { + runTest("js/js.translator/testData/box/reified/callChain.kt"); + } + + @TestMetadata("capture.kt") + public void testCapture() throws Exception { + runTest("js/js.translator/testData/box/reified/capture.kt"); + } + + @TestMetadata("extensionFun.kt") + public void testExtensionFun() throws Exception { + runTest("js/js.translator/testData/box/reified/extensionFun.kt"); + } + + @TestMetadata("extensionLambda.kt") + public void testExtensionLambda() throws Exception { + runTest("js/js.translator/testData/box/reified/extensionLambda.kt"); + } + + @TestMetadata("extensionMethod.kt") + public void testExtensionMethod() throws Exception { + runTest("js/js.translator/testData/box/reified/extensionMethod.kt"); + } + + @TestMetadata("innerObject.kt") + public void testInnerObject() throws Exception { + runTest("js/js.translator/testData/box/reified/innerObject.kt"); + } + + @TestMetadata("isBool.kt") + public void testIsBool() throws Exception { + runTest("js/js.translator/testData/box/reified/isBool.kt"); + } + + @TestMetadata("isChar.kt") + public void testIsChar() throws Exception { + runTest("js/js.translator/testData/box/reified/isChar.kt"); + } + + @TestMetadata("isClass.kt") + public void testIsClass() throws Exception { + runTest("js/js.translator/testData/box/reified/isClass.kt"); + } + + @TestMetadata("isNumber.kt") + public void testIsNumber() throws Exception { + runTest("js/js.translator/testData/box/reified/isNumber.kt"); + } + + @TestMetadata("isString.kt") + public void testIsString() throws Exception { + runTest("js/js.translator/testData/box/reified/isString.kt"); + } + + @TestMetadata("isTNullable.kt") + public void testIsTNullable() throws Exception { + runTest("js/js.translator/testData/box/reified/isTNullable.kt"); + } + + @TestMetadata("lambda.kt") + public void testLambda() throws Exception { + runTest("js/js.translator/testData/box/reified/lambda.kt"); + } + + @TestMetadata("lambdaNameClash.kt") + public void testLambdaNameClash() throws Exception { + runTest("js/js.translator/testData/box/reified/lambdaNameClash.kt"); + } + + @TestMetadata("method.kt") + public void testMethod() throws Exception { + runTest("js/js.translator/testData/box/reified/method.kt"); + } + + @TestMetadata("multipleTypeParameters.kt") + public void testMultipleTypeParameters() throws Exception { + runTest("js/js.translator/testData/box/reified/multipleTypeParameters.kt"); + } + + @TestMetadata("noValueParameters.kt") + public void testNoValueParameters() throws Exception { + runTest("js/js.translator/testData/box/reified/noValueParameters.kt"); + } + + @TestMetadata("parameterSwap.kt") + public void testParameterSwap() throws Exception { + runTest("js/js.translator/testData/box/reified/parameterSwap.kt"); + } + + @TestMetadata("vararg.kt") + public void testVararg() throws Exception { + runTest("js/js.translator/testData/box/reified/vararg.kt"); + } + + @TestMetadata("withInlineTurnedOff.kt") + public void testWithInlineTurnedOff() throws Exception { + runTest("js/js.translator/testData/box/reified/withInlineTurnedOff.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/rtti") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Rtti extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInRtti() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/rtti"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("collectionClassesIsCheck.kt") + public void testCollectionClassesIsCheck() throws Exception { + runTest("js/js.translator/testData/box/rtti/collectionClassesIsCheck.kt"); + } + + @TestMetadata("exceptionIsInterface.kt") + public void testExceptionIsInterface() throws Exception { + runTest("js/js.translator/testData/box/rtti/exceptionIsInterface.kt"); + } + + @TestMetadata("isComparable.kt") + public void testIsComparable() throws Exception { + runTest("js/js.translator/testData/box/rtti/isComparable.kt"); + } + + @TestMetadata("isJsPrimitiveNullableType.kt") + public void testIsJsPrimitiveNullableType() throws Exception { + runTest("js/js.translator/testData/box/rtti/isJsPrimitiveNullableType.kt"); + } + + @TestMetadata("isJsPrimitiveType.kt") + public void testIsJsPrimitiveType() throws Exception { + runTest("js/js.translator/testData/box/rtti/isJsPrimitiveType.kt"); + } + + @TestMetadata("isObject.kt") + public void testIsObject() throws Exception { + runTest("js/js.translator/testData/box/rtti/isObject.kt"); + } + + @TestMetadata("isReifiedObject.kt") + public void testIsReifiedObject() throws Exception { + runTest("js/js.translator/testData/box/rtti/isReifiedObject.kt"); + } + + @TestMetadata("isSameClass.kt") + public void testIsSameClass() throws Exception { + runTest("js/js.translator/testData/box/rtti/isSameClass.kt"); + } + + @TestMetadata("notIsOtherClass.kt") + public void testNotIsOtherClass() throws Exception { + runTest("js/js.translator/testData/box/rtti/notIsOtherClass.kt"); + } + + @TestMetadata("objectExpression.kt") + public void testObjectExpression() throws Exception { + runTest("js/js.translator/testData/box/rtti/objectExpression.kt"); + } + + @TestMetadata("onNativeObject.kt") + public void testOnNativeObject() throws Exception { + runTest("js/js.translator/testData/box/rtti/onNativeObject.kt"); + } + + @TestMetadata("prototypeUsedToFindInterface.kt") + public void testPrototypeUsedToFindInterface() throws Exception { + runTest("js/js.translator/testData/box/rtti/prototypeUsedToFindInterface.kt"); + } + + @TestMetadata("rttiForClass.kt") + public void testRttiForClass() throws Exception { + runTest("js/js.translator/testData/box/rtti/rttiForClass.kt"); + } + + @TestMetadata("rttiForTrait.kt") + public void testRttiForTrait() throws Exception { + runTest("js/js.translator/testData/box/rtti/rttiForTrait.kt"); + } + + @TestMetadata("rttiForTrait2.kt") + public void testRttiForTrait2() throws Exception { + runTest("js/js.translator/testData/box/rtti/rttiForTrait2.kt"); + } + + @TestMetadata("sideEffectMethod.kt") + public void testSideEffectMethod() throws Exception { + runTest("js/js.translator/testData/box/rtti/sideEffectMethod.kt"); + } + + @TestMetadata("sideEffectProperty.kt") + public void testSideEffectProperty() throws Exception { + runTest("js/js.translator/testData/box/rtti/sideEffectProperty.kt"); + } + + @TestMetadata("stdlibEmptyListClass.kt") + public void testStdlibEmptyListClass() throws Exception { + runTest("js/js.translator/testData/box/rtti/stdlibEmptyListClass.kt"); + } + + @TestMetadata("subclassOfNativeIsInterface.kt") + public void testSubclassOfNativeIsInterface() throws Exception { + runTest("js/js.translator/testData/box/rtti/subclassOfNativeIsInterface.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/safeCall") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class SafeCall extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSafeCall() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/safeCall"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("redundantSafeAccess.kt") + public void testRedundantSafeAccess() throws Exception { + runTest("js/js.translator/testData/box/safeCall/redundantSafeAccess.kt"); + } + + @TestMetadata("safeAccess.kt") + public void testSafeAccess() throws Exception { + runTest("js/js.translator/testData/box/safeCall/safeAccess.kt"); + } + + @TestMetadata("safeCall.kt") + public void testSafeCall() throws Exception { + runTest("js/js.translator/testData/box/safeCall/safeCall.kt"); + } + + @TestMetadata("safeCallAndIntrinsic.kt") + public void testSafeCallAndIntrinsic() throws Exception { + runTest("js/js.translator/testData/box/safeCall/safeCallAndIntrinsic.kt"); + } + + @TestMetadata("safeCallAndSideEffect.kt") + public void testSafeCallAndSideEffect() throws Exception { + runTest("js/js.translator/testData/box/safeCall/safeCallAndSideEffect.kt"); + } + + @TestMetadata("safeCallReturnsNullIfFails.kt") + public void testSafeCallReturnsNullIfFails() throws Exception { + runTest("js/js.translator/testData/box/safeCall/safeCallReturnsNullIfFails.kt"); + } + + @TestMetadata("safeExtensionFunctionCall.kt") + public void testSafeExtensionFunctionCall() throws Exception { + runTest("js/js.translator/testData/box/safeCall/safeExtensionFunctionCall.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/simple") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Simple extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSimple() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/simple"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("assign.kt") + public void testAssign() throws Exception { + runTest("js/js.translator/testData/box/simple/assign.kt"); + } + + @TestMetadata("breakDoWhile.kt") + public void testBreakDoWhile() throws Exception { + runTest("js/js.translator/testData/box/simple/breakDoWhile.kt"); + } + + @TestMetadata("breakWhile.kt") + public void testBreakWhile() throws Exception { + runTest("js/js.translator/testData/box/simple/breakWhile.kt"); + } + + @TestMetadata("classInstantiation.kt") + public void testClassInstantiation() throws Exception { + runTest("js/js.translator/testData/box/simple/classInstantiation.kt"); + } + + @TestMetadata("comparison.kt") + public void testComparison() throws Exception { + runTest("js/js.translator/testData/box/simple/comparison.kt"); + } + + @TestMetadata("complexExpressionAsConstructorParameter.kt") + public void testComplexExpressionAsConstructorParameter() throws Exception { + runTest("js/js.translator/testData/box/simple/complexExpressionAsConstructorParameter.kt"); + } + + @TestMetadata("constructorWithParameter.kt") + public void testConstructorWithParameter() throws Exception { + runTest("js/js.translator/testData/box/simple/constructorWithParameter.kt"); + } + + @TestMetadata("constructorWithPropertiesAsParameters.kt") + public void testConstructorWithPropertiesAsParameters() throws Exception { + runTest("js/js.translator/testData/box/simple/constructorWithPropertiesAsParameters.kt"); + } + + @TestMetadata("continueDoWhile.kt") + public void testContinueDoWhile() throws Exception { + runTest("js/js.translator/testData/box/simple/continueDoWhile.kt"); + } + + @TestMetadata("continueWhile.kt") + public void testContinueWhile() throws Exception { + runTest("js/js.translator/testData/box/simple/continueWhile.kt"); + } + + @TestMetadata("doWhile.kt") + public void testDoWhile() throws Exception { + runTest("js/js.translator/testData/box/simple/doWhile.kt"); + } + + @TestMetadata("doWhile2.kt") + public void testDoWhile2() throws Exception { + runTest("js/js.translator/testData/box/simple/doWhile2.kt"); + } + + @TestMetadata("elseif.kt") + public void testElseif() throws Exception { + runTest("js/js.translator/testData/box/simple/elseif.kt"); + } + + @TestMetadata("if.kt") + public void testIf() throws Exception { + runTest("js/js.translator/testData/box/simple/if.kt"); + } + + @TestMetadata("ifElseAsExpression.kt") + public void testIfElseAsExpression() throws Exception { + runTest("js/js.translator/testData/box/simple/ifElseAsExpression.kt"); + } + + @TestMetadata("methodDeclarationAndCall.kt") + public void testMethodDeclarationAndCall() throws Exception { + runTest("js/js.translator/testData/box/simple/methodDeclarationAndCall.kt"); + } + + @TestMetadata("minusAssignOnProperty.kt") + public void testMinusAssignOnProperty() throws Exception { + runTest("js/js.translator/testData/box/simple/minusAssignOnProperty.kt"); + } + + @TestMetadata("notBoolean.kt") + public void testNotBoolean() throws Exception { + runTest("js/js.translator/testData/box/simple/notBoolean.kt"); + } + + @TestMetadata("plusAssign.kt") + public void testPlusAssign() throws Exception { + runTest("js/js.translator/testData/box/simple/plusAssign.kt"); + } + + @TestMetadata("positiveAndNegativeNumbers.kt") + public void testPositiveAndNegativeNumbers() throws Exception { + runTest("js/js.translator/testData/box/simple/positiveAndNegativeNumbers.kt"); + } + + @TestMetadata("postfixIntOperations.kt") + public void testPostfixIntOperations() throws Exception { + runTest("js/js.translator/testData/box/simple/postfixIntOperations.kt"); + } + + @TestMetadata("prefixIntOperations.kt") + public void testPrefixIntOperations() throws Exception { + runTest("js/js.translator/testData/box/simple/prefixIntOperations.kt"); + } + + @TestMetadata("primCtorDelegation1.kt") + public void testPrimCtorDelegation1() throws Exception { + runTest("js/js.translator/testData/box/simple/primCtorDelegation1.kt"); + } + + @TestMetadata("propertiesAsParametersInitialized.kt") + public void testPropertiesAsParametersInitialized() throws Exception { + runTest("js/js.translator/testData/box/simple/propertiesAsParametersInitialized.kt"); + } + + @TestMetadata("propertyAccess.kt") + public void testPropertyAccess() throws Exception { + runTest("js/js.translator/testData/box/simple/propertyAccess.kt"); + } + + @TestMetadata("secCtorDelegation1.kt") + public void testSecCtorDelegation1() throws Exception { + runTest("js/js.translator/testData/box/simple/secCtorDelegation1.kt"); + } + + @TestMetadata("secCtorDelegation2.kt") + public void testSecCtorDelegation2() throws Exception { + runTest("js/js.translator/testData/box/simple/secCtorDelegation2.kt"); + } + + @TestMetadata("secCtorDelegation3.kt") + public void testSecCtorDelegation3() throws Exception { + runTest("js/js.translator/testData/box/simple/secCtorDelegation3.kt"); + } + + @TestMetadata("secCtorDelegation4.kt") + public void testSecCtorDelegation4() throws Exception { + runTest("js/js.translator/testData/box/simple/secCtorDelegation4.kt"); + } + + @TestMetadata("simpleInitializer.kt") + public void testSimpleInitializer() throws Exception { + runTest("js/js.translator/testData/box/simple/simpleInitializer.kt"); + } + + @TestMetadata("while.kt") + public void testWhile() throws Exception { + runTest("js/js.translator/testData/box/simple/while.kt"); + } + + @TestMetadata("while2.kt") + public void testWhile2() throws Exception { + runTest("js/js.translator/testData/box/simple/while2.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/standardClasses") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class StandardClasses extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInStandardClasses() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/standardClasses"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("any.kt") + public void testAny() throws Exception { + runTest("js/js.translator/testData/box/standardClasses/any.kt"); + } + + @TestMetadata("array.kt") + public void testArray() throws Exception { + runTest("js/js.translator/testData/box/standardClasses/array.kt"); + } + + @TestMetadata("arrayAccess.kt") + public void testArrayAccess() throws Exception { + runTest("js/js.translator/testData/box/standardClasses/arrayAccess.kt"); + } + + @TestMetadata("arrayConstructorsWithLambda.kt") + public void testArrayConstructorsWithLambda() throws Exception { + runTest("js/js.translator/testData/box/standardClasses/arrayConstructorsWithLambda.kt"); + } + + @TestMetadata("arrayFactoryMethods.kt") + public void testArrayFactoryMethods() throws Exception { + runTest("js/js.translator/testData/box/standardClasses/arrayFactoryMethods.kt"); + } + + @TestMetadata("arrayFunctionConstructor.kt") + public void testArrayFunctionConstructor() throws Exception { + runTest("js/js.translator/testData/box/standardClasses/arrayFunctionConstructor.kt"); + } + + @TestMetadata("arrayIsFilledWithNulls.kt") + public void testArrayIsFilledWithNulls() throws Exception { + runTest("js/js.translator/testData/box/standardClasses/arrayIsFilledWithNulls.kt"); + } + + @TestMetadata("arraySize.kt") + public void testArraySize() throws Exception { + runTest("js/js.translator/testData/box/standardClasses/arraySize.kt"); + } + + @TestMetadata("arraySort.kt") + public void testArraySort() throws Exception { + runTest("js/js.translator/testData/box/standardClasses/arraySort.kt"); + } + + @TestMetadata("arraysIterator.kt") + public void testArraysIterator() throws Exception { + runTest("js/js.translator/testData/box/standardClasses/arraysIterator.kt"); + } + + @TestMetadata("charArrayGetSet.kt") + public void testCharArrayGetSet() throws Exception { + runTest("js/js.translator/testData/box/standardClasses/charArrayGetSet.kt"); + } + + @TestMetadata("hashMapTypeOfElement.kt") + public void testHashMapTypeOfElement() throws Exception { + runTest("js/js.translator/testData/box/standardClasses/hashMapTypeOfElement.kt"); + } + + @TestMetadata("hashSetTypeOfElement.kt") + public void testHashSetTypeOfElement() throws Exception { + runTest("js/js.translator/testData/box/standardClasses/hashSetTypeOfElement.kt"); + } + + @TestMetadata("mutableMapRemoveWithCollision.kt") + public void testMutableMapRemoveWithCollision() throws Exception { + runTest("js/js.translator/testData/box/standardClasses/mutableMapRemoveWithCollision.kt"); + } + + @TestMetadata("stringBuilder.kt") + public void testStringBuilder() throws Exception { + runTest("js/js.translator/testData/box/standardClasses/stringBuilder.kt"); + } + + @TestMetadata("stringPlus.kt") + public void testStringPlus() throws Exception { + runTest("js/js.translator/testData/box/standardClasses/stringPlus.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/superCall") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class SuperCall extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSuperCall() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/superCall"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("classSuperCall.kt") + public void testClassSuperCall() throws Exception { + runTest("js/js.translator/testData/box/superCall/classSuperCall.kt"); + } + + @TestMetadata("intrinsic.kt") + public void testIntrinsic() throws Exception { + runTest("js/js.translator/testData/box/superCall/intrinsic.kt"); + } + + @TestMetadata("nativeSuperClass.kt") + public void testNativeSuperClass() throws Exception { + runTest("js/js.translator/testData/box/superCall/nativeSuperClass.kt"); + } + + @TestMetadata("propertySuperAccess.kt") + public void testPropertySuperAccess() throws Exception { + runTest("js/js.translator/testData/box/superCall/propertySuperAccess.kt"); + } + + @TestMetadata("traitSuperCall.kt") + public void testTraitSuperCall() throws Exception { + runTest("js/js.translator/testData/box/superCall/traitSuperCall.kt"); + } + } + + @TestMetadata("js/js.translator/testData/box/trait") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Trait extends AbstractIrBoxJsES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInTrait() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/trait"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("checkImplementationCharacteristics.kt") + public void testCheckImplementationCharacteristics() throws Exception { + runTest("js/js.translator/testData/box/trait/checkImplementationCharacteristics.kt"); + } + + @TestMetadata("classDerivesFromClassAndTrait.kt") + public void testClassDerivesFromClassAndTrait() throws Exception { + runTest("js/js.translator/testData/box/trait/classDerivesFromClassAndTrait.kt"); + } + + @TestMetadata("classDerivesFromTraitAndClass.kt") + public void testClassDerivesFromTraitAndClass() throws Exception { + runTest("js/js.translator/testData/box/trait/classDerivesFromTraitAndClass.kt"); + } + + @TestMetadata("definitionOrder.kt") + public void testDefinitionOrder() throws Exception { + runTest("js/js.translator/testData/box/trait/definitionOrder.kt"); + } + + @TestMetadata("example.kt") + public void testExample() throws Exception { + runTest("js/js.translator/testData/box/trait/example.kt"); + } + + @TestMetadata("funDelegation.kt") + public void testFunDelegation() throws Exception { + runTest("js/js.translator/testData/box/trait/funDelegation.kt"); + } + + @TestMetadata("traitAddsFunctionsToClass.kt") + public void testTraitAddsFunctionsToClass() throws Exception { + runTest("js/js.translator/testData/box/trait/traitAddsFunctionsToClass.kt"); + } + + @TestMetadata("traitExtendsTrait.kt") + public void testTraitExtendsTrait() throws Exception { + runTest("js/js.translator/testData/box/trait/traitExtendsTrait.kt"); + } + + @TestMetadata("traitExtendsTwoTraits.kt") + public void testTraitExtendsTwoTraits() throws Exception { + runTest("js/js.translator/testData/box/trait/traitExtendsTwoTraits.kt"); + } + } +} diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java b/js/js.tests/test/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java new file mode 100644 index 00000000000..48855f63f66 --- /dev/null +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java @@ -0,0 +1,25205 @@ +/* + * Copyright 2010-2020 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.js.test.es6.semantics; + +import com.intellij.testFramework.TestDataPath; +import org.jetbrains.kotlin.test.JUnit3RunnerWithInners; +import org.jetbrains.kotlin.test.KotlinTestUtils; +import org.jetbrains.kotlin.test.TargetBackend; +import org.jetbrains.kotlin.test.TestMetadata; +import org.junit.runner.RunWith; + +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 */ +@SuppressWarnings("all") +@TestMetadata("compiler/testData/codegen/box") +@TestDataPath("$PROJECT_ROOT") +@RunWith(JUnit3RunnerWithInners.class) +public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInBox() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/annotations") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Annotations extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInAnnotations() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("nestedAnnotation.kt") + public void testNestedAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/annotations/nestedAnnotation.kt"); + } + + @TestMetadata("nestedClassesInAnnotations.kt") + public void testNestedClassesInAnnotations() throws Exception { + runTest("compiler/testData/codegen/box/annotations/nestedClassesInAnnotations.kt"); + } + + @TestMetadata("parameters.kt") + public void testParameters() throws Exception { + runTest("compiler/testData/codegen/box/annotations/parameters.kt"); + } + + @TestMetadata("resolveWithLowPriorityAnnotation.kt") + public void testResolveWithLowPriorityAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/annotations/resolveWithLowPriorityAnnotation.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/annotations/annotatedLambda") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class AnnotatedLambda extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInAnnotatedLambda() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations/annotatedLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/annotations/typeAnnotations") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class TypeAnnotations extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInTypeAnnotations() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations/typeAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/argumentOrder") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ArgumentOrder extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInArgumentOrder() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/argumentOrder"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("argumentOrderInObjectSuperCall.kt") + public void testArgumentOrderInObjectSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/argumentOrderInObjectSuperCall.kt"); + } + + @TestMetadata("argumentOrderInSuperCall.kt") + public void testArgumentOrderInSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/argumentOrderInSuperCall.kt"); + } + + @TestMetadata("arguments.kt") + public void testArguments() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/arguments.kt"); + } + + @TestMetadata("captured.kt") + public void testCaptured() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/captured.kt"); + } + + @TestMetadata("capturedInExtension.kt") + public void testCapturedInExtension() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/capturedInExtension.kt"); + } + + @TestMetadata("defaults.kt") + public void testDefaults() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/defaults.kt"); + } + + @TestMetadata("extension.kt") + public void testExtension() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/extension.kt"); + } + + @TestMetadata("extensionInClass.kt") + public void testExtensionInClass() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/extensionInClass.kt"); + } + + @TestMetadata("kt9277.kt") + public void testKt9277() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/kt9277.kt"); + } + + @TestMetadata("lambdaMigration.kt") + public void testLambdaMigration() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/lambdaMigration.kt"); + } + + @TestMetadata("lambdaMigrationInClass.kt") + public void testLambdaMigrationInClass() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/lambdaMigrationInClass.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/simple.kt"); + } + + @TestMetadata("simpleInClass.kt") + public void testSimpleInClass() throws Exception { + runTest("compiler/testData/codegen/box/argumentOrder/simpleInClass.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/arrays") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Arrays extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInArrays() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("arrayConstructorWithNonInlineLambda.kt") + public void testArrayConstructorWithNonInlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/arrays/arrayConstructorWithNonInlineLambda.kt"); + } + + @TestMetadata("arrayConstructorsSimple.kt") + public void testArrayConstructorsSimple() throws Exception { + runTest("compiler/testData/codegen/box/arrays/arrayConstructorsSimple.kt"); + } + + @TestMetadata("arrayGetAssignMultiIndex.kt") + public void testArrayGetAssignMultiIndex() throws Exception { + runTest("compiler/testData/codegen/box/arrays/arrayGetAssignMultiIndex.kt"); + } + + @TestMetadata("arrayGetMultiIndex.kt") + public void testArrayGetMultiIndex() throws Exception { + runTest("compiler/testData/codegen/box/arrays/arrayGetMultiIndex.kt"); + } + + @TestMetadata("arrayInstanceOf.kt") + public void testArrayInstanceOf() throws Exception { + runTest("compiler/testData/codegen/box/arrays/arrayInstanceOf.kt"); + } + + @TestMetadata("arrayPlusAssign.kt") + public void testArrayPlusAssign() throws Exception { + runTest("compiler/testData/codegen/box/arrays/arrayPlusAssign.kt"); + } + + @TestMetadata("arraysAreCloneable.kt") + public void testArraysAreCloneable() throws Exception { + runTest("compiler/testData/codegen/box/arrays/arraysAreCloneable.kt"); + } + + @TestMetadata("cloneArray.kt") + public void testCloneArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/cloneArray.kt"); + } + + @TestMetadata("clonePrimitiveArrays.kt") + public void testClonePrimitiveArrays() throws Exception { + runTest("compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt"); + } + + @TestMetadata("collectionAssignGetMultiIndex.kt") + public void testCollectionAssignGetMultiIndex() throws Exception { + runTest("compiler/testData/codegen/box/arrays/collectionAssignGetMultiIndex.kt"); + } + + @TestMetadata("collectionGetMultiIndex.kt") + public void testCollectionGetMultiIndex() throws Exception { + runTest("compiler/testData/codegen/box/arrays/collectionGetMultiIndex.kt"); + } + + @TestMetadata("forEachBooleanArray.kt") + public void testForEachBooleanArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forEachBooleanArray.kt"); + } + + @TestMetadata("forEachByteArray.kt") + public void testForEachByteArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forEachByteArray.kt"); + } + + @TestMetadata("forEachCharArray.kt") + public void testForEachCharArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forEachCharArray.kt"); + } + + @TestMetadata("forEachDoubleArray.kt") + public void testForEachDoubleArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forEachDoubleArray.kt"); + } + + @TestMetadata("forEachFloatArray.kt") + public void testForEachFloatArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forEachFloatArray.kt"); + } + + @TestMetadata("forEachIntArray.kt") + public void testForEachIntArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forEachIntArray.kt"); + } + + @TestMetadata("forEachLongArray.kt") + public void testForEachLongArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forEachLongArray.kt"); + } + + @TestMetadata("forEachShortArray.kt") + public void testForEachShortArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forEachShortArray.kt"); + } + + @TestMetadata("genericArrayInObjectLiteralConstructor.kt") + public void testGenericArrayInObjectLiteralConstructor() throws Exception { + runTest("compiler/testData/codegen/box/arrays/genericArrayInObjectLiteralConstructor.kt"); + } + + @TestMetadata("hashMap.kt") + public void testHashMap() throws Exception { + runTest("compiler/testData/codegen/box/arrays/hashMap.kt"); + } + + @TestMetadata("inProjectionAsParameter.kt") + public void testInProjectionAsParameter() throws Exception { + runTest("compiler/testData/codegen/box/arrays/inProjectionAsParameter.kt"); + } + + @TestMetadata("inProjectionOfArray.kt") + public void testInProjectionOfArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/inProjectionOfArray.kt"); + } + + @TestMetadata("inProjectionOfList.kt") + public void testInProjectionOfList() throws Exception { + runTest("compiler/testData/codegen/box/arrays/inProjectionOfList.kt"); + } + + @TestMetadata("indices.kt") + public void testIndices() throws Exception { + runTest("compiler/testData/codegen/box/arrays/indices.kt"); + } + + @TestMetadata("indicesChar.kt") + public void testIndicesChar() throws Exception { + runTest("compiler/testData/codegen/box/arrays/indicesChar.kt"); + } + + @TestMetadata("inlineInitializer.kt") + public void testInlineInitializer() throws Exception { + runTest("compiler/testData/codegen/box/arrays/inlineInitializer.kt"); + } + + @TestMetadata("iterator.kt") + public void testIterator() throws Exception { + runTest("compiler/testData/codegen/box/arrays/iterator.kt"); + } + + @TestMetadata("iteratorBooleanArray.kt") + public void testIteratorBooleanArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/iteratorBooleanArray.kt"); + } + + @TestMetadata("iteratorByteArray.kt") + public void testIteratorByteArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/iteratorByteArray.kt"); + } + + @TestMetadata("iteratorByteArrayNextByte.kt") + public void testIteratorByteArrayNextByte() throws Exception { + runTest("compiler/testData/codegen/box/arrays/iteratorByteArrayNextByte.kt"); + } + + @TestMetadata("iteratorCharArray.kt") + public void testIteratorCharArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/iteratorCharArray.kt"); + } + + @TestMetadata("iteratorDoubleArray.kt") + public void testIteratorDoubleArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/iteratorDoubleArray.kt"); + } + + @TestMetadata("iteratorFloatArray.kt") + public void testIteratorFloatArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/iteratorFloatArray.kt"); + } + + @TestMetadata("iteratorIntArray.kt") + public void testIteratorIntArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/iteratorIntArray.kt"); + } + + @TestMetadata("iteratorLongArray.kt") + public void testIteratorLongArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/iteratorLongArray.kt"); + } + + @TestMetadata("iteratorLongArrayNextLong.kt") + public void testIteratorLongArrayNextLong() throws Exception { + runTest("compiler/testData/codegen/box/arrays/iteratorLongArrayNextLong.kt"); + } + + @TestMetadata("iteratorShortArray.kt") + public void testIteratorShortArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/iteratorShortArray.kt"); + } + + @TestMetadata("kt1291.kt") + public void testKt1291() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt1291.kt"); + } + + @TestMetadata("kt238.kt") + public void testKt238() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt238.kt"); + } + + @TestMetadata("kt2997.kt") + public void testKt2997() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt2997.kt"); + } + + @TestMetadata("kt33.kt") + public void testKt33() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt33.kt"); + } + + @TestMetadata("kt3771.kt") + public void testKt3771() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt3771.kt"); + } + + @TestMetadata("kt4118.kt") + public void testKt4118() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt4118.kt"); + } + + @TestMetadata("kt4348.kt") + public void testKt4348() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt4348.kt"); + } + + @TestMetadata("kt4357.kt") + public void testKt4357() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt4357.kt"); + } + + @TestMetadata("kt503.kt") + public void testKt503() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt503.kt"); + } + + @TestMetadata("kt594.kt") + public void testKt594() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt594.kt"); + } + + @TestMetadata("kt7009.kt") + public void testKt7009() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt7009.kt"); + } + + @TestMetadata("kt7288.kt") + public void testKt7288() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt7288.kt"); + } + + @TestMetadata("kt7338.kt") + public void testKt7338() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt7338.kt"); + } + + @TestMetadata("kt779.kt") + public void testKt779() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt779.kt"); + } + + @TestMetadata("kt945.kt") + public void testKt945() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt945.kt"); + } + + @TestMetadata("kt950.kt") + public void testKt950() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt950.kt"); + } + + @TestMetadata("longAsIndex.kt") + public void testLongAsIndex() throws Exception { + runTest("compiler/testData/codegen/box/arrays/longAsIndex.kt"); + } + + @TestMetadata("multiArrayConstructors.kt") + public void testMultiArrayConstructors() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiArrayConstructors.kt"); + } + + @TestMetadata("nonLocalReturnArrayConstructor.kt") + public void testNonLocalReturnArrayConstructor() throws Exception { + runTest("compiler/testData/codegen/box/arrays/nonLocalReturnArrayConstructor.kt"); + } + + @TestMetadata("nonNullArray.kt") + public void testNonNullArray() throws Exception { + runTest("compiler/testData/codegen/box/arrays/nonNullArray.kt"); + } + + @TestMetadata("primitiveArrays.kt") + public void testPrimitiveArrays() throws Exception { + runTest("compiler/testData/codegen/box/arrays/primitiveArrays.kt"); + } + + @TestMetadata("stdlib.kt") + public void testStdlib() throws Exception { + runTest("compiler/testData/codegen/box/arrays/stdlib.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/arrays/arraysOfInlineClass") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ArraysOfInlineClass extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("accessArrayOfInlineClass.kt") + public void testAccessArrayOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/arrays/arraysOfInlineClass/accessArrayOfInlineClass.kt"); + } + + @TestMetadata("accessArrayOfUnsigned.kt") + public void testAccessArrayOfUnsigned() throws Exception { + runTest("compiler/testData/codegen/box/arrays/arraysOfInlineClass/accessArrayOfUnsigned.kt"); + } + + public void testAllFilesPresentInArraysOfInlineClass() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays/arraysOfInlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("arrayOfInlineClassOfArrayOfInlineClass.kt") + public void testArrayOfInlineClassOfArrayOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/arrays/arraysOfInlineClass/arrayOfInlineClassOfArrayOfInlineClass.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/arrays/forInReversed") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ForInReversed extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInForInReversed() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays/forInReversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("reversedArrayOriginalUpdatedInLoopBody.kt") + public void testReversedArrayOriginalUpdatedInLoopBody() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forInReversed/reversedArrayOriginalUpdatedInLoopBody.kt"); + } + + @TestMetadata("reversedArrayReversedArrayOriginalUpdatedInLoopBody.kt") + public void testReversedArrayReversedArrayOriginalUpdatedInLoopBody() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forInReversed/reversedArrayReversedArrayOriginalUpdatedInLoopBody.kt"); + } + + @TestMetadata("reversedOriginalUpdatedInLoopBody.kt") + public void testReversedOriginalUpdatedInLoopBody() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forInReversed/reversedOriginalUpdatedInLoopBody.kt"); + } + + @TestMetadata("reversedReversedOriginalUpdatedInLoopBody.kt") + public void testReversedReversedOriginalUpdatedInLoopBody() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forInReversed/reversedReversedOriginalUpdatedInLoopBody.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/arrays/multiDecl") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class MultiDecl extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInMultiDecl() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays/multiDecl"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("kt15560.kt") + public void testKt15560() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/kt15560.kt"); + } + + @TestMetadata("kt15568.kt") + public void testKt15568() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/kt15568.kt"); + } + + @TestMetadata("kt15575.kt") + public void testKt15575() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/kt15575.kt"); + } + + @TestMetadata("MultiDeclFor.kt") + public void testMultiDeclFor() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/MultiDeclFor.kt"); + } + + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/MultiDeclForComponentExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/MultiDeclForComponentMemberExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + + @TestMetadata("MultiDeclForValCaptured.kt") + public void testMultiDeclForValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/MultiDeclForValCaptured.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/arrays/multiDecl/int") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Int extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInt() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays/multiDecl/int"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/int/MultiDeclForComponentExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentExtensionsValCaptured.kt") + public void testMultiDeclForComponentExtensionsValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/int/MultiDeclForComponentExtensionsValCaptured.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/int/MultiDeclForComponentMemberExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/int/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/arrays/multiDecl/long") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Long extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInLong() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays/multiDecl/long"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/long/MultiDeclForComponentExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentExtensionsValCaptured.kt") + public void testMultiDeclForComponentExtensionsValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/long/MultiDeclForComponentExtensionsValCaptured.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/long/MultiDeclForComponentMemberExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/arrays/multiDecl/long/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + } + } + } + + @TestMetadata("compiler/testData/codegen/box/assert") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Assert extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInAssert() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/assert"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("alwaysDisable.kt") + public void testAlwaysDisable() throws Exception { + runTest("compiler/testData/codegen/box/assert/alwaysDisable.kt"); + } + + @TestMetadata("alwaysEnable.kt") + public void testAlwaysEnable() throws Exception { + runTest("compiler/testData/codegen/box/assert/alwaysEnable.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/assert/jvm") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Jvm extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception { + KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInJvm() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/assert/jvm"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/binaryOp") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class BinaryOp extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInBinaryOp() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/binaryOp"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("bitwiseOp.kt") + public void testBitwiseOp() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/bitwiseOp.kt"); + } + + @TestMetadata("bitwiseOpAny.kt") + public void testBitwiseOpAny() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/bitwiseOpAny.kt"); + } + + @TestMetadata("bitwiseOpNullable.kt") + public void testBitwiseOpNullable() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/bitwiseOpNullable.kt"); + } + + @TestMetadata("call.kt") + public void testCall() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/call.kt"); + } + + @TestMetadata("callAny.kt") + public void testCallAny() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/callAny.kt"); + } + + @TestMetadata("callNullable.kt") + public void testCallNullable() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/callNullable.kt"); + } + + @TestMetadata("compareBoxedChars.kt") + public void testCompareBoxedChars() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/compareBoxedChars.kt"); + } + + @TestMetadata("divisionByZero.kt") + public void testDivisionByZero() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/divisionByZero.kt"); + } + + @TestMetadata("eqNullableDoubles.kt") + public void testEqNullableDoubles() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/eqNullableDoubles.kt"); + } + + @TestMetadata("eqNullableDoublesToInt.kt") + public void testEqNullableDoublesToInt() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/eqNullableDoublesToInt.kt"); + } + + @TestMetadata("eqNullableDoublesToIntWithTP.kt") + public void testEqNullableDoublesToIntWithTP() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/eqNullableDoublesToIntWithTP.kt"); + } + + @TestMetadata("eqNullableDoublesWithTP.kt") + public void testEqNullableDoublesWithTP() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/eqNullableDoublesWithTP.kt"); + } + + @TestMetadata("intrinsic.kt") + public void testIntrinsic() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/intrinsic.kt"); + } + + @TestMetadata("intrinsicAny.kt") + public void testIntrinsicAny() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/intrinsicAny.kt"); + } + + @TestMetadata("intrinsicNullable.kt") + public void testIntrinsicNullable() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/intrinsicNullable.kt"); + } + + @TestMetadata("kt11163.kt") + public void testKt11163() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/kt11163.kt"); + } + + @TestMetadata("kt11163_properIeee754comparisons.kt") + public void testKt11163_properIeee754comparisons() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/kt11163_properIeee754comparisons.kt"); + } + + @TestMetadata("kt23030_properIeee754comparisons.kt") + public void testKt23030_properIeee754comparisons() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/kt23030_properIeee754comparisons.kt"); + } + + @TestMetadata("kt6747_identityEquals.kt") + public void testKt6747_identityEquals() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/kt6747_identityEquals.kt"); + } + + @TestMetadata("overflowChar.kt") + public void testOverflowChar() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/overflowChar.kt"); + } + + @TestMetadata("overflowInt.kt") + public void testOverflowInt() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/overflowInt.kt"); + } + + @TestMetadata("overflowLong.kt") + public void testOverflowLong() throws Exception { + runTest("compiler/testData/codegen/box/binaryOp/overflowLong.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/boxingOptimization") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class BoxingOptimization extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInBoxingOptimization() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxingOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("boxedIntegersCmp.kt") + public void testBoxedIntegersCmp() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/boxedIntegersCmp.kt"); + } + + @TestMetadata("boxedPrimitivesAreEqual.kt") + public void testBoxedPrimitivesAreEqual() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/boxedPrimitivesAreEqual.kt"); + } + + @TestMetadata("boxedRealsCmp.kt") + public void testBoxedRealsCmp() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/boxedRealsCmp.kt"); + } + + @TestMetadata("casts.kt") + public void testCasts() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/casts.kt"); + } + + @TestMetadata("checkcastAndInstanceOf.kt") + public void testCheckcastAndInstanceOf() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt"); + } + + @TestMetadata("explicitEqualsOnDouble.kt") + public void testExplicitEqualsOnDouble() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/explicitEqualsOnDouble.kt"); + } + + @TestMetadata("fold.kt") + public void testFold() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/fold.kt"); + } + + @TestMetadata("foldRange.kt") + public void testFoldRange() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/foldRange.kt"); + } + + @TestMetadata("intCompareTo.kt") + public void testIntCompareTo() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/intCompareTo.kt"); + } + + @TestMetadata("kt15871.kt") + public void testKt15871() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt15871.kt"); + } + + @TestMetadata("kt19767.kt") + public void testKt19767() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt19767.kt"); + } + + @TestMetadata("kt19767_2.kt") + public void testKt19767_2() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt19767_2.kt"); + } + + @TestMetadata("kt19767_chain.kt") + public void testKt19767_chain() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt19767_chain.kt"); + } + + @TestMetadata("kt5493.kt") + public void testKt5493() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt5493.kt"); + } + + @TestMetadata("kt5588.kt") + public void testKt5588() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt5588.kt"); + } + + @TestMetadata("kt5844.kt") + public void testKt5844() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt5844.kt"); + } + + @TestMetadata("kt6842.kt") + public void testKt6842() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt6842.kt"); + } + + @TestMetadata("maxMinBy.kt") + public void testMaxMinBy() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/maxMinBy.kt"); + } + + @TestMetadata("nullCheck.kt") + public void testNullCheck() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/nullCheck.kt"); + } + + @TestMetadata("progressions.kt") + public void testProgressions() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/progressions.kt"); + } + + @TestMetadata("safeCallWithElvis.kt") + public void testSafeCallWithElvis() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/safeCallWithElvis.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/simple.kt"); + } + + @TestMetadata("simpleUninitializedMerge.kt") + public void testSimpleUninitializedMerge() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/simpleUninitializedMerge.kt"); + } + + @TestMetadata("taintedValues.kt") + public void testTaintedValues() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/taintedValues.kt"); + } + + @TestMetadata("taintedValuesBox.kt") + public void testTaintedValuesBox() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/taintedValuesBox.kt"); + } + + @TestMetadata("unsafeRemoving.kt") + public void testUnsafeRemoving() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/unsafeRemoving.kt"); + } + + @TestMetadata("variables.kt") + public void testVariables() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/variables.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/bridges") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Bridges extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("abstractOverrideBridge.kt") + public void testAbstractOverrideBridge() throws Exception { + runTest("compiler/testData/codegen/box/bridges/abstractOverrideBridge.kt"); + } + + public void testAllFilesPresentInBridges() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/bridges"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("complexMultiInheritance.kt") + public void testComplexMultiInheritance() throws Exception { + runTest("compiler/testData/codegen/box/bridges/complexMultiInheritance.kt"); + } + + @TestMetadata("complexTraitImpl.kt") + public void testComplexTraitImpl() throws Exception { + runTest("compiler/testData/codegen/box/bridges/complexTraitImpl.kt"); + } + + @TestMetadata("covariantGenericDiamond.kt") + public void testCovariantGenericDiamond() throws Exception { + runTest("compiler/testData/codegen/box/bridges/covariantGenericDiamond.kt"); + } + + @TestMetadata("delegation.kt") + public void testDelegation() throws Exception { + runTest("compiler/testData/codegen/box/bridges/delegation.kt"); + } + + @TestMetadata("delegationComplex.kt") + public void testDelegationComplex() throws Exception { + runTest("compiler/testData/codegen/box/bridges/delegationComplex.kt"); + } + + @TestMetadata("delegationComplexWithList.kt") + public void testDelegationComplexWithList() throws Exception { + runTest("compiler/testData/codegen/box/bridges/delegationComplexWithList.kt"); + } + + @TestMetadata("delegationProperty.kt") + public void testDelegationProperty() throws Exception { + runTest("compiler/testData/codegen/box/bridges/delegationProperty.kt"); + } + + @TestMetadata("diamond.kt") + public void testDiamond() throws Exception { + runTest("compiler/testData/codegen/box/bridges/diamond.kt"); + } + + @TestMetadata("fakeCovariantOverride.kt") + public void testFakeCovariantOverride() throws Exception { + runTest("compiler/testData/codegen/box/bridges/fakeCovariantOverride.kt"); + } + + @TestMetadata("fakeGenericCovariantOverride.kt") + public void testFakeGenericCovariantOverride() throws Exception { + runTest("compiler/testData/codegen/box/bridges/fakeGenericCovariantOverride.kt"); + } + + @TestMetadata("fakeGenericCovariantOverrideWithDelegation.kt") + public void testFakeGenericCovariantOverrideWithDelegation() throws Exception { + runTest("compiler/testData/codegen/box/bridges/fakeGenericCovariantOverrideWithDelegation.kt"); + } + + @TestMetadata("fakeOverrideFromInterfaceThroughIntermediateClass.kt") + public void testFakeOverrideFromInterfaceThroughIntermediateClass() throws Exception { + runTest("compiler/testData/codegen/box/bridges/fakeOverrideFromInterfaceThroughIntermediateClass.kt"); + } + + @TestMetadata("fakeOverrideMultiFile.kt") + public void testFakeOverrideMultiFile() throws Exception { + runTest("compiler/testData/codegen/box/bridges/fakeOverrideMultiFile.kt"); + } + + @TestMetadata("fakeOverrideOfTraitImpl.kt") + public void testFakeOverrideOfTraitImpl() throws Exception { + runTest("compiler/testData/codegen/box/bridges/fakeOverrideOfTraitImpl.kt"); + } + + @TestMetadata("fakeOverrideThroughGenericSuperclass.kt") + public void testFakeOverrideThroughGenericSuperclass() throws Exception { + runTest("compiler/testData/codegen/box/bridges/fakeOverrideThroughGenericSuperclass.kt"); + } + + @TestMetadata("fakeOverrideWithSeveralSuperDeclarations.kt") + public void testFakeOverrideWithSeveralSuperDeclarations() throws Exception { + runTest("compiler/testData/codegen/box/bridges/fakeOverrideWithSeveralSuperDeclarations.kt"); + } + + @TestMetadata("fakeOverrideWithSynthesizedImplementation.kt") + public void testFakeOverrideWithSynthesizedImplementation() throws Exception { + runTest("compiler/testData/codegen/box/bridges/fakeOverrideWithSynthesizedImplementation.kt"); + } + + @TestMetadata("genericProperty.kt") + public void testGenericProperty() throws Exception { + runTest("compiler/testData/codegen/box/bridges/genericProperty.kt"); + } + + @TestMetadata("kt12416.kt") + public void testKt12416() throws Exception { + runTest("compiler/testData/codegen/box/bridges/kt12416.kt"); + } + + @TestMetadata("kt1939.kt") + public void testKt1939() throws Exception { + runTest("compiler/testData/codegen/box/bridges/kt1939.kt"); + } + + @TestMetadata("kt1959.kt") + public void testKt1959() throws Exception { + runTest("compiler/testData/codegen/box/bridges/kt1959.kt"); + } + + @TestMetadata("kt2498.kt") + public void testKt2498() throws Exception { + runTest("compiler/testData/codegen/box/bridges/kt2498.kt"); + } + + @TestMetadata("kt2702.kt") + public void testKt2702() throws Exception { + runTest("compiler/testData/codegen/box/bridges/kt2702.kt"); + } + + @TestMetadata("kt2833.kt") + public void testKt2833() throws Exception { + runTest("compiler/testData/codegen/box/bridges/kt2833.kt"); + } + + @TestMetadata("kt2920.kt") + public void testKt2920() throws Exception { + runTest("compiler/testData/codegen/box/bridges/kt2920.kt"); + } + + @TestMetadata("kt318.kt") + public void testKt318() throws Exception { + runTest("compiler/testData/codegen/box/bridges/kt318.kt"); + } + + @TestMetadata("longChainOneBridge.kt") + public void testLongChainOneBridge() throws Exception { + runTest("compiler/testData/codegen/box/bridges/longChainOneBridge.kt"); + } + + @TestMetadata("manyTypeArgumentsSubstitutedSuccessively.kt") + public void testManyTypeArgumentsSubstitutedSuccessively() throws Exception { + runTest("compiler/testData/codegen/box/bridges/manyTypeArgumentsSubstitutedSuccessively.kt"); + } + + @TestMetadata("methodFromTrait.kt") + public void testMethodFromTrait() throws Exception { + runTest("compiler/testData/codegen/box/bridges/methodFromTrait.kt"); + } + + @TestMetadata("noBridgeOnMutableCollectionInheritance.kt") + public void testNoBridgeOnMutableCollectionInheritance() throws Exception { + runTest("compiler/testData/codegen/box/bridges/noBridgeOnMutableCollectionInheritance.kt"); + } + + @TestMetadata("overrideAbstractProperty.kt") + public void testOverrideAbstractProperty() throws Exception { + runTest("compiler/testData/codegen/box/bridges/overrideAbstractProperty.kt"); + } + + @TestMetadata("overrideReturnType.kt") + public void testOverrideReturnType() throws Exception { + runTest("compiler/testData/codegen/box/bridges/overrideReturnType.kt"); + } + + @TestMetadata("propertyAccessorsWithoutBody.kt") + public void testPropertyAccessorsWithoutBody() throws Exception { + runTest("compiler/testData/codegen/box/bridges/propertyAccessorsWithoutBody.kt"); + } + + @TestMetadata("propertyDiamond.kt") + public void testPropertyDiamond() throws Exception { + runTest("compiler/testData/codegen/box/bridges/propertyDiamond.kt"); + } + + @TestMetadata("propertyDiamondFakeOverride.kt") + public void testPropertyDiamondFakeOverride() throws Exception { + runTest("compiler/testData/codegen/box/bridges/propertyDiamondFakeOverride.kt"); + } + + @TestMetadata("propertyInConstructor.kt") + public void testPropertyInConstructor() throws Exception { + runTest("compiler/testData/codegen/box/bridges/propertyInConstructor.kt"); + } + + @TestMetadata("propertySetter.kt") + public void testPropertySetter() throws Exception { + runTest("compiler/testData/codegen/box/bridges/propertySetter.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/bridges/simple.kt"); + } + + @TestMetadata("simpleEnum.kt") + public void testSimpleEnum() throws Exception { + runTest("compiler/testData/codegen/box/bridges/simpleEnum.kt"); + } + + @TestMetadata("simpleGenericMethod.kt") + public void testSimpleGenericMethod() throws Exception { + runTest("compiler/testData/codegen/box/bridges/simpleGenericMethod.kt"); + } + + @TestMetadata("simpleObject.kt") + public void testSimpleObject() throws Exception { + runTest("compiler/testData/codegen/box/bridges/simpleObject.kt"); + } + + @TestMetadata("simpleReturnType.kt") + public void testSimpleReturnType() throws Exception { + runTest("compiler/testData/codegen/box/bridges/simpleReturnType.kt"); + } + + @TestMetadata("simpleTraitImpl.kt") + public void testSimpleTraitImpl() throws Exception { + runTest("compiler/testData/codegen/box/bridges/simpleTraitImpl.kt"); + } + + @TestMetadata("simpleUpperBound.kt") + public void testSimpleUpperBound() throws Exception { + runTest("compiler/testData/codegen/box/bridges/simpleUpperBound.kt"); + } + + @TestMetadata("strListContains.kt") + public void testStrListContains() throws Exception { + runTest("compiler/testData/codegen/box/bridges/strListContains.kt"); + } + + @TestMetadata("traitImplInheritsTraitImpl.kt") + public void testTraitImplInheritsTraitImpl() throws Exception { + runTest("compiler/testData/codegen/box/bridges/traitImplInheritsTraitImpl.kt"); + } + + @TestMetadata("twoParentsWithDifferentMethodsTwoBridges.kt") + public void testTwoParentsWithDifferentMethodsTwoBridges() throws Exception { + runTest("compiler/testData/codegen/box/bridges/twoParentsWithDifferentMethodsTwoBridges.kt"); + } + + @TestMetadata("twoParentsWithDifferentMethodsTwoBridges2.kt") + public void testTwoParentsWithDifferentMethodsTwoBridges2() throws Exception { + runTest("compiler/testData/codegen/box/bridges/twoParentsWithDifferentMethodsTwoBridges2.kt"); + } + + @TestMetadata("twoParentsWithTheSameMethodOneBridge.kt") + public void testTwoParentsWithTheSameMethodOneBridge() throws Exception { + runTest("compiler/testData/codegen/box/bridges/twoParentsWithTheSameMethodOneBridge.kt"); + } + + @TestMetadata("typeParameterInExtensionReceiver.kt") + public void testTypeParameterInExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/box/bridges/typeParameterInExtensionReceiver.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/bridges/substitutionInSuperClass") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class SubstitutionInSuperClass extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("abstractFun.kt") + public void testAbstractFun() throws Exception { + runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/abstractFun.kt"); + } + + public void testAllFilesPresentInSubstitutionInSuperClass() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/bridges/substitutionInSuperClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("boundedTypeArguments.kt") + public void testBoundedTypeArguments() throws Exception { + runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/boundedTypeArguments.kt"); + } + + @TestMetadata("delegation.kt") + public void testDelegation() throws Exception { + runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/delegation.kt"); + } + + @TestMetadata("differentErasureInSuperClass.kt") + public void testDifferentErasureInSuperClass() throws Exception { + runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/differentErasureInSuperClass.kt"); + } + + @TestMetadata("differentErasureInSuperClassComplex.kt") + public void testDifferentErasureInSuperClassComplex() throws Exception { + runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/differentErasureInSuperClassComplex.kt"); + } + + @TestMetadata("enum.kt") + public void testEnum() throws Exception { + runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/enum.kt"); + } + + @TestMetadata("genericMethod.kt") + public void testGenericMethod() throws Exception { + runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/genericMethod.kt"); + } + + @TestMetadata("object.kt") + public void testObject() throws Exception { + runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/object.kt"); + } + + @TestMetadata("property.kt") + public void testProperty() throws Exception { + runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/property.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/simple.kt"); + } + + @TestMetadata("upperBound.kt") + public void testUpperBound() throws Exception { + runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/upperBound.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/builderInference") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class BuilderInference extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInBuilderInference() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("lackOfNullCheckOnNullableInsideBuild.kt") + public void testLackOfNullCheckOnNullableInsideBuild() throws Exception { + runTest("compiler/testData/codegen/box/builderInference/lackOfNullCheckOnNullableInsideBuild.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/builtinStubMethods") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class BuiltinStubMethods extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInBuiltinStubMethods() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builtinStubMethods"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("customReadOnlyIterator.kt") + public void testCustomReadOnlyIterator() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/customReadOnlyIterator.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ExtendJavaCollections extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("abstractSet.kt") + public void testAbstractSet() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractSet.kt"); + } + + public void testAllFilesPresentInExtendJavaCollections() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("arrayList.kt") + public void testArrayList() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/arrayList.kt"); + } + + @TestMetadata("hashMap.kt") + public void testHashMap() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/hashMap.kt"); + } + + @TestMetadata("hashSet.kt") + public void testHashSet() throws Exception { + runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/hashSet.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/builtinStubMethods/mapGetOrDefault") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class MapGetOrDefault extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInMapGetOrDefault() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builtinStubMethods/mapGetOrDefault"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/builtinStubMethods/mapRemove") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class MapRemove extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInMapRemove() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builtinStubMethods/mapRemove"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/callableReference") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class CallableReference extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCallableReference() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("kt37604.kt") + public void testKt37604() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/kt37604.kt"); + } + + @TestMetadata("nested.kt") + public void testNested() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/nested.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/callableReference/adaptedReferences") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class AdaptedReferences extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInAdaptedReferences() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/adaptedReferences"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("bothWithCoercionToUnit.kt") + public void testBothWithCoercionToUnit() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/bothWithCoercionToUnit.kt"); + } + + @TestMetadata("boundReferences.kt") + public void testBoundReferences() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/boundReferences.kt"); + } + + @TestMetadata("defaultAfterVararg.kt") + public void testDefaultAfterVararg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/defaultAfterVararg.kt"); + } + + @TestMetadata("defaultWithGenericExpectedType.kt") + public void testDefaultWithGenericExpectedType() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/defaultWithGenericExpectedType.kt"); + } + + @TestMetadata("emptyVarargAndDefault.kt") + public void testEmptyVarargAndDefault() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/emptyVarargAndDefault.kt"); + } + + @TestMetadata("inlineBound.kt") + public void testInlineBound() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/inlineBound.kt"); + } + + @TestMetadata("inlineDefault.kt") + public void testInlineDefault() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/inlineDefault.kt"); + } + + @TestMetadata("inlineVararg.kt") + public void testInlineVararg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/inlineVararg.kt"); + } + + @TestMetadata("inlineVarargAndDefault.kt") + public void testInlineVarargAndDefault() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/inlineVarargAndDefault.kt"); + } + + @TestMetadata("inlineVarargInts.kt") + public void testInlineVarargInts() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/inlineVarargInts.kt"); + } + + @TestMetadata("innerConstructorWithVararg.kt") + public void testInnerConstructorWithVararg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/innerConstructorWithVararg.kt"); + } + + @TestMetadata("largeVararg.kt") + public void testLargeVararg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/largeVararg.kt"); + } + + @TestMetadata("localFunctionWithDefault.kt") + public void testLocalFunctionWithDefault() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/localFunctionWithDefault.kt"); + } + + @TestMetadata("manyDefaultsAndVararg.kt") + public void testManyDefaultsAndVararg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/manyDefaultsAndVararg.kt"); + } + + @TestMetadata("noNameClashForReferencesToSameFunction.kt") + public void testNoNameClashForReferencesToSameFunction() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/noNameClashForReferencesToSameFunction.kt"); + } + + @TestMetadata("simpleDefaultArgument.kt") + public void testSimpleDefaultArgument() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/simpleDefaultArgument.kt"); + } + + @TestMetadata("simpleEmptyVararg.kt") + public void testSimpleEmptyVararg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/simpleEmptyVararg.kt"); + } + + @TestMetadata("unboundReferences.kt") + public void testUnboundReferences() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/unboundReferences.kt"); + } + + @TestMetadata("varargViewedAsArray.kt") + public void testVarargViewedAsArray() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/varargViewedAsArray.kt"); + } + + @TestMetadata("varargViewedAsPrimitiveArray.kt") + public void testVarargViewedAsPrimitiveArray() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/varargViewedAsPrimitiveArray.kt"); + } + + @TestMetadata("varargWithDefaultValue.kt") + public void testVarargWithDefaultValue() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/varargWithDefaultValue.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class SuspendConversion extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("adaptedWithCoercionToUnit.kt") + public void testAdaptedWithCoercionToUnit() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/adaptedWithCoercionToUnit.kt"); + } + + @TestMetadata("adaptedWithDefaultArguments.kt") + public void testAdaptedWithDefaultArguments() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/adaptedWithDefaultArguments.kt"); + } + + @TestMetadata("adaptedWithVarargs.kt") + public void testAdaptedWithVarargs() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/adaptedWithVarargs.kt"); + } + + public void testAllFilesPresentInSuspendConversion() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("bound.kt") + public void testBound() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/bound.kt"); + } + + @TestMetadata("crossInline.kt") + public void testCrossInline() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/crossInline.kt"); + } + + @TestMetadata("inlineAdaptedWithCoercionToUnit.kt") + public void testInlineAdaptedWithCoercionToUnit() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/inlineAdaptedWithCoercionToUnit.kt"); + } + + @TestMetadata("inlineAdaptedWithDefaultArguments.kt") + public void testInlineAdaptedWithDefaultArguments() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/inlineAdaptedWithDefaultArguments.kt"); + } + + @TestMetadata("inlineAdaptedWithVarargs.kt") + public void testInlineAdaptedWithVarargs() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/inlineAdaptedWithVarargs.kt"); + } + + @TestMetadata("inlineBound.kt") + public void testInlineBound() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/inlineBound.kt"); + } + + @TestMetadata("inlineSimple.kt") + public void testInlineSimple() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/inlineSimple.kt"); + } + + @TestMetadata("inlineWithParameters.kt") + public void testInlineWithParameters() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/inlineWithParameters.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/simple.kt"); + } + + @TestMetadata("withParameters.kt") + public void testWithParameters() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/withParameters.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/callableReference/bound") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Bound extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("adapted.kt") + public void testAdapted() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/adapted.kt"); + } + + public void testAllFilesPresentInBound() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/bound"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("array.kt") + public void testArray() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/array.kt"); + } + + @TestMetadata("arrayGetIntrinsic.kt") + public void testArrayGetIntrinsic() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/arrayGetIntrinsic.kt"); + } + + @TestMetadata("boundReferenceToOverloadedFunction.kt") + public void testBoundReferenceToOverloadedFunction() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/boundReferenceToOverloadedFunction.kt"); + } + + @TestMetadata("captureVarInInitBlock.kt") + public void testCaptureVarInInitBlock() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/captureVarInInitBlock.kt"); + } + + @TestMetadata("captureVarInPropertyInit.kt") + public void testCaptureVarInPropertyInit() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/captureVarInPropertyInit.kt"); + } + + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/coercionToUnit.kt"); + } + + @TestMetadata("companionObjectReceiver.kt") + public void testCompanionObjectReceiver() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/companionObjectReceiver.kt"); + } + + @TestMetadata("dontShareReceiver.kt") + public void testDontShareReceiver() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/dontShareReceiver.kt"); + } + + @TestMetadata("emptyLHS.kt") + public void testEmptyLHS() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/emptyLHS.kt"); + } + + @TestMetadata("enumEntryMember.kt") + public void testEnumEntryMember() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/enumEntryMember.kt"); + } + + @TestMetadata("genericValOnLHS.kt") + public void testGenericValOnLHS() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/genericValOnLHS.kt"); + } + + @TestMetadata("kCallableNameIntrinsic.kt") + public void testKCallableNameIntrinsic() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/kCallableNameIntrinsic.kt"); + } + + @TestMetadata("kt12738.kt") + public void testKt12738() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/kt12738.kt"); + } + + @TestMetadata("kt15446.kt") + public void testKt15446() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/kt15446.kt"); + } + + @TestMetadata("multiCase.kt") + public void testMultiCase() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/multiCase.kt"); + } + + @TestMetadata("nullReceiver.kt") + public void testNullReceiver() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/nullReceiver.kt"); + } + + @TestMetadata("objectReceiver.kt") + public void testObjectReceiver() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/objectReceiver.kt"); + } + + @TestMetadata("primitiveReceiver.kt") + public void testPrimitiveReceiver() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/primitiveReceiver.kt"); + } + + @TestMetadata("receiverEvaluatedOnce.kt") + public void testReceiverEvaluatedOnce() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/receiverEvaluatedOnce.kt"); + } + + @TestMetadata("simpleFunction.kt") + public void testSimpleFunction() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/simpleFunction.kt"); + } + + @TestMetadata("simpleProperty.kt") + public void testSimpleProperty() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/simpleProperty.kt"); + } + + @TestMetadata("smartCastForExtensionReceiver.kt") + public void testSmartCastForExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/smartCastForExtensionReceiver.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/callableReference/bound/equals") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Equals extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInEquals() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/bound/equals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("nullableReceiverInEquals.kt") + public void testNullableReceiverInEquals() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/equals/nullableReceiverInEquals.kt"); + } + + @TestMetadata("propertyAccessors.kt") + public void testPropertyAccessors() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/equals/propertyAccessors.kt"); + } + + @TestMetadata("receiverInEquals.kt") + public void testReceiverInEquals() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/equals/receiverInEquals.kt"); + } + + @TestMetadata("reflectionReference.kt") + public void testReflectionReference() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/bound/equals/reflectionReference.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/callableReference/equality") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Equality extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInEquality() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/equality"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("capturedDefaults.kt") + public void testCapturedDefaults() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/equality/capturedDefaults.kt"); + } + + @TestMetadata("capturedVararg.kt") + public void testCapturedVararg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/equality/capturedVararg.kt"); + } + + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/equality/coercionToUnit.kt"); + } + + @TestMetadata("coercionToUnitWithDefaults.kt") + public void testCoercionToUnitWithDefaults() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/equality/coercionToUnitWithDefaults.kt"); + } + + @TestMetadata("coercionToUnitWithVararg.kt") + public void testCoercionToUnitWithVararg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/equality/coercionToUnitWithVararg.kt"); + } + + @TestMetadata("extensionReceiverVsDefault.kt") + public void testExtensionReceiverVsDefault() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/equality/extensionReceiverVsDefault.kt"); + } + + @TestMetadata("noCoercionToUnitIfFunctionAlreadyReturnsUnit.kt") + public void testNoCoercionToUnitIfFunctionAlreadyReturnsUnit() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/equality/noCoercionToUnitIfFunctionAlreadyReturnsUnit.kt"); + } + + @TestMetadata("simpleEquality.kt") + public void testSimpleEquality() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/equality/simpleEquality.kt"); + } + + @TestMetadata("suspendConversion.kt") + public void testSuspendConversion() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/equality/suspendConversion.kt"); + } + + @TestMetadata("varargAsArrayMemberOrExtension.kt") + public void testVarargAsArrayMemberOrExtension() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/equality/varargAsArrayMemberOrExtension.kt"); + } + + @TestMetadata("varargAsArrayWithDefaults.kt") + public void testVarargAsArrayWithDefaults() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/equality/varargAsArrayWithDefaults.kt"); + } + + @TestMetadata("varargWithDefaults.kt") + public void testVarargWithDefaults() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/equality/varargWithDefaults.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/callableReference/function") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Function extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("abstractClassMember.kt") + public void testAbstractClassMember() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/abstractClassMember.kt"); + } + + public void testAllFilesPresentInFunction() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("argumentTypes.kt") + public void testArgumentTypes() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/argumentTypes.kt"); + } + + @TestMetadata("booleanNotIntrinsic.kt") + public void testBooleanNotIntrinsic() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/booleanNotIntrinsic.kt"); + } + + @TestMetadata("classMemberFromClass.kt") + public void testClassMemberFromClass() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/classMemberFromClass.kt"); + } + + @TestMetadata("classMemberFromExtension.kt") + public void testClassMemberFromExtension() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/classMemberFromExtension.kt"); + } + + @TestMetadata("classMemberFromTopLevelStringNoArgs.kt") + public void testClassMemberFromTopLevelStringNoArgs() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/classMemberFromTopLevelStringNoArgs.kt"); + } + + @TestMetadata("classMemberFromTopLevelStringOneStringArg.kt") + public void testClassMemberFromTopLevelStringOneStringArg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/classMemberFromTopLevelStringOneStringArg.kt"); + } + + @TestMetadata("classMemberFromTopLevelUnitNoArgs.kt") + public void testClassMemberFromTopLevelUnitNoArgs() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/classMemberFromTopLevelUnitNoArgs.kt"); + } + + @TestMetadata("classMemberFromTopLevelUnitOneStringArg.kt") + public void testClassMemberFromTopLevelUnitOneStringArg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/classMemberFromTopLevelUnitOneStringArg.kt"); + } + + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/coercionToUnit.kt"); + } + + @TestMetadata("constructorFromTopLevelNoArgs.kt") + public void testConstructorFromTopLevelNoArgs() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/constructorFromTopLevelNoArgs.kt"); + } + + @TestMetadata("constructorFromTopLevelOneStringArg.kt") + public void testConstructorFromTopLevelOneStringArg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/constructorFromTopLevelOneStringArg.kt"); + } + + @TestMetadata("enumValueOfMethod.kt") + public void testEnumValueOfMethod() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/enumValueOfMethod.kt"); + } + + @TestMetadata("equalsIntrinsic.kt") + public void testEqualsIntrinsic() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/equalsIntrinsic.kt"); + } + + @TestMetadata("extensionFromClass.kt") + public void testExtensionFromClass() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/extensionFromClass.kt"); + } + + @TestMetadata("extensionFromExtension.kt") + public void testExtensionFromExtension() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/extensionFromExtension.kt"); + } + + @TestMetadata("extensionFromTopLevelStringNoArgs.kt") + public void testExtensionFromTopLevelStringNoArgs() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/extensionFromTopLevelStringNoArgs.kt"); + } + + @TestMetadata("extensionFromTopLevelStringOneStringArg.kt") + public void testExtensionFromTopLevelStringOneStringArg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/extensionFromTopLevelStringOneStringArg.kt"); + } + + @TestMetadata("extensionFromTopLevelUnitNoArgs.kt") + public void testExtensionFromTopLevelUnitNoArgs() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/extensionFromTopLevelUnitNoArgs.kt"); + } + + @TestMetadata("extensionFromTopLevelUnitOneStringArg.kt") + public void testExtensionFromTopLevelUnitOneStringArg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/extensionFromTopLevelUnitOneStringArg.kt"); + } + + @TestMetadata("genericCallableReferenceArguments.kt") + public void testGenericCallableReferenceArguments() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArguments.kt"); + } + + @TestMetadata("genericCallableReferencesWithNullableTypes.kt") + public void testGenericCallableReferencesWithNullableTypes() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferencesWithNullableTypes.kt"); + } + + @TestMetadata("genericCallableReferencesWithOverload.kt") + public void testGenericCallableReferencesWithOverload() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferencesWithOverload.kt"); + } + + @TestMetadata("genericMember.kt") + public void testGenericMember() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/genericMember.kt"); + } + + @TestMetadata("genericWithDependentType.kt") + public void testGenericWithDependentType() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/genericWithDependentType.kt"); + } + + @TestMetadata("getArityViaFunctionImpl.kt") + public void testGetArityViaFunctionImpl() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/getArityViaFunctionImpl.kt"); + } + + @TestMetadata("innerClassConstructorWithTwoReceivers.kt") + public void testInnerClassConstructorWithTwoReceivers() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/innerClassConstructorWithTwoReceivers.kt"); + } + + @TestMetadata("innerConstructorFromClass.kt") + public void testInnerConstructorFromClass() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/innerConstructorFromClass.kt"); + } + + @TestMetadata("innerConstructorFromExtension.kt") + public void testInnerConstructorFromExtension() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/innerConstructorFromExtension.kt"); + } + + @TestMetadata("innerConstructorFromTopLevelNoArgs.kt") + public void testInnerConstructorFromTopLevelNoArgs() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/innerConstructorFromTopLevelNoArgs.kt"); + } + + @TestMetadata("innerConstructorFromTopLevelOneStringArg.kt") + public void testInnerConstructorFromTopLevelOneStringArg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/innerConstructorFromTopLevelOneStringArg.kt"); + } + + @TestMetadata("kt21787.kt") + public void testKt21787() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/kt21787.kt"); + } + + @TestMetadata("kt32462.kt") + public void testKt32462() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/kt32462.kt"); + } + + @TestMetadata("nestedConstructorFromClass.kt") + public void testNestedConstructorFromClass() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/nestedConstructorFromClass.kt"); + } + + @TestMetadata("nestedConstructorFromTopLevelNoArgs.kt") + public void testNestedConstructorFromTopLevelNoArgs() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/nestedConstructorFromTopLevelNoArgs.kt"); + } + + @TestMetadata("nestedConstructorFromTopLevelOneStringArg.kt") + public void testNestedConstructorFromTopLevelOneStringArg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/nestedConstructorFromTopLevelOneStringArg.kt"); + } + + @TestMetadata("newArray.kt") + public void testNewArray() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/newArray.kt"); + } + + @TestMetadata("overloadedFun.kt") + public void testOverloadedFun() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/overloadedFun.kt"); + } + + @TestMetadata("overloadedFunVsVal.kt") + public void testOverloadedFunVsVal() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/overloadedFunVsVal.kt"); + } + + @TestMetadata("privateClassMember.kt") + public void testPrivateClassMember() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/privateClassMember.kt"); + } + + @TestMetadata("sortListOfStrings.kt") + public void testSortListOfStrings() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/sortListOfStrings.kt"); + } + + @TestMetadata("specialCalls.kt") + public void testSpecialCalls() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/specialCalls.kt"); + } + + @TestMetadata("topLevelFromClass.kt") + public void testTopLevelFromClass() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/topLevelFromClass.kt"); + } + + @TestMetadata("topLevelFromExtension.kt") + public void testTopLevelFromExtension() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/topLevelFromExtension.kt"); + } + + @TestMetadata("topLevelFromTopLevelStringNoArgs.kt") + public void testTopLevelFromTopLevelStringNoArgs() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/topLevelFromTopLevelStringNoArgs.kt"); + } + + @TestMetadata("topLevelFromTopLevelStringOneStringArg.kt") + public void testTopLevelFromTopLevelStringOneStringArg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/topLevelFromTopLevelStringOneStringArg.kt"); + } + + @TestMetadata("topLevelFromTopLevelUnitManyArgs.kt") + public void testTopLevelFromTopLevelUnitManyArgs() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/topLevelFromTopLevelUnitManyArgs.kt"); + } + + @TestMetadata("topLevelFromTopLevelUnitNoArgs.kt") + public void testTopLevelFromTopLevelUnitNoArgs() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/topLevelFromTopLevelUnitNoArgs.kt"); + } + + @TestMetadata("topLevelFromTopLevelUnitOneStringArg.kt") + public void testTopLevelFromTopLevelUnitOneStringArg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/topLevelFromTopLevelUnitOneStringArg.kt"); + } + + @TestMetadata("traitImplMethodWithClassReceiver.kt") + public void testTraitImplMethodWithClassReceiver() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/traitImplMethodWithClassReceiver.kt"); + } + + @TestMetadata("traitMember.kt") + public void testTraitMember() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/traitMember.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/callableReference/function/local") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Local extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInLocal() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/function/local"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("captureOuter.kt") + public void testCaptureOuter() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/captureOuter.kt"); + } + + @TestMetadata("classMember.kt") + public void testClassMember() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/classMember.kt"); + } + + @TestMetadata("closureWithSideEffect.kt") + public void testClosureWithSideEffect() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/closureWithSideEffect.kt"); + } + + @TestMetadata("constructor.kt") + public void testConstructor() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/constructor.kt"); + } + + @TestMetadata("constructorWithInitializer.kt") + public void testConstructorWithInitializer() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/constructorWithInitializer.kt"); + } + + @TestMetadata("enumExtendsTrait.kt") + public void testEnumExtendsTrait() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/enumExtendsTrait.kt"); + } + + @TestMetadata("equalsHashCode.kt") + public void testEqualsHashCode() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/equalsHashCode.kt"); + } + + @TestMetadata("extension.kt") + public void testExtension() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/extension.kt"); + } + + @TestMetadata("extensionToLocalClass.kt") + public void testExtensionToLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/extensionToLocalClass.kt"); + } + + @TestMetadata("extensionToPrimitive.kt") + public void testExtensionToPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/extensionToPrimitive.kt"); + } + + @TestMetadata("extensionWithClosure.kt") + public void testExtensionWithClosure() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/extensionWithClosure.kt"); + } + + @TestMetadata("genericMember.kt") + public void testGenericMember() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/genericMember.kt"); + } + + @TestMetadata("localClassMember.kt") + public void testLocalClassMember() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/localClassMember.kt"); + } + + @TestMetadata("localFunctionName.kt") + public void testLocalFunctionName() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/localFunctionName.kt"); + } + + @TestMetadata("localLocal.kt") + public void testLocalLocal() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/localLocal.kt"); + } + + @TestMetadata("recursiveClosure.kt") + public void testRecursiveClosure() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/recursiveClosure.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/simple.kt"); + } + + @TestMetadata("simpleClosure.kt") + public void testSimpleClosure() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/simpleClosure.kt"); + } + + @TestMetadata("simpleWithArg.kt") + public void testSimpleWithArg() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/simpleWithArg.kt"); + } + + @TestMetadata("unitWithSideEffect.kt") + public void testUnitWithSideEffect() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/local/unitWithSideEffect.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/callableReference/property") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Property extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("accessViaSubclass.kt") + public void testAccessViaSubclass() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/accessViaSubclass.kt"); + } + + public void testAllFilesPresentInProperty() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/property"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("delegated.kt") + public void testDelegated() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/delegated.kt"); + } + + @TestMetadata("delegatedMutable.kt") + public void testDelegatedMutable() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/delegatedMutable.kt"); + } + + @TestMetadata("enumNameOrdinal.kt") + public void testEnumNameOrdinal() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/enumNameOrdinal.kt"); + } + + @TestMetadata("extensionToArray.kt") + public void testExtensionToArray() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/extensionToArray.kt"); + } + + @TestMetadata("genericProperty.kt") + public void testGenericProperty() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/genericProperty.kt"); + } + + @TestMetadata("inEnum.kt") + public void testInEnum() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/inEnum.kt"); + } + + @TestMetadata("invokePropertyReference.kt") + public void testInvokePropertyReference() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/invokePropertyReference.kt"); + } + + @TestMetadata("javaBeanConvention.kt") + public void testJavaBeanConvention() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/javaBeanConvention.kt"); + } + + @TestMetadata("kClassInstanceIsInitializedFirst.kt") + public void testKClassInstanceIsInitializedFirst() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/kClassInstanceIsInitializedFirst.kt"); + } + + @TestMetadata("kt12044.kt") + public void testKt12044() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/kt12044.kt"); + } + + @TestMetadata("kt12982_protectedPropertyReference.kt") + public void testKt12982_protectedPropertyReference() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/kt12982_protectedPropertyReference.kt"); + } + + @TestMetadata("kt14330.kt") + public void testKt14330() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/kt14330.kt"); + } + + @TestMetadata("kt14330_2.kt") + public void testKt14330_2() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/kt14330_2.kt"); + } + + @TestMetadata("kt15447.kt") + public void testKt15447() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/kt15447.kt"); + } + + @TestMetadata("kt6870_privatePropertyReference.kt") + public void testKt6870_privatePropertyReference() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/kt6870_privatePropertyReference.kt"); + } + + @TestMetadata("listOfStringsMapLength.kt") + public void testListOfStringsMapLength() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/listOfStringsMapLength.kt"); + } + + @TestMetadata("localClassVar.kt") + public void testLocalClassVar() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/localClassVar.kt"); + } + + @TestMetadata("overriddenInSubclass.kt") + public void testOverriddenInSubclass() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/overriddenInSubclass.kt"); + } + + @TestMetadata("privateSetOuterClass.kt") + public void testPrivateSetOuterClass() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/privateSetOuterClass.kt"); + } + + @TestMetadata("privateSetterInsideClass.kt") + public void testPrivateSetterInsideClass() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/privateSetterInsideClass.kt"); + } + + @TestMetadata("privateSetterOutsideClass.kt") + public void testPrivateSetterOutsideClass() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/privateSetterOutsideClass.kt"); + } + + @TestMetadata("receiverEvaluatedOnce.kt") + public void testReceiverEvaluatedOnce() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/receiverEvaluatedOnce.kt"); + } + + @TestMetadata("simpleExtension.kt") + public void testSimpleExtension() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/simpleExtension.kt"); + } + + @TestMetadata("simpleMember.kt") + public void testSimpleMember() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/simpleMember.kt"); + } + + @TestMetadata("simpleMutableExtension.kt") + public void testSimpleMutableExtension() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/simpleMutableExtension.kt"); + } + + @TestMetadata("simpleMutableMember.kt") + public void testSimpleMutableMember() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/simpleMutableMember.kt"); + } + + @TestMetadata("simpleMutableTopLevel.kt") + public void testSimpleMutableTopLevel() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/simpleMutableTopLevel.kt"); + } + + @TestMetadata("simpleTopLevel.kt") + public void testSimpleTopLevel() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/property/simpleTopLevel.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/callableReference/serializability") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Serializability extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSerializability() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/serializability"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/casts") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Casts extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCasts() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("as.kt") + public void testAs() throws Exception { + runTest("compiler/testData/codegen/box/casts/as.kt"); + } + + @TestMetadata("asForConstants.kt") + public void testAsForConstants() throws Exception { + runTest("compiler/testData/codegen/box/casts/asForConstants.kt"); + } + + @TestMetadata("asSafe.kt") + public void testAsSafe() throws Exception { + runTest("compiler/testData/codegen/box/casts/asSafe.kt"); + } + + @TestMetadata("asSafeFail.kt") + public void testAsSafeFail() throws Exception { + runTest("compiler/testData/codegen/box/casts/asSafeFail.kt"); + } + + @TestMetadata("asSafeForConstants.kt") + public void testAsSafeForConstants() throws Exception { + runTest("compiler/testData/codegen/box/casts/asSafeForConstants.kt"); + } + + @TestMetadata("asUnit.kt") + public void testAsUnit() throws Exception { + runTest("compiler/testData/codegen/box/casts/asUnit.kt"); + } + + @TestMetadata("asWithGeneric.kt") + public void testAsWithGeneric() throws Exception { + runTest("compiler/testData/codegen/box/casts/asWithGeneric.kt"); + } + + @TestMetadata("castGenericNull.kt") + public void testCastGenericNull() throws Exception { + runTest("compiler/testData/codegen/box/casts/castGenericNull.kt"); + } + + @TestMetadata("intersectionTypeMultipleBounds.kt") + public void testIntersectionTypeMultipleBounds() throws Exception { + runTest("compiler/testData/codegen/box/casts/intersectionTypeMultipleBounds.kt"); + } + + @TestMetadata("intersectionTypeMultipleBoundsImplicitReceiver.kt") + public void testIntersectionTypeMultipleBoundsImplicitReceiver() throws Exception { + runTest("compiler/testData/codegen/box/casts/intersectionTypeMultipleBoundsImplicitReceiver.kt"); + } + + @TestMetadata("intersectionTypeSmartcast.kt") + public void testIntersectionTypeSmartcast() throws Exception { + runTest("compiler/testData/codegen/box/casts/intersectionTypeSmartcast.kt"); + } + + @TestMetadata("intersectionTypeWithMultipleBoundsAsReceiver.kt") + public void testIntersectionTypeWithMultipleBoundsAsReceiver() throws Exception { + runTest("compiler/testData/codegen/box/casts/intersectionTypeWithMultipleBoundsAsReceiver.kt"); + } + + @TestMetadata("intersectionTypeWithoutGenericsAsReceiver.kt") + public void testIntersectionTypeWithoutGenericsAsReceiver() throws Exception { + runTest("compiler/testData/codegen/box/casts/intersectionTypeWithoutGenericsAsReceiver.kt"); + } + + @TestMetadata("is.kt") + public void testIs() throws Exception { + runTest("compiler/testData/codegen/box/casts/is.kt"); + } + + @TestMetadata("isNullablePrimitive.kt") + public void testIsNullablePrimitive() throws Exception { + runTest("compiler/testData/codegen/box/casts/isNullablePrimitive.kt"); + } + + @TestMetadata("kt22714.kt") + public void testKt22714() throws Exception { + runTest("compiler/testData/codegen/box/casts/kt22714.kt"); + } + + @TestMetadata("lambdaToUnitCast.kt") + public void testLambdaToUnitCast() throws Exception { + runTest("compiler/testData/codegen/box/casts/lambdaToUnitCast.kt"); + } + + @TestMetadata("notIs.kt") + public void testNotIs() throws Exception { + runTest("compiler/testData/codegen/box/casts/notIs.kt"); + } + + @TestMetadata("nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt") + public void testNullableSafeCastToTypeParameterWithInterfaceUpperBound() throws Exception { + runTest("compiler/testData/codegen/box/casts/nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt"); + } + + @TestMetadata("unitAsAny.kt") + public void testUnitAsAny() throws Exception { + runTest("compiler/testData/codegen/box/casts/unitAsAny.kt"); + } + + @TestMetadata("unitAsSafeAny.kt") + public void testUnitAsSafeAny() throws Exception { + runTest("compiler/testData/codegen/box/casts/unitAsSafeAny.kt"); + } + + @TestMetadata("unitNullableCast.kt") + public void testUnitNullableCast() throws Exception { + runTest("compiler/testData/codegen/box/casts/unitNullableCast.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/casts/functions") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Functions extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInFunctions() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts/functions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("asFunKBig.kt") + public void testAsFunKBig() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/asFunKBig.kt"); + } + + @TestMetadata("asFunKSmall.kt") + public void testAsFunKSmall() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/asFunKSmall.kt"); + } + + @TestMetadata("isFunKBig.kt") + public void testIsFunKBig() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/isFunKBig.kt"); + } + + @TestMetadata("isFunKSmall.kt") + public void testIsFunKSmall() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt"); + } + + @TestMetadata("reifiedAsFunKBig.kt") + public void testReifiedAsFunKBig() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/reifiedAsFunKBig.kt"); + } + + @TestMetadata("reifiedAsFunKSmall.kt") + public void testReifiedAsFunKSmall() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/reifiedAsFunKSmall.kt"); + } + + @TestMetadata("reifiedIsFunKBig.kt") + public void testReifiedIsFunKBig() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/reifiedIsFunKBig.kt"); + } + + @TestMetadata("reifiedIsFunKSmall.kt") + public void testReifiedIsFunKSmall() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/reifiedIsFunKSmall.kt"); + } + + @TestMetadata("reifiedSafeAsFunKBig.kt") + public void testReifiedSafeAsFunKBig() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/reifiedSafeAsFunKBig.kt"); + } + + @TestMetadata("reifiedSafeAsFunKSmall.kt") + public void testReifiedSafeAsFunKSmall() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/reifiedSafeAsFunKSmall.kt"); + } + + @TestMetadata("safeAsFunKBig.kt") + public void testSafeAsFunKBig() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/safeAsFunKBig.kt"); + } + + @TestMetadata("safeAsFunKSmall.kt") + public void testSafeAsFunKSmall() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/safeAsFunKSmall.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class LiteralExpressionAsGenericArgument extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInLiteralExpressionAsGenericArgument() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("binaryExpressionCast.kt") + public void testBinaryExpressionCast() throws Exception { + runTest("compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument/binaryExpressionCast.kt"); + } + + @TestMetadata("labeledExpressionCast.kt") + public void testLabeledExpressionCast() throws Exception { + runTest("compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument/labeledExpressionCast.kt"); + } + + @TestMetadata("parenthesizedExpressionCast.kt") + public void testParenthesizedExpressionCast() throws Exception { + runTest("compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument/parenthesizedExpressionCast.kt"); + } + + @TestMetadata("superConstructor.kt") + public void testSuperConstructor() throws Exception { + runTest("compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument/superConstructor.kt"); + } + + @TestMetadata("unaryExpressionCast.kt") + public void testUnaryExpressionCast() throws Exception { + runTest("compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument/unaryExpressionCast.kt"); + } + + @TestMetadata("vararg.kt") + public void testVararg() throws Exception { + runTest("compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument/vararg.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/casts/mutableCollections") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class MutableCollections extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInMutableCollections() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts/mutableCollections"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("asWithMutable.kt") + public void testAsWithMutable() throws Exception { + runTest("compiler/testData/codegen/box/casts/mutableCollections/asWithMutable.kt"); + } + + @TestMetadata("isWithMutable.kt") + public void testIsWithMutable() throws Exception { + runTest("compiler/testData/codegen/box/casts/mutableCollections/isWithMutable.kt"); + } + + @TestMetadata("reifiedAsWithMutable.kt") + public void testReifiedAsWithMutable() throws Exception { + runTest("compiler/testData/codegen/box/casts/mutableCollections/reifiedAsWithMutable.kt"); + } + + @TestMetadata("reifiedIsWithMutable.kt") + public void testReifiedIsWithMutable() throws Exception { + runTest("compiler/testData/codegen/box/casts/mutableCollections/reifiedIsWithMutable.kt"); + } + + @TestMetadata("reifiedSafeAsWithMutable.kt") + public void testReifiedSafeAsWithMutable() throws Exception { + runTest("compiler/testData/codegen/box/casts/mutableCollections/reifiedSafeAsWithMutable.kt"); + } + + @TestMetadata("safeAsWithMutable.kt") + public void testSafeAsWithMutable() throws Exception { + runTest("compiler/testData/codegen/box/casts/mutableCollections/safeAsWithMutable.kt"); + } + + @TestMetadata("weirdMutableCasts.kt") + public void testWeirdMutableCasts() throws Exception { + runTest("compiler/testData/codegen/box/casts/mutableCollections/weirdMutableCasts.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/checkcastOptimization") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class CheckcastOptimization extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCheckcastOptimization() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/checkcastOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("kt19128.kt") + public void testKt19128() throws Exception { + runTest("compiler/testData/codegen/box/checkcastOptimization/kt19128.kt"); + } + + @TestMetadata("kt19246.kt") + public void testKt19246() throws Exception { + runTest("compiler/testData/codegen/box/checkcastOptimization/kt19246.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/classLiteral") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ClassLiteral extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInClassLiteral() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("bareArray.kt") + public void testBareArray() throws Exception { + runTest("compiler/testData/codegen/box/classLiteral/bareArray.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/classLiteral/bound") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Bound extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInBound() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral/bound"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("primitives.kt") + public void testPrimitives() throws Exception { + runTest("compiler/testData/codegen/box/classLiteral/bound/primitives.kt"); + } + + @TestMetadata("sideEffect.kt") + public void testSideEffect() throws Exception { + runTest("compiler/testData/codegen/box/classLiteral/bound/sideEffect.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/classLiteral/bound/simple.kt"); + } + + @TestMetadata("smartCast.kt") + public void testSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/classLiteral/bound/smartCast.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/classLiteral/java") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Java extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInJava() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral/java"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("kt11943.kt") + public void testKt11943() throws Exception { + runTest("compiler/testData/codegen/box/classLiteral/java/kt11943.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/classes") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Classes extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInClasses() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("boxPrimitiveTypeInClinitOfClassObject.kt") + public void testBoxPrimitiveTypeInClinitOfClassObject() throws Exception { + runTest("compiler/testData/codegen/box/classes/boxPrimitiveTypeInClinitOfClassObject.kt"); + } + + @TestMetadata("classNamedAsOldPackageFacade.kt") + public void testClassNamedAsOldPackageFacade() throws Exception { + runTest("compiler/testData/codegen/box/classes/classNamedAsOldPackageFacade.kt"); + } + + @TestMetadata("classObject.kt") + public void testClassObject() throws Exception { + runTest("compiler/testData/codegen/box/classes/classObject.kt"); + } + + @TestMetadata("classObjectAsExtensionReceiver.kt") + public void testClassObjectAsExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/box/classes/classObjectAsExtensionReceiver.kt"); + } + + @TestMetadata("classObjectAsStaticInitializer.kt") + public void testClassObjectAsStaticInitializer() throws Exception { + runTest("compiler/testData/codegen/box/classes/classObjectAsStaticInitializer.kt"); + } + + @TestMetadata("classObjectField.kt") + public void testClassObjectField() throws Exception { + runTest("compiler/testData/codegen/box/classes/classObjectField.kt"); + } + + @TestMetadata("classObjectInTrait.kt") + public void testClassObjectInTrait() throws Exception { + runTest("compiler/testData/codegen/box/classes/classObjectInTrait.kt"); + } + + @TestMetadata("classObjectNotOfEnum.kt") + public void testClassObjectNotOfEnum() throws Exception { + runTest("compiler/testData/codegen/box/classes/classObjectNotOfEnum.kt"); + } + + @TestMetadata("classObjectWithPrivateGenericMember.kt") + public void testClassObjectWithPrivateGenericMember() throws Exception { + runTest("compiler/testData/codegen/box/classes/classObjectWithPrivateGenericMember.kt"); + } + + @TestMetadata("classObjectsWithParentClasses.kt") + public void testClassObjectsWithParentClasses() throws Exception { + runTest("compiler/testData/codegen/box/classes/classObjectsWithParentClasses.kt"); + } + + @TestMetadata("comanionObjectFieldVsClassField.kt") + public void testComanionObjectFieldVsClassField() throws Exception { + runTest("compiler/testData/codegen/box/classes/comanionObjectFieldVsClassField.kt"); + } + + @TestMetadata("defaultObjectSameNamesAsInOuter.kt") + public void testDefaultObjectSameNamesAsInOuter() throws Exception { + runTest("compiler/testData/codegen/box/classes/defaultObjectSameNamesAsInOuter.kt"); + } + + @TestMetadata("delegateConstructorCallWithKeywords.kt") + public void testDelegateConstructorCallWithKeywords() throws Exception { + runTest("compiler/testData/codegen/box/classes/delegateConstructorCallWithKeywords.kt"); + } + + @TestMetadata("delegation2.kt") + public void testDelegation2() throws Exception { + runTest("compiler/testData/codegen/box/classes/delegation2.kt"); + } + + @TestMetadata("delegation3.kt") + public void testDelegation3() throws Exception { + runTest("compiler/testData/codegen/box/classes/delegation3.kt"); + } + + @TestMetadata("delegation4.kt") + public void testDelegation4() throws Exception { + runTest("compiler/testData/codegen/box/classes/delegation4.kt"); + } + + @TestMetadata("delegationGenericArg.kt") + public void testDelegationGenericArg() throws Exception { + runTest("compiler/testData/codegen/box/classes/delegationGenericArg.kt"); + } + + @TestMetadata("delegationGenericArgUpperBound.kt") + public void testDelegationGenericArgUpperBound() throws Exception { + runTest("compiler/testData/codegen/box/classes/delegationGenericArgUpperBound.kt"); + } + + @TestMetadata("delegationGenericLongArg.kt") + public void testDelegationGenericLongArg() throws Exception { + runTest("compiler/testData/codegen/box/classes/delegationGenericLongArg.kt"); + } + + @TestMetadata("delegationJava.kt") + public void testDelegationJava() throws Exception { + runTest("compiler/testData/codegen/box/classes/delegationJava.kt"); + } + + @TestMetadata("delegationMethodsWithArgs.kt") + public void testDelegationMethodsWithArgs() throws Exception { + runTest("compiler/testData/codegen/box/classes/delegationMethodsWithArgs.kt"); + } + + @TestMetadata("exceptionConstructor.kt") + public void testExceptionConstructor() throws Exception { + runTest("compiler/testData/codegen/box/classes/exceptionConstructor.kt"); + } + + @TestMetadata("extensionOnNamedClassObject.kt") + public void testExtensionOnNamedClassObject() throws Exception { + runTest("compiler/testData/codegen/box/classes/extensionOnNamedClassObject.kt"); + } + + @TestMetadata("funDelegation.kt") + public void testFunDelegation() throws Exception { + runTest("compiler/testData/codegen/box/classes/funDelegation.kt"); + } + + @TestMetadata("implementComparableInSubclass.kt") + public void testImplementComparableInSubclass() throws Exception { + runTest("compiler/testData/codegen/box/classes/implementComparableInSubclass.kt"); + } + + @TestMetadata("inheritSetAndHashSet.kt") + public void testInheritSetAndHashSet() throws Exception { + runTest("compiler/testData/codegen/box/classes/inheritSetAndHashSet.kt"); + } + + @TestMetadata("inheritance.kt") + public void testInheritance() throws Exception { + runTest("compiler/testData/codegen/box/classes/inheritance.kt"); + } + + @TestMetadata("inheritedInnerClass.kt") + public void testInheritedInnerClass() throws Exception { + runTest("compiler/testData/codegen/box/classes/inheritedInnerClass.kt"); + } + + @TestMetadata("inheritedMethod.kt") + public void testInheritedMethod() throws Exception { + runTest("compiler/testData/codegen/box/classes/inheritedMethod.kt"); + } + + @TestMetadata("initializerBlock.kt") + public void testInitializerBlock() throws Exception { + runTest("compiler/testData/codegen/box/classes/initializerBlock.kt"); + } + + @TestMetadata("initializerBlockDImpl.kt") + public void testInitializerBlockDImpl() throws Exception { + runTest("compiler/testData/codegen/box/classes/initializerBlockDImpl.kt"); + } + + @TestMetadata("initializerBlockResetToDefault.kt") + public void testInitializerBlockResetToDefault() throws Exception { + runTest("compiler/testData/codegen/box/classes/initializerBlockResetToDefault.kt"); + } + + @TestMetadata("innerClass.kt") + public void testInnerClass() throws Exception { + runTest("compiler/testData/codegen/box/classes/innerClass.kt"); + } + + @TestMetadata("kt1018.kt") + public void testKt1018() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1018.kt"); + } + + @TestMetadata("kt1120.kt") + public void testKt1120() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1120.kt"); + } + + @TestMetadata("kt1157.kt") + public void testKt1157() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1157.kt"); + } + + @TestMetadata("kt1247.kt") + public void testKt1247() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1247.kt"); + } + + @TestMetadata("kt1345.kt") + public void testKt1345() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1345.kt"); + } + + @TestMetadata("kt1439.kt") + public void testKt1439() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1439.kt"); + } + + @TestMetadata("kt1535.kt") + public void testKt1535() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1535.kt"); + } + + @TestMetadata("kt1538.kt") + public void testKt1538() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1538.kt"); + } + + @TestMetadata("kt1578.kt") + public void testKt1578() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1578.kt"); + } + + @TestMetadata("kt1611.kt") + public void testKt1611() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1611.kt"); + } + + @TestMetadata("kt1721.kt") + public void testKt1721() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1721.kt"); + } + + @TestMetadata("kt1726.kt") + public void testKt1726() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1726.kt"); + } + + @TestMetadata("kt1759.kt") + public void testKt1759() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1759.kt"); + } + + @TestMetadata("kt1891.kt") + public void testKt1891() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1891.kt"); + } + + @TestMetadata("kt1918.kt") + public void testKt1918() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1918.kt"); + } + + @TestMetadata("kt1976.kt") + public void testKt1976() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1976.kt"); + } + + @TestMetadata("kt1980.kt") + public void testKt1980() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1980.kt"); + } + + @TestMetadata("kt2224.kt") + public void testKt2224() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2224.kt"); + } + + @TestMetadata("kt2384.kt") + public void testKt2384() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2384.kt"); + } + + @TestMetadata("kt2390.kt") + public void testKt2390() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2390.kt"); + } + + @TestMetadata("kt2391.kt") + public void testKt2391() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2391.kt"); + } + + @TestMetadata("kt2417.kt") + public void testKt2417() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2417.kt"); + } + + @TestMetadata("kt2477.kt") + public void testKt2477() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2477.kt"); + } + + @TestMetadata("kt2480.kt") + public void testKt2480() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2480.kt"); + } + + @TestMetadata("kt2482.kt") + public void testKt2482() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2482.kt"); + } + + @TestMetadata("kt2485.kt") + public void testKt2485() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2485.kt"); + } + + @TestMetadata("kt249.kt") + public void testKt249() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt249.kt"); + } + + @TestMetadata("kt2532.kt") + public void testKt2532() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2532.kt"); + } + + @TestMetadata("kt2566.kt") + public void testKt2566() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2566.kt"); + } + + @TestMetadata("kt2566_2.kt") + public void testKt2566_2() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2566_2.kt"); + } + + @TestMetadata("kt2607.kt") + public void testKt2607() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2607.kt"); + } + + @TestMetadata("kt2626.kt") + public void testKt2626() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2626.kt"); + } + + @TestMetadata("kt2711.kt") + public void testKt2711() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2711.kt"); + } + + @TestMetadata("kt2784.kt") + public void testKt2784() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2784.kt"); + } + + @TestMetadata("kt285.kt") + public void testKt285() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt285.kt"); + } + + @TestMetadata("kt3001.kt") + public void testKt3001() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt3001.kt"); + } + + @TestMetadata("kt3114.kt") + public void testKt3114() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt3114.kt"); + } + + @TestMetadata("kt3414.kt") + public void testKt3414() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt3414.kt"); + } + + @TestMetadata("kt343.kt") + public void testKt343() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt343.kt"); + } + + @TestMetadata("kt3546.kt") + public void testKt3546() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt3546.kt"); + } + + @TestMetadata("kt454.kt") + public void testKt454() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt454.kt"); + } + + @TestMetadata("kt471.kt") + public void testKt471() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt471.kt"); + } + + @TestMetadata("kt48.kt") + public void testKt48() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt48.kt"); + } + + @TestMetadata("kt496.kt") + public void testKt496() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt496.kt"); + } + + @TestMetadata("kt500.kt") + public void testKt500() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt500.kt"); + } + + @TestMetadata("kt501.kt") + public void testKt501() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt501.kt"); + } + + @TestMetadata("kt504.kt") + public void testKt504() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt504.kt"); + } + + @TestMetadata("kt508.kt") + public void testKt508() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt508.kt"); + } + + @TestMetadata("kt5347.kt") + public void testKt5347() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt5347.kt"); + } + + @TestMetadata("kt6136.kt") + public void testKt6136() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt6136.kt"); + } + + @TestMetadata("kt633.kt") + public void testKt633() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt633.kt"); + } + + @TestMetadata("kt6816.kt") + public void testKt6816() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt6816.kt"); + } + + @TestMetadata("kt707.kt") + public void testKt707() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt707.kt"); + } + + @TestMetadata("kt723.kt") + public void testKt723() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt723.kt"); + } + + @TestMetadata("kt725.kt") + public void testKt725() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt725.kt"); + } + + @TestMetadata("kt8011.kt") + public void testKt8011() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt8011.kt"); + } + + @TestMetadata("kt8011a.kt") + public void testKt8011a() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt8011a.kt"); + } + + @TestMetadata("kt940.kt") + public void testKt940() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt940.kt"); + } + + @TestMetadata("kt9642.kt") + public void testKt9642() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt9642.kt"); + } + + @TestMetadata("namedClassObject.kt") + public void testNamedClassObject() throws Exception { + runTest("compiler/testData/codegen/box/classes/namedClassObject.kt"); + } + + @TestMetadata("outerThis.kt") + public void testOuterThis() throws Exception { + runTest("compiler/testData/codegen/box/classes/outerThis.kt"); + } + + @TestMetadata("overloadBinaryOperator.kt") + public void testOverloadBinaryOperator() throws Exception { + runTest("compiler/testData/codegen/box/classes/overloadBinaryOperator.kt"); + } + + @TestMetadata("overloadPlusAssign.kt") + public void testOverloadPlusAssign() throws Exception { + runTest("compiler/testData/codegen/box/classes/overloadPlusAssign.kt"); + } + + @TestMetadata("overloadPlusAssignReturn.kt") + public void testOverloadPlusAssignReturn() throws Exception { + runTest("compiler/testData/codegen/box/classes/overloadPlusAssignReturn.kt"); + } + + @TestMetadata("overloadPlusToPlusAssign.kt") + public void testOverloadPlusToPlusAssign() throws Exception { + runTest("compiler/testData/codegen/box/classes/overloadPlusToPlusAssign.kt"); + } + + @TestMetadata("overloadUnaryOperator.kt") + public void testOverloadUnaryOperator() throws Exception { + runTest("compiler/testData/codegen/box/classes/overloadUnaryOperator.kt"); + } + + @TestMetadata("privateOuterFunctions.kt") + public void testPrivateOuterFunctions() throws Exception { + runTest("compiler/testData/codegen/box/classes/privateOuterFunctions.kt"); + } + + @TestMetadata("privateOuterProperty.kt") + public void testPrivateOuterProperty() throws Exception { + runTest("compiler/testData/codegen/box/classes/privateOuterProperty.kt"); + } + + @TestMetadata("privateToThis.kt") + public void testPrivateToThis() throws Exception { + runTest("compiler/testData/codegen/box/classes/privateToThis.kt"); + } + + @TestMetadata("propertyDelegation.kt") + public void testPropertyDelegation() throws Exception { + runTest("compiler/testData/codegen/box/classes/propertyDelegation.kt"); + } + + @TestMetadata("propertyInInitializer.kt") + public void testPropertyInInitializer() throws Exception { + runTest("compiler/testData/codegen/box/classes/propertyInInitializer.kt"); + } + + @TestMetadata("quotedClassName.kt") + public void testQuotedClassName() throws Exception { + runTest("compiler/testData/codegen/box/classes/quotedClassName.kt"); + } + + @TestMetadata("rightHandOverride.kt") + public void testRightHandOverride() throws Exception { + runTest("compiler/testData/codegen/box/classes/rightHandOverride.kt"); + } + + @TestMetadata("sealedInSameFile.kt") + public void testSealedInSameFile() throws Exception { + runTest("compiler/testData/codegen/box/classes/sealedInSameFile.kt"); + } + + @TestMetadata("selfcreate.kt") + public void testSelfcreate() throws Exception { + runTest("compiler/testData/codegen/box/classes/selfcreate.kt"); + } + + @TestMetadata("simpleBox.kt") + public void testSimpleBox() throws Exception { + runTest("compiler/testData/codegen/box/classes/simpleBox.kt"); + } + + @TestMetadata("superConstructorCallWithComplexArg.kt") + public void testSuperConstructorCallWithComplexArg() throws Exception { + runTest("compiler/testData/codegen/box/classes/superConstructorCallWithComplexArg.kt"); + } + + @TestMetadata("typedDelegation.kt") + public void testTypedDelegation() throws Exception { + runTest("compiler/testData/codegen/box/classes/typedDelegation.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/classes/inner") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Inner extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInner() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classes/inner"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("extensionWithOuter.kt") + public void testExtensionWithOuter() throws Exception { + runTest("compiler/testData/codegen/box/classes/inner/extensionWithOuter.kt"); + } + + @TestMetadata("instantiateInDerived.kt") + public void testInstantiateInDerived() throws Exception { + runTest("compiler/testData/codegen/box/classes/inner/instantiateInDerived.kt"); + } + + @TestMetadata("instantiateInDerivedLabeled.kt") + public void testInstantiateInDerivedLabeled() throws Exception { + runTest("compiler/testData/codegen/box/classes/inner/instantiateInDerivedLabeled.kt"); + } + + @TestMetadata("instantiateInSameClass.kt") + public void testInstantiateInSameClass() throws Exception { + runTest("compiler/testData/codegen/box/classes/inner/instantiateInSameClass.kt"); + } + + @TestMetadata("kt6708.kt") + public void testKt6708() throws Exception { + runTest("compiler/testData/codegen/box/classes/inner/kt6708.kt"); + } + + @TestMetadata("properOuter.kt") + public void testProperOuter() throws Exception { + runTest("compiler/testData/codegen/box/classes/inner/properOuter.kt"); + } + + @TestMetadata("properSuperLinking.kt") + public void testProperSuperLinking() throws Exception { + runTest("compiler/testData/codegen/box/classes/inner/properSuperLinking.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/closures") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Closures extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInClosures() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/closures"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("anonymousObjectAsLastExpressionInLambda.kt") + public void testAnonymousObjectAsLastExpressionInLambda() throws Exception { + runTest("compiler/testData/codegen/box/closures/anonymousObjectAsLastExpressionInLambda.kt"); + } + + @TestMetadata("captureExtensionReceiver.kt") + public void testCaptureExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureExtensionReceiver.kt"); + } + + @TestMetadata("captureExtensionReceiverX2.kt") + public void testCaptureExtensionReceiverX2() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureExtensionReceiverX2.kt"); + } + + @TestMetadata("capturedLocalGenericFun.kt") + public void testCapturedLocalGenericFun() throws Exception { + runTest("compiler/testData/codegen/box/closures/capturedLocalGenericFun.kt"); + } + + @TestMetadata("closureInsideConstrucor.kt") + public void testClosureInsideConstrucor() throws Exception { + runTest("compiler/testData/codegen/box/closures/closureInsideConstrucor.kt"); + } + + @TestMetadata("closureOnTopLevel1.kt") + public void testClosureOnTopLevel1() throws Exception { + runTest("compiler/testData/codegen/box/closures/closureOnTopLevel1.kt"); + } + + @TestMetadata("closureOnTopLevel2.kt") + public void testClosureOnTopLevel2() throws Exception { + runTest("compiler/testData/codegen/box/closures/closureOnTopLevel2.kt"); + } + + @TestMetadata("closureWithParameter.kt") + public void testClosureWithParameter() throws Exception { + runTest("compiler/testData/codegen/box/closures/closureWithParameter.kt"); + } + + @TestMetadata("closureWithParameterAndBoxing.kt") + public void testClosureWithParameterAndBoxing() throws Exception { + runTest("compiler/testData/codegen/box/closures/closureWithParameterAndBoxing.kt"); + } + + @TestMetadata("crossinlineLocalDeclaration.kt") + public void testCrossinlineLocalDeclaration() throws Exception { + runTest("compiler/testData/codegen/box/closures/crossinlineLocalDeclaration.kt"); + } + + @TestMetadata("doubleEnclosedLocalVariable.kt") + public void testDoubleEnclosedLocalVariable() throws Exception { + runTest("compiler/testData/codegen/box/closures/doubleEnclosedLocalVariable.kt"); + } + + @TestMetadata("enclosingLocalVariable.kt") + public void testEnclosingLocalVariable() throws Exception { + runTest("compiler/testData/codegen/box/closures/enclosingLocalVariable.kt"); + } + + @TestMetadata("enclosingThis.kt") + public void testEnclosingThis() throws Exception { + runTest("compiler/testData/codegen/box/closures/enclosingThis.kt"); + } + + @TestMetadata("extensionClosure.kt") + public void testExtensionClosure() throws Exception { + runTest("compiler/testData/codegen/box/closures/extensionClosure.kt"); + } + + @TestMetadata("kt10044.kt") + public void testKt10044() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt10044.kt"); + } + + @TestMetadata("kt11634.kt") + public void testKt11634() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt11634.kt"); + } + + @TestMetadata("kt11634_2.kt") + public void testKt11634_2() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt11634_2.kt"); + } + + @TestMetadata("kt11634_3.kt") + public void testKt11634_3() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt11634_3.kt"); + } + + @TestMetadata("kt11634_4.kt") + public void testKt11634_4() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt11634_4.kt"); + } + + @TestMetadata("kt19389.kt") + public void testKt19389() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt19389.kt"); + } + + @TestMetadata("kt19389_set.kt") + public void testKt19389_set() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt19389_set.kt"); + } + + @TestMetadata("kt2151.kt") + public void testKt2151() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt2151.kt"); + } + + @TestMetadata("kt3152.kt") + public void testKt3152() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt3152.kt"); + } + + @TestMetadata("kt3523.kt") + public void testKt3523() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt3523.kt"); + } + + @TestMetadata("kt3738.kt") + public void testKt3738() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt3738.kt"); + } + + @TestMetadata("kt3905.kt") + public void testKt3905() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt3905.kt"); + } + + @TestMetadata("kt4106.kt") + public void testKt4106() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt4106.kt"); + } + + @TestMetadata("kt4137.kt") + public void testKt4137() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt4137.kt"); + } + + @TestMetadata("kt5589.kt") + public void testKt5589() throws Exception { + runTest("compiler/testData/codegen/box/closures/kt5589.kt"); + } + + @TestMetadata("localClassFunClosure.kt") + public void testLocalClassFunClosure() throws Exception { + runTest("compiler/testData/codegen/box/closures/localClassFunClosure.kt"); + } + + @TestMetadata("localClassLambdaClosure.kt") + public void testLocalClassLambdaClosure() throws Exception { + runTest("compiler/testData/codegen/box/closures/localClassLambdaClosure.kt"); + } + + @TestMetadata("localFunInInit.kt") + public void testLocalFunInInit() throws Exception { + runTest("compiler/testData/codegen/box/closures/localFunInInit.kt"); + } + + @TestMetadata("localFunctionInFunction.kt") + public void testLocalFunctionInFunction() throws Exception { + runTest("compiler/testData/codegen/box/closures/localFunctionInFunction.kt"); + } + + @TestMetadata("localFunctionInInitializer.kt") + public void testLocalFunctionInInitializer() throws Exception { + runTest("compiler/testData/codegen/box/closures/localFunctionInInitializer.kt"); + } + + @TestMetadata("localGenericFun.kt") + public void testLocalGenericFun() throws Exception { + runTest("compiler/testData/codegen/box/closures/localGenericFun.kt"); + } + + @TestMetadata("localReturn.kt") + public void testLocalReturn() throws Exception { + runTest("compiler/testData/codegen/box/closures/localReturn.kt"); + } + + @TestMetadata("localReturnWithAutolabel.kt") + public void testLocalReturnWithAutolabel() throws Exception { + runTest("compiler/testData/codegen/box/closures/localReturnWithAutolabel.kt"); + } + + @TestMetadata("recursiveClosure.kt") + public void testRecursiveClosure() throws Exception { + runTest("compiler/testData/codegen/box/closures/recursiveClosure.kt"); + } + + @TestMetadata("simplestClosure.kt") + public void testSimplestClosure() throws Exception { + runTest("compiler/testData/codegen/box/closures/simplestClosure.kt"); + } + + @TestMetadata("simplestClosureAndBoxing.kt") + public void testSimplestClosureAndBoxing() throws Exception { + runTest("compiler/testData/codegen/box/closures/simplestClosureAndBoxing.kt"); + } + + @TestMetadata("subclosuresWithinInitializers.kt") + public void testSubclosuresWithinInitializers() throws Exception { + runTest("compiler/testData/codegen/box/closures/subclosuresWithinInitializers.kt"); + } + + @TestMetadata("underscoreParameters.kt") + public void testUnderscoreParameters() throws Exception { + runTest("compiler/testData/codegen/box/closures/underscoreParameters.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/closures/captureInSuperConstructorCall") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class CaptureInSuperConstructorCall extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCaptureInSuperConstructorCall() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/closures/captureInSuperConstructorCall"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("constructorParameterAndLocalCapturedInLambdaInLocalClass.kt") + public void testConstructorParameterAndLocalCapturedInLambdaInLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/constructorParameterAndLocalCapturedInLambdaInLocalClass.kt"); + } + + @TestMetadata("constructorParameterCapturedInLambdaInLocalClass.kt") + public void testConstructorParameterCapturedInLambdaInLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/constructorParameterCapturedInLambdaInLocalClass.kt"); + } + + @TestMetadata("constructorParameterCapturedInLambdaInLocalClass2.kt") + public void testConstructorParameterCapturedInLambdaInLocalClass2() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/constructorParameterCapturedInLambdaInLocalClass2.kt"); + } + + @TestMetadata("kt13454.kt") + public void testKt13454() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/kt13454.kt"); + } + + @TestMetadata("kt14148.kt") + public void testKt14148() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/kt14148.kt"); + } + + @TestMetadata("kt4174.kt") + public void testKt4174() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/kt4174.kt"); + } + + @TestMetadata("kt4174a.kt") + public void testKt4174a() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/kt4174a.kt"); + } + + @TestMetadata("localCapturedInAnonymousObjectInLocalClass.kt") + public void testLocalCapturedInAnonymousObjectInLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/localCapturedInAnonymousObjectInLocalClass.kt"); + } + + @TestMetadata("localCapturedInAnonymousObjectInLocalClass2.kt") + public void testLocalCapturedInAnonymousObjectInLocalClass2() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/localCapturedInAnonymousObjectInLocalClass2.kt"); + } + + @TestMetadata("localCapturedInLambdaInInnerClassInLocalClass.kt") + public void testLocalCapturedInLambdaInInnerClassInLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/localCapturedInLambdaInInnerClassInLocalClass.kt"); + } + + @TestMetadata("localCapturedInLambdaInLocalClass.kt") + public void testLocalCapturedInLambdaInLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/localCapturedInLambdaInLocalClass.kt"); + } + + @TestMetadata("localFunctionCapturedInLambda.kt") + public void testLocalFunctionCapturedInLambda() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/localFunctionCapturedInLambda.kt"); + } + + @TestMetadata("outerAndLocalCapturedInLocalClass.kt") + public void testOuterAndLocalCapturedInLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerAndLocalCapturedInLocalClass.kt"); + } + + @TestMetadata("outerCapturedAsImplicitThisInBoundReference.kt") + public void testOuterCapturedAsImplicitThisInBoundReference() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedAsImplicitThisInBoundReference.kt"); + } + + @TestMetadata("outerCapturedInFunctionLiteral.kt") + public void testOuterCapturedInFunctionLiteral() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInFunctionLiteral.kt"); + } + + @TestMetadata("outerCapturedInInlineLambda.kt") + public void testOuterCapturedInInlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInInlineLambda.kt"); + } + + @TestMetadata("outerCapturedInInlineLambda2.kt") + public void testOuterCapturedInInlineLambda2() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInInlineLambda2.kt"); + } + + @TestMetadata("outerCapturedInLambda.kt") + public void testOuterCapturedInLambda() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInLambda.kt"); + } + + @TestMetadata("outerCapturedInLambda2.kt") + public void testOuterCapturedInLambda2() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInLambda2.kt"); + } + + @TestMetadata("outerCapturedInLambdaInSecondaryConstructor.kt") + public void testOuterCapturedInLambdaInSecondaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInLambdaInSecondaryConstructor.kt"); + } + + @TestMetadata("outerCapturedInLambdaInSubExpression.kt") + public void testOuterCapturedInLambdaInSubExpression() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInLambdaInSubExpression.kt"); + } + + @TestMetadata("outerCapturedInLocalClass.kt") + public void testOuterCapturedInLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInLocalClass.kt"); + } + + @TestMetadata("outerCapturedInNestedLambda.kt") + public void testOuterCapturedInNestedLambda() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInNestedLambda.kt"); + } + + @TestMetadata("outerCapturedInNestedObject.kt") + public void testOuterCapturedInNestedObject() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInNestedObject.kt"); + } + + @TestMetadata("outerCapturedInObject.kt") + public void testOuterCapturedInObject() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInObject.kt"); + } + + @TestMetadata("outerCapturedInObject2.kt") + public void testOuterCapturedInObject2() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInObject2.kt"); + } + + @TestMetadata("outerCapturedInPrimaryConstructorDefaultParameter.kt") + public void testOuterCapturedInPrimaryConstructorDefaultParameter() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInPrimaryConstructorDefaultParameter.kt"); + } + + @TestMetadata("outerCapturedInSecondaryConstructorDefaultParameter.kt") + public void testOuterCapturedInSecondaryConstructorDefaultParameter() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInSecondaryConstructorDefaultParameter.kt"); + } + + @TestMetadata("outerEnumEntryCapturedInLambdaInInnerClass.kt") + public void testOuterEnumEntryCapturedInLambdaInInnerClass() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerEnumEntryCapturedInLambdaInInnerClass.kt"); + } + + @TestMetadata("properValueCapturedByClosure1.kt") + public void testProperValueCapturedByClosure1() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/properValueCapturedByClosure1.kt"); + } + + @TestMetadata("properValueCapturedByClosure2.kt") + public void testProperValueCapturedByClosure2() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/properValueCapturedByClosure2.kt"); + } + + @TestMetadata("referenceToCapturedVariablesInMultipleLambdas.kt") + public void testReferenceToCapturedVariablesInMultipleLambdas() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/referenceToCapturedVariablesInMultipleLambdas.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/closures/captureOuterProperty") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class CaptureOuterProperty extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCaptureOuterProperty() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/closures/captureOuterProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("captureFunctionInProperty.kt") + public void testCaptureFunctionInProperty() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureOuterProperty/captureFunctionInProperty.kt"); + } + + @TestMetadata("inFunction.kt") + public void testInFunction() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureOuterProperty/inFunction.kt"); + } + + @TestMetadata("inProperty.kt") + public void testInProperty() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureOuterProperty/inProperty.kt"); + } + + @TestMetadata("inPropertyDeepObjectChain.kt") + public void testInPropertyDeepObjectChain() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureOuterProperty/inPropertyDeepObjectChain.kt"); + } + + @TestMetadata("inPropertyFromSuperClass.kt") + public void testInPropertyFromSuperClass() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureOuterProperty/inPropertyFromSuperClass.kt"); + } + + @TestMetadata("inPropertyFromSuperSuperClass.kt") + public void testInPropertyFromSuperSuperClass() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureOuterProperty/inPropertyFromSuperSuperClass.kt"); + } + + @TestMetadata("kt4176.kt") + public void testKt4176() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureOuterProperty/kt4176.kt"); + } + + @TestMetadata("kt4656.kt") + public void testKt4656() throws Exception { + runTest("compiler/testData/codegen/box/closures/captureOuterProperty/kt4656.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/closures/capturedVarsOptimization") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class CapturedVarsOptimization extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception { + KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCapturedVarsOptimization() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/closures/capturedVarsOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("capturedInCrossinline.kt") + public void testCapturedInCrossinline() throws Exception { + runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/capturedInCrossinline.kt"); + } + + @TestMetadata("capturedInInlineOnlyAssign.kt") + public void testCapturedInInlineOnlyAssign() throws Exception { + runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/capturedInInlineOnlyAssign.kt"); + } + + @TestMetadata("capturedInInlineOnlyCAO.kt") + public void testCapturedInInlineOnlyCAO() throws Exception { + runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/capturedInInlineOnlyCAO.kt"); + } + + @TestMetadata("capturedInInlineOnlyIncrDecr.kt") + public void testCapturedInInlineOnlyIncrDecr() throws Exception { + runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/capturedInInlineOnlyIncrDecr.kt"); + } + + @TestMetadata("capturedInInlineOnlyIndexedCAO.kt") + public void testCapturedInInlineOnlyIndexedCAO() throws Exception { + runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/capturedInInlineOnlyIndexedCAO.kt"); + } + + @TestMetadata("capturedVarsOfSize2.kt") + public void testCapturedVarsOfSize2() throws Exception { + runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/capturedVarsOfSize2.kt"); + } + + @TestMetadata("kt17200.kt") + public void testKt17200() throws Exception { + runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/kt17200.kt"); + } + + @TestMetadata("kt17588.kt") + public void testKt17588() throws Exception { + runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/kt17588.kt"); + } + + @TestMetadata("sharedSlotsWithCapturedVars.kt") + public void testSharedSlotsWithCapturedVars() throws Exception { + runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/sharedSlotsWithCapturedVars.kt"); + } + + @TestMetadata("withCoroutinesNoStdLib.kt") + public void testWithCoroutinesNoStdLib_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/closures/capturedVarsOptimization/withCoroutinesNoStdLib.kt", "kotlin.coroutines"); + } + + @TestMetadata("withCoroutines.kt") + public void testWithCoroutines_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/closures/capturedVarsOptimization/withCoroutines.kt", "kotlin.coroutines"); + } + } + + @TestMetadata("compiler/testData/codegen/box/closures/closureInsideClosure") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ClosureInsideClosure extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInClosureInsideClosure() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/closures/closureInsideClosure"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("localFunInsideLocalFun.kt") + public void testLocalFunInsideLocalFun() throws Exception { + runTest("compiler/testData/codegen/box/closures/closureInsideClosure/localFunInsideLocalFun.kt"); + } + + @TestMetadata("localFunInsideLocalFunDifferentSignatures.kt") + public void testLocalFunInsideLocalFunDifferentSignatures() throws Exception { + runTest("compiler/testData/codegen/box/closures/closureInsideClosure/localFunInsideLocalFunDifferentSignatures.kt"); + } + + @TestMetadata("propertyAndFunctionNameClash.kt") + public void testPropertyAndFunctionNameClash() throws Exception { + runTest("compiler/testData/codegen/box/closures/closureInsideClosure/propertyAndFunctionNameClash.kt"); + } + + @TestMetadata("threeLevels.kt") + public void testThreeLevels() throws Exception { + runTest("compiler/testData/codegen/box/closures/closureInsideClosure/threeLevels.kt"); + } + + @TestMetadata("threeLevelsDifferentSignatures.kt") + public void testThreeLevelsDifferentSignatures() throws Exception { + runTest("compiler/testData/codegen/box/closures/closureInsideClosure/threeLevelsDifferentSignatures.kt"); + } + + @TestMetadata("varAsFunInsideLocalFun.kt") + public void testVarAsFunInsideLocalFun() throws Exception { + runTest("compiler/testData/codegen/box/closures/closureInsideClosure/varAsFunInsideLocalFun.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/collectionLiterals") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class CollectionLiterals extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCollectionLiterals() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/collectionLiterals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/collections") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Collections extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCollections() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/collections"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("inSetWithSmartCast.kt") + public void testInSetWithSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/collections/inSetWithSmartCast.kt"); + } + + @TestMetadata("removeClash.kt") + public void testRemoveClash() throws Exception { + runTest("compiler/testData/codegen/box/collections/removeClash.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/compatibility") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Compatibility extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCompatibility() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("privateCompanionObject.kt") + public void testPrivateCompanionObject() throws Exception { + runTest("compiler/testData/codegen/box/compatibility/privateCompanionObject.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/constants") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Constants extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInConstants() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/constants"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("comparisonFalse.kt") + public void testComparisonFalse() throws Exception { + runTest("compiler/testData/codegen/box/constants/comparisonFalse.kt"); + } + + @TestMetadata("comparisonTrue.kt") + public void testComparisonTrue() throws Exception { + runTest("compiler/testData/codegen/box/constants/comparisonTrue.kt"); + } + + @TestMetadata("constantsInWhen.kt") + public void testConstantsInWhen() throws Exception { + runTest("compiler/testData/codegen/box/constants/constantsInWhen.kt"); + } + + @TestMetadata("divisionByZero.kt") + public void testDivisionByZero() throws Exception { + runTest("compiler/testData/codegen/box/constants/divisionByZero.kt"); + } + + @TestMetadata("float.kt") + public void testFloat() throws Exception { + runTest("compiler/testData/codegen/box/constants/float.kt"); + } + + @TestMetadata("kt9532.kt") + public void testKt9532() throws Exception { + runTest("compiler/testData/codegen/box/constants/kt9532.kt"); + } + + @TestMetadata("kt9532_lv10.kt") + public void testKt9532_lv10() throws Exception { + runTest("compiler/testData/codegen/box/constants/kt9532_lv10.kt"); + } + + @TestMetadata("long.kt") + public void testLong() throws Exception { + runTest("compiler/testData/codegen/box/constants/long.kt"); + } + + @TestMetadata("numberLiteralCoercionToInferredType.kt") + public void testNumberLiteralCoercionToInferredType() throws Exception { + runTest("compiler/testData/codegen/box/constants/numberLiteralCoercionToInferredType.kt"); + } + + @TestMetadata("privateConst.kt") + public void testPrivateConst() throws Exception { + runTest("compiler/testData/codegen/box/constants/privateConst.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/constructorCall") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ConstructorCall extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInConstructorCall() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/constructorCall"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/contracts") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Contracts extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInContracts() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/contracts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("constructorArgument.kt") + public void testConstructorArgument() throws Exception { + runTest("compiler/testData/codegen/box/contracts/constructorArgument.kt"); + } + + @TestMetadata("exactlyOnceNotInline.kt") + public void testExactlyOnceNotInline() throws Exception { + runTest("compiler/testData/codegen/box/contracts/exactlyOnceNotInline.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/controlStructures") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ControlStructures extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInControlStructures() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("bottles.kt") + public void testBottles() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/bottles.kt"); + } + + @TestMetadata("breakInFinally.kt") + public void testBreakInFinally() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakInFinally.kt"); + } + + @TestMetadata("breakInWhen.kt") + public void testBreakInWhen() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakInWhen.kt"); + } + + @TestMetadata("compareBoxedIntegerToZero.kt") + public void testCompareBoxedIntegerToZero() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/compareBoxedIntegerToZero.kt"); + } + + @TestMetadata("conditionOfEmptyIf.kt") + public void testConditionOfEmptyIf() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/conditionOfEmptyIf.kt"); + } + + @TestMetadata("continueInExpr.kt") + public void testContinueInExpr() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/continueInExpr.kt"); + } + + @TestMetadata("continueInFor.kt") + public void testContinueInFor() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/continueInFor.kt"); + } + + @TestMetadata("continueInForCondition.kt") + public void testContinueInForCondition() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/continueInForCondition.kt"); + } + + @TestMetadata("continueInWhen.kt") + public void testContinueInWhen() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/continueInWhen.kt"); + } + + @TestMetadata("continueInWhile.kt") + public void testContinueInWhile() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/continueInWhile.kt"); + } + + @TestMetadata("continueToLabelInFor.kt") + public void testContinueToLabelInFor() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/continueToLabelInFor.kt"); + } + + @TestMetadata("doWhile.kt") + public void testDoWhile() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/doWhile.kt"); + } + + @TestMetadata("doWhileFib.kt") + public void testDoWhileFib() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/doWhileFib.kt"); + } + + @TestMetadata("doWhileWithContinue.kt") + public void testDoWhileWithContinue() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/doWhileWithContinue.kt"); + } + + @TestMetadata("emptyDoWhile.kt") + public void testEmptyDoWhile() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/emptyDoWhile.kt"); + } + + @TestMetadata("emptyFor.kt") + public void testEmptyFor() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/emptyFor.kt"); + } + + @TestMetadata("emptyWhile.kt") + public void testEmptyWhile() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/emptyWhile.kt"); + } + + @TestMetadata("factorialTest.kt") + public void testFactorialTest() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/factorialTest.kt"); + } + + @TestMetadata("finallyOnEmptyReturn.kt") + public void testFinallyOnEmptyReturn() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/finallyOnEmptyReturn.kt"); + } + + @TestMetadata("forArrayList.kt") + public void testForArrayList() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forArrayList.kt"); + } + + @TestMetadata("forArrayListMultiDecl.kt") + public void testForArrayListMultiDecl() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forArrayListMultiDecl.kt"); + } + + @TestMetadata("forInCharSequence.kt") + public void testForInCharSequence() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequence.kt"); + } + + @TestMetadata("forInCharSequenceMut.kt") + public void testForInCharSequenceMut() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceMut.kt"); + } + + @TestMetadata("forInSmartCastToArray.kt") + public void testForInSmartCastToArray() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInSmartCastToArray.kt"); + } + + @TestMetadata("forLoopMemberExtensionAll.kt") + public void testForLoopMemberExtensionAll() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forLoopMemberExtensionAll.kt"); + } + + @TestMetadata("forLoopMemberExtensionHasNext.kt") + public void testForLoopMemberExtensionHasNext() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forLoopMemberExtensionHasNext.kt"); + } + + @TestMetadata("forLoopMemberExtensionNext.kt") + public void testForLoopMemberExtensionNext() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forLoopMemberExtensionNext.kt"); + } + + @TestMetadata("forNullableCharInString.kt") + public void testForNullableCharInString() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forNullableCharInString.kt"); + } + + @TestMetadata("forUserType.kt") + public void testForUserType() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forUserType.kt"); + } + + @TestMetadata("ifConst1.kt") + public void testIfConst1() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/ifConst1.kt"); + } + + @TestMetadata("ifConst2.kt") + public void testIfConst2() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/ifConst2.kt"); + } + + @TestMetadata("ifIncompatibleBranches.kt") + public void testIfIncompatibleBranches() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/ifIncompatibleBranches.kt"); + } + + @TestMetadata("inRangeConditionsInWhen.kt") + public void testInRangeConditionsInWhen() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/inRangeConditionsInWhen.kt"); + } + + @TestMetadata("kt12908.kt") + public void testKt12908() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt12908.kt"); + } + + @TestMetadata("kt12908_2.kt") + public void testKt12908_2() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt12908_2.kt"); + } + + @TestMetadata("kt1441.kt") + public void testKt1441() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt1441.kt"); + } + + @TestMetadata("kt14839.kt") + public void testKt14839() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt14839.kt"); + } + + @TestMetadata("kt15726.kt") + public void testKt15726() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt15726.kt"); + } + + @TestMetadata("kt1688.kt") + public void testKt1688() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt1688.kt"); + } + + @TestMetadata("kt17110.kt") + public void testKt17110() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt17110.kt"); + } + + @TestMetadata("kt1742.kt") + public void testKt1742() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt1742.kt"); + } + + @TestMetadata("kt17590.kt") + public void testKt17590() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt17590.kt"); + } + + @TestMetadata("kt17590_long.kt") + public void testKt17590_long() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt17590_long.kt"); + } + + @TestMetadata("kt1899.kt") + public void testKt1899() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt1899.kt"); + } + + @TestMetadata("kt2147.kt") + public void testKt2147() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt2147.kt"); + } + + @TestMetadata("kt2259.kt") + public void testKt2259() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt2259.kt"); + } + + @TestMetadata("kt2291.kt") + public void testKt2291() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt2291.kt"); + } + + @TestMetadata("kt237.kt") + public void testKt237() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt237.kt"); + } + + @TestMetadata("kt2416.kt") + public void testKt2416() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt2416.kt"); + } + + @TestMetadata("kt2577.kt") + public void testKt2577() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt2577.kt"); + } + + @TestMetadata("kt2597.kt") + public void testKt2597() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt2597.kt"); + } + + @TestMetadata("kt299.kt") + public void testKt299() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt299.kt"); + } + + @TestMetadata("kt3087.kt") + public void testKt3087() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt3087.kt"); + } + + @TestMetadata("kt3203_1.kt") + public void testKt3203_1() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt3203_1.kt"); + } + + @TestMetadata("kt3203_2.kt") + public void testKt3203_2() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt3203_2.kt"); + } + + @TestMetadata("kt3273.kt") + public void testKt3273() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt3273.kt"); + } + + @TestMetadata("kt3280.kt") + public void testKt3280() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt3280.kt"); + } + + @TestMetadata("kt416.kt") + public void testKt416() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt416.kt"); + } + + @TestMetadata("kt513.kt") + public void testKt513() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt513.kt"); + } + + @TestMetadata("kt628.kt") + public void testKt628() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt628.kt"); + } + + @TestMetadata("kt769.kt") + public void testKt769() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt769.kt"); + } + + @TestMetadata("kt772.kt") + public void testKt772() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt772.kt"); + } + + @TestMetadata("kt773.kt") + public void testKt773() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt773.kt"); + } + + @TestMetadata("kt8148.kt") + public void testKt8148() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt8148.kt"); + } + + @TestMetadata("kt8148_break.kt") + public void testKt8148_break() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt8148_break.kt"); + } + + @TestMetadata("kt8148_continue.kt") + public void testKt8148_continue() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt8148_continue.kt"); + } + + @TestMetadata("kt870.kt") + public void testKt870() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt870.kt"); + } + + @TestMetadata("kt9022Return.kt") + public void testKt9022Return() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt9022Return.kt"); + } + + @TestMetadata("kt9022Throw.kt") + public void testKt9022Throw() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt9022Throw.kt"); + } + + @TestMetadata("kt910.kt") + public void testKt910() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt910.kt"); + } + + @TestMetadata("kt958.kt") + public void testKt958() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/kt958.kt"); + } + + @TestMetadata("longRange.kt") + public void testLongRange() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/longRange.kt"); + } + + @TestMetadata("parameterWithNameForFunctionType.kt") + public void testParameterWithNameForFunctionType() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/parameterWithNameForFunctionType.kt"); + } + + @TestMetadata("quicksort.kt") + public void testQuicksort() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/quicksort.kt"); + } + + @TestMetadata("tryCatchFinallyChain.kt") + public void testTryCatchFinallyChain() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchFinallyChain.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class BreakContinueInExpressions extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInBreakContinueInExpressions() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("breakFromOuter.kt") + public void testBreakFromOuter() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/breakFromOuter.kt"); + } + + @TestMetadata("breakInDoWhile.kt") + public void testBreakInDoWhile() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/breakInDoWhile.kt"); + } + + @TestMetadata("breakInExpr.kt") + public void testBreakInExpr() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/breakInExpr.kt"); + } + + @TestMetadata("continueInDoWhile.kt") + public void testContinueInDoWhile() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/continueInDoWhile.kt"); + } + + @TestMetadata("continueInExpr.kt") + public void testContinueInExpr() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/continueInExpr.kt"); + } + + @TestMetadata("inlineWithStack.kt") + public void testInlineWithStack() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/inlineWithStack.kt"); + } + + @TestMetadata("innerLoopWithStack.kt") + public void testInnerLoopWithStack() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/innerLoopWithStack.kt"); + } + + @TestMetadata("kt14581.kt") + public void testKt14581() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt14581.kt"); + } + + @TestMetadata("kt16713.kt") + public void testKt16713() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt16713.kt"); + } + + @TestMetadata("kt16713_2.kt") + public void testKt16713_2() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt16713_2.kt"); + } + + @TestMetadata("kt17384.kt") + public void testKt17384() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt17384.kt"); + } + + @TestMetadata("kt9022And.kt") + public void testKt9022And() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt9022And.kt"); + } + + @TestMetadata("kt9022Or.kt") + public void testKt9022Or() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt9022Or.kt"); + } + + @TestMetadata("pathologicalDoWhile.kt") + public void testPathologicalDoWhile() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/pathologicalDoWhile.kt"); + } + + @TestMetadata("popSizes.kt") + public void testPopSizes() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/popSizes.kt"); + } + + @TestMetadata("tryFinally1.kt") + public void testTryFinally1() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/tryFinally1.kt"); + } + + @TestMetadata("tryFinally2.kt") + public void testTryFinally2() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/tryFinally2.kt"); + } + + @TestMetadata("whileTrueBreak.kt") + public void testWhileTrueBreak() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/whileTrueBreak.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/controlStructures/forInArray") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ForInArray extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInForInArray() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/forInArray"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("forInArraySpecializedToUntil.kt") + public void testForInArraySpecializedToUntil() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArray/forInArraySpecializedToUntil.kt"); + } + + @TestMetadata("forInArrayWithArrayPropertyUpdatedInLoopBody.kt") + public void testForInArrayWithArrayPropertyUpdatedInLoopBody() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArray/forInArrayWithArrayPropertyUpdatedInLoopBody.kt"); + } + + @TestMetadata("forInArrayWithArrayVarUpdatedInLoopBody13.kt") + public void testForInArrayWithArrayVarUpdatedInLoopBody13() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArray/forInArrayWithArrayVarUpdatedInLoopBody13.kt"); + } + + @TestMetadata("forInDelegatedPropertyUpdatedInLoopBody.kt") + public void testForInDelegatedPropertyUpdatedInLoopBody() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArray/forInDelegatedPropertyUpdatedInLoopBody.kt"); + } + + @TestMetadata("forInDoubleArrayWithUpcast.kt") + public void testForInDoubleArrayWithUpcast() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArray/forInDoubleArrayWithUpcast.kt"); + } + + @TestMetadata("forInFieldUpdatedInLoopBody.kt") + public void testForInFieldUpdatedInLoopBody() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArray/forInFieldUpdatedInLoopBody.kt"); + } + + @TestMetadata("forInInlineClassArrayWithUpcast.kt") + public void testForInInlineClassArrayWithUpcast() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArray/forInInlineClassArrayWithUpcast.kt"); + } + + @TestMetadata("forIntArray.kt") + public void testForIntArray() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArray/forIntArray.kt"); + } + + @TestMetadata("forNullableIntArray.kt") + public void testForNullableIntArray() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArray/forNullableIntArray.kt"); + } + + @TestMetadata("forPrimitiveIntArray.kt") + public void testForPrimitiveIntArray() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArray/forPrimitiveIntArray.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ForInArrayWithIndex extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInForInArrayWithIndex() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("forInArrayOfObjectArrayWithIndex.kt") + public void testForInArrayOfObjectArrayWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayOfObjectArrayWithIndex.kt"); + } + + @TestMetadata("forInArrayOfPrimArrayWithIndex.kt") + public void testForInArrayOfPrimArrayWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayOfPrimArrayWithIndex.kt"); + } + + @TestMetadata("forInArrayWithIndexBreakAndContinue.kt") + public void testForInArrayWithIndexBreakAndContinue() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexBreakAndContinue.kt"); + } + + @TestMetadata("forInArrayWithIndexContinuesAsUnmodified.kt") + public void testForInArrayWithIndexContinuesAsUnmodified() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexContinuesAsUnmodified.kt"); + } + + @TestMetadata("forInArrayWithIndexNoElementVar.kt") + public void testForInArrayWithIndexNoElementVar() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoElementVar.kt"); + } + + @TestMetadata("forInArrayWithIndexNoIndexOrElementVar.kt") + public void testForInArrayWithIndexNoIndexOrElementVar() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoIndexOrElementVar.kt"); + } + + @TestMetadata("forInArrayWithIndexNoIndexVar.kt") + public void testForInArrayWithIndexNoIndexVar() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoIndexVar.kt"); + } + + @TestMetadata("forInArrayWithIndexNotDestructured.kt") + public void testForInArrayWithIndexNotDestructured() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNotDestructured.kt"); + } + + @TestMetadata("forInArrayWithIndexWithExplicitlyTypedIndexVariable.kt") + public void testForInArrayWithIndexWithExplicitlyTypedIndexVariable() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexWithExplicitlyTypedIndexVariable.kt"); + } + + @TestMetadata("forInByteArrayWithIndex.kt") + public void testForInByteArrayWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInByteArrayWithIndex.kt"); + } + + @TestMetadata("forInByteArrayWithIndexWithSmartCast.kt") + public void testForInByteArrayWithIndexWithSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInByteArrayWithIndexWithSmartCast.kt"); + } + + @TestMetadata("forInEmptyArrayWithIndex.kt") + public void testForInEmptyArrayWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInEmptyArrayWithIndex.kt"); + } + + @TestMetadata("forInGenericArrayOfIntsWithIndex.kt") + public void testForInGenericArrayOfIntsWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInGenericArrayOfIntsWithIndex.kt"); + } + + @TestMetadata("forInGenericArrayOfIntsWithIndexWithSmartCast.kt") + public void testForInGenericArrayOfIntsWithIndexWithSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInGenericArrayOfIntsWithIndexWithSmartCast.kt"); + } + + @TestMetadata("forInGenericArrayWithIndex.kt") + public void testForInGenericArrayWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInGenericArrayWithIndex.kt"); + } + + @TestMetadata("forInIntArrayWithIndex.kt") + public void testForInIntArrayWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInIntArrayWithIndex.kt"); + } + + @TestMetadata("forInIntArrayWithIndexWithSmartCast.kt") + public void testForInIntArrayWithIndexWithSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInIntArrayWithIndexWithSmartCast.kt"); + } + + @TestMetadata("forInObjectArrayWithIndex.kt") + public void testForInObjectArrayWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInObjectArrayWithIndex.kt"); + } + + @TestMetadata("forInShortArrayWithIndex.kt") + public void testForInShortArrayWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInShortArrayWithIndex.kt"); + } + + @TestMetadata("forInShortArrayWithIndexWithSmartCast.kt") + public void testForInShortArrayWithIndexWithSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInShortArrayWithIndexWithSmartCast.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ForInCharSequenceWithIndex extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInForInCharSequenceWithIndex() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("forInCharSeqWithIndexStops.kt") + public void testForInCharSeqWithIndexStops() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSeqWithIndexStops.kt"); + } + + @TestMetadata("forInCharSequenceTypeParameterWithIndex.kt") + public void testForInCharSequenceTypeParameterWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceTypeParameterWithIndex.kt"); + } + + @TestMetadata("forInCharSequenceWithIndex.kt") + public void testForInCharSequenceWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndex.kt"); + } + + @TestMetadata("forInCharSequenceWithIndexBreakAndContinue.kt") + public void testForInCharSequenceWithIndexBreakAndContinue() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndexBreakAndContinue.kt"); + } + + @TestMetadata("forInCharSequenceWithIndexCheckSideEffects.kt") + public void testForInCharSequenceWithIndexCheckSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndexCheckSideEffects.kt"); + } + + @TestMetadata("forInCharSequenceWithIndexNoElementVarCheckSideEffects.kt") + public void testForInCharSequenceWithIndexNoElementVarCheckSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndexNoElementVarCheckSideEffects.kt"); + } + + @TestMetadata("forInCharSequenceWithIndexNoIndexVarCheckSideEffects.kt") + public void testForInCharSequenceWithIndexNoIndexVarCheckSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndexNoIndexVarCheckSideEffects.kt"); + } + + @TestMetadata("forInEmptyStringWithIndex.kt") + public void testForInEmptyStringWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInEmptyStringWithIndex.kt"); + } + + @TestMetadata("forInStringWithIndex.kt") + public void testForInStringWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndex.kt"); + } + + @TestMetadata("forInStringWithIndexNoElementVar.kt") + public void testForInStringWithIndexNoElementVar() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoElementVar.kt"); + } + + @TestMetadata("forInStringWithIndexNoIndexOrElementVar.kt") + public void testForInStringWithIndexNoIndexOrElementVar() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoIndexOrElementVar.kt"); + } + + @TestMetadata("forInStringWithIndexNoIndexVar.kt") + public void testForInStringWithIndexNoIndexVar() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoIndexVar.kt"); + } + + @TestMetadata("forInStringWithIndexNotDestructured.kt") + public void testForInStringWithIndexNotDestructured() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNotDestructured.kt"); + } + + @TestMetadata("forInStringWithIndexWithExplicitlyTypedIndexVariable.kt") + public void testForInStringWithIndexWithExplicitlyTypedIndexVariable() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexWithExplicitlyTypedIndexVariable.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ForInIterableWithIndex extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInForInIterableWithIndex() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("forInEmptyListWithIndex.kt") + public void testForInEmptyListWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInEmptyListWithIndex.kt"); + } + + @TestMetadata("forInIterableTypeParameterWithIndex.kt") + public void testForInIterableTypeParameterWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInIterableTypeParameterWithIndex.kt"); + } + + @TestMetadata("forInIterableWithIndexCheckSideEffects.kt") + public void testForInIterableWithIndexCheckSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInIterableWithIndexCheckSideEffects.kt"); + } + + @TestMetadata("forInIterableWithIndexNoElementVarCheckSideEffects.kt") + public void testForInIterableWithIndexNoElementVarCheckSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInIterableWithIndexNoElementVarCheckSideEffects.kt"); + } + + @TestMetadata("forInIterableWithIndexNoIndexVarCheckSideEffects.kt") + public void testForInIterableWithIndexNoIndexVarCheckSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInIterableWithIndexNoIndexVarCheckSideEffects.kt"); + } + + @TestMetadata("forInListWithIndex.kt") + public void testForInListWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInListWithIndex.kt"); + } + + @TestMetadata("forInListWithIndexBreakAndContinue.kt") + public void testForInListWithIndexBreakAndContinue() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInListWithIndexBreakAndContinue.kt"); + } + + @TestMetadata("forInListWithIndexNoElementVar.kt") + public void testForInListWithIndexNoElementVar() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInListWithIndexNoElementVar.kt"); + } + + @TestMetadata("forInListWithIndexNoIndexVar.kt") + public void testForInListWithIndexNoIndexVar() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInListWithIndexNoIndexVar.kt"); + } + + @TestMetadata("forInListWithIndexWithExplicitlyTypedIndexVariable.kt") + public void testForInListWithIndexWithExplicitlyTypedIndexVariable() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInListWithIndexWithExplicitlyTypedIndexVariable.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ForInSequenceWithIndex extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInForInSequenceWithIndex() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("forInEmptySequenceWithIndex.kt") + public void testForInEmptySequenceWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInEmptySequenceWithIndex.kt"); + } + + @TestMetadata("forInSequenceTypeParameterWithIndex.kt") + public void testForInSequenceTypeParameterWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInSequenceTypeParameterWithIndex.kt"); + } + + @TestMetadata("forInSequenceWithIndex.kt") + public void testForInSequenceWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInSequenceWithIndex.kt"); + } + + @TestMetadata("forInSequenceWithIndexBreakAndContinue.kt") + public void testForInSequenceWithIndexBreakAndContinue() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInSequenceWithIndexBreakAndContinue.kt"); + } + + @TestMetadata("forInSequenceWithIndexCheckSideEffects.kt") + public void testForInSequenceWithIndexCheckSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInSequenceWithIndexCheckSideEffects.kt"); + } + + @TestMetadata("forInSequenceWithIndexNoElementVar.kt") + public void testForInSequenceWithIndexNoElementVar() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInSequenceWithIndexNoElementVar.kt"); + } + + @TestMetadata("forInSequenceWithIndexNoElementVarCheckSideEffects.kt") + public void testForInSequenceWithIndexNoElementVarCheckSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInSequenceWithIndexNoElementVarCheckSideEffects.kt"); + } + + @TestMetadata("forInSequenceWithIndexNoIndexVar.kt") + public void testForInSequenceWithIndexNoIndexVar() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInSequenceWithIndexNoIndexVar.kt"); + } + + @TestMetadata("forInSequenceWithIndexNoIndexVarCheckSideEffects.kt") + public void testForInSequenceWithIndexNoIndexVarCheckSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInSequenceWithIndexNoIndexVarCheckSideEffects.kt"); + } + + @TestMetadata("forInSequenceWithIndexWithExplicitlyTypedIndexVariable.kt") + public void testForInSequenceWithIndexWithExplicitlyTypedIndexVariable() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInSequenceWithIndexWithExplicitlyTypedIndexVariable.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/controlStructures/returnsNothing") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ReturnsNothing extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInReturnsNothing() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/returnsNothing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("ifElse.kt") + public void testIfElse() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/returnsNothing/ifElse.kt"); + } + + @TestMetadata("inlineMethod.kt") + public void testInlineMethod() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/returnsNothing/inlineMethod.kt"); + } + + @TestMetadata("propertyGetter.kt") + public void testPropertyGetter() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/returnsNothing/propertyGetter.kt"); + } + + @TestMetadata("tryCatch.kt") + public void testTryCatch() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/returnsNothing/tryCatch.kt"); + } + + @TestMetadata("when.kt") + public void testWhen() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/returnsNothing/when.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class TryCatchInExpressions extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInTryCatchInExpressions() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("catch.kt") + public void testCatch() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/catch.kt"); + } + + @TestMetadata("complexChain.kt") + public void testComplexChain() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/complexChain.kt"); + } + + @TestMetadata("deadTryCatch.kt") + public void testDeadTryCatch() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/deadTryCatch.kt"); + } + + @TestMetadata("differentTypes.kt") + public void testDifferentTypes() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/differentTypes.kt"); + } + + @TestMetadata("expectException.kt") + public void testExpectException() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/expectException.kt"); + } + + @TestMetadata("finally.kt") + public void testFinally() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/finally.kt"); + } + + @TestMetadata("inlineTryCatch.kt") + public void testInlineTryCatch() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/inlineTryCatch.kt"); + } + + @TestMetadata("inlineTryExpr.kt") + public void testInlineTryExpr() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/inlineTryExpr.kt"); + } + + @TestMetadata("inlineTryFinally.kt") + public void testInlineTryFinally() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/inlineTryFinally.kt"); + } + + @TestMetadata("kt17572.kt") + public void testKt17572() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572.kt"); + } + + @TestMetadata("kt17572_2.kt") + public void testKt17572_2() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572_2.kt"); + } + + @TestMetadata("kt17572_2_ext.kt") + public void testKt17572_2_ext() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572_2_ext.kt"); + } + + @TestMetadata("kt17572_ext.kt") + public void testKt17572_ext() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572_ext.kt"); + } + + @TestMetadata("kt17572_nested.kt") + public void testKt17572_nested() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572_nested.kt"); + } + + @TestMetadata("kt17573.kt") + public void testKt17573() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17573.kt"); + } + + @TestMetadata("kt17573_nested.kt") + public void testKt17573_nested() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17573_nested.kt"); + } + + @TestMetadata("kt8608.kt") + public void testKt8608() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt8608.kt"); + } + + @TestMetadata("kt9644try.kt") + public void testKt9644try() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt9644try.kt"); + } + + @TestMetadata("multipleCatchBlocks.kt") + public void testMultipleCatchBlocks() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/multipleCatchBlocks.kt"); + } + + @TestMetadata("splitTry.kt") + public void testSplitTry() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt"); + } + + @TestMetadata("splitTryCorner1.kt") + public void testSplitTryCorner1() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner1.kt"); + } + + @TestMetadata("splitTryCorner2.kt") + public void testSplitTryCorner2() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner2.kt"); + } + + @TestMetadata("try.kt") + public void testTry() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/try.kt"); + } + + @TestMetadata("tryAfterTry.kt") + public void testTryAfterTry() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryAfterTry.kt"); + } + + @TestMetadata("tryAndBreak.kt") + public void testTryAndBreak() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryAndBreak.kt"); + } + + @TestMetadata("tryAndContinue.kt") + public void testTryAndContinue() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryAndContinue.kt"); + } + + @TestMetadata("tryCatchAfterWhileTrue.kt") + public void testTryCatchAfterWhileTrue() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryCatchAfterWhileTrue.kt"); + } + + @TestMetadata("tryInsideCatch.kt") + public void testTryInsideCatch() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryInsideCatch.kt"); + } + + @TestMetadata("tryInsideTry.kt") + public void testTryInsideTry() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryInsideTry.kt"); + } + + @TestMetadata("unmatchedInlineMarkers.kt") + public void testUnmatchedInlineMarkers() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/unmatchedInlineMarkers.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/coroutines") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Coroutines extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception { + KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("32defaultParametersInSuspend.kt") + public void test32defaultParametersInSuspend_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/32defaultParametersInSuspend.kt", "kotlin.coroutines"); + } + + @TestMetadata("accessorForSuspend.kt") + public void testAccessorForSuspend_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/accessorForSuspend.kt", "kotlin.coroutines"); + } + + public void testAllFilesPresentInCoroutines() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("asyncIteratorNullMerge_1_3.kt") + public void testAsyncIteratorNullMerge_1_3() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/asyncIteratorNullMerge_1_3.kt"); + } + + @TestMetadata("asyncIteratorToList_1_3.kt") + public void testAsyncIteratorToList_1_3() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/asyncIteratorToList_1_3.kt"); + } + + @TestMetadata("asyncIterator_1_3.kt") + public void testAsyncIterator_1_3() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/asyncIterator_1_3.kt"); + } + + @TestMetadata("await.kt") + public void testAwait_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/await.kt", "kotlin.coroutines"); + } + + @TestMetadata("beginWithExceptionNoHandleException.kt") + public void testBeginWithExceptionNoHandleException_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/beginWithExceptionNoHandleException.kt", "kotlin.coroutines"); + } + + @TestMetadata("beginWithException.kt") + public void testBeginWithException_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/beginWithException.kt", "kotlin.coroutines"); + } + + @TestMetadata("builderInferenceAndGenericArrayAcessCall.kt") + public void testBuilderInferenceAndGenericArrayAcessCall() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/builderInferenceAndGenericArrayAcessCall.kt"); + } + + @TestMetadata("captureMutableLocalVariableInsideCoroutineBlock.kt") + public void testCaptureMutableLocalVariableInsideCoroutineBlock() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/captureMutableLocalVariableInsideCoroutineBlock.kt"); + } + + @TestMetadata("capturedVarInSuspendLambda.kt") + public void testCapturedVarInSuspendLambda_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/capturedVarInSuspendLambda.kt", "kotlin.coroutines"); + } + + @TestMetadata("catchWithInlineInsideSuspend.kt") + public void testCatchWithInlineInsideSuspend_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/catchWithInlineInsideSuspend.kt", "kotlin.coroutines"); + } + + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/coercionToUnit.kt", "kotlin.coroutines"); + } + + @TestMetadata("controllerAccessFromInnerLambda.kt") + public void testControllerAccessFromInnerLambda_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt", "kotlin.coroutines"); + } + + @TestMetadata("coroutineContextInInlinedLambda.kt") + public void testCoroutineContextInInlinedLambda_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/coroutineContextInInlinedLambda.kt", "kotlin.coroutines"); + } + + @TestMetadata("createCoroutineSafe.kt") + public void testCreateCoroutineSafe_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/createCoroutineSafe.kt", "kotlin.coroutines"); + } + + @TestMetadata("createCoroutinesOnManualInstances.kt") + public void testCreateCoroutinesOnManualInstances_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/createCoroutinesOnManualInstances.kt", "kotlin.coroutines"); + } + + @TestMetadata("crossInlineWithCapturedOuterReceiver.kt") + public void testCrossInlineWithCapturedOuterReceiver_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/crossInlineWithCapturedOuterReceiver.kt", "kotlin.coroutines"); + } + + @TestMetadata("defaultParametersInSuspend.kt") + public void testDefaultParametersInSuspend_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/defaultParametersInSuspend.kt", "kotlin.coroutines"); + } + + @TestMetadata("delegatedSuspendMember.kt") + public void testDelegatedSuspendMember_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/delegatedSuspendMember.kt", "kotlin.coroutines"); + } + + @TestMetadata("dispatchResume.kt") + public void testDispatchResume_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/dispatchResume.kt", "kotlin.coroutines"); + } + + @TestMetadata("doubleColonExpressionsGenerationInBuilderInference.kt") + public void testDoubleColonExpressionsGenerationInBuilderInference() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/doubleColonExpressionsGenerationInBuilderInference.kt"); + } + + @TestMetadata("emptyClosure.kt") + public void testEmptyClosure_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/emptyClosure.kt", "kotlin.coroutines"); + } + + @TestMetadata("emptyCommonConstraintSystemForCoroutineInferenceCall.kt") + public void testEmptyCommonConstraintSystemForCoroutineInferenceCall() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/emptyCommonConstraintSystemForCoroutineInferenceCall.kt"); + } + + @TestMetadata("epam.kt") + public void testEpam_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/epam.kt", "kotlin.coroutines"); + } + + @TestMetadata("falseUnitCoercion.kt") + public void testFalseUnitCoercion_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt", "kotlin.coroutines"); + } + + @TestMetadata("generate.kt") + public void testGenerate_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/generate.kt", "kotlin.coroutines"); + } + + @TestMetadata("handleException.kt") + public void testHandleException_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/handleException.kt", "kotlin.coroutines"); + } + + @TestMetadata("handleResultCallEmptyBody.kt") + public void testHandleResultCallEmptyBody_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/handleResultCallEmptyBody.kt", "kotlin.coroutines"); + } + + @TestMetadata("handleResultNonUnitExpression.kt") + public void testHandleResultNonUnitExpression_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/handleResultNonUnitExpression.kt", "kotlin.coroutines"); + } + + @TestMetadata("handleResultSuspended.kt") + public void testHandleResultSuspended_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/handleResultSuspended.kt", "kotlin.coroutines"); + } + + @TestMetadata("indirectInlineUsedAsNonInline.kt") + public void testIndirectInlineUsedAsNonInline_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/indirectInlineUsedAsNonInline.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlineFunInGenericClass.kt") + public void testInlineFunInGenericClass_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/inlineFunInGenericClass.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlineGenericFunCalledFromSubclass.kt") + public void testInlineGenericFunCalledFromSubclass_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/inlineGenericFunCalledFromSubclass.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlineSuspendFunction.kt") + public void testInlineSuspendFunction_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/inlineSuspendFunction.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlineSuspendLambdaNonLocalReturn.kt") + public void testInlineSuspendLambdaNonLocalReturn_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/inlineSuspendLambdaNonLocalReturn.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlinedTryCatchFinally.kt") + public void testInlinedTryCatchFinally_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/inlinedTryCatchFinally.kt", "kotlin.coroutines"); + } + + @TestMetadata("innerSuspensionCalls.kt") + public void testInnerSuspensionCalls_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/innerSuspensionCalls.kt", "kotlin.coroutines"); + } + + @TestMetadata("instanceOfContinuation.kt") + public void testInstanceOfContinuation_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/instanceOfContinuation.kt", "kotlin.coroutines"); + } + + @TestMetadata("iterateOverArray.kt") + public void testIterateOverArray_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/iterateOverArray.kt", "kotlin.coroutines"); + } + + @TestMetadata("kt12958.kt") + public void testKt12958_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/kt12958.kt", "kotlin.coroutines"); + } + + @TestMetadata("kt15016.kt") + public void testKt15016_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/kt15016.kt", "kotlin.coroutines"); + } + + @TestMetadata("kt15017.kt") + public void testKt15017_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/kt15017.kt", "kotlin.coroutines"); + } + + @TestMetadata("kt15930.kt") + public void testKt15930_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/kt15930.kt", "kotlin.coroutines"); + } + + @TestMetadata("kt21605.kt") + public void testKt21605_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/kt21605.kt", "kotlin.coroutines"); + } + + @TestMetadata("kt25912.kt") + public void testKt25912_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/kt25912.kt", "kotlin.coroutines"); + } + + @TestMetadata("kt28844.kt") + public void testKt28844_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/kt28844.kt", "kotlin.coroutines"); + } + + @TestMetadata("kt30858.kt") + public void testKt30858() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt30858.kt"); + } + + @TestMetadata("kt31784.kt") + public void testKt31784() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt31784.kt"); + } + + @TestMetadata("kt35967.kt") + public void testKt35967() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/kt35967.kt"); + } + + @TestMetadata("lastExpressionIsLoop.kt") + public void testLastExpressionIsLoop_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/lastExpressionIsLoop.kt", "kotlin.coroutines"); + } + + @TestMetadata("lastStatementInc.kt") + public void testLastStatementInc_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/lastStatementInc.kt", "kotlin.coroutines"); + } + + @TestMetadata("lastStementAssignment.kt") + public void testLastStementAssignment_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/lastStementAssignment.kt", "kotlin.coroutines"); + } + + @TestMetadata("lastUnitExpression.kt") + public void testLastUnitExpression_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/lastUnitExpression.kt", "kotlin.coroutines"); + } + + @TestMetadata("localCallableRef.kt") + public void testLocalCallableRef() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/localCallableRef.kt"); + } + + @TestMetadata("localDelegate.kt") + public void testLocalDelegate_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/localDelegate.kt", "kotlin.coroutines"); + } + + @TestMetadata("longRangeInSuspendCall.kt") + public void testLongRangeInSuspendCall_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/longRangeInSuspendCall.kt", "kotlin.coroutines"); + } + + @TestMetadata("longRangeInSuspendFun.kt") + public void testLongRangeInSuspendFun_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/longRangeInSuspendFun.kt", "kotlin.coroutines"); + } + + @TestMetadata("mergeNullAndString.kt") + public void testMergeNullAndString_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/mergeNullAndString.kt", "kotlin.coroutines"); + } + + @TestMetadata("multipleInvokeCallsInsideInlineLambda1.kt") + public void testMultipleInvokeCallsInsideInlineLambda1_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda1.kt", "kotlin.coroutines"); + } + + @TestMetadata("multipleInvokeCallsInsideInlineLambda2.kt") + public void testMultipleInvokeCallsInsideInlineLambda2_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda2.kt", "kotlin.coroutines"); + } + + @TestMetadata("multipleInvokeCallsInsideInlineLambda3.kt") + public void testMultipleInvokeCallsInsideInlineLambda3_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda3.kt", "kotlin.coroutines"); + } + + @TestMetadata("multipleInvokeCalls.kt") + public void testMultipleInvokeCalls_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/multipleInvokeCalls.kt", "kotlin.coroutines"); + } + + @TestMetadata("nestedTryCatch.kt") + public void testNestedTryCatch_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/nestedTryCatch.kt", "kotlin.coroutines"); + } + + @TestMetadata("noSuspensionPoints.kt") + public void testNoSuspensionPoints_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/noSuspensionPoints.kt", "kotlin.coroutines"); + } + + @TestMetadata("nonLocalReturnFromInlineLambdaDeep.kt") + public void testNonLocalReturnFromInlineLambdaDeep_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/nonLocalReturnFromInlineLambdaDeep.kt", "kotlin.coroutines"); + } + + @TestMetadata("nonLocalReturnFromInlineLambda.kt") + public void testNonLocalReturnFromInlineLambda_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/nonLocalReturnFromInlineLambda.kt", "kotlin.coroutines"); + } + + @TestMetadata("overrideDefaultArgument.kt") + public void testOverrideDefaultArgument_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/overrideDefaultArgument.kt", "kotlin.coroutines"); + } + + @TestMetadata("recursiveSuspend.kt") + public void testRecursiveSuspend_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/recursiveSuspend.kt", "kotlin.coroutines"); + } + + @TestMetadata("returnByLabel.kt") + public void testReturnByLabel_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/returnByLabel.kt", "kotlin.coroutines"); + } + + @TestMetadata("simpleException.kt") + public void testSimpleException_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/simpleException.kt", "kotlin.coroutines"); + } + + @TestMetadata("simpleSuspendCallableReference.kt") + public void testSimpleSuspendCallableReference() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/simpleSuspendCallableReference.kt"); + } + + @TestMetadata("simpleWithHandleResult.kt") + public void testSimpleWithHandleResult_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/simpleWithHandleResult.kt", "kotlin.coroutines"); + } + + @TestMetadata("simple.kt") + public void testSimple_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/simple.kt", "kotlin.coroutines"); + } + + @TestMetadata("statementLikeLastExpression.kt") + public void testStatementLikeLastExpression_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/statementLikeLastExpression.kt", "kotlin.coroutines"); + } + + @TestMetadata("stopAfter.kt") + public void testStopAfter() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/stopAfter.kt"); + } + + @TestMetadata("suspendCallsInArguments.kt") + public void testSuspendCallsInArguments_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendCallsInArguments.kt", "kotlin.coroutines"); + } + + @TestMetadata("suspendCoroutineFromStateMachine.kt") + public void testSuspendCoroutineFromStateMachine_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendCoroutineFromStateMachine.kt", "kotlin.coroutines"); + } + + @TestMetadata("suspendDefaultImpl.kt") + public void testSuspendDefaultImpl_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendDefaultImpl.kt", "kotlin.coroutines"); + } + + @TestMetadata("suspendDelegation.kt") + public void testSuspendDelegation_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendDelegation.kt", "kotlin.coroutines"); + } + + @TestMetadata("suspendFromInlineLambda.kt") + public void testSuspendFromInlineLambda_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFromInlineLambda.kt", "kotlin.coroutines"); + } + + @TestMetadata("suspendFunImportedFromObject.kt") + public void testSuspendFunImportedFromObject_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunImportedFromObject.kt", "kotlin.coroutines"); + } + + @TestMetadata("suspendInCycle.kt") + public void testSuspendInCycle_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendInCycle.kt", "kotlin.coroutines"); + } + + @TestMetadata("suspendInTheMiddleOfObjectConstructionEvaluationOrder.kt") + public void testSuspendInTheMiddleOfObjectConstructionEvaluationOrder_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstructionEvaluationOrder.kt", "kotlin.coroutines"); + } + + @TestMetadata("suspendInTheMiddleOfObjectConstructionWithJumpOut.kt") + public void testSuspendInTheMiddleOfObjectConstructionWithJumpOut_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstructionWithJumpOut.kt", "kotlin.coroutines"); + } + + @TestMetadata("suspendInTheMiddleOfObjectConstruction.kt") + public void testSuspendInTheMiddleOfObjectConstruction_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstruction.kt", "kotlin.coroutines"); + } + + @TestMetadata("suspendLambdaWithArgumentRearrangement.kt") + public void testSuspendLambdaWithArgumentRearrangement_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendLambdaWithArgumentRearrangement.kt", "kotlin.coroutines"); + } + + @TestMetadata("suspensionInsideSafeCallWithElvis.kt") + public void testSuspensionInsideSafeCallWithElvis_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspensionInsideSafeCallWithElvis.kt", "kotlin.coroutines"); + } + + @TestMetadata("suspensionInsideSafeCall.kt") + public void testSuspensionInsideSafeCall_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspensionInsideSafeCall.kt", "kotlin.coroutines"); + } + + @TestMetadata("tailCallToNothing.kt") + public void testTailCallToNothing() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/tailCallToNothing.kt"); + } + + @TestMetadata("tryCatchFinallyWithHandleResult.kt") + public void testTryCatchFinallyWithHandleResult_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/tryCatchFinallyWithHandleResult.kt", "kotlin.coroutines"); + } + + @TestMetadata("tryCatchWithHandleResult.kt") + public void testTryCatchWithHandleResult_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/tryCatchWithHandleResult.kt", "kotlin.coroutines"); + } + + @TestMetadata("tryFinallyInsideInlineLambda.kt") + public void testTryFinallyInsideInlineLambda_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/tryFinallyInsideInlineLambda.kt", "kotlin.coroutines"); + } + + @TestMetadata("tryFinallyWithHandleResult.kt") + public void testTryFinallyWithHandleResult_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/tryFinallyWithHandleResult.kt", "kotlin.coroutines"); + } + + @TestMetadata("varCaptuedInCoroutineIntrinsic.kt") + public void testVarCaptuedInCoroutineIntrinsic_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/varCaptuedInCoroutineIntrinsic.kt", "kotlin.coroutines"); + } + + @TestMetadata("varValueConflictsWithTableSameSort.kt") + public void testVarValueConflictsWithTableSameSort_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/varValueConflictsWithTableSameSort.kt", "kotlin.coroutines"); + } + + @TestMetadata("varValueConflictsWithTable.kt") + public void testVarValueConflictsWithTable_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/varValueConflictsWithTable.kt", "kotlin.coroutines"); + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/bridges") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Bridges extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception { + KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInBridges() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/bridges"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("interfaceSpecialization.kt") + public void testInterfaceSpecialization_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/bridges/interfaceSpecialization.kt", "kotlin.coroutines"); + } + + @TestMetadata("lambdaWithLongReceiver.kt") + public void testLambdaWithLongReceiver_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/bridges/lambdaWithLongReceiver.kt", "kotlin.coroutines"); + } + + @TestMetadata("lambdaWithMultipleParameters.kt") + public void testLambdaWithMultipleParameters_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/bridges/lambdaWithMultipleParameters.kt", "kotlin.coroutines"); + } + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/controlFlow") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ControlFlow extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception { + KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInControlFlow() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/controlFlow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("breakFinally.kt") + public void testBreakFinally_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/controlFlow/breakFinally.kt", "kotlin.coroutines"); + } + + @TestMetadata("breakStatement.kt") + public void testBreakStatement_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/controlFlow/breakStatement.kt", "kotlin.coroutines"); + } + + @TestMetadata("complexChainSuspend.kt") + public void testComplexChainSuspend_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/controlFlow/complexChainSuspend.kt", "kotlin.coroutines"); + } + + @TestMetadata("doWhileStatement.kt") + public void testDoWhileStatement_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/controlFlow/doWhileStatement.kt", "kotlin.coroutines"); + } + + @TestMetadata("doubleBreak.kt") + public void testDoubleBreak_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/controlFlow/doubleBreak.kt", "kotlin.coroutines"); + } + + @TestMetadata("finallyCatch.kt") + public void testFinallyCatch_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/controlFlow/finallyCatch.kt", "kotlin.coroutines"); + } + + @TestMetadata("forContinue.kt") + public void testForContinue_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/controlFlow/forContinue.kt", "kotlin.coroutines"); + } + + @TestMetadata("forStatement.kt") + public void testForStatement_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/controlFlow/forStatement.kt", "kotlin.coroutines"); + } + + @TestMetadata("forWithStep.kt") + public void testForWithStep_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/controlFlow/forWithStep.kt", "kotlin.coroutines"); + } + + @TestMetadata("ifStatement.kt") + public void testIfStatement_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/controlFlow/ifStatement.kt", "kotlin.coroutines"); + } + + @TestMetadata("kt22694_1_3.kt") + public void testKt22694_1_3() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/controlFlow/kt22694_1_3.kt"); + } + + @TestMetadata("labeledWhile.kt") + public void testLabeledWhile_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/controlFlow/labeledWhile.kt", "kotlin.coroutines"); + } + + @TestMetadata("multipleCatchBlocksSuspend.kt") + public void testMultipleCatchBlocksSuspend_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/controlFlow/multipleCatchBlocksSuspend.kt", "kotlin.coroutines"); + } + + @TestMetadata("returnFromFinally.kt") + public void testReturnFromFinally_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/controlFlow/returnFromFinally.kt", "kotlin.coroutines"); + } + + @TestMetadata("returnWithFinally.kt") + public void testReturnWithFinally_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/controlFlow/returnWithFinally.kt", "kotlin.coroutines"); + } + + @TestMetadata("switchLikeWhen.kt") + public void testSwitchLikeWhen_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/controlFlow/switchLikeWhen.kt", "kotlin.coroutines"); + } + + @TestMetadata("throwFromCatch.kt") + public void testThrowFromCatch_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/controlFlow/throwFromCatch.kt", "kotlin.coroutines"); + } + + @TestMetadata("throwFromFinally.kt") + public void testThrowFromFinally_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/controlFlow/throwFromFinally.kt", "kotlin.coroutines"); + } + + @TestMetadata("throwInTryWithHandleResult.kt") + public void testThrowInTryWithHandleResult_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/controlFlow/throwInTryWithHandleResult.kt", "kotlin.coroutines"); + } + + @TestMetadata("whenWithSuspensions.kt") + public void testWhenWithSuspensions_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/controlFlow/whenWithSuspensions.kt", "kotlin.coroutines"); + } + + @TestMetadata("whileStatement.kt") + public void testWhileStatement_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/controlFlow/whileStatement.kt", "kotlin.coroutines"); + } + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/debug") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Debug extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDebug() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/debug"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/featureIntersection") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class FeatureIntersection extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception { + KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInFeatureIntersection() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("breakWithNonEmptyStack.kt") + public void testBreakWithNonEmptyStack_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/featureIntersection/breakWithNonEmptyStack.kt", "kotlin.coroutines"); + } + + @TestMetadata("delegate.kt") + public void testDelegate_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/featureIntersection/delegate.kt", "kotlin.coroutines"); + } + + @TestMetadata("destructuringInLambdas.kt") + public void testDestructuringInLambdas_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/featureIntersection/destructuringInLambdas.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlineSuspendFinally.kt") + public void testInlineSuspendFinally_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/featureIntersection/inlineSuspendFinally.kt", "kotlin.coroutines"); + } + + @TestMetadata("interfaceMethodWithBody.kt") + public void testInterfaceMethodWithBody() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/interfaceMethodWithBody.kt"); + } + + @TestMetadata("interfaceMethodWithBodyGeneric.kt") + public void testInterfaceMethodWithBodyGeneric() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/interfaceMethodWithBodyGeneric.kt"); + } + + @TestMetadata("overrideInInlineClass.kt") + public void testOverrideInInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/overrideInInlineClass.kt"); + } + + @TestMetadata("safeCallOnTwoReceiversLong.kt") + public void testSafeCallOnTwoReceiversLong_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/featureIntersection/safeCallOnTwoReceiversLong.kt", "kotlin.coroutines"); + } + + @TestMetadata("safeCallOnTwoReceivers.kt") + public void testSafeCallOnTwoReceivers_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/featureIntersection/safeCallOnTwoReceivers.kt", "kotlin.coroutines"); + } + + @TestMetadata("suspendDestructuringInLambdas.kt") + public void testSuspendDestructuringInLambdas_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/featureIntersection/suspendDestructuringInLambdas.kt", "kotlin.coroutines"); + } + + @TestMetadata("suspendFunctionIsAs.kt") + public void testSuspendFunctionIsAs() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/suspendFunctionIsAs.kt"); + } + + @TestMetadata("suspendInlineSuspendFinally.kt") + public void testSuspendInlineSuspendFinally_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/featureIntersection/suspendInlineSuspendFinally.kt", "kotlin.coroutines"); + } + + @TestMetadata("suspendOperatorPlusAssign.kt") + public void testSuspendOperatorPlusAssign_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/featureIntersection/suspendOperatorPlusAssign.kt", "kotlin.coroutines"); + } + + @TestMetadata("suspendOperatorPlusCallFromLambda.kt") + public void testSuspendOperatorPlusCallFromLambda_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/featureIntersection/suspendOperatorPlusCallFromLambda.kt", "kotlin.coroutines"); + } + + @TestMetadata("suspendOperatorPlus.kt") + public void testSuspendOperatorPlus_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/featureIntersection/suspendOperatorPlus.kt", "kotlin.coroutines"); + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class CallableReference extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception { + KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCallableReference() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("bigArity.kt") + public void testBigArity_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/bigArity.kt", "kotlin.coroutines"); + } + + @TestMetadata("longArgs.kt") + public void testLongArgs() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/longArgs.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/bound") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Bound extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInBound() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/bound"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("emptyLHS.kt") + public void testEmptyLHS() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/bound/emptyLHS.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Function extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInFunction() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("genericCallableReferencesWithNullableTypes.kt") + public void testGenericCallableReferencesWithNullableTypes() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/genericCallableReferencesWithNullableTypes.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/local") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Local extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInLocal() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/local"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("equalsHashCode.kt") + public void testEqualsHashCode() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/local/equalsHashCode.kt"); + } + } + } + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Tailrec extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception { + KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInTailrec() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("controlFlowIf.kt") + public void testControlFlowIf_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/controlFlowIf.kt", "kotlin.coroutines"); + } + + @TestMetadata("controlFlowWhen.kt") + public void testControlFlowWhen_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/controlFlowWhen.kt", "kotlin.coroutines"); + } + + @TestMetadata("extention.kt") + public void testExtention_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/extention.kt", "kotlin.coroutines"); + } + + @TestMetadata("infixCall.kt") + public void testInfixCall_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/infixCall.kt", "kotlin.coroutines"); + } + + @TestMetadata("infixRecursiveCall.kt") + public void testInfixRecursiveCall_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/infixRecursiveCall.kt", "kotlin.coroutines"); + } + + @TestMetadata("realIteratorFoldl.kt") + public void testRealIteratorFoldl_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/realIteratorFoldl.kt", "kotlin.coroutines"); + } + + @TestMetadata("realStringEscape.kt") + public void testRealStringEscape_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/realStringEscape.kt", "kotlin.coroutines"); + } + + @TestMetadata("realStringRepeat.kt") + public void testRealStringRepeat_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/realStringRepeat.kt", "kotlin.coroutines"); + } + + @TestMetadata("returnInParentheses.kt") + public void testReturnInParentheses_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/returnInParentheses.kt", "kotlin.coroutines"); + } + + @TestMetadata("sum.kt") + public void testSum_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/sum.kt", "kotlin.coroutines"); + } + + @TestMetadata("tailCallInBlockInParentheses.kt") + public void testTailCallInBlockInParentheses_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/tailCallInBlockInParentheses.kt", "kotlin.coroutines"); + } + + @TestMetadata("tailCallInParentheses.kt") + public void testTailCallInParentheses_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/tailCallInParentheses.kt", "kotlin.coroutines"); + } + + @TestMetadata("whenWithIs.kt") + public void testWhenWithIs_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/whenWithIs.kt", "kotlin.coroutines"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/inlineClasses") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class InlineClasses extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception { + KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInlineClasses() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("boxReturnValueOfSuspendFunctionReference.kt") + public void testBoxReturnValueOfSuspendFunctionReference() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/boxReturnValueOfSuspendFunctionReference.kt"); + } + + @TestMetadata("boxReturnValueOfSuspendLambda.kt") + public void testBoxReturnValueOfSuspendLambda() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/boxReturnValueOfSuspendLambda.kt"); + } + + @TestMetadata("boxUnboxInsideCoroutine.kt") + public void testBoxUnboxInsideCoroutine_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/inlineClasses/boxUnboxInsideCoroutine.kt", "kotlin.coroutines"); + } + + @TestMetadata("boxUnboxInsideCoroutine_Any.kt") + public void testBoxUnboxInsideCoroutine_Any_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/inlineClasses/boxUnboxInsideCoroutine_Any.kt", "kotlin.coroutines"); + } + + @TestMetadata("boxUnboxInsideCoroutine_InlineAny.kt") + public void testBoxUnboxInsideCoroutine_InlineAny_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/inlineClasses/boxUnboxInsideCoroutine_InlineAny.kt", "kotlin.coroutines"); + } + + @TestMetadata("boxUnboxInsideCoroutine_InlineInt.kt") + public void testBoxUnboxInsideCoroutine_InlineInt_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/inlineClasses/boxUnboxInsideCoroutine_InlineInt.kt", "kotlin.coroutines"); + } + + @TestMetadata("boxUnboxInsideCoroutine_Int.kt") + public void testBoxUnboxInsideCoroutine_Int_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/inlineClasses/boxUnboxInsideCoroutine_Int.kt", "kotlin.coroutines"); + } + + @TestMetadata("boxUnboxInsideCoroutine_Long.kt") + public void testBoxUnboxInsideCoroutine_Long_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/inlineClasses/boxUnboxInsideCoroutine_Long.kt", "kotlin.coroutines"); + } + + @TestMetadata("boxUnboxInsideCoroutine_NAny.kt") + public void testBoxUnboxInsideCoroutine_NAny_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/inlineClasses/boxUnboxInsideCoroutine_NAny.kt", "kotlin.coroutines"); + } + + @TestMetadata("boxUnboxInsideCoroutine_nonLocalReturn.kt") + public void testBoxUnboxInsideCoroutine_nonLocalReturn_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/inlineClasses/boxUnboxInsideCoroutine_nonLocalReturn.kt", "kotlin.coroutines"); + } + + @TestMetadata("boxUnboxInsideCoroutine_suspendFunType.kt") + public void testBoxUnboxInsideCoroutine_suspendFunType_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/inlineClasses/boxUnboxInsideCoroutine_suspendFunType.kt", "kotlin.coroutines"); + } + + @TestMetadata("bridgeGenerationCrossinline.kt") + public void testBridgeGenerationCrossinline_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/inlineClasses/bridgeGenerationCrossinline.kt", "kotlin.coroutines"); + } + + @TestMetadata("bridgeGenerationNonInline.kt") + public void testBridgeGenerationNonInline_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/inlineClasses/bridgeGenerationNonInline.kt", "kotlin.coroutines"); + } + + @TestMetadata("covariantOverrideSuspendFun.kt") + public void testCovariantOverrideSuspendFun() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/covariantOverrideSuspendFun.kt"); + } + + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/covariantOverrideSuspendFunWithNullableInlineClass.kt"); + } + + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_Any.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClass_Any() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/covariantOverrideSuspendFunWithNullableInlineClass_Any.kt"); + } + + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_Int.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClass_Int() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/covariantOverrideSuspendFunWithNullableInlineClass_Int.kt"); + } + + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_NullableAny.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClass_NullableAny() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/covariantOverrideSuspendFunWithNullableInlineClass_NullableAny.kt"); + } + + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_NullableAny_null.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClass_NullableAny_null() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/covariantOverrideSuspendFunWithNullableInlineClass_NullableAny_null.kt"); + } + + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_NullableInt.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClass_NullableInt() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/covariantOverrideSuspendFunWithNullableInlineClass_NullableInt.kt"); + } + + @TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_NullableInt_null.kt") + public void testCovariantOverrideSuspendFunWithNullableInlineClass_NullableInt_null() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/covariantOverrideSuspendFunWithNullableInlineClass_NullableInt_null.kt"); + } + + @TestMetadata("covariantOverrideSuspendFun_Any.kt") + public void testCovariantOverrideSuspendFun_Any() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/covariantOverrideSuspendFun_Any.kt"); + } + + @TestMetadata("covariantOverrideSuspendFun_Int.kt") + public void testCovariantOverrideSuspendFun_Int() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/covariantOverrideSuspendFun_Int.kt"); + } + + @TestMetadata("genericOverrideSuspendFun.kt") + public void testGenericOverrideSuspendFun() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/genericOverrideSuspendFun.kt"); + } + + @TestMetadata("genericOverrideSuspendFun_Any.kt") + public void testGenericOverrideSuspendFun_Any() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/genericOverrideSuspendFun_Any.kt"); + } + + @TestMetadata("genericOverrideSuspendFun_Any_NullableInlineClassUpperBound.kt") + public void testGenericOverrideSuspendFun_Any_NullableInlineClassUpperBound() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/genericOverrideSuspendFun_Any_NullableInlineClassUpperBound.kt"); + } + + @TestMetadata("genericOverrideSuspendFun_Int.kt") + public void testGenericOverrideSuspendFun_Int() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/genericOverrideSuspendFun_Int.kt"); + } + + @TestMetadata("genericOverrideSuspendFun_NullableAny.kt") + public void testGenericOverrideSuspendFun_NullableAny() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/genericOverrideSuspendFun_NullableAny.kt"); + } + + @TestMetadata("genericOverrideSuspendFun_NullableAny_null.kt") + public void testGenericOverrideSuspendFun_NullableAny_null() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/genericOverrideSuspendFun_NullableAny_null.kt"); + } + + @TestMetadata("genericOverrideSuspendFun_NullableInt.kt") + public void testGenericOverrideSuspendFun_NullableInt() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/genericOverrideSuspendFun_NullableInt.kt"); + } + + @TestMetadata("genericOverrideSuspendFun_NullableInt_null.kt") + public void testGenericOverrideSuspendFun_NullableInt_null() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/genericOverrideSuspendFun_NullableInt_null.kt"); + } + + @TestMetadata("interfaceDelegateWithInlineClass.kt") + public void testInterfaceDelegateWithInlineClass_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/inlineClasses/interfaceDelegateWithInlineClass.kt", "kotlin.coroutines"); + } + + @TestMetadata("overrideSuspendFun.kt") + public void testOverrideSuspendFun_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/inlineClasses/overrideSuspendFun.kt", "kotlin.coroutines"); + } + + @TestMetadata("overrideSuspendFun_Any.kt") + public void testOverrideSuspendFun_Any_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/inlineClasses/overrideSuspendFun_Any.kt", "kotlin.coroutines"); + } + + @TestMetadata("overrideSuspendFun_Any_itf.kt") + public void testOverrideSuspendFun_Any_itf_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/inlineClasses/overrideSuspendFun_Any_itf.kt", "kotlin.coroutines"); + } + + @TestMetadata("overrideSuspendFun_Any_this.kt") + public void testOverrideSuspendFun_Any_this_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/inlineClasses/overrideSuspendFun_Any_this.kt", "kotlin.coroutines"); + } + + @TestMetadata("overrideSuspendFun_Int.kt") + public void testOverrideSuspendFun_Int_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/inlineClasses/overrideSuspendFun_Int.kt", "kotlin.coroutines"); + } + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class IntLikeVarSpilling extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception { + KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInIntLikeVarSpilling() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/intLikeVarSpilling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("complicatedMerge.kt") + public void testComplicatedMerge_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/complicatedMerge.kt", "kotlin.coroutines"); + } + + @TestMetadata("i2bResult.kt") + public void testI2bResult_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/i2bResult.kt", "kotlin.coroutines"); + } + + @TestMetadata("loadFromBooleanArray.kt") + public void testLoadFromBooleanArray_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/loadFromBooleanArray.kt", "kotlin.coroutines"); + } + + @TestMetadata("loadFromByteArray.kt") + public void testLoadFromByteArray_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/loadFromByteArray.kt", "kotlin.coroutines"); + } + + @TestMetadata("noVariableInTable.kt") + public void testNoVariableInTable_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/noVariableInTable.kt", "kotlin.coroutines"); + } + + @TestMetadata("sameIconst1ManyVars.kt") + public void testSameIconst1ManyVars_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/sameIconst1ManyVars.kt", "kotlin.coroutines"); + } + + @TestMetadata("usedInMethodCall.kt") + public void testUsedInMethodCall_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInMethodCall.kt", "kotlin.coroutines"); + } + + @TestMetadata("usedInVarStore.kt") + public void testUsedInVarStore_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInVarStore.kt", "kotlin.coroutines"); + } + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/intrinsicSemantics") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class IntrinsicSemantics extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception { + KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInIntrinsicSemantics() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/intrinsicSemantics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("coroutineContextReceiverNotIntrinsic.kt") + public void testCoroutineContextReceiverNotIntrinsic_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/intrinsicSemantics/coroutineContextReceiverNotIntrinsic.kt", "kotlin.coroutines"); + } + + @TestMetadata("coroutineContextReceiver.kt") + public void testCoroutineContextReceiver_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/intrinsicSemantics/coroutineContextReceiver.kt", "kotlin.coroutines"); + } + + @TestMetadata("coroutineContext.kt") + public void testCoroutineContext_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/intrinsicSemantics/coroutineContext.kt", "kotlin.coroutines"); + } + + @TestMetadata("intercepted.kt") + public void testIntercepted_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/intrinsicSemantics/intercepted.kt", "kotlin.coroutines"); + } + + @TestMetadata("startCoroutineUninterceptedOrReturnInterception.kt") + public void testStartCoroutineUninterceptedOrReturnInterception_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/intrinsicSemantics/startCoroutineUninterceptedOrReturnInterception.kt", "kotlin.coroutines"); + } + + @TestMetadata("startCoroutineUninterceptedOrReturn.kt") + public void testStartCoroutineUninterceptedOrReturn_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/intrinsicSemantics/startCoroutineUninterceptedOrReturn.kt", "kotlin.coroutines"); + } + + @TestMetadata("startCoroutine.kt") + public void testStartCoroutine_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/intrinsicSemantics/startCoroutine.kt", "kotlin.coroutines"); + } + + @TestMetadata("suspendCoroutineUninterceptedOrReturn.kt") + public void testSuspendCoroutineUninterceptedOrReturn_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/intrinsicSemantics/suspendCoroutineUninterceptedOrReturn.kt", "kotlin.coroutines"); + } + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/javaInterop") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class JavaInterop extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception { + KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInJavaInterop() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/javaInterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class LocalFunctions extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInLocalFunctions() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Anonymous extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception { + KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInAnonymous() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("simple.kt") + public void testSimple_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt", "kotlin.coroutines"); + } + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Named extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception { + KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNamed() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/named"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("capturedParameters.kt") + public void testCapturedParameters_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/localFunctions/named/capturedParameters.kt", "kotlin.coroutines"); + } + + @TestMetadata("capturedVariables.kt") + public void testCapturedVariables_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/localFunctions/named/capturedVariables.kt", "kotlin.coroutines"); + } + + @TestMetadata("extension.kt") + public void testExtension_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/localFunctions/named/extension.kt", "kotlin.coroutines"); + } + + @TestMetadata("infix.kt") + public void testInfix_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/localFunctions/named/infix.kt", "kotlin.coroutines"); + } + + @TestMetadata("insideLambda.kt") + public void testInsideLambda_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/localFunctions/named/insideLambda.kt", "kotlin.coroutines"); + } + + @TestMetadata("nestedLocals.kt") + public void testNestedLocals_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/localFunctions/named/nestedLocals.kt", "kotlin.coroutines"); + } + + @TestMetadata("simpleSuspensionPoint.kt") + public void testSimpleSuspensionPoint_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/localFunctions/named/simpleSuspensionPoint.kt", "kotlin.coroutines"); + } + + @TestMetadata("simple.kt") + public void testSimple_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/localFunctions/named/simple.kt", "kotlin.coroutines"); + } + + @TestMetadata("stateMachine.kt") + public void testStateMachine_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/localFunctions/named/stateMachine.kt", "kotlin.coroutines"); + } + + @TestMetadata("withArguments.kt") + public void testWithArguments_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/localFunctions/named/withArguments.kt", "kotlin.coroutines"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/multiModule") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class MultiModule extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception { + KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInMultiModule() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/multiModule"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("inlineCrossModule.kt") + public void testInlineCrossModule_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/multiModule/inlineCrossModule.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlineFunctionWithOptionalParam.kt") + public void testInlineFunctionWithOptionalParam_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/multiModule/inlineFunctionWithOptionalParam.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlineMultiModuleOverride.kt") + public void testInlineMultiModuleOverride_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/multiModule/inlineMultiModuleOverride.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlineMultiModuleWithController.kt") + public void testInlineMultiModuleWithController_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/multiModule/inlineMultiModuleWithController.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlineMultiModuleWithInnerInlining.kt") + public void testInlineMultiModuleWithInnerInlining_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/multiModule/inlineMultiModuleWithInnerInlining.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlineMultiModule.kt") + public void testInlineMultiModule_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/multiModule/inlineMultiModule.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlineTailCall.kt") + public void testInlineTailCall_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/multiModule/inlineTailCall.kt", "kotlin.coroutines"); + } + + @TestMetadata("simple.kt") + public void testSimple_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/multiModule/simple.kt", "kotlin.coroutines"); + } + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/redundantLocalsElimination") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class RedundantLocalsElimination extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception { + KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInRedundantLocalsElimination() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/redundantLocalsElimination"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("ktor_receivedMessage.kt") + public void testKtor_receivedMessage_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/redundantLocalsElimination/ktor_receivedMessage.kt", "kotlin.coroutines"); + } + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/reflect") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Reflect extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInReflect() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/reflect"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/stackUnwinding") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class StackUnwinding extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception { + KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInStackUnwinding() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/stackUnwinding"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("exception.kt") + public void testException_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/stackUnwinding/exception.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlineSuspendFunction.kt") + public void testInlineSuspendFunction_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/stackUnwinding/inlineSuspendFunction.kt", "kotlin.coroutines"); + } + + @TestMetadata("rethrowInFinallyWithSuspension.kt") + public void testRethrowInFinallyWithSuspension_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/stackUnwinding/rethrowInFinallyWithSuspension.kt", "kotlin.coroutines"); + } + + @TestMetadata("rethrowInFinally.kt") + public void testRethrowInFinally_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/stackUnwinding/rethrowInFinally.kt", "kotlin.coroutines"); + } + + @TestMetadata("simple.kt") + public void testSimple_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/stackUnwinding/simple.kt", "kotlin.coroutines"); + } + + @TestMetadata("suspendInCycle.kt") + public void testSuspendInCycle_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/stackUnwinding/suspendInCycle.kt", "kotlin.coroutines"); + } + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/suspendConversion") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class SuspendConversion extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSuspendConversion() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/suspendConversion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("intersectionTypeToSubtypeConversion.kt") + public void testIntersectionTypeToSubtypeConversion() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendConversion/intersectionTypeToSubtypeConversion.kt"); + } + + @TestMetadata("onArgument.kt") + public void testOnArgument() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendConversion/onArgument.kt"); + } + + @TestMetadata("subtypeOfFunctionalTypeToSuspendConversion.kt") + public void testSubtypeOfFunctionalTypeToSuspendConversion() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendConversion/subtypeOfFunctionalTypeToSuspendConversion.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class SuspendFunctionAsCoroutine extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception { + KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSuspendFunctionAsCoroutine() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("dispatchResume.kt") + public void testDispatchResume_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/dispatchResume.kt", "kotlin.coroutines"); + } + + @TestMetadata("handleException.kt") + public void testHandleException_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/handleException.kt", "kotlin.coroutines"); + } + + @TestMetadata("ifExpressionInsideCoroutine_1_3.kt") + public void testIfExpressionInsideCoroutine_1_3() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/ifExpressionInsideCoroutine_1_3.kt"); + } + + @TestMetadata("inlineTwoReceivers.kt") + public void testInlineTwoReceivers_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/inlineTwoReceivers.kt", "kotlin.coroutines"); + } + + @TestMetadata("inline.kt") + public void testInline_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/inline.kt", "kotlin.coroutines"); + } + + @TestMetadata("member.kt") + public void testMember_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/member.kt", "kotlin.coroutines"); + } + + @TestMetadata("noinlineTwoReceivers.kt") + public void testNoinlineTwoReceivers_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/noinlineTwoReceivers.kt", "kotlin.coroutines"); + } + + @TestMetadata("operators.kt") + public void testOperators_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/operators.kt", "kotlin.coroutines"); + } + + @TestMetadata("privateFunctions.kt") + public void testPrivateFunctions_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/privateFunctions.kt", "kotlin.coroutines"); + } + + @TestMetadata("privateInFile.kt") + public void testPrivateInFile_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/privateInFile.kt", "kotlin.coroutines"); + } + + @TestMetadata("returnNoSuspend.kt") + public void testReturnNoSuspend_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/returnNoSuspend.kt", "kotlin.coroutines"); + } + + @TestMetadata("simple.kt") + public void testSimple_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/simple.kt", "kotlin.coroutines"); + } + + @TestMetadata("superCallAbstractClass.kt") + public void testSuperCallAbstractClass_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/superCallAbstractClass.kt", "kotlin.coroutines"); + } + + @TestMetadata("superCallInterface.kt") + public void testSuperCallInterface_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/superCallInterface.kt", "kotlin.coroutines"); + } + + @TestMetadata("superCallOverload.kt") + public void testSuperCallOverload_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/superCallOverload.kt", "kotlin.coroutines"); + } + + @TestMetadata("superCall.kt") + public void testSuperCall_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/superCall.kt", "kotlin.coroutines"); + } + + @TestMetadata("withVariables.kt") + public void testWithVariables_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/withVariables.kt", "kotlin.coroutines"); + } + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class SuspendFunctionTypeCall extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception { + KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSuspendFunctionTypeCall() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("localVal.kt") + public void testLocalVal_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall/localVal.kt", "kotlin.coroutines"); + } + + @TestMetadata("manyParametersNoCapture.kt") + public void testManyParametersNoCapture_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall/manyParametersNoCapture.kt", "kotlin.coroutines"); + } + + @TestMetadata("manyParameters.kt") + public void testManyParameters_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall/manyParameters.kt", "kotlin.coroutines"); + } + + @TestMetadata("simple.kt") + public void testSimple_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall/simple.kt", "kotlin.coroutines"); + } + + @TestMetadata("suspendModifier.kt") + public void testSuspendModifier_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall/suspendModifier.kt", "kotlin.coroutines"); + } + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/tailCallOptimizations") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class TailCallOptimizations extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception { + KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInTailCallOptimizations() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/tailCallOptimizations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("crossinline.kt") + public void testCrossinline_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/tailCallOptimizations/crossinline.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlineWithoutStateMachine.kt") + public void testInlineWithoutStateMachine_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/tailCallOptimizations/inlineWithoutStateMachine.kt", "kotlin.coroutines"); + } + + @TestMetadata("innerObjectRetransformation.kt") + public void testInnerObjectRetransformation_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/tailCallOptimizations/innerObjectRetransformation.kt", "kotlin.coroutines"); + } + + @TestMetadata("tryCatch.kt") + public void testTryCatch_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/tailCallOptimizations/tryCatch.kt", "kotlin.coroutines"); + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Unit extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInUnit() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/tailOperations") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class TailOperations extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception { + KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInTailOperations() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/tailOperations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("suspendWithIf.kt") + public void testSuspendWithIf_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/tailOperations/suspendWithIf.kt", "kotlin.coroutines"); + } + + @TestMetadata("suspendWithTryCatch.kt") + public void testSuspendWithTryCatch_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/tailOperations/suspendWithTryCatch.kt", "kotlin.coroutines"); + } + + @TestMetadata("suspendWithWhen.kt") + public void testSuspendWithWhen_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/tailOperations/suspendWithWhen.kt", "kotlin.coroutines"); + } + + @TestMetadata("tailInlining.kt") + public void testTailInlining_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/tailOperations/tailInlining.kt", "kotlin.coroutines"); + } + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/unitTypeReturn") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class UnitTypeReturn extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception { + KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInUnitTypeReturn() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/unitTypeReturn"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("coroutineNonLocalReturn.kt") + public void testCoroutineNonLocalReturn_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/unitTypeReturn/coroutineNonLocalReturn.kt", "kotlin.coroutines"); + } + + @TestMetadata("coroutineReturn.kt") + public void testCoroutineReturn_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/unitTypeReturn/coroutineReturn.kt", "kotlin.coroutines"); + } + + @TestMetadata("interfaceDelegation.kt") + public void testInterfaceDelegation() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/unitTypeReturn/interfaceDelegation.kt"); + } + + @TestMetadata("suspendNonLocalReturn.kt") + public void testSuspendNonLocalReturn_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/unitTypeReturn/suspendNonLocalReturn.kt", "kotlin.coroutines"); + } + + @TestMetadata("suspendReturn.kt") + public void testSuspendReturn_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/unitTypeReturn/suspendReturn.kt", "kotlin.coroutines"); + } + + @TestMetadata("unitSafeCall.kt") + public void testUnitSafeCall_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/unitTypeReturn/unitSafeCall.kt", "kotlin.coroutines"); + } + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/varSpilling") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class VarSpilling extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception { + KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInVarSpilling() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/varSpilling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("kt19475.kt") + public void testKt19475_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/varSpilling/kt19475.kt", "kotlin.coroutines"); + } + + @TestMetadata("nullSpilling.kt") + public void testNullSpilling_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/varSpilling/nullSpilling.kt", "kotlin.coroutines"); + } + + @TestMetadata("refinedIntTypesAnalysis.kt") + public void testRefinedIntTypesAnalysis() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/varSpilling/refinedIntTypesAnalysis.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/dataClasses") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DataClasses extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDataClasses() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("arrayParams.kt") + public void testArrayParams() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/arrayParams.kt"); + } + + @TestMetadata("changingVarParam.kt") + public void testChangingVarParam() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/changingVarParam.kt"); + } + + @TestMetadata("doubleParam.kt") + public void testDoubleParam() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/doubleParam.kt"); + } + + @TestMetadata("floatParam.kt") + public void testFloatParam() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/floatParam.kt"); + } + + @TestMetadata("genericParam.kt") + public void testGenericParam() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/genericParam.kt"); + } + + @TestMetadata("mixedParams.kt") + public void testMixedParams() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/mixedParams.kt"); + } + + @TestMetadata("multiDeclaration.kt") + public void testMultiDeclaration() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/multiDeclaration.kt"); + } + + @TestMetadata("multiDeclarationFor.kt") + public void testMultiDeclarationFor() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/multiDeclarationFor.kt"); + } + + @TestMetadata("nonTrivialFinalMemberInSuperClass.kt") + public void testNonTrivialFinalMemberInSuperClass() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/nonTrivialFinalMemberInSuperClass.kt"); + } + + @TestMetadata("nonTrivialMemberInSuperClass.kt") + public void testNonTrivialMemberInSuperClass() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/nonTrivialMemberInSuperClass.kt"); + } + + @TestMetadata("privateValParams.kt") + public void testPrivateValParams() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/privateValParams.kt"); + } + + @TestMetadata("twoValParams.kt") + public void testTwoValParams() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/twoValParams.kt"); + } + + @TestMetadata("twoVarParams.kt") + public void testTwoVarParams() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/twoVarParams.kt"); + } + + @TestMetadata("unitComponent.kt") + public void testUnitComponent() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/unitComponent.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/dataClasses/copy") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Copy extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCopy() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataClasses/copy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("constructorWithDefaultParam.kt") + public void testConstructorWithDefaultParam() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/copy/constructorWithDefaultParam.kt"); + } + + @TestMetadata("copyInObjectNestedDataClass.kt") + public void testCopyInObjectNestedDataClass() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/copy/copyInObjectNestedDataClass.kt"); + } + + @TestMetadata("kt12708.kt") + public void testKt12708() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/copy/kt12708.kt"); + } + + @TestMetadata("kt3033.kt") + public void testKt3033() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/copy/kt3033.kt"); + } + + @TestMetadata("valInConstructorParams.kt") + public void testValInConstructorParams() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/copy/valInConstructorParams.kt"); + } + + @TestMetadata("varInConstructorParams.kt") + public void testVarInConstructorParams() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/copy/varInConstructorParams.kt"); + } + + @TestMetadata("withGenericParameter.kt") + public void testWithGenericParameter() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/copy/withGenericParameter.kt"); + } + + @TestMetadata("withSecondaryConstructor.kt") + public void testWithSecondaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/copy/withSecondaryConstructor.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/dataClasses/equals") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Equals extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInEquals() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataClasses/equals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("alreadyDeclared.kt") + public void testAlreadyDeclared() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/equals/alreadyDeclared.kt"); + } + + @TestMetadata("genericarray.kt") + public void testGenericarray() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/equals/genericarray.kt"); + } + + @TestMetadata("intarray.kt") + public void testIntarray() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/equals/intarray.kt"); + } + + @TestMetadata("null.kt") + public void testNull() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/equals/null.kt"); + } + + @TestMetadata("nullother.kt") + public void testNullother() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/equals/nullother.kt"); + } + + @TestMetadata("sameinstance.kt") + public void testSameinstance() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/equals/sameinstance.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/dataClasses/hashCode") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class HashCode extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInHashCode() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataClasses/hashCode"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("alreadyDeclared.kt") + public void testAlreadyDeclared() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/hashCode/alreadyDeclared.kt"); + } + + @TestMetadata("boolean.kt") + public void testBoolean() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/hashCode/boolean.kt"); + } + + @TestMetadata("byte.kt") + public void testByte() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/hashCode/byte.kt"); + } + + @TestMetadata("char.kt") + public void testChar() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/hashCode/char.kt"); + } + + @TestMetadata("double.kt") + public void testDouble() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/hashCode/double.kt"); + } + + @TestMetadata("float.kt") + public void testFloat() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/hashCode/float.kt"); + } + + @TestMetadata("genericNull.kt") + public void testGenericNull() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/hashCode/genericNull.kt"); + } + + @TestMetadata("int.kt") + public void testInt() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/hashCode/int.kt"); + } + + @TestMetadata("long.kt") + public void testLong() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/hashCode/long.kt"); + } + + @TestMetadata("null.kt") + public void testNull() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/hashCode/null.kt"); + } + + @TestMetadata("short.kt") + public void testShort() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/hashCode/short.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/dataClasses/toString") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ToString extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInToString() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataClasses/toString"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("alreadyDeclared.kt") + public void testAlreadyDeclared() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/toString/alreadyDeclared.kt"); + } + + @TestMetadata("arrayParams.kt") + public void testArrayParams() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/toString/arrayParams.kt"); + } + + @TestMetadata("changingVarParam.kt") + public void testChangingVarParam() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/toString/changingVarParam.kt"); + } + + @TestMetadata("genericParam.kt") + public void testGenericParam() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/toString/genericParam.kt"); + } + + @TestMetadata("mixedParams.kt") + public void testMixedParams() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/toString/mixedParams.kt"); + } + + @TestMetadata("unitComponent.kt") + public void testUnitComponent() throws Exception { + runTest("compiler/testData/codegen/box/dataClasses/toString/unitComponent.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/deadCodeElimination") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DeadCodeElimination extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDeadCodeElimination() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/deadCodeElimination"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("emptyVariableRange.kt") + public void testEmptyVariableRange() throws Exception { + runTest("compiler/testData/codegen/box/deadCodeElimination/emptyVariableRange.kt"); + } + + @TestMetadata("intersectingVariableRange.kt") + public void testIntersectingVariableRange() throws Exception { + runTest("compiler/testData/codegen/box/deadCodeElimination/intersectingVariableRange.kt"); + } + + @TestMetadata("intersectingVariableRangeInFinally.kt") + public void testIntersectingVariableRangeInFinally() throws Exception { + runTest("compiler/testData/codegen/box/deadCodeElimination/intersectingVariableRangeInFinally.kt"); + } + + @TestMetadata("kt14357.kt") + public void testKt14357() throws Exception { + runTest("compiler/testData/codegen/box/deadCodeElimination/kt14357.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/defaultArguments") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DefaultArguments extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDefaultArguments() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("callDefaultFromInitializer.kt") + public void testCallDefaultFromInitializer() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/callDefaultFromInitializer.kt"); + } + + @TestMetadata("complexInheritance.kt") + public void testComplexInheritance() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/complexInheritance.kt"); + } + + @TestMetadata("implementedByFake.kt") + public void testImplementedByFake() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/implementedByFake.kt"); + } + + @TestMetadata("implementedByFake2.kt") + public void testImplementedByFake2() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/implementedByFake2.kt"); + } + + @TestMetadata("implementedByFake3.kt") + public void testImplementedByFake3() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/implementedByFake3.kt"); + } + + @TestMetadata("inheritedFromInterfaceViaAbstractSuperclass.kt") + public void testInheritedFromInterfaceViaAbstractSuperclass() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/inheritedFromInterfaceViaAbstractSuperclass.kt"); + } + + @TestMetadata("kt6382.kt") + public void testKt6382() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/kt6382.kt"); + } + + @TestMetadata("protected.kt") + public void testProtected() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/protected.kt"); + } + + @TestMetadata("referenceAsArg.kt") + public void testReferenceAsArg() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/referenceAsArg.kt"); + } + + @TestMetadata("simpleFromOtherFile.kt") + public void testSimpleFromOtherFile() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/simpleFromOtherFile.kt"); + } + + @TestMetadata("useNextParamInLambda.kt") + public void testUseNextParamInLambda() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/useNextParamInLambda.kt"); + } + + @TestMetadata("useThisInLambda.kt") + public void testUseThisInLambda() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/useThisInLambda.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/defaultArguments/constructor") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Constructor extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInConstructor() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/defaultArguments/constructor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("annotation.kt") + public void testAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/annotation.kt"); + } + + @TestMetadata("annotationWithEmptyArray.kt") + public void testAnnotationWithEmptyArray() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/annotationWithEmptyArray.kt"); + } + + @TestMetadata("defArgs1.kt") + public void testDefArgs1() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/defArgs1.kt"); + } + + @TestMetadata("defArgs1InnerClass.kt") + public void testDefArgs1InnerClass() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/defArgs1InnerClass.kt"); + } + + @TestMetadata("defArgs2.kt") + public void testDefArgs2() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/defArgs2.kt"); + } + + @TestMetadata("doubleDefArgs1InnerClass.kt") + public void testDoubleDefArgs1InnerClass() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/doubleDefArgs1InnerClass.kt"); + } + + @TestMetadata("enum.kt") + public void testEnum() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/enum.kt"); + } + + @TestMetadata("enumWithOneDefArg.kt") + public void testEnumWithOneDefArg() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/enumWithOneDefArg.kt"); + } + + @TestMetadata("enumWithTwoDefArgs.kt") + public void testEnumWithTwoDefArgs() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/enumWithTwoDefArgs.kt"); + } + + @TestMetadata("enumWithTwoDoubleDefArgs.kt") + public void testEnumWithTwoDoubleDefArgs() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/enumWithTwoDoubleDefArgs.kt"); + } + + @TestMetadata("innerClass32Args.kt") + public void testInnerClass32Args() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/innerClass32Args.kt"); + } + + @TestMetadata("kt2852.kt") + public void testKt2852() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/kt2852.kt"); + } + + @TestMetadata("kt30517.kt") + public void testKt30517() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/kt30517.kt"); + } + + @TestMetadata("kt3060.kt") + public void testKt3060() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/kt3060.kt"); + } + + @TestMetadata("objectExpressionDelegatingToSecondaryConstructor.kt") + public void testObjectExpressionDelegatingToSecondaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/constructor/objectExpressionDelegatingToSecondaryConstructor.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/defaultArguments/convention") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Convention extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInConvention() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/defaultArguments/convention"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("incWithDefaultInGetter.kt") + public void testIncWithDefaultInGetter() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/convention/incWithDefaultInGetter.kt"); + } + + @TestMetadata("incWithDefaults.kt") + public void testIncWithDefaults() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/convention/incWithDefaults.kt"); + } + + @TestMetadata("kt16520.kt") + public void testKt16520() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/convention/kt16520.kt"); + } + + @TestMetadata("kt9140.kt") + public void testKt9140() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/convention/kt9140.kt"); + } + + @TestMetadata("plusAssignWithDefaultInGetter.kt") + public void testPlusAssignWithDefaultInGetter() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/convention/plusAssignWithDefaultInGetter.kt"); + } + + @TestMetadata("plusAssignWithDefaults.kt") + public void testPlusAssignWithDefaults() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/convention/plusAssignWithDefaults.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/defaultArguments/function") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Function extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("abstractClass.kt") + public void testAbstractClass() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/abstractClass.kt"); + } + + public void testAllFilesPresentInFunction() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/defaultArguments/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("complexInheritance.kt") + public void testComplexInheritance() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/complexInheritance.kt"); + } + + @TestMetadata("covariantOverride.kt") + public void testCovariantOverride() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/covariantOverride.kt"); + } + + @TestMetadata("covariantOverrideGeneric.kt") + public void testCovariantOverrideGeneric() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/covariantOverrideGeneric.kt"); + } + + @TestMetadata("extensionFunctionManyArgs.kt") + public void testExtensionFunctionManyArgs() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/extensionFunctionManyArgs.kt"); + } + + @TestMetadata("extentionFunction.kt") + public void testExtentionFunction() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/extentionFunction.kt"); + } + + @TestMetadata("extentionFunctionDouble.kt") + public void testExtentionFunctionDouble() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/extentionFunctionDouble.kt"); + } + + @TestMetadata("extentionFunctionDoubleTwoArgs.kt") + public void testExtentionFunctionDoubleTwoArgs() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/extentionFunctionDoubleTwoArgs.kt"); + } + + @TestMetadata("extentionFunctionInClassObject.kt") + public void testExtentionFunctionInClassObject() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/extentionFunctionInClassObject.kt"); + } + + @TestMetadata("extentionFunctionInObject.kt") + public void testExtentionFunctionInObject() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/extentionFunctionInObject.kt"); + } + + @TestMetadata("extentionFunctionWithOneDefArg.kt") + public void testExtentionFunctionWithOneDefArg() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/extentionFunctionWithOneDefArg.kt"); + } + + @TestMetadata("funInTrait.kt") + public void testFunInTrait() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/funInTrait.kt"); + } + + @TestMetadata("funInTraitChain.kt") + public void testFunInTraitChain() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/funInTraitChain.kt"); + } + + @TestMetadata("innerExtentionFunction.kt") + public void testInnerExtentionFunction() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/innerExtentionFunction.kt"); + } + + @TestMetadata("innerExtentionFunctionDouble.kt") + public void testInnerExtentionFunctionDouble() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/innerExtentionFunctionDouble.kt"); + } + + @TestMetadata("innerExtentionFunctionDoubleTwoArgs.kt") + public void testInnerExtentionFunctionDoubleTwoArgs() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/innerExtentionFunctionDoubleTwoArgs.kt"); + } + + @TestMetadata("innerExtentionFunctionManyArgs.kt") + public void testInnerExtentionFunctionManyArgs() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/innerExtentionFunctionManyArgs.kt"); + } + + @TestMetadata("kt15971.kt") + public void testKt15971() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/kt15971.kt"); + } + + @TestMetadata("kt15971_2.kt") + public void testKt15971_2() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/kt15971_2.kt"); + } + + @TestMetadata("kt15971_3.kt") + public void testKt15971_3() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/kt15971_3.kt"); + } + + @TestMetadata("kt36188.kt") + public void testKt36188() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/kt36188.kt"); + } + + @TestMetadata("kt36188_2.kt") + public void testKt36188_2() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/kt36188_2.kt"); + } + + @TestMetadata("kt5232.kt") + public void testKt5232() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/kt5232.kt"); + } + + @TestMetadata("memberFunctionManyArgs.kt") + public void testMemberFunctionManyArgs() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/memberFunctionManyArgs.kt"); + } + + @TestMetadata("mixingNamedAndPositioned.kt") + public void testMixingNamedAndPositioned() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/mixingNamedAndPositioned.kt"); + } + + @TestMetadata("topLevelManyArgs.kt") + public void testTopLevelManyArgs() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/topLevelManyArgs.kt"); + } + + @TestMetadata("trait.kt") + public void testTrait() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/function/trait.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/defaultArguments/private") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Private extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInPrivate() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/defaultArguments/private"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("memberExtensionFunction.kt") + public void testMemberExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/private/memberExtensionFunction.kt"); + } + + @TestMetadata("memberFunction.kt") + public void testMemberFunction() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/private/memberFunction.kt"); + } + + @TestMetadata("primaryConstructor.kt") + public void testPrimaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/private/primaryConstructor.kt"); + } + + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/private/secondaryConstructor.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/defaultArguments/signature") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Signature extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSignature() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/defaultArguments/signature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("kt2789.kt") + public void testKt2789() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/signature/kt2789.kt"); + } + + @TestMetadata("kt9428.kt") + public void testKt9428() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/signature/kt9428.kt"); + } + + @TestMetadata("kt9924.kt") + public void testKt9924() throws Exception { + runTest("compiler/testData/codegen/box/defaultArguments/signature/kt9924.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/delegatedProperty") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DelegatedProperty extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("accessTopLevelDelegatedPropertyInClinit.kt") + public void testAccessTopLevelDelegatedPropertyInClinit() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/accessTopLevelDelegatedPropertyInClinit.kt"); + } + + public void testAllFilesPresentInDelegatedProperty() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("beforeDeclarationContainerOptimization.kt") + public void testBeforeDeclarationContainerOptimization() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/beforeDeclarationContainerOptimization.kt"); + } + + @TestMetadata("capturePropertyInClosure.kt") + public void testCapturePropertyInClosure() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/capturePropertyInClosure.kt"); + } + + @TestMetadata("castGetReturnType.kt") + public void testCastGetReturnType() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/castGetReturnType.kt"); + } + + @TestMetadata("castSetParameter.kt") + public void testCastSetParameter() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/castSetParameter.kt"); + } + + @TestMetadata("delegateAsInnerClass.kt") + public void testDelegateAsInnerClass() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateAsInnerClass.kt"); + } + + @TestMetadata("delegateByOtherProperty.kt") + public void testDelegateByOtherProperty() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateByOtherProperty.kt"); + } + + @TestMetadata("delegateByTopLevelFun.kt") + public void testDelegateByTopLevelFun() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateByTopLevelFun.kt"); + } + + @TestMetadata("delegateByTopLevelProperty.kt") + public void testDelegateByTopLevelProperty() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateByTopLevelProperty.kt"); + } + + @TestMetadata("delegateForExtProperty.kt") + public void testDelegateForExtProperty() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateForExtProperty.kt"); + } + + @TestMetadata("delegateForExtPropertyInClass.kt") + public void testDelegateForExtPropertyInClass() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateForExtPropertyInClass.kt"); + } + + @TestMetadata("delegateWithPrivateSet.kt") + public void testDelegateWithPrivateSet() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/delegateWithPrivateSet.kt"); + } + + @TestMetadata("extensionDelegatesWithSameNames.kt") + public void testExtensionDelegatesWithSameNames() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/extensionDelegatesWithSameNames.kt"); + } + + @TestMetadata("extensionPropertyAndExtensionGetValue.kt") + public void testExtensionPropertyAndExtensionGetValue() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/extensionPropertyAndExtensionGetValue.kt"); + } + + @TestMetadata("genericDelegate.kt") + public void testGenericDelegate() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/genericDelegate.kt"); + } + + @TestMetadata("genericDelegateUncheckedCast1.kt") + public void testGenericDelegateUncheckedCast1() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/genericDelegateUncheckedCast1.kt"); + } + + @TestMetadata("genericDelegateUncheckedCast2.kt") + public void testGenericDelegateUncheckedCast2() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/genericDelegateUncheckedCast2.kt"); + } + + @TestMetadata("genericSetValueViaSyntheticAccessor.kt") + public void testGenericSetValueViaSyntheticAccessor() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/genericSetValueViaSyntheticAccessor.kt"); + } + + @TestMetadata("getAsExtensionFun.kt") + public void testGetAsExtensionFun() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/getAsExtensionFun.kt"); + } + + @TestMetadata("getAsExtensionFunInClass.kt") + public void testGetAsExtensionFunInClass() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/getAsExtensionFunInClass.kt"); + } + + @TestMetadata("getDelegateWithoutReflection.kt") + public void testGetDelegateWithoutReflection() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/getDelegateWithoutReflection.kt"); + } + + @TestMetadata("inClassVal.kt") + public void testInClassVal() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/inClassVal.kt"); + } + + @TestMetadata("inClassVar.kt") + public void testInClassVar() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/inClassVar.kt"); + } + + @TestMetadata("inTrait.kt") + public void testInTrait() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/inTrait.kt"); + } + + @TestMetadata("inferredPropertyType.kt") + public void testInferredPropertyType() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/inferredPropertyType.kt"); + } + + @TestMetadata("insideInlinedObjectMultiModule.kt") + public void testInsideInlinedObjectMultiModule() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/insideInlinedObjectMultiModule.kt"); + } + + @TestMetadata("kt35707.kt") + public void testKt35707() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/kt35707.kt"); + } + + @TestMetadata("kt37204.kt") + public void testKt37204() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/kt37204.kt"); + } + + @TestMetadata("kt4138.kt") + public void testKt4138() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/kt4138.kt"); + } + + @TestMetadata("kt6722.kt") + public void testKt6722() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/kt6722.kt"); + } + + @TestMetadata("kt9712.kt") + public void testKt9712() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/kt9712.kt"); + } + + @TestMetadata("privateVar.kt") + public void testPrivateVar() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/privateVar.kt"); + } + + @TestMetadata("protectedVarWithPrivateSet.kt") + public void testProtectedVarWithPrivateSet() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/protectedVarWithPrivateSet.kt"); + } + + @TestMetadata("setAsExtensionFun.kt") + public void testSetAsExtensionFun() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/setAsExtensionFun.kt"); + } + + @TestMetadata("setAsExtensionFunInClass.kt") + public void testSetAsExtensionFunInClass() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/setAsExtensionFunInClass.kt"); + } + + @TestMetadata("topLevelVal.kt") + public void testTopLevelVal() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/topLevelVal.kt"); + } + + @TestMetadata("topLevelVar.kt") + public void testTopLevelVar() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/topLevelVar.kt"); + } + + @TestMetadata("twoPropByOneDelegete.kt") + public void testTwoPropByOneDelegete() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/twoPropByOneDelegete.kt"); + } + + @TestMetadata("useKPropertyLater.kt") + public void testUseKPropertyLater() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/useKPropertyLater.kt"); + } + + @TestMetadata("useReflectionOnKProperty.kt") + public void testUseReflectionOnKProperty() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/useReflectionOnKProperty.kt"); + } + + @TestMetadata("valByMapDelegatedProperty.kt") + public void testValByMapDelegatedProperty() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/valByMapDelegatedProperty.kt"); + } + + @TestMetadata("valInInnerClass.kt") + public void testValInInnerClass() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/valInInnerClass.kt"); + } + + @TestMetadata("varInInnerClass.kt") + public void testVarInInnerClass() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/varInInnerClass.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/delegatedProperty/local") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Local extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInLocal() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/local"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("capturedLocalVal.kt") + public void testCapturedLocalVal() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/capturedLocalVal.kt"); + } + + @TestMetadata("capturedLocalValNoInline.kt") + public void testCapturedLocalValNoInline() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/capturedLocalValNoInline.kt"); + } + + @TestMetadata("capturedLocalVar.kt") + public void testCapturedLocalVar() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/capturedLocalVar.kt"); + } + + @TestMetadata("capturedLocalVarNoInline.kt") + public void testCapturedLocalVarNoInline() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/capturedLocalVarNoInline.kt"); + } + + @TestMetadata("inlineGetValue.kt") + public void testInlineGetValue() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/inlineGetValue.kt"); + } + + @TestMetadata("inlineOperators.kt") + public void testInlineOperators() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/inlineOperators.kt"); + } + + @TestMetadata("kt12891.kt") + public void testKt12891() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/kt12891.kt"); + } + + @TestMetadata("kt13557.kt") + public void testKt13557() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/kt13557.kt"); + } + + @TestMetadata("kt16864.kt") + public void testKt16864() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/kt16864.kt"); + } + + @TestMetadata("kt19690.kt") + public void testKt19690() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/kt19690.kt"); + } + + @TestMetadata("kt21085.kt") + public void testKt21085() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/kt21085.kt"); + } + + @TestMetadata("kt23117.kt") + public void testKt23117() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/kt23117.kt"); + } + + @TestMetadata("localVal.kt") + public void testLocalVal() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/localVal.kt"); + } + + @TestMetadata("localValNoExplicitType.kt") + public void testLocalValNoExplicitType() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/localValNoExplicitType.kt"); + } + + @TestMetadata("localVar.kt") + public void testLocalVar() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/localVar.kt"); + } + + @TestMetadata("localVarNoExplicitType.kt") + public void testLocalVarNoExplicitType() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/local/localVarNoExplicitType.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class OptimizedDelegatedProperties extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInOptimizedDelegatedProperties() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("definedInSources.kt") + public void testDefinedInSources() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties/definedInSources.kt"); + } + + @TestMetadata("definedInSourcesWithNonNullParameter.kt") + public void testDefinedInSourcesWithNonNullParameter() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties/definedInSourcesWithNonNullParameter.kt"); + } + + @TestMetadata("inSeparateModule.kt") + public void testInSeparateModule() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties/inSeparateModule.kt"); + } + + @TestMetadata("inSeparateModuleWithNonNullParameter.kt") + public void testInSeparateModuleWithNonNullParameter() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties/inSeparateModuleWithNonNullParameter.kt"); + } + + @TestMetadata("lazy.kt") + public void testLazy() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties/lazy.kt"); + } + + @TestMetadata("mixedArgumentSizes.kt") + public void testMixedArgumentSizes() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties/mixedArgumentSizes.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/delegatedProperty/provideDelegate") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ProvideDelegate extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInProvideDelegate() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("delegatedPropertyWithIdProvideDelegate.kt") + public void testDelegatedPropertyWithIdProvideDelegate() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/delegatedPropertyWithIdProvideDelegate.kt"); + } + + @TestMetadata("differentReceivers.kt") + public void testDifferentReceivers() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/differentReceivers.kt"); + } + + @TestMetadata("evaluationOrder.kt") + public void testEvaluationOrder() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/evaluationOrder.kt"); + } + + @TestMetadata("evaluationOrderVar.kt") + public void testEvaluationOrderVar() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/evaluationOrderVar.kt"); + } + + @TestMetadata("extensionDelegated.kt") + public void testExtensionDelegated() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/extensionDelegated.kt"); + } + + @TestMetadata("generic.kt") + public void testGeneric() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/generic.kt"); + } + + @TestMetadata("hostCheck.kt") + public void testHostCheck() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/hostCheck.kt"); + } + + @TestMetadata("inClass.kt") + public void testInClass() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inClass.kt"); + } + + @TestMetadata("inlineProvideDelegate.kt") + public void testInlineProvideDelegate() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inlineProvideDelegate.kt"); + } + + @TestMetadata("kt15437.kt") + public void testKt15437() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/kt15437.kt"); + } + + @TestMetadata("kt16441.kt") + public void testKt16441() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/kt16441.kt"); + } + + @TestMetadata("kt18902.kt") + public void testKt18902() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/kt18902.kt"); + } + + @TestMetadata("local.kt") + public void testLocal() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/local.kt"); + } + + @TestMetadata("localCaptured.kt") + public void testLocalCaptured() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/localCaptured.kt"); + } + + @TestMetadata("localDifferentReceivers.kt") + public void testLocalDifferentReceivers() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/localDifferentReceivers.kt"); + } + + @TestMetadata("memberExtension.kt") + public void testMemberExtension() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/memberExtension.kt"); + } + + @TestMetadata("propertyMetadata.kt") + public void testPropertyMetadata() throws Exception { + runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/propertyMetadata.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/delegation") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Delegation extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDelegation() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("delegationWithPrivateConstructor.kt") + public void testDelegationWithPrivateConstructor() throws Exception { + runTest("compiler/testData/codegen/box/delegation/delegationWithPrivateConstructor.kt"); + } + + @TestMetadata("genericProperty.kt") + public void testGenericProperty() throws Exception { + runTest("compiler/testData/codegen/box/delegation/genericProperty.kt"); + } + + @TestMetadata("hiddenSuperOverrideIn1.0.kt") + public void testHiddenSuperOverrideIn1_0() throws Exception { + runTest("compiler/testData/codegen/box/delegation/hiddenSuperOverrideIn1.0.kt"); + } + + @TestMetadata("kt8154.kt") + public void testKt8154() throws Exception { + runTest("compiler/testData/codegen/box/delegation/kt8154.kt"); + } + + @TestMetadata("withDefaultParameters.kt") + public void testWithDefaultParameters() throws Exception { + runTest("compiler/testData/codegen/box/delegation/withDefaultParameters.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/destructuringDeclInLambdaParam") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DestructuringDeclInLambdaParam extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDestructuringDeclInLambdaParam() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/destructuringDeclInLambdaParam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("extensionComponents.kt") + public void testExtensionComponents() throws Exception { + runTest("compiler/testData/codegen/box/destructuringDeclInLambdaParam/extensionComponents.kt"); + } + + @TestMetadata("generic.kt") + public void testGeneric() throws Exception { + runTest("compiler/testData/codegen/box/destructuringDeclInLambdaParam/generic.kt"); + } + + @TestMetadata("inline.kt") + public void testInline() throws Exception { + runTest("compiler/testData/codegen/box/destructuringDeclInLambdaParam/inline.kt"); + } + + @TestMetadata("otherParameters.kt") + public void testOtherParameters() throws Exception { + runTest("compiler/testData/codegen/box/destructuringDeclInLambdaParam/otherParameters.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/destructuringDeclInLambdaParam/simple.kt"); + } + + @TestMetadata("stdlibUsages.kt") + public void testStdlibUsages() throws Exception { + runTest("compiler/testData/codegen/box/destructuringDeclInLambdaParam/stdlibUsages.kt"); + } + + @TestMetadata("underscoreNames.kt") + public void testUnderscoreNames() throws Exception { + runTest("compiler/testData/codegen/box/destructuringDeclInLambdaParam/underscoreNames.kt"); + } + + @TestMetadata("withIndexed.kt") + public void testWithIndexed() throws Exception { + runTest("compiler/testData/codegen/box/destructuringDeclInLambdaParam/withIndexed.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/diagnostics") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Diagnostics extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDiagnostics() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/diagnostics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/diagnostics/functions") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Functions extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInFunctions() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/diagnostics/functions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/diagnostics/functions/inference") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Inference extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInference() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/diagnostics/functions/inference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("kt6176.kt") + public void testKt6176() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/inference/kt6176.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/diagnostics/functions/invoke") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Invoke extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInvoke() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/diagnostics/functions/invoke"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class OnObjects extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInOnObjects() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("invokeOnClassObject1.kt") + public void testInvokeOnClassObject1() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects/invokeOnClassObject1.kt"); + } + + @TestMetadata("invokeOnClassObject2.kt") + public void testInvokeOnClassObject2() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects/invokeOnClassObject2.kt"); + } + + @TestMetadata("invokeOnClassObjectOfNestedClass1.kt") + public void testInvokeOnClassObjectOfNestedClass1() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects/invokeOnClassObjectOfNestedClass1.kt"); + } + + @TestMetadata("invokeOnClassObjectOfNestedClass2.kt") + public void testInvokeOnClassObjectOfNestedClass2() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects/invokeOnClassObjectOfNestedClass2.kt"); + } + + @TestMetadata("invokeOnEnum1.kt") + public void testInvokeOnEnum1() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects/invokeOnEnum1.kt"); + } + + @TestMetadata("invokeOnEnum2.kt") + public void testInvokeOnEnum2() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects/invokeOnEnum2.kt"); + } + + @TestMetadata("invokeOnImportedEnum1.kt") + public void testInvokeOnImportedEnum1() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects/invokeOnImportedEnum1.kt"); + } + + @TestMetadata("invokeOnImportedEnum2.kt") + public void testInvokeOnImportedEnum2() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects/invokeOnImportedEnum2.kt"); + } + + @TestMetadata("invokeOnObject1.kt") + public void testInvokeOnObject1() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects/invokeOnObject1.kt"); + } + + @TestMetadata("invokeOnObject2.kt") + public void testInvokeOnObject2() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects/invokeOnObject2.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/diagnostics/functions/tailRecursion") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class TailRecursion extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInTailRecursion() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/diagnostics/functions/tailRecursion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/defaultArgs.kt"); + } + + @TestMetadata("defaultArgs2.kt") + public void testDefaultArgs2() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/defaultArgs2.kt"); + } + + @TestMetadata("defaultArgsOverridden.kt") + public void testDefaultArgsOverridden() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/defaultArgsOverridden.kt"); + } + + @TestMetadata("defaultArgsWithSideEffects.kt") + public void testDefaultArgsWithSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/defaultArgsWithSideEffects.kt"); + } + + @TestMetadata("defaultArgsWithSideEffects2.kt") + public void testDefaultArgsWithSideEffects2() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/defaultArgsWithSideEffects2.kt"); + } + + @TestMetadata("extensionTailCall.kt") + public void testExtensionTailCall() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/extensionTailCall.kt"); + } + + @TestMetadata("functionWithNoTails.kt") + public void testFunctionWithNoTails() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/functionWithNoTails.kt"); + } + + @TestMetadata("functionWithNonTailRecursions.kt") + public void testFunctionWithNonTailRecursions() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/functionWithNonTailRecursions.kt"); + } + + @TestMetadata("functionWithoutAnnotation.kt") + public void testFunctionWithoutAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/functionWithoutAnnotation.kt"); + } + + @TestMetadata("infixCall.kt") + public void testInfixCall() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/infixCall.kt"); + } + + @TestMetadata("infixRecursiveCall.kt") + public void testInfixRecursiveCall() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/infixRecursiveCall.kt"); + } + + @TestMetadata("insideElvis.kt") + public void testInsideElvis() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/insideElvis.kt"); + } + + @TestMetadata("labeledThisReferences.kt") + public void testLabeledThisReferences() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/labeledThisReferences.kt"); + } + + @TestMetadata("loops.kt") + public void testLoops() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/loops.kt"); + } + + @TestMetadata("multilevelBlocks.kt") + public void testMultilevelBlocks() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/multilevelBlocks.kt"); + } + + @TestMetadata("realIteratorFoldl.kt") + public void testRealIteratorFoldl() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realIteratorFoldl.kt"); + } + + @TestMetadata("realStringEscape.kt") + public void testRealStringEscape() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realStringEscape.kt"); + } + + @TestMetadata("realStringRepeat.kt") + public void testRealStringRepeat() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realStringRepeat.kt"); + } + + @TestMetadata("recursiveCallInLambda.kt") + public void testRecursiveCallInLambda() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInLambda.kt"); + } + + @TestMetadata("recursiveCallInLocalFunction.kt") + public void testRecursiveCallInLocalFunction() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInLocalFunction.kt"); + } + + @TestMetadata("recursiveInnerFunction.kt") + public void testRecursiveInnerFunction() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveInnerFunction.kt"); + } + + @TestMetadata("returnIf.kt") + public void testReturnIf() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/returnIf.kt"); + } + + @TestMetadata("returnInCatch.kt") + public void testReturnInCatch() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/returnInCatch.kt"); + } + + @TestMetadata("returnInFinally.kt") + public void testReturnInFinally() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/returnInFinally.kt"); + } + + @TestMetadata("returnInIfInFinally.kt") + public void testReturnInIfInFinally() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/returnInIfInFinally.kt"); + } + + @TestMetadata("returnInParentheses.kt") + public void testReturnInParentheses() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/returnInParentheses.kt"); + } + + @TestMetadata("returnInTry.kt") + public void testReturnInTry() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/returnInTry.kt"); + } + + @TestMetadata("simpleBlock.kt") + public void testSimpleBlock() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/simpleBlock.kt"); + } + + @TestMetadata("simpleReturn.kt") + public void testSimpleReturn() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/simpleReturn.kt"); + } + + @TestMetadata("simpleReturnWithElse.kt") + public void testSimpleReturnWithElse() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/simpleReturnWithElse.kt"); + } + + @TestMetadata("sum.kt") + public void testSum() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/sum.kt"); + } + + @TestMetadata("tailCallInBlockInParentheses.kt") + public void testTailCallInBlockInParentheses() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/tailCallInBlockInParentheses.kt"); + } + + @TestMetadata("tailCallInParentheses.kt") + public void testTailCallInParentheses() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/tailCallInParentheses.kt"); + } + + @TestMetadata("tailRecursionInFinally.kt") + public void testTailRecursionInFinally() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/tailRecursionInFinally.kt"); + } + + @TestMetadata("thisReferences.kt") + public void testThisReferences() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/thisReferences.kt"); + } + + @TestMetadata("unitBlocks.kt") + public void testUnitBlocks() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/unitBlocks.kt"); + } + + @TestMetadata("whenWithCondition.kt") + public void testWhenWithCondition() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/whenWithCondition.kt"); + } + + @TestMetadata("whenWithInRange.kt") + public void testWhenWithInRange() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/whenWithInRange.kt"); + } + + @TestMetadata("whenWithIs.kt") + public void testWhenWithIs() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/whenWithIs.kt"); + } + + @TestMetadata("whenWithoutCondition.kt") + public void testWhenWithoutCondition() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/whenWithoutCondition.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/diagnostics/vararg") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Vararg extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInVararg() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/diagnostics/vararg"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("kt4172.kt") + public void testKt4172() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/vararg/kt4172.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/elvis") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Elvis extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInElvis() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/elvis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("genericElvisWithMoreSpecificLHS.kt") + public void testGenericElvisWithMoreSpecificLHS() throws Exception { + runTest("compiler/testData/codegen/box/elvis/genericElvisWithMoreSpecificLHS.kt"); + } + + @TestMetadata("genericElvisWithNullLHS.kt") + public void testGenericElvisWithNullLHS() throws Exception { + runTest("compiler/testData/codegen/box/elvis/genericElvisWithNullLHS.kt"); + } + + @TestMetadata("genericNull.kt") + public void testGenericNull() throws Exception { + runTest("compiler/testData/codegen/box/elvis/genericNull.kt"); + } + + @TestMetadata("kt6694ExactAnnotationForElvis.kt") + public void testKt6694ExactAnnotationForElvis() throws Exception { + runTest("compiler/testData/codegen/box/elvis/kt6694ExactAnnotationForElvis.kt"); + } + + @TestMetadata("nullNullOk.kt") + public void testNullNullOk() throws Exception { + runTest("compiler/testData/codegen/box/elvis/nullNullOk.kt"); + } + + @TestMetadata("primitive.kt") + public void testPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/elvis/primitive.kt"); + } + + @TestMetadata("withReturn.kt") + public void testWithReturn() throws Exception { + runTest("compiler/testData/codegen/box/elvis/withReturn.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/enum") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Enum extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("abstractMethodInEnum.kt") + public void testAbstractMethodInEnum() throws Exception { + runTest("compiler/testData/codegen/box/enum/abstractMethodInEnum.kt"); + } + + @TestMetadata("abstractNestedClass.kt") + public void testAbstractNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/enum/abstractNestedClass.kt"); + } + + public void testAllFilesPresentInEnum() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/enum"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("asReturnExpression.kt") + public void testAsReturnExpression() throws Exception { + runTest("compiler/testData/codegen/box/enum/asReturnExpression.kt"); + } + + @TestMetadata("companionObjectInEnum.kt") + public void testCompanionObjectInEnum() throws Exception { + runTest("compiler/testData/codegen/box/enum/companionObjectInEnum.kt"); + } + + @TestMetadata("constructorWithReordering.kt") + public void testConstructorWithReordering() throws Exception { + runTest("compiler/testData/codegen/box/enum/constructorWithReordering.kt"); + } + + @TestMetadata("deepInnerClassInEnumEntryClass.kt") + public void testDeepInnerClassInEnumEntryClass() throws Exception { + runTest("compiler/testData/codegen/box/enum/deepInnerClassInEnumEntryClass.kt"); + } + + @TestMetadata("deepInnerClassInEnumEntryClass2.kt") + public void testDeepInnerClassInEnumEntryClass2() throws Exception { + runTest("compiler/testData/codegen/box/enum/deepInnerClassInEnumEntryClass2.kt"); + } + + @TestMetadata("emptyConstructor.kt") + public void testEmptyConstructor() throws Exception { + runTest("compiler/testData/codegen/box/enum/emptyConstructor.kt"); + } + + @TestMetadata("emptyEnumValuesValueOf.kt") + public void testEmptyEnumValuesValueOf() throws Exception { + runTest("compiler/testData/codegen/box/enum/emptyEnumValuesValueOf.kt"); + } + + @TestMetadata("enumCompanionInit.kt") + public void testEnumCompanionInit() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumCompanionInit.kt"); + } + + @TestMetadata("enumEntryMembers.kt") + public void testEnumEntryMembers() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumEntryMembers.kt"); + } + + @TestMetadata("enumEntryReferenceFromInnerClassConstructor1.kt") + public void testEnumEntryReferenceFromInnerClassConstructor1() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor1.kt"); + } + + @TestMetadata("enumEntryReferenceFromInnerClassConstructor2.kt") + public void testEnumEntryReferenceFromInnerClassConstructor2() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor2.kt"); + } + + @TestMetadata("enumEntryReferenceFromInnerClassConstructor3.kt") + public void testEnumEntryReferenceFromInnerClassConstructor3() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumEntryReferenceFromInnerClassConstructor3.kt"); + } + + @TestMetadata("enumInheritedFromTrait.kt") + public void testEnumInheritedFromTrait() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumInheritedFromTrait.kt"); + } + + @TestMetadata("enumMultiModule.kt") + public void testEnumMultiModule() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumMultiModule.kt"); + } + + @TestMetadata("enumShort.kt") + public void testEnumShort() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumShort.kt"); + } + + @TestMetadata("enumWithLambdaParameter.kt") + public void testEnumWithLambdaParameter() throws Exception { + runTest("compiler/testData/codegen/box/enum/enumWithLambdaParameter.kt"); + } + + @TestMetadata("inPackage.kt") + public void testInPackage() throws Exception { + runTest("compiler/testData/codegen/box/enum/inPackage.kt"); + } + + @TestMetadata("inclassobj.kt") + public void testInclassobj() throws Exception { + runTest("compiler/testData/codegen/box/enum/inclassobj.kt"); + } + + @TestMetadata("inner.kt") + public void testInner() throws Exception { + runTest("compiler/testData/codegen/box/enum/inner.kt"); + } + + @TestMetadata("innerClassInEnumEntryClass.kt") + public void testInnerClassInEnumEntryClass() throws Exception { + runTest("compiler/testData/codegen/box/enum/innerClassInEnumEntryClass.kt"); + } + + @TestMetadata("innerClassMethodInEnumEntryClass.kt") + public void testInnerClassMethodInEnumEntryClass() throws Exception { + runTest("compiler/testData/codegen/box/enum/innerClassMethodInEnumEntryClass.kt"); + } + + @TestMetadata("innerClassMethodInEnumEntryClass2.kt") + public void testInnerClassMethodInEnumEntryClass2() throws Exception { + runTest("compiler/testData/codegen/box/enum/innerClassMethodInEnumEntryClass2.kt"); + } + + @TestMetadata("innerWithExistingClassObject.kt") + public void testInnerWithExistingClassObject() throws Exception { + runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt"); + } + + @TestMetadata("kt1119.kt") + public void testKt1119() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt1119.kt"); + } + + @TestMetadata("kt18731.kt") + public void testKt18731() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt18731.kt"); + } + + @TestMetadata("kt18731_2.kt") + public void testKt18731_2() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt18731_2.kt"); + } + + @TestMetadata("kt20651.kt") + public void testKt20651() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt20651.kt"); + } + + @TestMetadata("kt20651_inlineLambda.kt") + public void testKt20651_inlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt20651_inlineLambda.kt"); + } + + @TestMetadata("kt20651a.kt") + public void testKt20651a() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt20651a.kt"); + } + + @TestMetadata("kt20651b.kt") + public void testKt20651b() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt20651b.kt"); + } + + @TestMetadata("kt2350.kt") + public void testKt2350() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt2350.kt"); + } + + @TestMetadata("kt7257.kt") + public void testKt7257() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt7257.kt"); + } + + @TestMetadata("kt7257_anonObjectInit.kt") + public void testKt7257_anonObjectInit() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt7257_anonObjectInit.kt"); + } + + @TestMetadata("kt7257_anonObjectMethod.kt") + public void testKt7257_anonObjectMethod() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt7257_anonObjectMethod.kt"); + } + + @TestMetadata("kt7257_boundReference1.kt") + public void testKt7257_boundReference1() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt7257_boundReference1.kt"); + } + + @TestMetadata("kt7257_boundReference2.kt") + public void testKt7257_boundReference2() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt7257_boundReference2.kt"); + } + + @TestMetadata("kt7257_boundReferenceWithImplicitReceiver.kt") + public void testKt7257_boundReferenceWithImplicitReceiver() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt7257_boundReferenceWithImplicitReceiver.kt"); + } + + @TestMetadata("kt7257_explicitReceiver.kt") + public void testKt7257_explicitReceiver() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt7257_explicitReceiver.kt"); + } + + @TestMetadata("kt7257_fullyQualifiedReceiver.kt") + public void testKt7257_fullyQualifiedReceiver() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt7257_fullyQualifiedReceiver.kt"); + } + + @TestMetadata("kt7257_namedLocalFun.kt") + public void testKt7257_namedLocalFun() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt7257_namedLocalFun.kt"); + } + + @TestMetadata("kt7257_notInline.kt") + public void testKt7257_notInline() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt7257_notInline.kt"); + } + + @TestMetadata("kt9711.kt") + public void testKt9711() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt9711.kt"); + } + + @TestMetadata("kt9711_2.kt") + public void testKt9711_2() throws Exception { + runTest("compiler/testData/codegen/box/enum/kt9711_2.kt"); + } + + @TestMetadata("manyDefaultParameters.kt") + public void testManyDefaultParameters() throws Exception { + runTest("compiler/testData/codegen/box/enum/manyDefaultParameters.kt"); + } + + @TestMetadata("objectInEnum.kt") + public void testObjectInEnum() throws Exception { + runTest("compiler/testData/codegen/box/enum/objectInEnum.kt"); + } + + @TestMetadata("ordinal.kt") + public void testOrdinal() throws Exception { + runTest("compiler/testData/codegen/box/enum/ordinal.kt"); + } + + @TestMetadata("refToThis.kt") + public void testRefToThis() throws Exception { + runTest("compiler/testData/codegen/box/enum/refToThis.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/enum/simple.kt"); + } + + @TestMetadata("sortEnumEntries.kt") + public void testSortEnumEntries() throws Exception { + runTest("compiler/testData/codegen/box/enum/sortEnumEntries.kt"); + } + + @TestMetadata("superCallInEnumLiteral.kt") + public void testSuperCallInEnumLiteral() throws Exception { + runTest("compiler/testData/codegen/box/enum/superCallInEnumLiteral.kt"); + } + + @TestMetadata("toString.kt") + public void testToString() throws Exception { + runTest("compiler/testData/codegen/box/enum/toString.kt"); + } + + @TestMetadata("valueof.kt") + public void testValueof() throws Exception { + runTest("compiler/testData/codegen/box/enum/valueof.kt"); + } + + @TestMetadata("whenInObject.kt") + public void testWhenInObject() throws Exception { + runTest("compiler/testData/codegen/box/enum/whenInObject.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/enum/defaultCtor") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DefaultCtor extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDefaultCtor() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/enum/defaultCtor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("constructorWithDefaultArguments.kt") + public void testConstructorWithDefaultArguments() throws Exception { + runTest("compiler/testData/codegen/box/enum/defaultCtor/constructorWithDefaultArguments.kt"); + } + + @TestMetadata("constructorWithVararg.kt") + public void testConstructorWithVararg() throws Exception { + runTest("compiler/testData/codegen/box/enum/defaultCtor/constructorWithVararg.kt"); + } + + @TestMetadata("entryClassConstructorWithDefaultArguments.kt") + public void testEntryClassConstructorWithDefaultArguments() throws Exception { + runTest("compiler/testData/codegen/box/enum/defaultCtor/entryClassConstructorWithDefaultArguments.kt"); + } + + @TestMetadata("entryClassConstructorWithVarargs.kt") + public void testEntryClassConstructorWithVarargs() throws Exception { + runTest("compiler/testData/codegen/box/enum/defaultCtor/entryClassConstructorWithVarargs.kt"); + } + + @TestMetadata("secondaryConstructorWithDefaultArguments.kt") + public void testSecondaryConstructorWithDefaultArguments() throws Exception { + runTest("compiler/testData/codegen/box/enum/defaultCtor/secondaryConstructorWithDefaultArguments.kt"); + } + + @TestMetadata("secondaryConstructorWithVararg.kt") + public void testSecondaryConstructorWithVararg() throws Exception { + runTest("compiler/testData/codegen/box/enum/defaultCtor/secondaryConstructorWithVararg.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/evaluate") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Evaluate extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInEvaluate() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/evaluate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("kt9443.kt") + public void testKt9443() throws Exception { + runTest("compiler/testData/codegen/box/evaluate/kt9443.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/exclExcl") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ExclExcl extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInExclExcl() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/exclExcl"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("genericNull.kt") + public void testGenericNull() throws Exception { + runTest("compiler/testData/codegen/box/exclExcl/genericNull.kt"); + } + + @TestMetadata("primitive.kt") + public void testPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/exclExcl/primitive.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/extensionFunctions") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ExtensionFunctions extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInExtensionFunctions() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/extensionFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("executionOrder.kt") + public void testExecutionOrder() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/executionOrder.kt"); + } + + @TestMetadata("kt1061.kt") + public void testKt1061() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt1061.kt"); + } + + @TestMetadata("kt1249.kt") + public void testKt1249() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt1249.kt"); + } + + @TestMetadata("kt1290.kt") + public void testKt1290() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt1290.kt"); + } + + @TestMetadata("kt13312.kt") + public void testKt13312() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt13312.kt"); + } + + @TestMetadata("kt1776.kt") + public void testKt1776() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt1776.kt"); + } + + @TestMetadata("kt1953.kt") + public void testKt1953() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt1953.kt"); + } + + @TestMetadata("kt1953_class.kt") + public void testKt1953_class() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt1953_class.kt"); + } + + @TestMetadata("kt23675.kt") + public void testKt23675() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt23675.kt"); + } + + @TestMetadata("kt3285.kt") + public void testKt3285() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt3285.kt"); + } + + @TestMetadata("kt3298.kt") + public void testKt3298() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt3298.kt"); + } + + @TestMetadata("kt3646.kt") + public void testKt3646() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt3646.kt"); + } + + @TestMetadata("kt3969.kt") + public void testKt3969() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt3969.kt"); + } + + @TestMetadata("kt4228.kt") + public void testKt4228() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt4228.kt"); + } + + @TestMetadata("kt475.kt") + public void testKt475() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt475.kt"); + } + + @TestMetadata("kt5467.kt") + public void testKt5467() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt5467.kt"); + } + + @TestMetadata("kt606.kt") + public void testKt606() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt606.kt"); + } + + @TestMetadata("kt865.kt") + public void testKt865() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt865.kt"); + } + + @TestMetadata("nested2.kt") + public void testNested2() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/nested2.kt"); + } + + @TestMetadata("shared.kt") + public void testShared() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/shared.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/simple.kt"); + } + + @TestMetadata("thisMethodInObjectLiteral.kt") + public void testThisMethodInObjectLiteral() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/thisMethodInObjectLiteral.kt"); + } + + @TestMetadata("virtual.kt") + public void testVirtual() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/virtual.kt"); + } + + @TestMetadata("whenFail.kt") + public void testWhenFail() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/whenFail.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/extensionProperties") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ExtensionProperties extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("accessorForPrivateSetter.kt") + public void testAccessorForPrivateSetter() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/accessorForPrivateSetter.kt"); + } + + public void testAllFilesPresentInExtensionProperties() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/extensionProperties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("genericValForPrimitiveType.kt") + public void testGenericValForPrimitiveType() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/genericValForPrimitiveType.kt"); + } + + @TestMetadata("genericVarForPrimitiveType.kt") + public void testGenericVarForPrimitiveType() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/genericVarForPrimitiveType.kt"); + } + + @TestMetadata("inClass.kt") + public void testInClass() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/inClass.kt"); + } + + @TestMetadata("inClassLongTypeInReceiver.kt") + public void testInClassLongTypeInReceiver() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/inClassLongTypeInReceiver.kt"); + } + + @TestMetadata("inClassWithGetter.kt") + public void testInClassWithGetter() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/inClassWithGetter.kt"); + } + + @TestMetadata("inClassWithPrivateGetter.kt") + public void testInClassWithPrivateGetter() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/inClassWithPrivateGetter.kt"); + } + + @TestMetadata("inClassWithPrivateSetter.kt") + public void testInClassWithPrivateSetter() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/inClassWithPrivateSetter.kt"); + } + + @TestMetadata("inClassWithSetter.kt") + public void testInClassWithSetter() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/inClassWithSetter.kt"); + } + + @TestMetadata("kt9897.kt") + public void testKt9897() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/kt9897.kt"); + } + + @TestMetadata("kt9897_topLevel.kt") + public void testKt9897_topLevel() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/kt9897_topLevel.kt"); + } + + @TestMetadata("nonAbstractInInterface.kt") + public void testNonAbstractInInterface() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/nonAbstractInInterface.kt"); + } + + @TestMetadata("topLevel.kt") + public void testTopLevel() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/topLevel.kt"); + } + + @TestMetadata("topLevelLongTypeInReceiver.kt") + public void testTopLevelLongTypeInReceiver() throws Exception { + runTest("compiler/testData/codegen/box/extensionProperties/topLevelLongTypeInReceiver.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/external") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class External extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInExternal() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/external"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/fakeOverride") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class FakeOverride extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInFakeOverride() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fakeOverride"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("diamondFunction.kt") + public void testDiamondFunction() throws Exception { + runTest("compiler/testData/codegen/box/fakeOverride/diamondFunction.kt"); + } + + @TestMetadata("function.kt") + public void testFunction() throws Exception { + runTest("compiler/testData/codegen/box/fakeOverride/function.kt"); + } + + @TestMetadata("propertyGetter.kt") + public void testPropertyGetter() throws Exception { + runTest("compiler/testData/codegen/box/fakeOverride/propertyGetter.kt"); + } + + @TestMetadata("propertySetter.kt") + public void testPropertySetter() throws Exception { + runTest("compiler/testData/codegen/box/fakeOverride/propertySetter.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/fieldRename") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class FieldRename extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInFieldRename() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fieldRename"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("constructorAndClassObject.kt") + public void testConstructorAndClassObject() throws Exception { + runTest("compiler/testData/codegen/box/fieldRename/constructorAndClassObject.kt"); + } + + @TestMetadata("delegates.kt") + public void testDelegates() throws Exception { + runTest("compiler/testData/codegen/box/fieldRename/delegates.kt"); + } + + @TestMetadata("genericPropertyWithItself.kt") + public void testGenericPropertyWithItself() throws Exception { + runTest("compiler/testData/codegen/box/fieldRename/genericPropertyWithItself.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/finally") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Finally extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInFinally() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/finally"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("breakAndOuterFinally.kt") + public void testBreakAndOuterFinally() throws Exception { + runTest("compiler/testData/codegen/box/finally/breakAndOuterFinally.kt"); + } + + @TestMetadata("continueAndOuterFinally.kt") + public void testContinueAndOuterFinally() throws Exception { + runTest("compiler/testData/codegen/box/finally/continueAndOuterFinally.kt"); + } + + @TestMetadata("finallyAndFinally.kt") + public void testFinallyAndFinally() throws Exception { + runTest("compiler/testData/codegen/box/finally/finallyAndFinally.kt"); + } + + @TestMetadata("kt31923_break.kt") + public void testKt31923_break() throws Exception { + runTest("compiler/testData/codegen/box/finally/kt31923_break.kt"); + } + + @TestMetadata("kt31923_continue.kt") + public void testKt31923_continue() throws Exception { + runTest("compiler/testData/codegen/box/finally/kt31923_continue.kt"); + } + + @TestMetadata("kt31923_return.kt") + public void testKt31923_return() throws Exception { + runTest("compiler/testData/codegen/box/finally/kt31923_return.kt"); + } + + @TestMetadata("kt3549.kt") + public void testKt3549() throws Exception { + runTest("compiler/testData/codegen/box/finally/kt3549.kt"); + } + + @TestMetadata("kt3706.kt") + public void testKt3706() throws Exception { + runTest("compiler/testData/codegen/box/finally/kt3706.kt"); + } + + @TestMetadata("kt3867.kt") + public void testKt3867() throws Exception { + runTest("compiler/testData/codegen/box/finally/kt3867.kt"); + } + + @TestMetadata("kt3874.kt") + public void testKt3874() throws Exception { + runTest("compiler/testData/codegen/box/finally/kt3874.kt"); + } + + @TestMetadata("kt3894.kt") + public void testKt3894() throws Exception { + runTest("compiler/testData/codegen/box/finally/kt3894.kt"); + } + + @TestMetadata("kt4134.kt") + public void testKt4134() throws Exception { + runTest("compiler/testData/codegen/box/finally/kt4134.kt"); + } + + @TestMetadata("loopAndFinally.kt") + public void testLoopAndFinally() throws Exception { + runTest("compiler/testData/codegen/box/finally/loopAndFinally.kt"); + } + + @TestMetadata("nestedFinallyAndNonFinallyTry.kt") + public void testNestedFinallyAndNonFinallyTry() throws Exception { + runTest("compiler/testData/codegen/box/finally/nestedFinallyAndNonFinallyTry.kt"); + } + + @TestMetadata("nestedFinallyAndNonFinallyTry2.kt") + public void testNestedFinallyAndNonFinallyTry2() throws Exception { + runTest("compiler/testData/codegen/box/finally/nestedFinallyAndNonFinallyTry2.kt"); + } + + @TestMetadata("nestedFinallyAndNonFinallyTry3.kt") + public void testNestedFinallyAndNonFinallyTry3() throws Exception { + runTest("compiler/testData/codegen/box/finally/nestedFinallyAndNonFinallyTry3.kt"); + } + + @TestMetadata("nestedFinallyAndNonFinallyTry4.kt") + public void testNestedFinallyAndNonFinallyTry4() throws Exception { + runTest("compiler/testData/codegen/box/finally/nestedFinallyAndNonFinallyTry4.kt"); + } + + @TestMetadata("notChainCatch.kt") + public void testNotChainCatch() throws Exception { + runTest("compiler/testData/codegen/box/finally/notChainCatch.kt"); + } + + @TestMetadata("objectInFinally.kt") + public void testObjectInFinally() throws Exception { + runTest("compiler/testData/codegen/box/finally/objectInFinally.kt"); + } + + @TestMetadata("tryFinally.kt") + public void testTryFinally() throws Exception { + runTest("compiler/testData/codegen/box/finally/tryFinally.kt"); + } + + @TestMetadata("tryLoopTry.kt") + public void testTryLoopTry() throws Exception { + runTest("compiler/testData/codegen/box/finally/tryLoopTry.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/fullJdk") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class FullJdk extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInFullJdk() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fullJdk"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/fullJdk/native") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Native extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNative() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fullJdk/native"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/fullJdk/regressions") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Regressions extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInRegressions() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fullJdk/regressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/funInterface") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class FunInterface extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInFunInterface() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/funInterface"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("basicFunInterface.kt") + public void testBasicFunInterface() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/basicFunInterface.kt"); + } + + @TestMetadata("basicFunInterfaceConversion.kt") + public void testBasicFunInterfaceConversion() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/basicFunInterfaceConversion.kt"); + } + + @TestMetadata("castFromAny.kt") + public void testCastFromAny() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/castFromAny.kt"); + } + + @TestMetadata("funInterfaceInheritance.kt") + public void testFunInterfaceInheritance() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/funInterfaceInheritance.kt"); + } + + @TestMetadata("funInterfaceWithReceiver.kt") + public void testFunInterfaceWithReceiver() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/funInterfaceWithReceiver.kt"); + } + + @TestMetadata("inlinedSamWrapper.kt") + public void testInlinedSamWrapper() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/inlinedSamWrapper.kt"); + } + + @TestMetadata("intersectionTypeToFunInterfaceConversion.kt") + public void testIntersectionTypeToFunInterfaceConversion() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/intersectionTypeToFunInterfaceConversion.kt"); + } + + @TestMetadata("multimodule.kt") + public void testMultimodule() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/multimodule.kt"); + } + + @TestMetadata("nullableSam.kt") + public void testNullableSam() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/nullableSam.kt"); + } + + @TestMetadata("partialSam.kt") + public void testPartialSam() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/partialSam.kt"); + } + + @TestMetadata("primitiveConversions.kt") + public void testPrimitiveConversions() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/primitiveConversions.kt"); + } + + @TestMetadata("receiverEvaluatedOnce.kt") + public void testReceiverEvaluatedOnce() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/receiverEvaluatedOnce.kt"); + } + + @TestMetadata("samConstructorExplicitInvocation.kt") + public void testSamConstructorExplicitInvocation() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/samConstructorExplicitInvocation.kt"); + } + + @TestMetadata("subtypeOfFunctionalTypeToFunInterfaceConversion.kt") + public void testSubtypeOfFunctionalTypeToFunInterfaceConversion() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/subtypeOfFunctionalTypeToFunInterfaceConversion.kt"); + } + + @TestMetadata("suspendFunInterfaceConversionCodegen.kt") + public void testSuspendFunInterfaceConversionCodegen() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/suspendFunInterfaceConversionCodegen.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/funInterface/equality") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Equality extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInEquality() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/funInterface/equality"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("functionReferencesBound.kt") + public void testFunctionReferencesBound() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/equality/functionReferencesBound.kt"); + } + + @TestMetadata("functionReferencesUnbound.kt") + public void testFunctionReferencesUnbound() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/equality/functionReferencesUnbound.kt"); + } + + @TestMetadata("lambdaRuntimeConversion.kt") + public void testLambdaRuntimeConversion() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/equality/lambdaRuntimeConversion.kt"); + } + + @TestMetadata("localFunctionReferences.kt") + public void testLocalFunctionReferences() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/equality/localFunctionReferences.kt"); + } + + @TestMetadata("simpleLambdas.kt") + public void testSimpleLambdas() throws Exception { + runTest("compiler/testData/codegen/box/funInterface/equality/simpleLambdas.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/functions") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Functions extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInFunctions() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/functions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("coerceVoidToArray.kt") + public void testCoerceVoidToArray() throws Exception { + runTest("compiler/testData/codegen/box/functions/coerceVoidToArray.kt"); + } + + @TestMetadata("coerceVoidToObject.kt") + public void testCoerceVoidToObject() throws Exception { + runTest("compiler/testData/codegen/box/functions/coerceVoidToObject.kt"); + } + + @TestMetadata("defaultargs.kt") + public void testDefaultargs() throws Exception { + runTest("compiler/testData/codegen/box/functions/defaultargs.kt"); + } + + @TestMetadata("defaultargs1.kt") + public void testDefaultargs1() throws Exception { + runTest("compiler/testData/codegen/box/functions/defaultargs1.kt"); + } + + @TestMetadata("defaultargs2.kt") + public void testDefaultargs2() throws Exception { + runTest("compiler/testData/codegen/box/functions/defaultargs2.kt"); + } + + @TestMetadata("defaultargs3.kt") + public void testDefaultargs3() throws Exception { + runTest("compiler/testData/codegen/box/functions/defaultargs3.kt"); + } + + @TestMetadata("defaultargs4.kt") + public void testDefaultargs4() throws Exception { + runTest("compiler/testData/codegen/box/functions/defaultargs4.kt"); + } + + @TestMetadata("defaultargs5.kt") + public void testDefaultargs5() throws Exception { + runTest("compiler/testData/codegen/box/functions/defaultargs5.kt"); + } + + @TestMetadata("defaultargs6.kt") + public void testDefaultargs6() throws Exception { + runTest("compiler/testData/codegen/box/functions/defaultargs6.kt"); + } + + @TestMetadata("defaultargs7.kt") + public void testDefaultargs7() throws Exception { + runTest("compiler/testData/codegen/box/functions/defaultargs7.kt"); + } + + @TestMetadata("ea33909.kt") + public void testEa33909() throws Exception { + runTest("compiler/testData/codegen/box/functions/ea33909.kt"); + } + + @TestMetadata("fakeDescriptorWithSeveralOverridenOne.kt") + public void testFakeDescriptorWithSeveralOverridenOne() throws Exception { + runTest("compiler/testData/codegen/box/functions/fakeDescriptorWithSeveralOverridenOne.kt"); + } + + @TestMetadata("functionNtoString.kt") + public void testFunctionNtoString() throws Exception { + runTest("compiler/testData/codegen/box/functions/functionNtoString.kt"); + } + + @TestMetadata("functionNtoStringGeneric.kt") + public void testFunctionNtoStringGeneric() throws Exception { + runTest("compiler/testData/codegen/box/functions/functionNtoStringGeneric.kt"); + } + + @TestMetadata("functionNtoStringNoReflect.kt") + public void testFunctionNtoStringNoReflect() throws Exception { + runTest("compiler/testData/codegen/box/functions/functionNtoStringNoReflect.kt"); + } + + @TestMetadata("infixRecursiveCall.kt") + public void testInfixRecursiveCall() throws Exception { + runTest("compiler/testData/codegen/box/functions/infixRecursiveCall.kt"); + } + + @TestMetadata("kt1038.kt") + public void testKt1038() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt1038.kt"); + } + + @TestMetadata("kt1199.kt") + public void testKt1199() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt1199.kt"); + } + + @TestMetadata("kt1413.kt") + public void testKt1413() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt1413.kt"); + } + + @TestMetadata("kt1649_1.kt") + public void testKt1649_1() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt1649_1.kt"); + } + + @TestMetadata("kt1649_2.kt") + public void testKt1649_2() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt1649_2.kt"); + } + + @TestMetadata("kt1739.kt") + public void testKt1739() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt1739.kt"); + } + + @TestMetadata("kt2270.kt") + public void testKt2270() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt2270.kt"); + } + + @TestMetadata("kt2271.kt") + public void testKt2271() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt2271.kt"); + } + + @TestMetadata("kt2280.kt") + public void testKt2280() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt2280.kt"); + } + + @TestMetadata("kt2481.kt") + public void testKt2481() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt2481.kt"); + } + + @TestMetadata("kt2716.kt") + public void testKt2716() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt2716.kt"); + } + + @TestMetadata("kt2739.kt") + public void testKt2739() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt2739.kt"); + } + + @TestMetadata("kt2929.kt") + public void testKt2929() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt2929.kt"); + } + + @TestMetadata("kt3214.kt") + public void testKt3214() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt3214.kt"); + } + + @TestMetadata("kt3313.kt") + public void testKt3313() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt3313.kt"); + } + + @TestMetadata("kt3573.kt") + public void testKt3573() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt3573.kt"); + } + + @TestMetadata("kt3724.kt") + public void testKt3724() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt3724.kt"); + } + + @TestMetadata("kt395.kt") + public void testKt395() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt395.kt"); + } + + @TestMetadata("kt785.kt") + public void testKt785() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt785.kt"); + } + + @TestMetadata("kt873.kt") + public void testKt873() throws Exception { + runTest("compiler/testData/codegen/box/functions/kt873.kt"); + } + + @TestMetadata("localFunction.kt") + public void testLocalFunction() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunction.kt"); + } + + @TestMetadata("localReturnInsideFunctionExpression.kt") + public void testLocalReturnInsideFunctionExpression() throws Exception { + runTest("compiler/testData/codegen/box/functions/localReturnInsideFunctionExpression.kt"); + } + + @TestMetadata("nothisnoclosure.kt") + public void testNothisnoclosure() throws Exception { + runTest("compiler/testData/codegen/box/functions/nothisnoclosure.kt"); + } + + @TestMetadata("prefixRecursiveCall.kt") + public void testPrefixRecursiveCall() throws Exception { + runTest("compiler/testData/codegen/box/functions/prefixRecursiveCall.kt"); + } + + @TestMetadata("recursiveCompareTo.kt") + public void testRecursiveCompareTo() throws Exception { + runTest("compiler/testData/codegen/box/functions/recursiveCompareTo.kt"); + } + + @TestMetadata("recursiveIncrementCall.kt") + public void testRecursiveIncrementCall() throws Exception { + runTest("compiler/testData/codegen/box/functions/recursiveIncrementCall.kt"); + } + + @TestMetadata("typeParametersInLocalFunction.kt") + public void testTypeParametersInLocalFunction() throws Exception { + runTest("compiler/testData/codegen/box/functions/typeParametersInLocalFunction.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/functions/bigArity") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class BigArity extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInBigArity() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/functions/bigArity"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("function255.kt") + public void testFunction255() throws Exception { + runTest("compiler/testData/codegen/box/functions/bigArity/function255.kt"); + } + + @TestMetadata("instanceOfCallableReference.kt") + public void testInstanceOfCallableReference() throws Exception { + runTest("compiler/testData/codegen/box/functions/bigArity/instanceOfCallableReference.kt"); + } + + @TestMetadata("invokeCallableReference.kt") + public void testInvokeCallableReference() throws Exception { + runTest("compiler/testData/codegen/box/functions/bigArity/invokeCallableReference.kt"); + } + + @TestMetadata("invokeLambda.kt") + public void testInvokeLambda() throws Exception { + runTest("compiler/testData/codegen/box/functions/bigArity/invokeLambda.kt"); + } + + @TestMetadata("invokeMemberCallableReference.kt") + public void testInvokeMemberCallableReference() throws Exception { + runTest("compiler/testData/codegen/box/functions/bigArity/invokeMemberCallableReference.kt"); + } + + @TestMetadata("subclass.kt") + public void testSubclass() throws Exception { + runTest("compiler/testData/codegen/box/functions/bigArity/subclass.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/functions/functionExpression") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class FunctionExpression extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInFunctionExpression() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/functions/functionExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("functionExpression.kt") + public void testFunctionExpression() throws Exception { + runTest("compiler/testData/codegen/box/functions/functionExpression/functionExpression.kt"); + } + + @TestMetadata("functionExpressionWithThisReference.kt") + public void testFunctionExpressionWithThisReference() throws Exception { + runTest("compiler/testData/codegen/box/functions/functionExpression/functionExpressionWithThisReference.kt"); + } + + @TestMetadata("functionExpressionWithThisReferenceNI.kt") + public void testFunctionExpressionWithThisReferenceNI() throws Exception { + runTest("compiler/testData/codegen/box/functions/functionExpression/functionExpressionWithThisReferenceNI.kt"); + } + + @TestMetadata("functionLiteralExpression.kt") + public void testFunctionLiteralExpression() throws Exception { + runTest("compiler/testData/codegen/box/functions/functionExpression/functionLiteralExpression.kt"); + } + + @TestMetadata("insideGenericLambda.kt") + public void testInsideGenericLambda() throws Exception { + runTest("compiler/testData/codegen/box/functions/functionExpression/insideGenericLambda.kt"); + } + + @TestMetadata("underscoreParameters.kt") + public void testUnderscoreParameters() throws Exception { + runTest("compiler/testData/codegen/box/functions/functionExpression/underscoreParameters.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/functions/invoke") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Invoke extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInvoke() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/functions/invoke"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("castFunctionToExtension.kt") + public void testCastFunctionToExtension() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/castFunctionToExtension.kt"); + } + + @TestMetadata("extensionInvokeOnExpr.kt") + public void testExtensionInvokeOnExpr() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/extensionInvokeOnExpr.kt"); + } + + @TestMetadata("implicitInvokeInCompanionObjectWithFunctionalArgument.kt") + public void testImplicitInvokeInCompanionObjectWithFunctionalArgument() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/implicitInvokeInCompanionObjectWithFunctionalArgument.kt"); + } + + @TestMetadata("implicitInvokeWithFunctionLiteralArgument.kt") + public void testImplicitInvokeWithFunctionLiteralArgument() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/implicitInvokeWithFunctionLiteralArgument.kt"); + } + + @TestMetadata("invoke.kt") + public void testInvoke() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/invoke.kt"); + } + + @TestMetadata("invokeOnExprByConvention.kt") + public void testInvokeOnExprByConvention() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/invokeOnExprByConvention.kt"); + } + + @TestMetadata("kt3189.kt") + public void testKt3189() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/kt3189.kt"); + } + + @TestMetadata("kt3190.kt") + public void testKt3190() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/kt3190.kt"); + } + + @TestMetadata("kt3297.kt") + public void testKt3297() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/kt3297.kt"); + } + + @TestMetadata("kt3450getAndInvoke.kt") + public void testKt3450getAndInvoke() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/kt3450getAndInvoke.kt"); + } + + @TestMetadata("kt3631invokeOnString.kt") + public void testKt3631invokeOnString() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/kt3631invokeOnString.kt"); + } + + @TestMetadata("kt3772.kt") + public void testKt3772() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/kt3772.kt"); + } + + @TestMetadata("kt3821invokeOnThis.kt") + public void testKt3821invokeOnThis() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/kt3821invokeOnThis.kt"); + } + + @TestMetadata("kt3822invokeOnThis.kt") + public void testKt3822invokeOnThis() throws Exception { + runTest("compiler/testData/codegen/box/functions/invoke/kt3822invokeOnThis.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/functions/localFunctions") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class LocalFunctions extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInLocalFunctions() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/functions/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("callInlineLocalInLambda.kt") + public void testCallInlineLocalInLambda() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/callInlineLocalInLambda.kt"); + } + + @TestMetadata("captureUpperBoundedTypeParameter.kt") + public void testCaptureUpperBoundedTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/captureUpperBoundedTypeParameter.kt"); + } + + @TestMetadata("definedWithinLambda.kt") + public void testDefinedWithinLambda() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/definedWithinLambda.kt"); + } + + @TestMetadata("definedWithinLambdaInnerUsage1.kt") + public void testDefinedWithinLambdaInnerUsage1() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/definedWithinLambdaInnerUsage1.kt"); + } + + @TestMetadata("definedWithinLambdaInnerUsage2.kt") + public void testDefinedWithinLambdaInnerUsage2() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/definedWithinLambdaInnerUsage2.kt"); + } + + @TestMetadata("kt2895.kt") + public void testKt2895() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/kt2895.kt"); + } + + @TestMetadata("kt3308.kt") + public void testKt3308() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/kt3308.kt"); + } + + @TestMetadata("kt3978.kt") + public void testKt3978() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/kt3978.kt"); + } + + @TestMetadata("kt3978_2.kt") + public void testKt3978_2() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/kt3978_2.kt"); + } + + @TestMetadata("kt4119.kt") + public void testKt4119() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/kt4119.kt"); + } + + @TestMetadata("kt4119_2.kt") + public void testKt4119_2() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/kt4119_2.kt"); + } + + @TestMetadata("kt4514.kt") + public void testKt4514() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/kt4514.kt"); + } + + @TestMetadata("kt4777.kt") + public void testKt4777() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/kt4777.kt"); + } + + @TestMetadata("kt4783.kt") + public void testKt4783() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/kt4783.kt"); + } + + @TestMetadata("kt4784.kt") + public void testKt4784() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/kt4784.kt"); + } + + @TestMetadata("kt4989.kt") + public void testKt4989() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/kt4989.kt"); + } + + @TestMetadata("localExtensionOnNullableParameter.kt") + public void testLocalExtensionOnNullableParameter() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/localExtensionOnNullableParameter.kt"); + } + + @TestMetadata("localFunctionInConstructor.kt") + public void testLocalFunctionInConstructor() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/localFunctionInConstructor.kt"); + } + + @TestMetadata("localFunctionVsLocalVariable.kt") + public void testLocalFunctionVsLocalVariable() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/localFunctionVsLocalVariable.kt"); + } + + @TestMetadata("nameClash.kt") + public void testNameClash() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/nameClash.kt"); + } + + @TestMetadata("nameClashAcrossDifferentContainers.kt") + public void testNameClashAcrossDifferentContainers() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/nameClashAcrossDifferentContainers.kt"); + } + + @TestMetadata("overloadedLocalFunWithoutClosure.kt") + public void testOverloadedLocalFunWithoutClosure() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/overloadedLocalFunWithoutClosure.kt"); + } + + @TestMetadata("overloadedLocalFunction.kt") + public void testOverloadedLocalFunction() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/overloadedLocalFunction.kt"); + } + + @TestMetadata("overloadedLocalFunction1.kt") + public void testOverloadedLocalFunction1() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/overloadedLocalFunction1.kt"); + } + + @TestMetadata("overloadedLocalFunction2.kt") + public void testOverloadedLocalFunction2() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/overloadedLocalFunction2.kt"); + } + + @TestMetadata("overloadedLocalFunction3.kt") + public void testOverloadedLocalFunction3() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/overloadedLocalFunction3.kt"); + } + + @TestMetadata("parameterAsDefaultValue.kt") + public void testParameterAsDefaultValue() throws Exception { + runTest("compiler/testData/codegen/box/functions/localFunctions/parameterAsDefaultValue.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/hashPMap") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class HashPMap extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInHashPMap() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/hashPMap"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/ieee754") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Ieee754 extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInIeee754() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ieee754"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("anyToReal.kt") + public void testAnyToReal() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/anyToReal.kt"); + } + + @TestMetadata("asComparableToDouble.kt") + public void testAsComparableToDouble() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/asComparableToDouble.kt"); + } + + @TestMetadata("asComparableToDouble_properIeeeComparisons.kt") + public void testAsComparableToDouble_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/asComparableToDouble_properIeeeComparisons.kt"); + } + + @TestMetadata("comparableToTWithT_properIeeeComparisons.kt") + public void testComparableToTWithT_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/comparableToTWithT_properIeeeComparisons.kt"); + } + + @TestMetadata("comparableTypeCast.kt") + public void testComparableTypeCast() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/comparableTypeCast.kt"); + } + + @TestMetadata("dataClass.kt") + public void testDataClass() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/dataClass.kt"); + } + + @TestMetadata("differentTypesComparison.kt") + public void testDifferentTypesComparison() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/differentTypesComparison.kt"); + } + + @TestMetadata("equalsDouble_properIeeeComparisons.kt") + public void testEqualsDouble_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/equalsDouble_properIeeeComparisons.kt"); + } + + @TestMetadata("equalsFloat_properIeeeComparisons.kt") + public void testEqualsFloat_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/equalsFloat_properIeeeComparisons.kt"); + } + + @TestMetadata("equalsNaN_properIeeeComparisons.kt") + public void testEqualsNaN_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/equalsNaN_properIeeeComparisons.kt"); + } + + @TestMetadata("equalsNullableDouble_properIeeeComparisons.kt") + public void testEqualsNullableDouble_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/equalsNullableDouble_properIeeeComparisons.kt"); + } + + @TestMetadata("equalsNullableFloat_properIeeeComparisons.kt") + public void testEqualsNullableFloat_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/equalsNullableFloat_properIeeeComparisons.kt"); + } + + @TestMetadata("explicitCompareCall.kt") + public void testExplicitCompareCall() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/explicitCompareCall.kt"); + } + + @TestMetadata("explicitEqualsCall.kt") + public void testExplicitEqualsCall() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/explicitEqualsCall.kt"); + } + + @TestMetadata("generic.kt") + public void testGeneric() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/generic.kt"); + } + + @TestMetadata("greaterDouble_properIeeeComparisons.kt") + public void testGreaterDouble_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/greaterDouble_properIeeeComparisons.kt"); + } + + @TestMetadata("greaterFloat_properIeeeComparisons.kt") + public void testGreaterFloat_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/greaterFloat_properIeeeComparisons.kt"); + } + + @TestMetadata("inline.kt") + public void testInline() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/inline.kt"); + } + + @TestMetadata("lessDouble_properIeeeAndNewInference.kt") + public void testLessDouble_properIeeeAndNewInference() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/lessDouble_properIeeeAndNewInference.kt"); + } + + @TestMetadata("lessDouble_properIeeeComparisons.kt") + public void testLessDouble_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/lessDouble_properIeeeComparisons.kt"); + } + + @TestMetadata("lessFloat_properIeeeComparisons.kt") + public void testLessFloat_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/lessFloat_properIeeeComparisons.kt"); + } + + @TestMetadata("nullableAnyToReal.kt") + public void testNullableAnyToReal() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/nullableAnyToReal.kt"); + } + + @TestMetadata("nullableDoubleEquals.kt") + public void testNullableDoubleEquals() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/nullableDoubleEquals.kt"); + } + + @TestMetadata("nullableDoubleEqualsLV13.kt") + public void testNullableDoubleEqualsLV13() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/nullableDoubleEqualsLV13.kt"); + } + + @TestMetadata("nullableDoubleNotEquals.kt") + public void testNullableDoubleNotEquals() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/nullableDoubleNotEquals.kt"); + } + + @TestMetadata("nullableFloatEquals.kt") + public void testNullableFloatEquals() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/nullableFloatEquals.kt"); + } + + @TestMetadata("nullableFloatNotEquals.kt") + public void testNullableFloatNotEquals() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/nullableFloatNotEquals.kt"); + } + + @TestMetadata("nullableIntEquals.kt") + public void testNullableIntEquals() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/nullableIntEquals.kt"); + } + + @TestMetadata("safeCall.kt") + public void testSafeCall() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/safeCall.kt"); + } + + @TestMetadata("smartCastOnWhenSubjectAfterCheckInBranch_properIeeeComparisons.kt") + public void testSmartCastOnWhenSubjectAfterCheckInBranch_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/smartCastOnWhenSubjectAfterCheckInBranch_properIeeeComparisons.kt"); + } + + @TestMetadata("smartCastToDifferentTypesWithNumericPromotion_properIeeeComparisons.kt") + public void testSmartCastToDifferentTypesWithNumericPromotion_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/smartCastToDifferentTypesWithNumericPromotion_properIeeeComparisons.kt"); + } + + @TestMetadata("smartCastToDifferentTypes_properIeeeComparisons.kt") + public void testSmartCastToDifferentTypes_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/smartCastToDifferentTypes_properIeeeComparisons.kt"); + } + + @TestMetadata("smartCastToDoubleAndComparableToDouble.kt") + public void testSmartCastToDoubleAndComparableToDouble() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/smartCastToDoubleAndComparableToDouble.kt"); + } + + @TestMetadata("whenNoSubject_properIeeeComparisons.kt") + public void testWhenNoSubject_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/whenNoSubject_properIeeeComparisons.kt"); + } + + @TestMetadata("whenNullableSmartCast.kt") + public void testWhenNullableSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/whenNullableSmartCast.kt"); + } + + @TestMetadata("when_properIeeeComparisons.kt") + public void testWhen_properIeeeComparisons() throws Exception { + runTest("compiler/testData/codegen/box/ieee754/when_properIeeeComparisons.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/increment") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Increment extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInIncrement() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/increment"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("arrayElement.kt") + public void testArrayElement() throws Exception { + runTest("compiler/testData/codegen/box/increment/arrayElement.kt"); + } + + @TestMetadata("assignPlusOnSmartCast.kt") + public void testAssignPlusOnSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/increment/assignPlusOnSmartCast.kt"); + } + + @TestMetadata("augmentedAssignmentWithComplexRhs.kt") + public void testAugmentedAssignmentWithComplexRhs() throws Exception { + runTest("compiler/testData/codegen/box/increment/augmentedAssignmentWithComplexRhs.kt"); + } + + @TestMetadata("classNaryGetSet.kt") + public void testClassNaryGetSet() throws Exception { + runTest("compiler/testData/codegen/box/increment/classNaryGetSet.kt"); + } + + @TestMetadata("classWithGetSet.kt") + public void testClassWithGetSet() throws Exception { + runTest("compiler/testData/codegen/box/increment/classWithGetSet.kt"); + } + + @TestMetadata("extOnLong.kt") + public void testExtOnLong() throws Exception { + runTest("compiler/testData/codegen/box/increment/extOnLong.kt"); + } + + @TestMetadata("genericClassWithGetSet.kt") + public void testGenericClassWithGetSet() throws Exception { + runTest("compiler/testData/codegen/box/increment/genericClassWithGetSet.kt"); + } + + @TestMetadata("kt36956.kt") + public void testKt36956() throws Exception { + runTest("compiler/testData/codegen/box/increment/kt36956.kt"); + } + + @TestMetadata("memberExtOnLong.kt") + public void testMemberExtOnLong() throws Exception { + runTest("compiler/testData/codegen/box/increment/memberExtOnLong.kt"); + } + + @TestMetadata("mutableListElement.kt") + public void testMutableListElement() throws Exception { + runTest("compiler/testData/codegen/box/increment/mutableListElement.kt"); + } + + @TestMetadata("nullable.kt") + public void testNullable() throws Exception { + runTest("compiler/testData/codegen/box/increment/nullable.kt"); + } + + @TestMetadata("postfixIncrementDoubleSmartCast.kt") + public void testPostfixIncrementDoubleSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/increment/postfixIncrementDoubleSmartCast.kt"); + } + + @TestMetadata("postfixIncrementOnClass.kt") + public void testPostfixIncrementOnClass() throws Exception { + runTest("compiler/testData/codegen/box/increment/postfixIncrementOnClass.kt"); + } + + @TestMetadata("postfixIncrementOnClassSmartCast.kt") + public void testPostfixIncrementOnClassSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/increment/postfixIncrementOnClassSmartCast.kt"); + } + + @TestMetadata("postfixIncrementOnShortSmartCast.kt") + public void testPostfixIncrementOnShortSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/increment/postfixIncrementOnShortSmartCast.kt"); + } + + @TestMetadata("postfixIncrementOnSmartCast.kt") + public void testPostfixIncrementOnSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/increment/postfixIncrementOnSmartCast.kt"); + } + + @TestMetadata("postfixNullableClassIncrement.kt") + public void testPostfixNullableClassIncrement() throws Exception { + runTest("compiler/testData/codegen/box/increment/postfixNullableClassIncrement.kt"); + } + + @TestMetadata("postfixNullableIncrement.kt") + public void testPostfixNullableIncrement() throws Exception { + runTest("compiler/testData/codegen/box/increment/postfixNullableIncrement.kt"); + } + + @TestMetadata("prefixIncrementOnClass.kt") + public void testPrefixIncrementOnClass() throws Exception { + runTest("compiler/testData/codegen/box/increment/prefixIncrementOnClass.kt"); + } + + @TestMetadata("prefixIncrementOnClassSmartCast.kt") + public void testPrefixIncrementOnClassSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/increment/prefixIncrementOnClassSmartCast.kt"); + } + + @TestMetadata("prefixIncrementOnSmartCast.kt") + public void testPrefixIncrementOnSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/increment/prefixIncrementOnSmartCast.kt"); + } + + @TestMetadata("prefixNullableClassIncrement.kt") + public void testPrefixNullableClassIncrement() throws Exception { + runTest("compiler/testData/codegen/box/increment/prefixNullableClassIncrement.kt"); + } + + @TestMetadata("prefixNullableIncrement.kt") + public void testPrefixNullableIncrement() throws Exception { + runTest("compiler/testData/codegen/box/increment/prefixNullableIncrement.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/inference") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Inference extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInference() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("builderInferenceLeakingVariable.kt") + public void testBuilderInferenceLeakingVariable() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInferenceLeakingVariable.kt"); + } + + @TestMetadata("capturedStarProjection.kt") + public void testCapturedStarProjection() throws Exception { + runTest("compiler/testData/codegen/box/inference/capturedStarProjection.kt"); + } + + @TestMetadata("coercionToUnitWithLastLambdaExpression.kt") + public void testCoercionToUnitWithLastLambdaExpression() throws Exception { + runTest("compiler/testData/codegen/box/inference/coercionToUnitWithLastLambdaExpression.kt"); + } + + @TestMetadata("coerctionToUnitForLastExpressionWithStarProjection.kt") + public void testCoerctionToUnitForLastExpressionWithStarProjection() throws Exception { + runTest("compiler/testData/codegen/box/inference/coerctionToUnitForLastExpressionWithStarProjection.kt"); + } + + @TestMetadata("earlyReturnInsideCrossinlineLambda.kt") + public void testEarlyReturnInsideCrossinlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/inference/earlyReturnInsideCrossinlineLambda.kt"); + } + + @TestMetadata("integerLiteralTypeInLamdaReturnType.kt") + public void testIntegerLiteralTypeInLamdaReturnType() throws Exception { + runTest("compiler/testData/codegen/box/inference/integerLiteralTypeInLamdaReturnType.kt"); + } + + @TestMetadata("kt10822.kt") + public void testKt10822() throws Exception { + runTest("compiler/testData/codegen/box/inference/kt10822.kt"); + } + + @TestMetadata("kt35684.kt") + public void testKt35684() throws Exception { + runTest("compiler/testData/codegen/box/inference/kt35684.kt"); + } + + @TestMetadata("kt36446.kt") + public void testKt36446() throws Exception { + runTest("compiler/testData/codegen/box/inference/kt36446.kt"); + } + + @TestMetadata("lastExpressionOfLambdaWithNothingConstraint.kt") + public void testLastExpressionOfLambdaWithNothingConstraint() throws Exception { + runTest("compiler/testData/codegen/box/inference/lastExpressionOfLambdaWithNothingConstraint.kt"); + } + + @TestMetadata("unsafeVarianceCodegen.kt") + public void testUnsafeVarianceCodegen() throws Exception { + runTest("compiler/testData/codegen/box/inference/unsafeVarianceCodegen.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/inlineClasses") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class InlineClasses extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInlineClasses() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("annotatedMemberExtensionProperty.kt") + public void testAnnotatedMemberExtensionProperty() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/annotatedMemberExtensionProperty.kt"); + } + + @TestMetadata("anySuperCall.kt") + public void testAnySuperCall() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/anySuperCall.kt"); + } + + @TestMetadata("boundCallableReferencePassedToInlineFunction.kt") + public void testBoundCallableReferencePassedToInlineFunction() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunction.kt"); + } + + @TestMetadata("boxNullableValueOfInlineClassWithNonNullUnderlyingType.kt") + public void testBoxNullableValueOfInlineClassWithNonNullUnderlyingType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithNonNullUnderlyingType.kt"); + } + + @TestMetadata("boxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt") + public void testBoxNullableValueOfInlineClassWithPrimitiveUnderlyingType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt"); + } + + @TestMetadata("boxResultInlineClassOfConstructorCall.kt") + public void testBoxResultInlineClassOfConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxResultInlineClassOfConstructorCall.kt"); + } + + @TestMetadata("boxUnboxInlineClassesWithOperatorsGetSet.kt") + public void testBoxUnboxInlineClassesWithOperatorsGetSet() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxInlineClassesWithOperatorsGetSet.kt"); + } + + @TestMetadata("boxUnboxOfInlineClassForCapturedVars.kt") + public void testBoxUnboxOfInlineClassForCapturedVars() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxOfInlineClassForCapturedVars.kt"); + } + + @TestMetadata("bridgeForFunctionReturningInlineClass.kt") + public void testBridgeForFunctionReturningInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgeForFunctionReturningInlineClass.kt"); + } + + @TestMetadata("bridgeGenerationWithInlineClassOverAny.kt") + public void testBridgeGenerationWithInlineClassOverAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgeGenerationWithInlineClassOverAny.kt"); + } + + @TestMetadata("bridgesWhenInlineClassImplementsGenericInterface.kt") + public void testBridgesWhenInlineClassImplementsGenericInterface() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/bridgesWhenInlineClassImplementsGenericInterface.kt"); + } + + @TestMetadata("callComputablePropertyInsideInlineClass.kt") + public void testCallComputablePropertyInsideInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callComputablePropertyInsideInlineClass.kt"); + } + + @TestMetadata("callableReferencesWithInlineClasses.kt") + public void testCallableReferencesWithInlineClasses() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferencesWithInlineClasses.kt"); + } + + @TestMetadata("castInsideWhenExpression.kt") + public void testCastInsideWhenExpression() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/castInsideWhenExpression.kt"); + } + + @TestMetadata("checkBoxUnboxOfArgumentsOnInlinedFunctions.kt") + public void testCheckBoxUnboxOfArgumentsOnInlinedFunctions() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxUnboxOfArgumentsOnInlinedFunctions.kt"); + } + + @TestMetadata("checkBoxingAfterAssertionOperator.kt") + public void testCheckBoxingAfterAssertionOperator() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingAfterAssertionOperator.kt"); + } + + @TestMetadata("checkBoxingForComplexClassHierarchy.kt") + public void testCheckBoxingForComplexClassHierarchy() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForComplexClassHierarchy.kt"); + } + + @TestMetadata("checkBoxingForNonLocalAndLabeledReturns.kt") + public void testCheckBoxingForNonLocalAndLabeledReturns() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForNonLocalAndLabeledReturns.kt"); + } + + @TestMetadata("checkBoxingFromReturnTypeForInlineClasses.kt") + public void testCheckBoxingFromReturnTypeForInlineClasses() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingFromReturnTypeForInlineClasses.kt"); + } + + @TestMetadata("checkBoxingOnFunctionCalls.kt") + public void testCheckBoxingOnFunctionCalls() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnFunctionCalls.kt"); + } + + @TestMetadata("checkBoxingOnLocalVariableAssignments.kt") + public void testCheckBoxingOnLocalVariableAssignments() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnLocalVariableAssignments.kt"); + } + + @TestMetadata("checkBoxingUnboxingForInheritedTypeSpecializedFunctions.kt") + public void testCheckBoxingUnboxingForInheritedTypeSpecializedFunctions() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingUnboxingForInheritedTypeSpecializedFunctions.kt"); + } + + @TestMetadata("checkCallingMembersInsideInlineClass.kt") + public void testCheckCallingMembersInsideInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkCallingMembersInsideInlineClass.kt"); + } + + @TestMetadata("checkCastToInlineClass.kt") + public void testCheckCastToInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkCastToInlineClass.kt"); + } + + @TestMetadata("checkForInstanceOfInlineClass.kt") + public void testCheckForInstanceOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkForInstanceOfInlineClass.kt"); + } + + @TestMetadata("checkLambdaWithInlineClassesInFunctionalType.kt") + public void testCheckLambdaWithInlineClassesInFunctionalType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkLambdaWithInlineClassesInFunctionalType.kt"); + } + + @TestMetadata("checkUnboxingResultFromTypeVariable.kt") + public void testCheckUnboxingResultFromTypeVariable() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/checkUnboxingResultFromTypeVariable.kt"); + } + + @TestMetadata("computablePropertyInsideInlineClass.kt") + public void testComputablePropertyInsideInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/computablePropertyInsideInlineClass.kt"); + } + + @TestMetadata("conformToComparableAndCallInterfaceMethod.kt") + public void testConformToComparableAndCallInterfaceMethod() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/conformToComparableAndCallInterfaceMethod.kt"); + } + + @TestMetadata("correctBoxingForBranchExpressions.kt") + public void testCorrectBoxingForBranchExpressions() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/correctBoxingForBranchExpressions.kt"); + } + + @TestMetadata("createInlineClassInArgumentPosition.kt") + public void testCreateInlineClassInArgumentPosition() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/createInlineClassInArgumentPosition.kt"); + } + + @TestMetadata("crossinlineWithInlineClassInParameter.kt") + public void testCrossinlineWithInlineClassInParameter() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/crossinlineWithInlineClassInParameter.kt"); + } + + @TestMetadata("defaultFunctionsFromAnyForInlineClass.kt") + public void testDefaultFunctionsFromAnyForInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultFunctionsFromAnyForInlineClass.kt"); + } + + @TestMetadata("defaultWithInlineClassArgument.kt") + public void testDefaultWithInlineClassArgument() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgument.kt"); + } + + @TestMetadata("elvisWithInlineClassAndNullConstant.kt") + public void testElvisWithInlineClassAndNullConstant() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/elvisWithInlineClassAndNullConstant.kt"); + } + + @TestMetadata("emptyConstructorForInlineClass.kt") + public void testEmptyConstructorForInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/emptyConstructorForInlineClass.kt"); + } + + @TestMetadata("equalityChecksInlineClassNonNull.kt") + public void testEqualityChecksInlineClassNonNull() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksInlineClassNonNull.kt"); + } + + @TestMetadata("equalityChecksMixedNullability.kt") + public void testEqualityChecksMixedNullability() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksMixedNullability.kt"); + } + + @TestMetadata("equalityChecksNegatedInlineClassNonNull.kt") + public void testEqualityChecksNegatedInlineClassNonNull() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedInlineClassNonNull.kt"); + } + + @TestMetadata("equalityChecksNegatedNonNull.kt") + public void testEqualityChecksNegatedNonNull() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNonNull.kt"); + } + + @TestMetadata("equalityChecksNegatedNullable.kt") + public void testEqualityChecksNegatedNullable() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNullable.kt"); + } + + @TestMetadata("equalityChecksNegatedPrimitive.kt") + public void testEqualityChecksNegatedPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedPrimitive.kt"); + } + + @TestMetadata("equalityChecksNonNull.kt") + public void testEqualityChecksNonNull() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNonNull.kt"); + } + + @TestMetadata("equalityChecksNullable.kt") + public void testEqualityChecksNullable() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNullable.kt"); + } + + @TestMetadata("equalityChecksPrimitive.kt") + public void testEqualityChecksPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitive.kt"); + } + + @TestMetadata("equalityForBoxesOfNullableValuesOfInlineClass.kt") + public void testEqualityForBoxesOfNullableValuesOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalityForBoxesOfNullableValuesOfInlineClass.kt"); + } + + @TestMetadata("equalsCallsLeftArgument.kt") + public void testEqualsCallsLeftArgument() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsCallsLeftArgument.kt"); + } + + @TestMetadata("equalsEvaluationOrderInlineClass.kt") + public void testEqualsEvaluationOrderInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderInlineClass.kt"); + } + + @TestMetadata("equalsEvaluationOrderNonNull.kt") + public void testEqualsEvaluationOrderNonNull() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNonNull.kt"); + } + + @TestMetadata("equalsEvaluationOrderNullable.kt") + public void testEqualsEvaluationOrderNullable() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNullable.kt"); + } + + @TestMetadata("equalsEvaluationOrderPrimitive.kt") + public void testEqualsEvaluationOrderPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderPrimitive.kt"); + } + + @TestMetadata("equalsOperatorWithGenericCall.kt") + public void testEqualsOperatorWithGenericCall() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/equalsOperatorWithGenericCall.kt"); + } + + @TestMetadata("extLambdaInInlineClassFun.kt") + public void testExtLambdaInInlineClassFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun.kt"); + } + + @TestMetadata("extLambdaInInlineClassFun2.kt") + public void testExtLambdaInInlineClassFun2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun2.kt"); + } + + @TestMetadata("fieldNameClash.kt") + public void testFieldNameClash() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/fieldNameClash.kt"); + } + + @TestMetadata("genericInlineClassSynthMembers.kt") + public void testGenericInlineClassSynthMembers() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/genericInlineClassSynthMembers.kt"); + } + + @TestMetadata("inlineClassAsLastExpressionInInLambda.kt") + public void testInlineClassAsLastExpressionInInLambda() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassAsLastExpressionInInLambda.kt"); + } + + @TestMetadata("inlineClassEqualityShouldUseTotalOrderForFloatingPointData.kt") + public void testInlineClassEqualityShouldUseTotalOrderForFloatingPointData() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualityShouldUseTotalOrderForFloatingPointData.kt"); + } + + @TestMetadata("inlineClassFunctionInvoke.kt") + public void testInlineClassFunctionInvoke() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFunctionInvoke.kt"); + } + + @TestMetadata("inlineClassInStringTemplate.kt") + public void testInlineClassInStringTemplate() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInStringTemplate.kt"); + } + + @TestMetadata("inlineClassPropertyReferenceGetAndSet.kt") + public void testInlineClassPropertyReferenceGetAndSet() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassPropertyReferenceGetAndSet.kt"); + } + + @TestMetadata("inlineClassValueCapturedInInlineLambda.kt") + public void testInlineClassValueCapturedInInlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInInlineLambda.kt"); + } + + @TestMetadata("inlineClassValueCapturedInNonInlineLambda.kt") + public void testInlineClassValueCapturedInNonInlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInNonInlineLambda.kt"); + } + + @TestMetadata("inlineClassValuesInsideStrings.kt") + public void testInlineClassValuesInsideStrings() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValuesInsideStrings.kt"); + } + + @TestMetadata("inlineClassWithCustomEquals.kt") + public void testInlineClassWithCustomEquals() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEquals.kt"); + } + + @TestMetadata("inlineClassWithDefaultFunctionsFromAny.kt") + public void testInlineClassWithDefaultFunctionsFromAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithDefaultFunctionsFromAny.kt"); + } + + @TestMetadata("inlineClassesAsInlineFunParameters.kt") + public void testInlineClassesAsInlineFunParameters() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesAsInlineFunParameters.kt"); + } + + @TestMetadata("inlineClassesCheckCast.kt") + public void testInlineClassesCheckCast() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesCheckCast.kt"); + } + + @TestMetadata("inlineClassesInInlineLambdaParameters.kt") + public void testInlineClassesInInlineLambdaParameters() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesInInlineLambdaParameters.kt"); + } + + @TestMetadata("inlineClassesRefTypesInInlineLambdaParameters.kt") + public void testInlineClassesRefTypesInInlineLambdaParameters() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesRefTypesInInlineLambdaParameters.kt"); + } + + @TestMetadata("inlineExtLambdaInInlineClassFun.kt") + public void testInlineExtLambdaInInlineClassFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun.kt"); + } + + @TestMetadata("inlineExtLambdaInInlineClassFun2.kt") + public void testInlineExtLambdaInInlineClassFun2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun2.kt"); + } + + @TestMetadata("inlineFunctionInsideInlineClass.kt") + public void testInlineFunctionInsideInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/inlineFunctionInsideInlineClass.kt"); + } + + @TestMetadata("iterateOverArrayOfInlineClassValues.kt") + public void testIterateOverArrayOfInlineClassValues() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/iterateOverArrayOfInlineClassValues.kt"); + } + + @TestMetadata("iterateOverListOfInlineClassValues.kt") + public void testIterateOverListOfInlineClassValues() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/iterateOverListOfInlineClassValues.kt"); + } + + @TestMetadata("kt25246.kt") + public void testKt25246() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt25246.kt"); + } + + @TestMetadata("kt25750.kt") + public void testKt25750() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt25750.kt"); + } + + @TestMetadata("kt25771.kt") + public void testKt25771() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt25771.kt"); + } + + @TestMetadata("kt26103.kt") + public void testKt26103() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt26103.kt"); + } + + @TestMetadata("kt26103_contravariantUnderlyingType.kt") + public void testKt26103_contravariantUnderlyingType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt26103_contravariantUnderlyingType.kt"); + } + + @TestMetadata("kt26103_covariantUnderlyingType.kt") + public void testKt26103_covariantUnderlyingType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt26103_covariantUnderlyingType.kt"); + } + + @TestMetadata("kt26103_original.kt") + public void testKt26103_original() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt26103_original.kt"); + } + + @TestMetadata("kt27096.kt") + public void testKt27096() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096.kt"); + } + + @TestMetadata("kt27096_enum.kt") + public void testKt27096_enum() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_enum.kt"); + } + + @TestMetadata("kt27096_functional.kt") + public void testKt27096_functional() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_functional.kt"); + } + + @TestMetadata("kt27096_innerClass.kt") + public void testKt27096_innerClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_innerClass.kt"); + } + + @TestMetadata("kt27096_nullablePrimitive.kt") + public void testKt27096_nullablePrimitive() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullablePrimitive.kt"); + } + + @TestMetadata("kt27096_nullableReference.kt") + public void testKt27096_nullableReference() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullableReference.kt"); + } + + @TestMetadata("kt27096_primitive.kt") + public void testKt27096_primitive() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_primitive.kt"); + } + + @TestMetadata("kt27096_reference.kt") + public void testKt27096_reference() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27096_reference.kt"); + } + + @TestMetadata("kt27113.kt") + public void testKt27113() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27113.kt"); + } + + @TestMetadata("kt27113a.kt") + public void testKt27113a() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27113a.kt"); + } + + @TestMetadata("kt27132.kt") + public void testKt27132() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27132.kt"); + } + + @TestMetadata("kt27140.kt") + public void testKt27140() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27140.kt"); + } + + @TestMetadata("kt27705.kt") + public void testKt27705() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27705.kt"); + } + + @TestMetadata("kt27706.kt") + public void testKt27706() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt27706.kt"); + } + + @TestMetadata("kt28405.kt") + public void testKt28405() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt28405.kt"); + } + + @TestMetadata("kt28585.kt") + public void testKt28585() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt28585.kt"); + } + + @TestMetadata("kt33119.kt") + public void testKt33119() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt33119.kt"); + } + + @TestMetadata("kt34268.kt") + public void testKt34268() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt34268.kt"); + } + + @TestMetadata("kt37998.kt") + public void testKt37998() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt37998.kt"); + } + + @TestMetadata("kt38680.kt") + public void testKt38680() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680.kt"); + } + + @TestMetadata("kt38680a.kt") + public void testKt38680a() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680a.kt"); + } + + @TestMetadata("kt38680b.kt") + public void testKt38680b() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/kt38680b.kt"); + } + + @TestMetadata("mangledDefaultParameterFunction.kt") + public void testMangledDefaultParameterFunction() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunction.kt"); + } + + @TestMetadata("mangledSuperCalls.kt") + public void testMangledSuperCalls() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/mangledSuperCalls.kt"); + } + + @TestMetadata("noAssertionsOnInlineClassBasedOnNullableType.kt") + public void testNoAssertionsOnInlineClassBasedOnNullableType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/noAssertionsOnInlineClassBasedOnNullableType.kt"); + } + + @TestMetadata("nullableEqeqNonNull.kt") + public void testNullableEqeqNonNull() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nullableEqeqNonNull.kt"); + } + + @TestMetadata("nullableWrapperEquality.kt") + public void testNullableWrapperEquality() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/nullableWrapperEquality.kt"); + } + + @TestMetadata("overridingFunCallingPrivateFun.kt") + public void testOverridingFunCallingPrivateFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/overridingFunCallingPrivateFun.kt"); + } + + @TestMetadata("passInlineClassAsVararg.kt") + public void testPassInlineClassAsVararg() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassAsVararg.kt"); + } + + @TestMetadata("passInlineClassWithSpreadOperatorToVarargs.kt") + public void testPassInlineClassWithSpreadOperatorToVarargs() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassWithSpreadOperatorToVarargs.kt"); + } + + @TestMetadata("propertyLoweringOrder.kt") + public void testPropertyLoweringOrder() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyLoweringOrder.kt"); + } + + @TestMetadata("referToPropertyInCompanionObjectOfInlineClass.kt") + public void testReferToPropertyInCompanionObjectOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClass.kt"); + } + + @TestMetadata("referToUnderlyingPropertyInsideInlineClass.kt") + public void testReferToUnderlyingPropertyInsideInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyInsideInlineClass.kt"); + } + + @TestMetadata("referToUnderlyingPropertyOfInlineClass.kt") + public void testReferToUnderlyingPropertyOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyOfInlineClass.kt"); + } + + @TestMetadata("resultInlining.kt") + public void testResultInlining() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/resultInlining.kt"); + } + + @TestMetadata("resultRunCatchingOrElse.kt") + public void testResultRunCatchingOrElse() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/resultRunCatchingOrElse.kt"); + } + + @TestMetadata("secondaryConstructorWithVararg.kt") + public void testSecondaryConstructorWithVararg() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorWithVararg.kt"); + } + + @TestMetadata("secondaryConstructorsInsideInlineClass.kt") + public void testSecondaryConstructorsInsideInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClass.kt"); + } + + @TestMetadata("secondaryConstructorsInsideInlineClassWithPrimitiveCarrierType.kt") + public void testSecondaryConstructorsInsideInlineClassWithPrimitiveCarrierType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassWithPrimitiveCarrierType.kt"); + } + + @TestMetadata("simpleSecondaryConstructor.kt") + public void testSimpleSecondaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/simpleSecondaryConstructor.kt"); + } + + @TestMetadata("smartCastOnThisOfInlineClassType.kt") + public void testSmartCastOnThisOfInlineClassType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/smartCastOnThisOfInlineClassType.kt"); + } + + @TestMetadata("toStringCallingPrivateFun.kt") + public void testToStringCallingPrivateFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFun.kt"); + } + + @TestMetadata("typeChecksForInlineClasses.kt") + public void testTypeChecksForInlineClasses() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClasses.kt"); + } + + @TestMetadata("UIntArraySortExample.kt") + public void testUIntArraySortExample() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/UIntArraySortExample.kt"); + } + + @TestMetadata("unboxNullableValueOfInlineClassWithNonNullUnderlyingType.kt") + public void testUnboxNullableValueOfInlineClassWithNonNullUnderlyingType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNonNullUnderlyingType.kt"); + } + + @TestMetadata("unboxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt") + public void testUnboxNullableValueOfInlineClassWithPrimitiveUnderlyingType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt"); + } + + @TestMetadata("unboxParameterOfSuspendLambdaBeforeInvoke.kt") + public void testUnboxParameterOfSuspendLambdaBeforeInvoke() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxParameterOfSuspendLambdaBeforeInvoke.kt"); + } + + @TestMetadata("unboxReceiverOnCallingMethodFromInlineClass.kt") + public void testUnboxReceiverOnCallingMethodFromInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxReceiverOnCallingMethodFromInlineClass.kt"); + } + + @TestMetadata("unboxValueFromPlatformType.kt") + public void testUnboxValueFromPlatformType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformType.kt"); + } + + @TestMetadata("unboxValueOfAnyBeforeMethodInvocation.kt") + public void testUnboxValueOfAnyBeforeMethodInvocation() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocation.kt"); + } + + @TestMetadata("useInlineClassesInsideElvisOperator.kt") + public void testUseInlineClassesInsideElvisOperator() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperator.kt"); + } + + @TestMetadata("useInlineFunctionInsideInlineClass.kt") + public void testUseInlineFunctionInsideInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useInlineFunctionInsideInlineClass.kt"); + } + + @TestMetadata("useThisInsideInlineClass.kt") + public void testUseThisInsideInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClass.kt"); + } + + @TestMetadata("whenWithSubject.kt") + public void testWhenWithSubject() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/whenWithSubject.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class BoxReturnValueInLambda extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInBoxReturnValueInLambda() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("boxAny.kt") + public void testBoxAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxAny.kt"); + } + + @TestMetadata("boxFunLiteralAny.kt") + public void testBoxFunLiteralAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxFunLiteralAny.kt"); + } + + @TestMetadata("boxInt.kt") + public void testBoxInt() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxInt.kt"); + } + + @TestMetadata("boxNullableAny.kt") + public void testBoxNullableAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAny.kt"); + } + + @TestMetadata("boxNullableAnyNull.kt") + public void testBoxNullableAnyNull() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNull.kt"); + } + + @TestMetadata("boxNullableInt.kt") + public void testBoxNullableInt() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableInt.kt"); + } + + @TestMetadata("boxNullableIntNull.kt") + public void testBoxNullableIntNull() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNull.kt"); + } + + @TestMetadata("boxNullableString.kt") + public void testBoxNullableString() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableString.kt"); + } + + @TestMetadata("boxNullableStringNull.kt") + public void testBoxNullableStringNull() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNull.kt"); + } + + @TestMetadata("boxString.kt") + public void testBoxString() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxString.kt"); + } + + @TestMetadata("kt27586_1.kt") + public void testKt27586_1() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/kt27586_1.kt"); + } + + @TestMetadata("kt27586_2.kt") + public void testKt27586_2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/kt27586_2.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class BoxReturnValueOnOverride extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInBoxReturnValueOnOverride() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("covariantOverrideChainErasedToAny.kt") + public void testCovariantOverrideChainErasedToAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToAny.kt"); + } + + @TestMetadata("covariantOverrideChainErasedToNullableAny.kt") + public void testCovariantOverrideChainErasedToNullableAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAny.kt"); + } + + @TestMetadata("covariantOverrideErasedToAny.kt") + public void testCovariantOverrideErasedToAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToAny.kt"); + } + + @TestMetadata("covariantOverrideErasedToInterface.kt") + public void testCovariantOverrideErasedToInterface() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToInterface.kt"); + } + + @TestMetadata("covariantOverrideErasedToPrimitive.kt") + public void testCovariantOverrideErasedToPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToPrimitive.kt"); + } + + @TestMetadata("covariantOverrideListVsMutableList.kt") + public void testCovariantOverrideListVsMutableList() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableList.kt"); + } + + @TestMetadata("covariantOverrideUnrelatedInterfaces.kt") + public void testCovariantOverrideUnrelatedInterfaces() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideUnrelatedInterfaces.kt"); + } + + @TestMetadata("genericOverride.kt") + public void testGenericOverride() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverride.kt"); + } + + @TestMetadata("genericOverrideSpecialized.kt") + public void testGenericOverrideSpecialized() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideSpecialized.kt"); + } + + @TestMetadata("inlineClassInOverriddenReturnTypes.kt") + public void testInlineClassInOverriddenReturnTypes() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/inlineClassInOverriddenReturnTypes.kt"); + } + + @TestMetadata("kt28483.kt") + public void testKt28483() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483.kt"); + } + + @TestMetadata("kt31585.kt") + public void testKt31585() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585.kt"); + } + + @TestMetadata("kt35234.kt") + public void testKt35234() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234.kt"); + } + + @TestMetadata("kt35234a.kt") + public void testKt35234a() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234a.kt"); + } + + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullAny.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullAny.kt"); + } + + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny.kt"); + } + + @TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull.kt") + public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull.kt"); + } + + @TestMetadata("overrideNullableInlineClassWithNonNullAny.kt") + public void testOverrideNullableInlineClassWithNonNullAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullAny.kt"); + } + + @TestMetadata("overrideNullableInlineClassWithNonNullNullableAny.kt") + public void testOverrideNullableInlineClassWithNonNullNullableAny() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAny.kt"); + } + + @TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyNull.kt") + public void testOverrideNullableInlineClassWithNonNullNullableAnyNull() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyNull.kt"); + } + + @TestMetadata("relatedReturnTypes1a.kt") + public void testRelatedReturnTypes1a() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1a.kt"); + } + + @TestMetadata("relatedReturnTypes1b.kt") + public void testRelatedReturnTypes1b() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1b.kt"); + } + + @TestMetadata("relatedReturnTypes2a.kt") + public void testRelatedReturnTypes2a() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2a.kt"); + } + + @TestMetadata("relatedReturnTypes2b.kt") + public void testRelatedReturnTypes2b() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2b.kt"); + } + + @TestMetadata("unrelatedGenerics.kt") + public void testUnrelatedGenerics() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/unrelatedGenerics.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/inlineClasses/callableReferences") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class CallableReferences extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCallableReferences() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/callableReferences"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("boundInlineClassExtensionFun.kt") + public void testBoundInlineClassExtensionFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionFun.kt"); + } + + @TestMetadata("boundInlineClassExtensionVal.kt") + public void testBoundInlineClassExtensionVal() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionVal.kt"); + } + + @TestMetadata("boundInlineClassMemberFun.kt") + public void testBoundInlineClassMemberFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberFun.kt"); + } + + @TestMetadata("boundInlineClassMemberVal.kt") + public void testBoundInlineClassMemberVal() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberVal.kt"); + } + + @TestMetadata("boundInlineClassPrimaryVal.kt") + public void testBoundInlineClassPrimaryVal() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryVal.kt"); + } + + @TestMetadata("constructorWithInlineClassParameters.kt") + public void testConstructorWithInlineClassParameters() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParameters.kt"); + } + + @TestMetadata("funWithInlineClassParameters.kt") + public void testFunWithInlineClassParameters() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParameters.kt"); + } + + @TestMetadata("inlineClassExtensionFun.kt") + public void testInlineClassExtensionFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionFun.kt"); + } + + @TestMetadata("inlineClassExtensionVal.kt") + public void testInlineClassExtensionVal() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionVal.kt"); + } + + @TestMetadata("inlineClassInternalPrimaryVal.kt") + public void testInlineClassInternalPrimaryVal() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassInternalPrimaryVal.kt"); + } + + @TestMetadata("inlineClassMemberFun.kt") + public void testInlineClassMemberFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberFun.kt"); + } + + @TestMetadata("inlineClassMemberVal.kt") + public void testInlineClassMemberVal() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberVal.kt"); + } + + @TestMetadata("inlineClassPrimaryConstructor.kt") + public void testInlineClassPrimaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryConstructor.kt"); + } + + @TestMetadata("inlineClassPrimaryVal.kt") + public void testInlineClassPrimaryVal() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryVal.kt"); + } + + @TestMetadata("inlineClassPrivatePrimaryVal.kt") + public void testInlineClassPrivatePrimaryVal() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrivatePrimaryVal.kt"); + } + + @TestMetadata("inlineClassTypeBoundMemberVar.kt") + public void testInlineClassTypeBoundMemberVar() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeBoundMemberVar.kt"); + } + + @TestMetadata("inlineClassTypeMemberVar.kt") + public void testInlineClassTypeMemberVar() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeMemberVar.kt"); + } + + @TestMetadata("inlineClassTypeTopLevelVar.kt") + public void testInlineClassTypeTopLevelVar() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeTopLevelVar.kt"); + } + + @TestMetadata("kt37986.kt") + public void testKt37986() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/kt37986.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ContextsAndAccessors extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("accessPrivateInlineClassCompanionMethod.kt") + public void testAccessPrivateInlineClassCompanionMethod() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod.kt"); + } + + @TestMetadata("accessPrivateInlineClassCompanionMethod2.kt") + public void testAccessPrivateInlineClassCompanionMethod2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2.kt"); + } + + @TestMetadata("accessPrivateInlineClassConstructorFromCompanion.kt") + public void testAccessPrivateInlineClassConstructorFromCompanion() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromCompanion.kt"); + } + + @TestMetadata("accessPrivateInlineClassConstructorFromLambda.kt") + public void testAccessPrivateInlineClassConstructorFromLambda() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromLambda.kt"); + } + + @TestMetadata("accessPrivateInlineClassMethodFromCompanion.kt") + public void testAccessPrivateInlineClassMethodFromCompanion() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion.kt"); + } + + @TestMetadata("accessPrivateInlineClassMethodFromCompanion2.kt") + public void testAccessPrivateInlineClassMethodFromCompanion2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2.kt"); + } + + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambda.kt") + public void testAccessPrivateInlineClassMethodFromInlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda.kt"); + } + + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambda2.kt") + public void testAccessPrivateInlineClassMethodFromInlineLambda2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda2.kt"); + } + + @TestMetadata("accessPrivateInlineClassMethodFromLambda.kt") + public void testAccessPrivateInlineClassMethodFromLambda() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda.kt"); + } + + @TestMetadata("accessPrivateInlineClassMethodFromLambda2.kt") + public void testAccessPrivateInlineClassMethodFromLambda2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2.kt"); + } + + public void testAllFilesPresentInContextsAndAccessors() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("captureInlineClassInstanceInLambda.kt") + public void testCaptureInlineClassInstanceInLambda() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda.kt"); + } + + @TestMetadata("captureInlineClassInstanceInLambda2.kt") + public void testCaptureInlineClassInstanceInLambda2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda2.kt"); + } + + @TestMetadata("captureInlineClassInstanceInObject.kt") + public void testCaptureInlineClassInstanceInObject() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInObject.kt"); + } + + @TestMetadata("inlineLambdaInInlineClassFun.kt") + public void testInlineLambdaInInlineClassFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFun.kt"); + } + + @TestMetadata("kt26858.kt") + public void testKt26858() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858.kt"); + } + + @TestMetadata("kt27513.kt") + public void testKt27513() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513.kt"); + } + + @TestMetadata("kt30780.kt") + public void testKt30780() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt30780.kt"); + } + + @TestMetadata("lambdaInInlineClassFun.kt") + public void testLambdaInInlineClassFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFun.kt"); + } + + @TestMetadata("objectInInlineClassFun.kt") + public void testObjectInInlineClassFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/objectInInlineClassFun.kt"); + } + + @TestMetadata("toPrivateCompanionFun.kt") + public void testToPrivateCompanionFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFun.kt"); + } + + @TestMetadata("toPrivateCompanionVal.kt") + public void testToPrivateCompanionVal() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionVal.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/inlineClasses/defaultParameterValues") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DefaultParameterValues extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDefaultParameterValues() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/defaultParameterValues"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("defaultConstructorParameterValuesOfInlineClassType.kt") + public void testDefaultConstructorParameterValuesOfInlineClassType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultConstructorParameterValuesOfInlineClassType.kt"); + } + + @TestMetadata("defaultInterfaceFunParameterValuesOfInlineClassType.kt") + public void testDefaultInterfaceFunParameterValuesOfInlineClassType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultInterfaceFunParameterValuesOfInlineClassType.kt"); + } + + @TestMetadata("defaultParameterValuesOfInlineClassType.kt") + public void testDefaultParameterValuesOfInlineClassType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultParameterValuesOfInlineClassType.kt"); + } + + @TestMetadata("defaultParameterValuesOfInlineClassTypeBoxing.kt") + public void testDefaultParameterValuesOfInlineClassTypeBoxing() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultParameterValuesOfInlineClassTypeBoxing.kt"); + } + + @TestMetadata("defaultValueOfInlineClassTypeInInlineFun.kt") + public void testDefaultValueOfInlineClassTypeInInlineFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultValueOfInlineClassTypeInInlineFun.kt"); + } + + @TestMetadata("defaultValueOfInlineClassTypeInInlineFunInInlineClass.kt") + public void testDefaultValueOfInlineClassTypeInInlineFunInInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultValueOfInlineClassTypeInInlineFunInInlineClass.kt"); + } + + @TestMetadata("inlineClassFun.kt") + public void testInlineClassFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/inlineClassFun.kt"); + } + + @TestMetadata("inlineClassPrimaryConstructor.kt") + public void testInlineClassPrimaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/inlineClassPrimaryConstructor.kt"); + } + + @TestMetadata("inlineClassPrimaryConstructorWithInlineClassValue.kt") + public void testInlineClassPrimaryConstructorWithInlineClassValue() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/inlineClassPrimaryConstructorWithInlineClassValue.kt"); + } + + @TestMetadata("inlineClassSecondaryConstructor.kt") + public void testInlineClassSecondaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/inlineClassSecondaryConstructor.kt"); + } + + @TestMetadata("kt26554.kt") + public void testKt26554() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/kt26554.kt"); + } + + @TestMetadata("kt27416.kt") + public void testKt27416() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/kt27416.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/inlineClasses/functionNameMangling") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class FunctionNameMangling extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInFunctionNameMangling() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/functionNameMangling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("anonymousObjectInFunctionWithMangledName.kt") + public void testAnonymousObjectInFunctionWithMangledName() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/anonymousObjectInFunctionWithMangledName.kt"); + } + + @TestMetadata("extensionFunctionsDoNotClash.kt") + public void testExtensionFunctionsDoNotClash() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/extensionFunctionsDoNotClash.kt"); + } + + @TestMetadata("functionsWithDifferentNullabilityDoNotClash.kt") + public void testFunctionsWithDifferentNullabilityDoNotClash() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/functionsWithDifferentNullabilityDoNotClash.kt"); + } + + @TestMetadata("genericFunctionsDoNotClash.kt") + public void testGenericFunctionsDoNotClash() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericFunctionsDoNotClash.kt"); + } + + @TestMetadata("localClassInFunctionWithMangledName.kt") + public void testLocalClassInFunctionWithMangledName() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/localClassInFunctionWithMangledName.kt"); + } + + @TestMetadata("mangledFunctionsCanBeOverridden.kt") + public void testMangledFunctionsCanBeOverridden() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsCanBeOverridden.kt"); + } + + @TestMetadata("mangledFunctionsDoNotClash.kt") + public void testMangledFunctionsDoNotClash() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsDoNotClash.kt"); + } + + @TestMetadata("mangledFunctionsPresentInStackTrace.kt") + public void testMangledFunctionsPresentInStackTrace() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsPresentInStackTrace.kt"); + } + + @TestMetadata("mixedSignatureFunctionsDoNotClash.kt") + public void testMixedSignatureFunctionsDoNotClash() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mixedSignatureFunctionsDoNotClash.kt"); + } + + @TestMetadata("overridingMethodInGenericClass.kt") + public void testOverridingMethodInGenericClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass.kt"); + } + + @TestMetadata("overridingMethodInGenericClass2.kt") + public void testOverridingMethodInGenericClass2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass2.kt"); + } + + @TestMetadata("propertySetterWithInlineClassTypeArgument.kt") + public void testPropertySetterWithInlineClassTypeArgument() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/propertySetterWithInlineClassTypeArgument.kt"); + } + + @TestMetadata("reflectionForFunctionWithMangledName.kt") + public void testReflectionForFunctionWithMangledName() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForFunctionWithMangledName.kt"); + } + + @TestMetadata("reflectionForPropertyOfInlineClassType.kt") + public void testReflectionForPropertyOfInlineClassType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForPropertyOfInlineClassType.kt"); + } + + @TestMetadata("syntheticAccessorForFunctionWithMangledName.kt") + public void testSyntheticAccessorForFunctionWithMangledName() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorForFunctionWithMangledName.kt"); + } + + @TestMetadata("syntheticAccessorsForPropertyOfInlineClassType.kt") + public void testSyntheticAccessorsForPropertyOfInlineClassType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorsForPropertyOfInlineClassType.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/inlineClasses/hiddenConstructor") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class HiddenConstructor extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInHiddenConstructor() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/hiddenConstructor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("constructorReferencedFromOtherFile1.kt") + public void testConstructorReferencedFromOtherFile1() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile1.kt"); + } + + @TestMetadata("constructorReferencedFromOtherFile2.kt") + public void testConstructorReferencedFromOtherFile2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile2.kt"); + } + + @TestMetadata("constructorWithDefaultParameters.kt") + public void testConstructorWithDefaultParameters() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorWithDefaultParameters.kt"); + } + + @TestMetadata("delegatingSuperConstructorCall.kt") + public void testDelegatingSuperConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCall.kt"); + } + + @TestMetadata("delegatingSuperConstructorCallInSecondaryConstructor.kt") + public void testDelegatingSuperConstructorCallInSecondaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallInSecondaryConstructor.kt"); + } + + @TestMetadata("delegatingThisConstructorCall.kt") + public void testDelegatingThisConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingThisConstructorCall.kt"); + } + + @TestMetadata("enumClassConstructor.kt") + public void testEnumClassConstructor() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/enumClassConstructor.kt"); + } + + @TestMetadata("innerClassConstructor.kt") + public void testInnerClassConstructor() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/innerClassConstructor.kt"); + } + + @TestMetadata("kt28855.kt") + public void testKt28855() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/kt28855.kt"); + } + + @TestMetadata("primaryConstructor.kt") + public void testPrimaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/primaryConstructor.kt"); + } + + @TestMetadata("privateConstructor.kt") + public void testPrivateConstructor() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/privateConstructor.kt"); + } + + @TestMetadata("sealedClassConstructor.kt") + public void testSealedClassConstructor() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/sealedClassConstructor.kt"); + } + + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/secondaryConstructor.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/inlineClasses/interfaceDelegation") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class InterfaceDelegation extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInterfaceDelegation() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/interfaceDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("interfaceImplementationByDelegation.kt") + public void testInterfaceImplementationByDelegation() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegation.kt"); + } + + @TestMetadata("kt38337.kt") + public void testKt38337() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337.kt"); + } + + @TestMetadata("memberExtValDelegationWithInlineClassParameterTypes.kt") + public void testMemberExtValDelegationWithInlineClassParameterTypes() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypes.kt"); + } + + @TestMetadata("memberExtVarDelegationWithInlineClassParameterTypes.kt") + public void testMemberExtVarDelegationWithInlineClassParameterTypes() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtVarDelegationWithInlineClassParameterTypes.kt"); + } + + @TestMetadata("memberFunDelegatedToInlineClassInt.kt") + public void testMemberFunDelegatedToInlineClassInt() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassInt.kt"); + } + + @TestMetadata("memberFunDelegatedToInlineClassLong.kt") + public void testMemberFunDelegatedToInlineClassLong() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassLong.kt"); + } + + @TestMetadata("memberFunDelegationToInlineClassWithInlineClassParameterTypes.kt") + public void testMemberFunDelegationToInlineClassWithInlineClassParameterTypes() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypes.kt"); + } + + @TestMetadata("memberFunDelegationWithInlineClassParameterTypes.kt") + public void testMemberFunDelegationWithInlineClassParameterTypes() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypes.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class InterfaceMethodCalls extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInterfaceMethodCalls() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("complexGenericMethodWithInlineClassOverride.kt") + public void testComplexGenericMethodWithInlineClassOverride() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride.kt"); + } + + @TestMetadata("complexGenericMethodWithInlineClassOverride2.kt") + public void testComplexGenericMethodWithInlineClassOverride2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride2.kt"); + } + + @TestMetadata("complexGenericMethodWithInlineClassOverride3.kt") + public void testComplexGenericMethodWithInlineClassOverride3() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride3.kt"); + } + + @TestMetadata("defaultInterfaceExtensionFunCall.kt") + public void testDefaultInterfaceExtensionFunCall() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceExtensionFunCall.kt"); + } + + @TestMetadata("defaultInterfaceMethodCall.kt") + public void testDefaultInterfaceMethodCall() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceMethodCall.kt"); + } + + @TestMetadata("genericDefaultInterfaceExtensionFunCall.kt") + public void testGenericDefaultInterfaceExtensionFunCall() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceExtensionFunCall.kt"); + } + + @TestMetadata("genericDefaultInterfaceMethodCall.kt") + public void testGenericDefaultInterfaceMethodCall() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceMethodCall.kt"); + } + + @TestMetadata("genericInterfaceMethodCall.kt") + public void testGenericInterfaceMethodCall() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericInterfaceMethodCall.kt"); + } + + @TestMetadata("genericMethodWithInlineClassOverride.kt") + public void testGenericMethodWithInlineClassOverride() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverride.kt"); + } + + @TestMetadata("interfaceSuperCall.kt") + public void testInterfaceSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/interfaceSuperCall.kt"); + } + + @TestMetadata("overriddenDefaultInterfaceMethodCall.kt") + public void testOverriddenDefaultInterfaceMethodCall() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCall.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/inlineClasses/propertyDelegation") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class PropertyDelegation extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInPropertyDelegation() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/propertyDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("captureLocalVarDelegatedToInlineClass.kt") + public void testCaptureLocalVarDelegatedToInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/captureLocalVarDelegatedToInlineClass.kt"); + } + + @TestMetadata("delegateClassVarToInlineClass.kt") + public void testDelegateClassVarToInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClass.kt"); + } + + @TestMetadata("delegateClassVarToInlineClassWithProvideDelegate.kt") + public void testDelegateClassVarToInlineClassWithProvideDelegate() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassWithProvideDelegate.kt"); + } + + @TestMetadata("delegateCompanionVarToInlineClass.kt") + public void testDelegateCompanionVarToInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateCompanionVarToInlineClass.kt"); + } + + @TestMetadata("delegateLocalVarToInlineClass.kt") + public void testDelegateLocalVarToInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClass.kt"); + } + + @TestMetadata("delegateObjectVarToInlineClass.kt") + public void testDelegateObjectVarToInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateObjectVarToInlineClass.kt"); + } + + @TestMetadata("delegatePrivateCompanionVarToInlineClass.kt") + public void testDelegatePrivateCompanionVarToInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatePrivateCompanionVarToInlineClass.kt"); + } + + @TestMetadata("delegateTopLevelVarToInlineClass.kt") + public void testDelegateTopLevelVarToInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClass.kt"); + } + + @TestMetadata("delegatedPropertyOfInlineClassType.kt") + public void testDelegatedPropertyOfInlineClassType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatedPropertyOfInlineClassType.kt"); + } + + @TestMetadata("kt27070.kt") + public void testKt27070() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt27070.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/innerNested") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class InnerNested extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInnerNested() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerNested"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("createNestedClass.kt") + public void testCreateNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/createNestedClass.kt"); + } + + @TestMetadata("createdNestedInOuterMember.kt") + public void testCreatedNestedInOuterMember() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/createdNestedInOuterMember.kt"); + } + + @TestMetadata("extensionFun.kt") + public void testExtensionFun() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/extensionFun.kt"); + } + + @TestMetadata("extensionToNested.kt") + public void testExtensionToNested() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/extensionToNested.kt"); + } + + @TestMetadata("importNestedClass.kt") + public void testImportNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/importNestedClass.kt"); + } + + @TestMetadata("innerGeneric.kt") + public void testInnerGeneric() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/innerGeneric.kt"); + } + + @TestMetadata("innerLabeledThis.kt") + public void testInnerLabeledThis() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/innerLabeledThis.kt"); + } + + @TestMetadata("innerSimple.kt") + public void testInnerSimple() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/innerSimple.kt"); + } + + @TestMetadata("kt3132.kt") + public void testKt3132() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt3132.kt"); + } + + @TestMetadata("kt3927.kt") + public void testKt3927() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt3927.kt"); + } + + @TestMetadata("kt5363.kt") + public void testKt5363() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt5363.kt"); + } + + @TestMetadata("kt6804.kt") + public void testKt6804() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt6804.kt"); + } + + @TestMetadata("nestedClassInObject.kt") + public void testNestedClassInObject() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/nestedClassInObject.kt"); + } + + @TestMetadata("nestedClassObject.kt") + public void testNestedClassObject() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/nestedClassObject.kt"); + } + + @TestMetadata("nestedEnumConstant.kt") + public void testNestedEnumConstant() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/nestedEnumConstant.kt"); + } + + @TestMetadata("nestedGeneric.kt") + public void testNestedGeneric() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/nestedGeneric.kt"); + } + + @TestMetadata("nestedInPackage.kt") + public void testNestedInPackage() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/nestedInPackage.kt"); + } + + @TestMetadata("nestedObjects.kt") + public void testNestedObjects() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/nestedObjects.kt"); + } + + @TestMetadata("nestedSimple.kt") + public void testNestedSimple() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/nestedSimple.kt"); + } + + @TestMetadata("passingOuterRef.kt") + public void testPassingOuterRef() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/passingOuterRef.kt"); + } + + @TestMetadata("protectedNestedClass.kt") + public void testProtectedNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/protectedNestedClass.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/innerNested/superConstructorCall") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class SuperConstructorCall extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSuperConstructorCall() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerNested/superConstructorCall"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("deepInnerHierarchy.kt") + public void testDeepInnerHierarchy() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/deepInnerHierarchy.kt"); + } + + @TestMetadata("deepLocalHierarchy.kt") + public void testDeepLocalHierarchy() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/deepLocalHierarchy.kt"); + } + + @TestMetadata("innerExtendsInnerViaSecondaryConstuctor.kt") + public void testInnerExtendsInnerViaSecondaryConstuctor() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/innerExtendsInnerViaSecondaryConstuctor.kt"); + } + + @TestMetadata("innerExtendsInnerWithProperOuterCapture.kt") + public void testInnerExtendsInnerWithProperOuterCapture() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/innerExtendsInnerWithProperOuterCapture.kt"); + } + + @TestMetadata("kt11833_1.kt") + public void testKt11833_1() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/kt11833_1.kt"); + } + + @TestMetadata("kt11833_2.kt") + public void testKt11833_2() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/kt11833_2.kt"); + } + + @TestMetadata("localClassOuterDiffersFromInnerOuter.kt") + public void testLocalClassOuterDiffersFromInnerOuter() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/localClassOuterDiffersFromInnerOuter.kt"); + } + + @TestMetadata("localExtendsInner.kt") + public void testLocalExtendsInner() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/localExtendsInner.kt"); + } + + @TestMetadata("localExtendsLocalWithClosure.kt") + public void testLocalExtendsLocalWithClosure() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/localExtendsLocalWithClosure.kt"); + } + + @TestMetadata("localWithClosureExtendsLocalWithClosure.kt") + public void testLocalWithClosureExtendsLocalWithClosure() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/localWithClosureExtendsLocalWithClosure.kt"); + } + + @TestMetadata("objectExtendsClassDefaultArgument.kt") + public void testObjectExtendsClassDefaultArgument() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsClassDefaultArgument.kt"); + } + + @TestMetadata("objectExtendsClassVararg.kt") + public void testObjectExtendsClassVararg() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsClassVararg.kt"); + } + + @TestMetadata("objectExtendsInner.kt") + public void testObjectExtendsInner() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsInner.kt"); + } + + @TestMetadata("objectExtendsInnerDefaultArgument.kt") + public void testObjectExtendsInnerDefaultArgument() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsInnerDefaultArgument.kt"); + } + + @TestMetadata("objectExtendsInnerOfLocalVarargAndDefault.kt") + public void testObjectExtendsInnerOfLocalVarargAndDefault() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsInnerOfLocalVarargAndDefault.kt"); + } + + @TestMetadata("objectExtendsInnerOfLocalWithCapture.kt") + public void testObjectExtendsInnerOfLocalWithCapture() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsInnerOfLocalWithCapture.kt"); + } + + @TestMetadata("objectExtendsLocalCaptureInSuperCall.kt") + public void testObjectExtendsLocalCaptureInSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsLocalCaptureInSuperCall.kt"); + } + + @TestMetadata("objectExtendsLocalWithClosure.kt") + public void testObjectExtendsLocalWithClosure() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsLocalWithClosure.kt"); + } + + @TestMetadata("objectExtendsLocal_kt16858.kt") + public void testObjectExtendsLocal_kt16858() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsLocal_kt16858.kt"); + } + + @TestMetadata("objectOuterDiffersFromInnerOuter.kt") + public void testObjectOuterDiffersFromInnerOuter() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/objectOuterDiffersFromInnerOuter.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/instructions") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Instructions extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInstructions() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/instructions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/instructions/swap") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Swap extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSwap() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/instructions/swap"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("swapRefToSharedVarInt.kt") + public void testSwapRefToSharedVarInt() throws Exception { + runTest("compiler/testData/codegen/box/instructions/swap/swapRefToSharedVarInt.kt"); + } + + @TestMetadata("swapRefToSharedVarLong.kt") + public void testSwapRefToSharedVarLong() throws Exception { + runTest("compiler/testData/codegen/box/instructions/swap/swapRefToSharedVarLong.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/intrinsics") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Intrinsics extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInIntrinsics() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/intrinsics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("charToInt.kt") + public void testCharToInt() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/charToInt.kt"); + } + + @TestMetadata("ea35953.kt") + public void testEa35953() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/ea35953.kt"); + } + + @TestMetadata("incWithLabel.kt") + public void testIncWithLabel() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/incWithLabel.kt"); + } + + @TestMetadata("kt10131.kt") + public void testKt10131() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/kt10131.kt"); + } + + @TestMetadata("kt10131a.kt") + public void testKt10131a() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/kt10131a.kt"); + } + + @TestMetadata("kt12125.kt") + public void testKt12125() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/kt12125.kt"); + } + + @TestMetadata("kt12125_2.kt") + public void testKt12125_2() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/kt12125_2.kt"); + } + + @TestMetadata("kt12125_inc.kt") + public void testKt12125_inc() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/kt12125_inc.kt"); + } + + @TestMetadata("kt12125_inc_2.kt") + public void testKt12125_inc_2() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/kt12125_inc_2.kt"); + } + + @TestMetadata("kt8666.kt") + public void testKt8666() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/kt8666.kt"); + } + + @TestMetadata("longRangeWithExplicitDot.kt") + public void testLongRangeWithExplicitDot() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/longRangeWithExplicitDot.kt"); + } + + @TestMetadata("nonShortCircuitAnd.kt") + public void testNonShortCircuitAnd() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/nonShortCircuitAnd.kt"); + } + + @TestMetadata("nullPlusString.kt") + public void testNullPlusString() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/nullPlusString.kt"); + } + + @TestMetadata("prefixIncDec.kt") + public void testPrefixIncDec() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/prefixIncDec.kt"); + } + + @TestMetadata("rangeFromCollection.kt") + public void testRangeFromCollection() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/rangeFromCollection.kt"); + } + + @TestMetadata("stringFromCollection.kt") + public void testStringFromCollection() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/stringFromCollection.kt"); + } + + @TestMetadata("throwable.kt") + public void testThrowable() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/throwable.kt"); + } + + @TestMetadata("throwableCallableReference.kt") + public void testThrowableCallableReference() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/throwableCallableReference.kt"); + } + + @TestMetadata("throwableParamOrder.kt") + public void testThrowableParamOrder() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/throwableParamOrder.kt"); + } + + @TestMetadata("tostring.kt") + public void testTostring() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/tostring.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ir") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Ir extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInIr() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("anonymousObjectInForLoopIteratorAndBody.kt") + public void testAnonymousObjectInForLoopIteratorAndBody() throws Exception { + runTest("compiler/testData/codegen/box/ir/anonymousObjectInForLoopIteratorAndBody.kt"); + } + + @TestMetadata("anonymousObjectInsideElvis.kt") + public void testAnonymousObjectInsideElvis() throws Exception { + runTest("compiler/testData/codegen/box/ir/anonymousObjectInsideElvis.kt"); + } + + @TestMetadata("classInitializers.kt") + public void testClassInitializers() throws Exception { + runTest("compiler/testData/codegen/box/ir/classInitializers.kt"); + } + + @TestMetadata("enumClass.kt") + public void testEnumClass() throws Exception { + runTest("compiler/testData/codegen/box/ir/enumClass.kt"); + } + + @TestMetadata("enumClass2.kt") + public void testEnumClass2() throws Exception { + runTest("compiler/testData/codegen/box/ir/enumClass2.kt"); + } + + @TestMetadata("enumClass3.kt") + public void testEnumClass3() throws Exception { + runTest("compiler/testData/codegen/box/ir/enumClass3.kt"); + } + + @TestMetadata("fileClassInitializers.kt") + public void testFileClassInitializers() throws Exception { + runTest("compiler/testData/codegen/box/ir/fileClassInitializers.kt"); + } + + @TestMetadata("genericCompanion.kt") + public void testGenericCompanion() throws Exception { + runTest("compiler/testData/codegen/box/ir/genericCompanion.kt"); + } + + @TestMetadata("kt25405.kt") + public void testKt25405() throws Exception { + runTest("compiler/testData/codegen/box/ir/kt25405.kt"); + } + + @TestMetadata("objectClass.kt") + public void testObjectClass() throws Exception { + runTest("compiler/testData/codegen/box/ir/objectClass.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/ir/simple.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/ir/closureConversion") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ClosureConversion extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInClosureConversion() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ir/closureConversion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("closureConversion1.kt") + public void testClosureConversion1() throws Exception { + runTest("compiler/testData/codegen/box/ir/closureConversion/closureConversion1.kt"); + } + + @TestMetadata("closureConversion2.kt") + public void testClosureConversion2() throws Exception { + runTest("compiler/testData/codegen/box/ir/closureConversion/closureConversion2.kt"); + } + + @TestMetadata("closureConversion3.kt") + public void testClosureConversion3() throws Exception { + runTest("compiler/testData/codegen/box/ir/closureConversion/closureConversion3.kt"); + } + + @TestMetadata("closureConversion4.kt") + public void testClosureConversion4() throws Exception { + runTest("compiler/testData/codegen/box/ir/closureConversion/closureConversion4.kt"); + } + + @TestMetadata("innerClass1.kt") + public void testInnerClass1() throws Exception { + runTest("compiler/testData/codegen/box/ir/closureConversion/innerClass1.kt"); + } + + @TestMetadata("innerClass2.kt") + public void testInnerClass2() throws Exception { + runTest("compiler/testData/codegen/box/ir/closureConversion/innerClass2.kt"); + } + + @TestMetadata("mutable1.kt") + public void testMutable1() throws Exception { + runTest("compiler/testData/codegen/box/ir/closureConversion/mutable1.kt"); + } + + @TestMetadata("mutablePrimitives.kt") + public void testMutablePrimitives() throws Exception { + runTest("compiler/testData/codegen/box/ir/closureConversion/mutablePrimitives.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ir/primitiveNumberComparisons") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class PrimitiveNumberComparisons extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInPrimitiveNumberComparisons() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ir/primitiveNumberComparisons"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("comparableToDouble.kt") + public void testComparableToDouble() throws Exception { + runTest("compiler/testData/codegen/box/ir/primitiveNumberComparisons/comparableToDouble.kt"); + } + + @TestMetadata("doubleEqeq.kt") + public void testDoubleEqeq() throws Exception { + runTest("compiler/testData/codegen/box/ir/primitiveNumberComparisons/doubleEqeq.kt"); + } + + @TestMetadata("floatEqeq.kt") + public void testFloatEqeq() throws Exception { + runTest("compiler/testData/codegen/box/ir/primitiveNumberComparisons/floatEqeq.kt"); + } + + @TestMetadata("mixedNumberTypes.kt") + public void testMixedNumberTypes() throws Exception { + runTest("compiler/testData/codegen/box/ir/primitiveNumberComparisons/mixedNumberTypes.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ir/serializationRegressions") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class SerializationRegressions extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSerializationRegressions() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ir/serializationRegressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("deepGenericDelegatedProperty.kt") + public void testDeepGenericDelegatedProperty() throws Exception { + runTest("compiler/testData/codegen/box/ir/serializationRegressions/deepGenericDelegatedProperty.kt"); + } + + @TestMetadata("dispatchReceiverValue.kt") + public void testDispatchReceiverValue() throws Exception { + runTest("compiler/testData/codegen/box/ir/serializationRegressions/dispatchReceiverValue.kt"); + } + + @TestMetadata("genericProperty.kt") + public void testGenericProperty() throws Exception { + runTest("compiler/testData/codegen/box/ir/serializationRegressions/genericProperty.kt"); + } + + @TestMetadata("innerClassInEnumEntryClass.kt") + public void testInnerClassInEnumEntryClass() throws Exception { + runTest("compiler/testData/codegen/box/ir/serializationRegressions/innerClassInEnumEntryClass.kt"); + } + + @TestMetadata("signatureClash.kt") + public void testSignatureClash() throws Exception { + runTest("compiler/testData/codegen/box/ir/serializationRegressions/signatureClash.kt"); + } + + @TestMetadata("transitiveClash.kt") + public void testTransitiveClash() throws Exception { + runTest("compiler/testData/codegen/box/ir/serializationRegressions/transitiveClash.kt"); + } + + @TestMetadata("useImportedMember.kt") + public void testUseImportedMember() throws Exception { + runTest("compiler/testData/codegen/box/ir/serializationRegressions/useImportedMember.kt"); + } + + @TestMetadata("varAsFunctionCall.kt") + public void testVarAsFunctionCall() throws Exception { + runTest("compiler/testData/codegen/box/ir/serializationRegressions/varAsFunctionCall.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/javaInterop") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class JavaInterop extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInJavaInterop() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaInterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/javaInterop/generics") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Generics extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInGenerics() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaInterop/generics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/javaInterop/notNullAssertions") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NotNullAssertions extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNotNullAssertions() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaInterop/notNullAssertions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("mapPut.kt") + public void testMapPut() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/mapPut.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/javaInterop/notNullAssertions/enhancedNullability") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class EnhancedNullability extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInEnhancedNullability() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaInterop/notNullAssertions/enhancedNullability"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/javaInterop/objectMethods") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ObjectMethods extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInObjectMethods() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaInterop/objectMethods"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("cloneCallsConstructor.kt") + public void testCloneCallsConstructor() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/objectMethods/cloneCallsConstructor.kt"); + } + + @TestMetadata("cloneCallsSuper.kt") + public void testCloneCallsSuper() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/objectMethods/cloneCallsSuper.kt"); + } + + @TestMetadata("cloneCallsSuperAndModifies.kt") + public void testCloneCallsSuperAndModifies() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/objectMethods/cloneCallsSuperAndModifies.kt"); + } + + @TestMetadata("cloneableClassWithoutClone.kt") + public void testCloneableClassWithoutClone() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/objectMethods/cloneableClassWithoutClone.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/jdk") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Jdk extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInJdk() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jdk"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("arrayList.kt") + public void testArrayList() throws Exception { + runTest("compiler/testData/codegen/box/jdk/arrayList.kt"); + } + + @TestMetadata("hashMap.kt") + public void testHashMap() throws Exception { + runTest("compiler/testData/codegen/box/jdk/hashMap.kt"); + } + + @TestMetadata("iteratingOverHashMap.kt") + public void testIteratingOverHashMap() throws Exception { + runTest("compiler/testData/codegen/box/jdk/iteratingOverHashMap.kt"); + } + + @TestMetadata("kt1397.kt") + public void testKt1397() throws Exception { + runTest("compiler/testData/codegen/box/jdk/kt1397.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/jvm8") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Jvm8 extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInJvm8() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/jvm8/defaults") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Defaults extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDefaults() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/jvm8/defaults/allCompatibility") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class AllCompatibility extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInAllCompatibility() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults/allCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/delegationBy") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DelegationBy extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDelegationBy() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/delegationBy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/jvm8/defaults/compatibility") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Compatibility extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCompatibility() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults/compatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/jvm8/defaults/delegationBy") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DelegationBy extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDelegationBy() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults/delegationBy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NoDefaultImpls extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNoDefaultImpls() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/delegationBy") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DelegationBy extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDelegationBy() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/delegationBy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/jvm8/defaults/noDelegation") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NoDelegation extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNoDelegation() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults/noDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/jvm8/defaults/reflection") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Reflection extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInReflection() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults/reflection"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/jvm8/interfaceFlag") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class InterfaceFlag extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInterfaceFlag() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/interfaceFlag"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/jvm8/javaDefaults") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class JavaDefaults extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInJavaDefaults() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/javaDefaults"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/jvmField") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class JvmField extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInJvmField() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/jvmName") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class JvmName extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInJvmName() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmName"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/jvmName/fileFacades") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class FileFacades extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInFileFacades() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmName/fileFacades"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/jvmOverloads") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class JvmOverloads extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInJvmOverloads() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmOverloads"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/jvmPackageName") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class JvmPackageName extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInJvmPackageName() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmPackageName"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/jvmStatic") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class JvmStatic extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInJvmStatic() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmStatic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/labels") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Labels extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInLabels() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/labels"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("controlLabelClashesWithFuncitonName.kt") + public void testControlLabelClashesWithFuncitonName() throws Exception { + runTest("compiler/testData/codegen/box/labels/controlLabelClashesWithFuncitonName.kt"); + } + + @TestMetadata("infixCallLabelling.kt") + public void testInfixCallLabelling() throws Exception { + runTest("compiler/testData/codegen/box/labels/infixCallLabelling.kt"); + } + + @TestMetadata("labeledDeclarations.kt") + public void testLabeledDeclarations() throws Exception { + runTest("compiler/testData/codegen/box/labels/labeledDeclarations.kt"); + } + + @TestMetadata("propertyAccessor.kt") + public void testPropertyAccessor() throws Exception { + runTest("compiler/testData/codegen/box/labels/propertyAccessor.kt"); + } + + @TestMetadata("propertyAccessorFunctionLiteral.kt") + public void testPropertyAccessorFunctionLiteral() throws Exception { + runTest("compiler/testData/codegen/box/labels/propertyAccessorFunctionLiteral.kt"); + } + + @TestMetadata("propertyAccessorInnerExtensionFun.kt") + public void testPropertyAccessorInnerExtensionFun() throws Exception { + runTest("compiler/testData/codegen/box/labels/propertyAccessorInnerExtensionFun.kt"); + } + + @TestMetadata("propertyAccessorObject.kt") + public void testPropertyAccessorObject() throws Exception { + runTest("compiler/testData/codegen/box/labels/propertyAccessorObject.kt"); + } + + @TestMetadata("propertyInClassAccessor.kt") + public void testPropertyInClassAccessor() throws Exception { + runTest("compiler/testData/codegen/box/labels/propertyInClassAccessor.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/lazyCodegen") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class LazyCodegen extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInLazyCodegen() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lazyCodegen"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("exceptionInFieldInitializer.kt") + public void testExceptionInFieldInitializer() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/exceptionInFieldInitializer.kt"); + } + + @TestMetadata("ifElse.kt") + public void testIfElse() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/ifElse.kt"); + } + + @TestMetadata("increment.kt") + public void testIncrement() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/increment.kt"); + } + + @TestMetadata("safeAssign.kt") + public void testSafeAssign() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/safeAssign.kt"); + } + + @TestMetadata("safeAssignComplex.kt") + public void testSafeAssignComplex() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/safeAssignComplex.kt"); + } + + @TestMetadata("safeCallAndArray.kt") + public void testSafeCallAndArray() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/safeCallAndArray.kt"); + } + + @TestMetadata("toString.kt") + public void testToString() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/toString.kt"); + } + + @TestMetadata("tryCatchExpression.kt") + public void testTryCatchExpression() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/tryCatchExpression.kt"); + } + + @TestMetadata("when.kt") + public void testWhen() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/when.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/lazyCodegen/optimizations") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Optimizations extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInOptimizations() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lazyCodegen/optimizations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("negateConstantCompare.kt") + public void testNegateConstantCompare() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/optimizations/negateConstantCompare.kt"); + } + + @TestMetadata("negateFalse.kt") + public void testNegateFalse() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/optimizations/negateFalse.kt"); + } + + @TestMetadata("negateFalseVar.kt") + public void testNegateFalseVar() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/optimizations/negateFalseVar.kt"); + } + + @TestMetadata("negateFalseVarChain.kt") + public void testNegateFalseVarChain() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/optimizations/negateFalseVarChain.kt"); + } + + @TestMetadata("negateObjectComp.kt") + public void testNegateObjectComp() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/optimizations/negateObjectComp.kt"); + } + + @TestMetadata("negateObjectComp2.kt") + public void testNegateObjectComp2() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/optimizations/negateObjectComp2.kt"); + } + + @TestMetadata("negateTrue.kt") + public void testNegateTrue() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/optimizations/negateTrue.kt"); + } + + @TestMetadata("negateTrueVar.kt") + public void testNegateTrueVar() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/optimizations/negateTrueVar.kt"); + } + + @TestMetadata("noOptimization.kt") + public void testNoOptimization() throws Exception { + runTest("compiler/testData/codegen/box/lazyCodegen/optimizations/noOptimization.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/localClasses") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class LocalClasses extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInLocalClasses() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("anonymousObjectInExtension.kt") + public void testAnonymousObjectInExtension() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/anonymousObjectInExtension.kt"); + } + + @TestMetadata("anonymousObjectInInitializer.kt") + public void testAnonymousObjectInInitializer() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/anonymousObjectInInitializer.kt"); + } + + @TestMetadata("anonymousObjectInParameterInitializer.kt") + public void testAnonymousObjectInParameterInitializer() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/anonymousObjectInParameterInitializer.kt"); + } + + @TestMetadata("closureOfInnerLocalClass.kt") + public void testClosureOfInnerLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/closureOfInnerLocalClass.kt"); + } + + @TestMetadata("closureOfLambdaInLocalClass.kt") + public void testClosureOfLambdaInLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/closureOfLambdaInLocalClass.kt"); + } + + @TestMetadata("closureWithSelfInstantiation.kt") + public void testClosureWithSelfInstantiation() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/closureWithSelfInstantiation.kt"); + } + + @TestMetadata("inExtensionFunction.kt") + public void testInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/inExtensionFunction.kt"); + } + + @TestMetadata("inExtensionProperty.kt") + public void testInExtensionProperty() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/inExtensionProperty.kt"); + } + + @TestMetadata("inLocalExtensionFunction.kt") + public void testInLocalExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/inLocalExtensionFunction.kt"); + } + + @TestMetadata("inLocalExtensionProperty.kt") + public void testInLocalExtensionProperty() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/inLocalExtensionProperty.kt"); + } + + @TestMetadata("innerClassInLocalClass.kt") + public void testInnerClassInLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/innerClassInLocalClass.kt"); + } + + @TestMetadata("innerOfLocalCaptureExtensionReceiver.kt") + public void testInnerOfLocalCaptureExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/innerOfLocalCaptureExtensionReceiver.kt"); + } + + @TestMetadata("kt2700.kt") + public void testKt2700() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt2700.kt"); + } + + @TestMetadata("kt2873.kt") + public void testKt2873() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt2873.kt"); + } + + @TestMetadata("kt3210.kt") + public void testKt3210() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt3210.kt"); + } + + @TestMetadata("kt3389.kt") + public void testKt3389() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt3389.kt"); + } + + @TestMetadata("kt3584.kt") + public void testKt3584() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt3584.kt"); + } + + @TestMetadata("kt4174.kt") + public void testKt4174() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt4174.kt"); + } + + @TestMetadata("localClass.kt") + public void testLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/localClass.kt"); + } + + @TestMetadata("localClassCaptureExtensionReceiver.kt") + public void testLocalClassCaptureExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/localClassCaptureExtensionReceiver.kt"); + } + + @TestMetadata("localClassInInitializer.kt") + public void testLocalClassInInitializer() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/localClassInInitializer.kt"); + } + + @TestMetadata("localClassInParameterInitializer.kt") + public void testLocalClassInParameterInitializer() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/localClassInParameterInitializer.kt"); + } + + @TestMetadata("localDataClass.kt") + public void testLocalDataClass() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/localDataClass.kt"); + } + + @TestMetadata("localExtendsInnerAndReferencesOuterMember.kt") + public void testLocalExtendsInnerAndReferencesOuterMember() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/localExtendsInnerAndReferencesOuterMember.kt"); + } + + @TestMetadata("nameWithWhitespace.kt") + public void testNameWithWhitespace() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/nameWithWhitespace.kt"); + } + + @TestMetadata("noclosure.kt") + public void testNoclosure() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/noclosure.kt"); + } + + @TestMetadata("object.kt") + public void testObject() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/object.kt"); + } + + @TestMetadata("ownClosureOfInnerLocalClass.kt") + public void testOwnClosureOfInnerLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/ownClosureOfInnerLocalClass.kt"); + } + + @TestMetadata("recaptureVarCapturedInLocalClass1.kt") + public void testRecaptureVarCapturedInLocalClass1() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/recaptureVarCapturedInLocalClass1.kt"); + } + + @TestMetadata("recaptureVarCapturedInLocalClass2.kt") + public void testRecaptureVarCapturedInLocalClass2() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/recaptureVarCapturedInLocalClass2.kt"); + } + + @TestMetadata("recaptureVarCapturedInLocalClass3.kt") + public void testRecaptureVarCapturedInLocalClass3() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/recaptureVarCapturedInLocalClass3.kt"); + } + + @TestMetadata("subclassingExtensionReceiverClass.kt") + public void testSubclassingExtensionReceiverClass() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/subclassingExtensionReceiverClass.kt"); + } + + @TestMetadata("withclosure.kt") + public void testWithclosure() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/withclosure.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/mangling") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Mangling extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInMangling() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/mangling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("internal.kt") + public void testInternal() throws Exception { + runTest("compiler/testData/codegen/box/mangling/internal.kt"); + } + + @TestMetadata("internalOverride.kt") + public void testInternalOverride() throws Exception { + runTest("compiler/testData/codegen/box/mangling/internalOverride.kt"); + } + + @TestMetadata("internalOverrideSuperCall.kt") + public void testInternalOverrideSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/mangling/internalOverrideSuperCall.kt"); + } + + @TestMetadata("parentheses.kt") + public void testParentheses() throws Exception { + runTest("compiler/testData/codegen/box/mangling/parentheses.kt"); + } + + @TestMetadata("publicOverride.kt") + public void testPublicOverride() throws Exception { + runTest("compiler/testData/codegen/box/mangling/publicOverride.kt"); + } + + @TestMetadata("publicOverrideSuperCall.kt") + public void testPublicOverrideSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/mangling/publicOverrideSuperCall.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/mixedNamedPosition") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class MixedNamedPosition extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInMixedNamedPosition() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/mixedNamedPosition"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("defaults.kt") + public void testDefaults() throws Exception { + runTest("compiler/testData/codegen/box/mixedNamedPosition/defaults.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/mixedNamedPosition/simple.kt"); + } + + @TestMetadata("varargs.kt") + public void testVarargs() throws Exception { + runTest("compiler/testData/codegen/box/mixedNamedPosition/varargs.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/multiDecl") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class MultiDecl extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInMultiDecl() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("ComplexInitializer.kt") + public void testComplexInitializer() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/ComplexInitializer.kt"); + } + + @TestMetadata("component.kt") + public void testComponent() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/component.kt"); + } + + @TestMetadata("kt9828_hashMap.kt") + public void testKt9828_hashMap() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/kt9828_hashMap.kt"); + } + + @TestMetadata("returnInElvis.kt") + public void testReturnInElvis() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/returnInElvis.kt"); + } + + @TestMetadata("SimpleVals.kt") + public void testSimpleVals() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/SimpleVals.kt"); + } + + @TestMetadata("SimpleValsExtensions.kt") + public void testSimpleValsExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/SimpleValsExtensions.kt"); + } + + @TestMetadata("SimpleVarsExtensions.kt") + public void testSimpleVarsExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/SimpleVarsExtensions.kt"); + } + + @TestMetadata("UnderscoreNames.kt") + public void testUnderscoreNames() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/UnderscoreNames.kt"); + } + + @TestMetadata("ValCapturedInFunctionLiteral.kt") + public void testValCapturedInFunctionLiteral() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/ValCapturedInFunctionLiteral.kt"); + } + + @TestMetadata("ValCapturedInLocalFunction.kt") + public void testValCapturedInLocalFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/ValCapturedInLocalFunction.kt"); + } + + @TestMetadata("ValCapturedInObjectLiteral.kt") + public void testValCapturedInObjectLiteral() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/ValCapturedInObjectLiteral.kt"); + } + + @TestMetadata("VarCapturedInFunctionLiteral.kt") + public void testVarCapturedInFunctionLiteral() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/VarCapturedInFunctionLiteral.kt"); + } + + @TestMetadata("VarCapturedInLocalFunction.kt") + public void testVarCapturedInLocalFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/VarCapturedInLocalFunction.kt"); + } + + @TestMetadata("VarCapturedInObjectLiteral.kt") + public void testVarCapturedInObjectLiteral() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/VarCapturedInObjectLiteral.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/multiDecl/forIterator") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ForIterator extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInForIterator() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forIterator"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("MultiDeclFor.kt") + public void testMultiDeclFor() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclFor.kt"); + } + + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclForComponentExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclForComponentMemberExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + + @TestMetadata("MultiDeclForValCaptured.kt") + public void testMultiDeclForValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclForValCaptured.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/multiDecl/forIterator/longIterator") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class LongIterator extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInLongIterator() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forIterator/longIterator"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forIterator/longIterator/MultiDeclForComponentExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentExtensionsValCaptured.kt") + public void testMultiDeclForComponentExtensionsValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forIterator/longIterator/MultiDeclForComponentExtensionsValCaptured.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forIterator/longIterator/MultiDeclForComponentMemberExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forIterator/longIterator/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/multiDecl/forRange") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ForRange extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInForRange() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forRange"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("MultiDeclFor.kt") + public void testMultiDeclFor() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/MultiDeclFor.kt"); + } + + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/MultiDeclForComponentExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/MultiDeclForComponentMemberExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + + @TestMetadata("MultiDeclForValCaptured.kt") + public void testMultiDeclForValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/MultiDeclForValCaptured.kt"); + } + + @TestMetadata("UnderscoreNames.kt") + public void testUnderscoreNames() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/UnderscoreNames.kt"); + } + + @TestMetadata("UnderscoreNamesDontCallComponent.kt") + public void testUnderscoreNamesDontCallComponent() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/UnderscoreNamesDontCallComponent.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ExplicitRangeTo extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInExplicitRangeTo() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("MultiDeclFor.kt") + public void testMultiDeclFor() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/MultiDeclFor.kt"); + } + + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/MultiDeclForComponentExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/MultiDeclForComponentMemberExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + + @TestMetadata("MultiDeclForValCaptured.kt") + public void testMultiDeclForValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/MultiDeclForValCaptured.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/int") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Int extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInt() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/int"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/int/MultiDeclForComponentExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentExtensionsValCaptured.kt") + public void testMultiDeclForComponentExtensionsValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/int/MultiDeclForComponentExtensionsValCaptured.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/int/MultiDeclForComponentMemberExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/int/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/long") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Long extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInLong() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/long"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/long/MultiDeclForComponentExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentExtensionsValCaptured.kt") + public void testMultiDeclForComponentExtensionsValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/long/MultiDeclForComponentExtensionsValCaptured.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/long/MultiDeclForComponentMemberExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/long/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ExplicitRangeToWithDot extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInExplicitRangeToWithDot() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("MultiDeclFor.kt") + public void testMultiDeclFor() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/MultiDeclFor.kt"); + } + + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/MultiDeclForComponentExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/MultiDeclForComponentMemberExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + + @TestMetadata("MultiDeclForValCaptured.kt") + public void testMultiDeclForValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/MultiDeclForValCaptured.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/int") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Int extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInt() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/int"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/int/MultiDeclForComponentExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentExtensionsValCaptured.kt") + public void testMultiDeclForComponentExtensionsValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/int/MultiDeclForComponentExtensionsValCaptured.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/int/MultiDeclForComponentMemberExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/int/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/long") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Long extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInLong() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/long"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/long/MultiDeclForComponentExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentExtensionsValCaptured.kt") + public void testMultiDeclForComponentExtensionsValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/long/MultiDeclForComponentExtensionsValCaptured.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/long/MultiDeclForComponentMemberExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/long/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/multiDecl/forRange/int") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Int extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInt() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forRange/int"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/int/MultiDeclForComponentExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentExtensionsValCaptured.kt") + public void testMultiDeclForComponentExtensionsValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/int/MultiDeclForComponentExtensionsValCaptured.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/int/MultiDeclForComponentMemberExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/int/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/multiDecl/forRange/long") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Long extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInLong() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forRange/long"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/long/MultiDeclForComponentExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentExtensionsValCaptured.kt") + public void testMultiDeclForComponentExtensionsValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/long/MultiDeclForComponentExtensionsValCaptured.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/long/MultiDeclForComponentMemberExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forRange/long/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + } + } + } + + @TestMetadata("compiler/testData/codegen/box/multifileClasses") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class MultifileClasses extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInMultifileClasses() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multifileClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/multifileClasses/optimized") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Optimized extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInOptimized() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multifileClasses/optimized"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/multiplatform") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Multiplatform extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInMultiplatform() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("optionalExpectation.kt") + public void testOptionalExpectation() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/optionalExpectation.kt"); + } + + @TestMetadata("starImportOfExpectEnumWithActualTypeAlias.kt") + public void testStarImportOfExpectEnumWithActualTypeAlias() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/starImportOfExpectEnumWithActualTypeAlias.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/multiplatform/defaultArguments") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DefaultArguments extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDefaultArguments() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("bothInExpectAndActual.kt") + public void testBothInExpectAndActual() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/bothInExpectAndActual.kt"); + } + + @TestMetadata("bothInExpectAndActual2.kt") + public void testBothInExpectAndActual2() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/bothInExpectAndActual2.kt"); + } + + @TestMetadata("constructor.kt") + public void testConstructor() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/constructor.kt"); + } + + @TestMetadata("delegatedExpectedInterface.kt") + public void testDelegatedExpectedInterface() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/delegatedExpectedInterface.kt"); + } + + @TestMetadata("dispatchReceiverValue.kt") + public void testDispatchReceiverValue() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/dispatchReceiverValue.kt"); + } + + @TestMetadata("extensionReceiverValue.kt") + public void testExtensionReceiverValue() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/extensionReceiverValue.kt"); + } + + @TestMetadata("function.kt") + public void testFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/function.kt"); + } + + @TestMetadata("functionFromOtherModule.kt") + public void testFunctionFromOtherModule() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/functionFromOtherModule.kt"); + } + + @TestMetadata("inheritedFromCommonClass.kt") + public void testInheritedFromCommonClass() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/inheritedFromCommonClass.kt"); + } + + @TestMetadata("inheritedFromExpectedClass.kt") + public void testInheritedFromExpectedClass() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/inheritedFromExpectedClass.kt"); + } + + @TestMetadata("inheritedFromExpectedInterface.kt") + public void testInheritedFromExpectedInterface() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/inheritedFromExpectedInterface.kt"); + } + + @TestMetadata("inheritedFromExpectedMethod.kt") + public void testInheritedFromExpectedMethod() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/inheritedFromExpectedMethod.kt"); + } + + @TestMetadata("inheritedInExpectedDeclarations.kt") + public void testInheritedInExpectedDeclarations() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/inheritedInExpectedDeclarations.kt"); + } + + @TestMetadata("inheritedViaAnotherInterfaceIndirectly.kt") + public void testInheritedViaAnotherInterfaceIndirectly() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/inheritedViaAnotherInterfaceIndirectly.kt"); + } + + @TestMetadata("inlineFunctionWithDefaultLambda.kt") + public void testInlineFunctionWithDefaultLambda() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/inlineFunctionWithDefaultLambda.kt"); + } + + @TestMetadata("kt23239.kt") + public void testKt23239() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/kt23239.kt"); + } + + @TestMetadata("kt23739.kt") + public void testKt23739() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/kt23739.kt"); + } + + @TestMetadata("parametersInArgumentValues.kt") + public void testParametersInArgumentValues() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/parametersInArgumentValues.kt"); + } + + @TestMetadata("superCall.kt") + public void testSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/superCall.kt"); + } + + @TestMetadata("suspend.kt") + public void testSuspend() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/suspend.kt"); + } + + @TestMetadata("typeAlias.kt") + public void testTypeAlias() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/typeAlias.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/multiplatform/multiModule") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class MultiModule extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInMultiModule() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/multiModule"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("expectActualLink.kt") + public void testExpectActualLink() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/multiModule/expectActualLink.kt"); + } + + @TestMetadata("expectActualMemberLink.kt") + public void testExpectActualMemberLink() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/multiModule/expectActualMemberLink.kt"); + } + + @TestMetadata("expectActualTypealiasLink.kt") + public void testExpectActualTypealiasLink() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/multiModule/expectActualTypealiasLink.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/nonLocalReturns") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NonLocalReturns extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNonLocalReturns() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/nonLocalReturns"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("kt9644let.kt") + public void testKt9644let() throws Exception { + runTest("compiler/testData/codegen/box/nonLocalReturns/kt9644let.kt"); + } + + @TestMetadata("localReturnInsideProperty.kt") + public void testLocalReturnInsideProperty() throws Exception { + runTest("compiler/testData/codegen/box/nonLocalReturns/localReturnInsideProperty.kt"); + } + + @TestMetadata("returnInsideTwoLambdas.kt") + public void testReturnInsideTwoLambdas() throws Exception { + runTest("compiler/testData/codegen/box/nonLocalReturns/returnInsideTwoLambdas.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/nothingValue") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NothingValue extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNothingValue() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/nothingValue"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("inNestedCall.kt") + public void testInNestedCall() throws Exception { + runTest("compiler/testData/codegen/box/nothingValue/inNestedCall.kt"); + } + + @TestMetadata("nothingValueException.kt") + public void testNothingValueException() throws Exception { + runTest("compiler/testData/codegen/box/nothingValue/nothingValueException.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/nullCheckOptimization") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NullCheckOptimization extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNullCheckOptimization() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/nullCheckOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("isNullable.kt") + public void testIsNullable() throws Exception { + runTest("compiler/testData/codegen/box/nullCheckOptimization/isNullable.kt"); + } + + @TestMetadata("kt22410.kt") + public void testKt22410() throws Exception { + runTest("compiler/testData/codegen/box/nullCheckOptimization/kt22410.kt"); + } + + @TestMetadata("kt7774.kt") + public void testKt7774() throws Exception { + runTest("compiler/testData/codegen/box/nullCheckOptimization/kt7774.kt"); + } + + @TestMetadata("primitiveCheckWithSideEffect.kt") + public void testPrimitiveCheckWithSideEffect() throws Exception { + runTest("compiler/testData/codegen/box/nullCheckOptimization/primitiveCheckWithSideEffect.kt"); + } + + @TestMetadata("trivialInstanceOf.kt") + public void testTrivialInstanceOf() throws Exception { + runTest("compiler/testData/codegen/box/nullCheckOptimization/trivialInstanceOf.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/objectIntrinsics") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ObjectIntrinsics extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInObjectIntrinsics() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objectIntrinsics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("objects.kt") + public void testObjects() throws Exception { + runTest("compiler/testData/codegen/box/objectIntrinsics/objects.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/objects") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Objects extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInObjects() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objects"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("anonymousObjectPropertyInitialization.kt") + public void testAnonymousObjectPropertyInitialization() throws Exception { + runTest("compiler/testData/codegen/box/objects/anonymousObjectPropertyInitialization.kt"); + } + + @TestMetadata("anonymousObjectReturnsFromTopLevelFun.kt") + public void testAnonymousObjectReturnsFromTopLevelFun() throws Exception { + runTest("compiler/testData/codegen/box/objects/anonymousObjectReturnsFromTopLevelFun.kt"); + } + + @TestMetadata("classCallsProtectedInheritedByCompanion.kt") + public void testClassCallsProtectedInheritedByCompanion() throws Exception { + runTest("compiler/testData/codegen/box/objects/classCallsProtectedInheritedByCompanion.kt"); + } + + @TestMetadata("classCompanion.kt") + public void testClassCompanion() throws Exception { + runTest("compiler/testData/codegen/box/objects/classCompanion.kt"); + } + + @TestMetadata("compoundAssignmentToArrayAccessToExtensionPropertyImportedFromObject.kt") + public void testCompoundAssignmentToArrayAccessToExtensionPropertyImportedFromObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/compoundAssignmentToArrayAccessToExtensionPropertyImportedFromObject.kt"); + } + + @TestMetadata("compoundAssignmentToArrayAccessToPropertyImportedFromObject.kt") + public void testCompoundAssignmentToArrayAccessToPropertyImportedFromObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/compoundAssignmentToArrayAccessToPropertyImportedFromObject.kt"); + } + + @TestMetadata("compoundAssignmentToExtensionPropertyImportedFromObject.kt") + public void testCompoundAssignmentToExtensionPropertyImportedFromObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/compoundAssignmentToExtensionPropertyImportedFromObject.kt"); + } + + @TestMetadata("compoundAssignmentToObjectFromCall.kt") + public void testCompoundAssignmentToObjectFromCall() throws Exception { + runTest("compiler/testData/codegen/box/objects/compoundAssignmentToObjectFromCall.kt"); + } + + @TestMetadata("compoundAssignmentToPropertyImportedFromObject.kt") + public void testCompoundAssignmentToPropertyImportedFromObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/compoundAssignmentToPropertyImportedFromObject.kt"); + } + + @TestMetadata("compoundAssignmentToPropertyWithQualifier.kt") + public void testCompoundAssignmentToPropertyWithQualifier() throws Exception { + runTest("compiler/testData/codegen/box/objects/compoundAssignmentToPropertyWithQualifier.kt"); + } + + @TestMetadata("flist.kt") + public void testFlist() throws Exception { + runTest("compiler/testData/codegen/box/objects/flist.kt"); + } + + @TestMetadata("initializationOrder.kt") + public void testInitializationOrder() throws Exception { + runTest("compiler/testData/codegen/box/objects/initializationOrder.kt"); + } + + @TestMetadata("initializerBlockResetToDefault.kt") + public void testInitializerBlockResetToDefault() throws Exception { + runTest("compiler/testData/codegen/box/objects/initializerBlockResetToDefault.kt"); + } + + @TestMetadata("interfaceCompanion.kt") + public void testInterfaceCompanion() throws Exception { + runTest("compiler/testData/codegen/box/objects/interfaceCompanion.kt"); + } + + @TestMetadata("interfaceCompanionObjectReference.kt") + public void testInterfaceCompanionObjectReference() throws Exception { + runTest("compiler/testData/codegen/box/objects/interfaceCompanionObjectReference.kt"); + } + + @TestMetadata("kt1047.kt") + public void testKt1047() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt1047.kt"); + } + + @TestMetadata("kt11117.kt") + public void testKt11117() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt11117.kt"); + } + + @TestMetadata("kt1186.kt") + public void testKt1186() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt1186.kt"); + } + + @TestMetadata("kt1600.kt") + public void testKt1600() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt1600.kt"); + } + + @TestMetadata("kt1737.kt") + public void testKt1737() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt1737.kt"); + } + + @TestMetadata("kt18982.kt") + public void testKt18982() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt18982.kt"); + } + + @TestMetadata("kt2398.kt") + public void testKt2398() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt2398.kt"); + } + + @TestMetadata("kt2663.kt") + public void testKt2663() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt2663.kt"); + } + + @TestMetadata("kt2663_2.kt") + public void testKt2663_2() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt2663_2.kt"); + } + + @TestMetadata("kt2663_3.kt") + public void testKt2663_3() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt2663_3.kt"); + } + + @TestMetadata("kt2675.kt") + public void testKt2675() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt2675.kt"); + } + + @TestMetadata("kt2719.kt") + public void testKt2719() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt2719.kt"); + } + + @TestMetadata("kt2822.kt") + public void testKt2822() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt2822.kt"); + } + + @TestMetadata("kt3238.kt") + public void testKt3238() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt3238.kt"); + } + + @TestMetadata("kt3684.kt") + public void testKt3684() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt3684.kt"); + } + + @TestMetadata("kt4086.kt") + public void testKt4086() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt4086.kt"); + } + + @TestMetadata("kt535.kt") + public void testKt535() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt535.kt"); + } + + @TestMetadata("kt694.kt") + public void testKt694() throws Exception { + runTest("compiler/testData/codegen/box/objects/kt694.kt"); + } + + @TestMetadata("localFunctionInObjectInitializer_kt4516.kt") + public void testLocalFunctionInObjectInitializer_kt4516() throws Exception { + runTest("compiler/testData/codegen/box/objects/localFunctionInObjectInitializer_kt4516.kt"); + } + + @TestMetadata("methodOnObject.kt") + public void testMethodOnObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/methodOnObject.kt"); + } + + @TestMetadata("nestedDerivedClassCallsProtectedFromCompanion.kt") + public void testNestedDerivedClassCallsProtectedFromCompanion() throws Exception { + runTest("compiler/testData/codegen/box/objects/nestedDerivedClassCallsProtectedFromCompanion.kt"); + } + + @TestMetadata("nestedObjectWithSuperclass.kt") + public void testNestedObjectWithSuperclass() throws Exception { + runTest("compiler/testData/codegen/box/objects/nestedObjectWithSuperclass.kt"); + } + + @TestMetadata("object.kt") + public void testObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/object.kt"); + } + + @TestMetadata("objectExtendsInnerAndReferencesOuterMember.kt") + public void testObjectExtendsInnerAndReferencesOuterMember() throws Exception { + runTest("compiler/testData/codegen/box/objects/objectExtendsInnerAndReferencesOuterMember.kt"); + } + + @TestMetadata("objectInLocalAnonymousObject.kt") + public void testObjectInLocalAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/objectInLocalAnonymousObject.kt"); + } + + @TestMetadata("objectInitialization_kt5523.kt") + public void testObjectInitialization_kt5523() throws Exception { + runTest("compiler/testData/codegen/box/objects/objectInitialization_kt5523.kt"); + } + + @TestMetadata("objectLiteral.kt") + public void testObjectLiteral() throws Exception { + runTest("compiler/testData/codegen/box/objects/objectLiteral.kt"); + } + + @TestMetadata("objectLiteralInClass.kt") + public void testObjectLiteralInClass() throws Exception { + runTest("compiler/testData/codegen/box/objects/objectLiteralInClass.kt"); + } + + @TestMetadata("objectLiteralInClosure.kt") + public void testObjectLiteralInClosure() throws Exception { + runTest("compiler/testData/codegen/box/objects/objectLiteralInClosure.kt"); + } + + @TestMetadata("objectVsClassInitialization_kt5291.kt") + public void testObjectVsClassInitialization_kt5291() throws Exception { + runTest("compiler/testData/codegen/box/objects/objectVsClassInitialization_kt5291.kt"); + } + + @TestMetadata("objectWithSuperclass.kt") + public void testObjectWithSuperclass() throws Exception { + runTest("compiler/testData/codegen/box/objects/objectWithSuperclass.kt"); + } + + @TestMetadata("objectWithSuperclassAndTrait.kt") + public void testObjectWithSuperclassAndTrait() throws Exception { + runTest("compiler/testData/codegen/box/objects/objectWithSuperclassAndTrait.kt"); + } + + @TestMetadata("privateExtensionFromInitializer_kt4543.kt") + public void testPrivateExtensionFromInitializer_kt4543() throws Exception { + runTest("compiler/testData/codegen/box/objects/privateExtensionFromInitializer_kt4543.kt"); + } + + @TestMetadata("privateFunctionFromClosureInInitializer_kt5582.kt") + public void testPrivateFunctionFromClosureInInitializer_kt5582() throws Exception { + runTest("compiler/testData/codegen/box/objects/privateFunctionFromClosureInInitializer_kt5582.kt"); + } + + @TestMetadata("receiverInConstructor.kt") + public void testReceiverInConstructor() throws Exception { + runTest("compiler/testData/codegen/box/objects/receiverInConstructor.kt"); + } + + @TestMetadata("safeAccess.kt") + public void testSafeAccess() throws Exception { + runTest("compiler/testData/codegen/box/objects/safeAccess.kt"); + } + + @TestMetadata("selfReferenceToCompanionObjectInAnonymousObjectInSuperConstructorCall.kt") + public void testSelfReferenceToCompanionObjectInAnonymousObjectInSuperConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/objects/selfReferenceToCompanionObjectInAnonymousObjectInSuperConstructorCall.kt"); + } + + @TestMetadata("selfReferenceToCompanionObjectInInlineLambdaInConstructorBody.kt") + public void testSelfReferenceToCompanionObjectInInlineLambdaInConstructorBody() throws Exception { + runTest("compiler/testData/codegen/box/objects/selfReferenceToCompanionObjectInInlineLambdaInConstructorBody.kt"); + } + + @TestMetadata("selfReferenceToCompanionObjectInInlineLambdaInSuperConstructorCall.kt") + public void testSelfReferenceToCompanionObjectInInlineLambdaInSuperConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/objects/selfReferenceToCompanionObjectInInlineLambdaInSuperConstructorCall.kt"); + } + + @TestMetadata("selfReferenceToCompanionObjectInLambdaInSuperConstructorCall.kt") + public void testSelfReferenceToCompanionObjectInLambdaInSuperConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/objects/selfReferenceToCompanionObjectInLambdaInSuperConstructorCall.kt"); + } + + @TestMetadata("selfReferenceToInterfaceCompanionObjectInAnonymousObjectInSuperConstructorCall.kt") + public void testSelfReferenceToInterfaceCompanionObjectInAnonymousObjectInSuperConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/objects/selfReferenceToInterfaceCompanionObjectInAnonymousObjectInSuperConstructorCall.kt"); + } + + @TestMetadata("selfReferenceToInterfaceCompanionObjectInInlineLambdaInConstructorBody.kt") + public void testSelfReferenceToInterfaceCompanionObjectInInlineLambdaInConstructorBody() throws Exception { + runTest("compiler/testData/codegen/box/objects/selfReferenceToInterfaceCompanionObjectInInlineLambdaInConstructorBody.kt"); + } + + @TestMetadata("selfReferenceToInterfaceCompanionObjectInInlineLambdaInSuperConstructorCall.kt") + public void testSelfReferenceToInterfaceCompanionObjectInInlineLambdaInSuperConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/objects/selfReferenceToInterfaceCompanionObjectInInlineLambdaInSuperConstructorCall.kt"); + } + + @TestMetadata("selfReferenceToInterfaceCompanionObjectInLambdaInSuperConstructorCall.kt") + public void testSelfReferenceToInterfaceCompanionObjectInLambdaInSuperConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/objects/selfReferenceToInterfaceCompanionObjectInLambdaInSuperConstructorCall.kt"); + } + + @TestMetadata("selfReferenceToObjectInAnonymousObjectInSuperConstructorCall.kt") + public void testSelfReferenceToObjectInAnonymousObjectInSuperConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/objects/selfReferenceToObjectInAnonymousObjectInSuperConstructorCall.kt"); + } + + @TestMetadata("selfReferenceToObjectInInlineLambdaInConstructorBody.kt") + public void testSelfReferenceToObjectInInlineLambdaInConstructorBody() throws Exception { + runTest("compiler/testData/codegen/box/objects/selfReferenceToObjectInInlineLambdaInConstructorBody.kt"); + } + + @TestMetadata("selfReferenceToObjectInInlineLambdaInSuperConstructorCall.kt") + public void testSelfReferenceToObjectInInlineLambdaInSuperConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/objects/selfReferenceToObjectInInlineLambdaInSuperConstructorCall.kt"); + } + + @TestMetadata("selfReferenceToObjectInLambdaInSuperConstructorCall.kt") + public void testSelfReferenceToObjectInLambdaInSuperConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/objects/selfReferenceToObjectInLambdaInSuperConstructorCall.kt"); + } + + @TestMetadata("simpleObject.kt") + public void testSimpleObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/simpleObject.kt"); + } + + @TestMetadata("thisInConstructor.kt") + public void testThisInConstructor() throws Exception { + runTest("compiler/testData/codegen/box/objects/thisInConstructor.kt"); + } + + @TestMetadata("thisRefToObjectInNestedClassConstructorCall.kt") + public void testThisRefToObjectInNestedClassConstructorCall() throws Exception { + runTest("compiler/testData/codegen/box/objects/thisRefToObjectInNestedClassConstructorCall.kt"); + } + + @TestMetadata("useAnonymousObjectAsIterator.kt") + public void testUseAnonymousObjectAsIterator() throws Exception { + runTest("compiler/testData/codegen/box/objects/useAnonymousObjectAsIterator.kt"); + } + + @TestMetadata("useImportedMember.kt") + public void testUseImportedMember() throws Exception { + runTest("compiler/testData/codegen/box/objects/useImportedMember.kt"); + } + + @TestMetadata("useImportedMemberFromCompanion.kt") + public void testUseImportedMemberFromCompanion() throws Exception { + runTest("compiler/testData/codegen/box/objects/useImportedMemberFromCompanion.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/objects/companionObjectAccess") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class CompanionObjectAccess extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCompanionObjectAccess() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objects/companionObjectAccess"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("kt27117.kt") + public void testKt27117() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/kt27117.kt"); + } + + @TestMetadata("kt27117_lv12.kt") + public void testKt27117_lv12() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/kt27117_lv12.kt"); + } + + @TestMetadata("kt27117_lv13.kt") + public void testKt27117_lv13() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/kt27117_lv13.kt"); + } + + @TestMetadata("kt27121.kt") + public void testKt27121() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/kt27121.kt"); + } + + @TestMetadata("kt27121_lv12.kt") + public void testKt27121_lv12() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/kt27121_lv12.kt"); + } + + @TestMetadata("kt27121_lv13.kt") + public void testKt27121_lv13() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/kt27121_lv13.kt"); + } + + @TestMetadata("privateCompanionObjectAccessedFromAnonymousObjectInNestedClass.kt") + public void testPrivateCompanionObjectAccessedFromAnonymousObjectInNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/privateCompanionObjectAccessedFromAnonymousObjectInNestedClass.kt"); + } + + @TestMetadata("privateCompanionObjectAccessedFromInitBlock.kt") + public void testPrivateCompanionObjectAccessedFromInitBlock() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/privateCompanionObjectAccessedFromInitBlock.kt"); + } + + @TestMetadata("privateCompanionObjectAccessedFromInitBlockOfNestedClass.kt") + public void testPrivateCompanionObjectAccessedFromInitBlockOfNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/privateCompanionObjectAccessedFromInitBlockOfNestedClass.kt"); + } + + @TestMetadata("privateCompanionObjectAccessedFromInlineLambdaInNestedClass.kt") + public void testPrivateCompanionObjectAccessedFromInlineLambdaInNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/privateCompanionObjectAccessedFromInlineLambdaInNestedClass.kt"); + } + + @TestMetadata("privateCompanionObjectAccessedFromLambdaInNestedClass.kt") + public void testPrivateCompanionObjectAccessedFromLambdaInNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/privateCompanionObjectAccessedFromLambdaInNestedClass.kt"); + } + + @TestMetadata("privateCompanionObjectAccessedFromMethodInlinedInNestedClass.kt") + public void testPrivateCompanionObjectAccessedFromMethodInlinedInNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/privateCompanionObjectAccessedFromMethodInlinedInNestedClass.kt"); + } + + @TestMetadata("privateCompanionObjectAccessedFromNestedClass.kt") + public void testPrivateCompanionObjectAccessedFromNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/privateCompanionObjectAccessedFromNestedClass.kt"); + } + + @TestMetadata("privateCompanionObjectAccessedFromNestedClassSeveralTimes.kt") + public void testPrivateCompanionObjectAccessedFromNestedClassSeveralTimes() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/privateCompanionObjectAccessedFromNestedClassSeveralTimes.kt"); + } + + @TestMetadata("privateCompanionObjectUsedInNestedClass.kt") + public void testPrivateCompanionObjectUsedInNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/privateCompanionObjectUsedInNestedClass.kt"); + } + + @TestMetadata("protectedCompanionObjectAccessedFromNestedClass.kt") + public void testProtectedCompanionObjectAccessedFromNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/protectedCompanionObjectAccessedFromNestedClass.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class MultipleCompanionsWithAccessors extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("accessFromInlineLambda.kt") + public void testAccessFromInlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors/accessFromInlineLambda.kt"); + } + + public void testAllFilesPresentInMultipleCompanionsWithAccessors() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("anonymousObjectInPropertyInitializer.kt") + public void testAnonymousObjectInPropertyInitializer() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors/anonymousObjectInPropertyInitializer.kt"); + } + + @TestMetadata("fromAnonymousObjectInNestedClass.kt") + public void testFromAnonymousObjectInNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors/fromAnonymousObjectInNestedClass.kt"); + } + + @TestMetadata("fromInitBlock.kt") + public void testFromInitBlock() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors/fromInitBlock.kt"); + } + + @TestMetadata("fromInitBlockOfNestedClass.kt") + public void testFromInitBlockOfNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors/fromInitBlockOfNestedClass.kt"); + } + + @TestMetadata("fromInlineLambdaInNestedClass.kt") + public void testFromInlineLambdaInNestedClass() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors/fromInlineLambdaInNestedClass.kt"); + } + + @TestMetadata("inheritedProtectedCompanionAndOwnPrivateCompanion.kt") + public void testInheritedProtectedCompanionAndOwnPrivateCompanion() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors/inheritedProtectedCompanionAndOwnPrivateCompanion.kt"); + } + + @TestMetadata("inheritedProtectedCompanionsReferencedByName.kt") + public void testInheritedProtectedCompanionsReferencedByName() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors/inheritedProtectedCompanionsReferencedByName.kt"); + } + + @TestMetadata("lambdaInPropertyInitializer.kt") + public void testLambdaInPropertyInitializer() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors/lambdaInPropertyInitializer.kt"); + } + + @TestMetadata("twoInheritedProtectedCompanions.kt") + public void testTwoInheritedProtectedCompanions() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors/twoInheritedProtectedCompanions.kt"); + } + + @TestMetadata("withCompanionObjectBase.kt") + public void testWithCompanionObjectBase() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors/withCompanionObjectBase.kt"); + } + + @TestMetadata("withMultipleNestedCompanionObjectBases.kt") + public void testWithMultipleNestedCompanionObjectBases() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors/withMultipleNestedCompanionObjectBases.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class PrimitiveCompanion extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInPrimitiveCompanion() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("byteCompanionObject.kt") + public void testByteCompanionObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/byteCompanionObject.kt"); + } + + @TestMetadata("charCompanionObject.kt") + public void testCharCompanionObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/charCompanionObject.kt"); + } + + @TestMetadata("doubleCompanionObject.kt") + public void testDoubleCompanionObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/doubleCompanionObject.kt"); + } + + @TestMetadata("floatCompanionObject.kt") + public void testFloatCompanionObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/floatCompanionObject.kt"); + } + + @TestMetadata("intCompanionObject.kt") + public void testIntCompanionObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/intCompanionObject.kt"); + } + + @TestMetadata("longCompanionObject.kt") + public void testLongCompanionObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/longCompanionObject.kt"); + } + + @TestMetadata("shortCompanionObject.kt") + public void testShortCompanionObject() throws Exception { + runTest("compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/shortCompanionObject.kt"); + } + } + } + } + + @TestMetadata("compiler/testData/codegen/box/oldLanguageVersions") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class OldLanguageVersions extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInOldLanguageVersions() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/oldLanguageVersions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("dataClassEqualsHashCodeToString.kt") + public void testDataClassEqualsHashCodeToString() throws Exception { + runTest("compiler/testData/codegen/box/oldLanguageVersions/dataClassEqualsHashCodeToString.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/oldLanguageVersions/controlStructures") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ControlStructures extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInControlStructures() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/oldLanguageVersions/controlStructures"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/oldLanguageVersions/controlStructures/forInArray") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ForInArray extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInForInArray() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/oldLanguageVersions/controlStructures/forInArray"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("forInArrayWithArrayVarUpdatedInLoopBody12.kt") + public void testForInArrayWithArrayVarUpdatedInLoopBody12() throws Exception { + runTest("compiler/testData/codegen/box/oldLanguageVersions/controlStructures/forInArray/forInArrayWithArrayVarUpdatedInLoopBody12.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/oldLanguageVersions/coroutines") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Coroutines extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCoroutines() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/oldLanguageVersions/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/oldLanguageVersions/coroutines/controlFlow") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ControlFlow extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInControlFlow() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/oldLanguageVersions/coroutines/controlFlow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/oldLanguageVersions/coroutines/featureIntersection") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class FeatureIntersection extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInFeatureIntersection() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/oldLanguageVersions/coroutines/featureIntersection"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("suspendFunction_1_2.kt") + public void testSuspendFunction_1_2() throws Exception { + runTest("compiler/testData/codegen/box/oldLanguageVersions/coroutines/featureIntersection/suspendFunction_1_2.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/oldLanguageVersions/coroutines/multiModule") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class MultiModule extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInMultiModule() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/oldLanguageVersions/coroutines/multiModule"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/oldLanguageVersions/coroutines/reflect") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Reflect extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInReflect() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/oldLanguageVersions/coroutines/reflect"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/oldLanguageVersions/coroutines/suspendFunctionAsCoroutine") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class SuspendFunctionAsCoroutine extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSuspendFunctionAsCoroutine() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/oldLanguageVersions/coroutines/suspendFunctionAsCoroutine"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/oldLanguageVersions/functions") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Functions extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInFunctions() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/oldLanguageVersions/functions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/oldLanguageVersions/functions/bigArity") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class BigArity extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInBigArity() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/oldLanguageVersions/functions/bigArity"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("noBigFunctionTypes.kt") + public void testNoBigFunctionTypes() throws Exception { + runTest("compiler/testData/codegen/box/oldLanguageVersions/functions/bigArity/noBigFunctionTypes.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/oldLanguageVersions/ieee754") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Ieee754 extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInIeee754() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/oldLanguageVersions/ieee754"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("nullableDoubleEquals10.kt") + public void testNullableDoubleEquals10() throws Exception { + runTest("compiler/testData/codegen/box/oldLanguageVersions/ieee754/nullableDoubleEquals10.kt"); + } + + @TestMetadata("nullableDoubleNotEquals10.kt") + public void testNullableDoubleNotEquals10() throws Exception { + runTest("compiler/testData/codegen/box/oldLanguageVersions/ieee754/nullableDoubleNotEquals10.kt"); + } + + @TestMetadata("nullableFloatEquals10.kt") + public void testNullableFloatEquals10() throws Exception { + runTest("compiler/testData/codegen/box/oldLanguageVersions/ieee754/nullableFloatEquals10.kt"); + } + + @TestMetadata("nullableFloatNotEquals10.kt") + public void testNullableFloatNotEquals10() throws Exception { + runTest("compiler/testData/codegen/box/oldLanguageVersions/ieee754/nullableFloatNotEquals10.kt"); + } + + @TestMetadata("whenNullableSmartCast10.kt") + public void testWhenNullableSmartCast10() throws Exception { + runTest("compiler/testData/codegen/box/oldLanguageVersions/ieee754/whenNullableSmartCast10.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/oldLanguageVersions/javaInterop") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class JavaInterop extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInJavaInterop() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/oldLanguageVersions/javaInterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/oldLanguageVersions/javaInterop/notNullAssertions") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NotNullAssertions extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNotNullAssertions() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/oldLanguageVersions/javaInterop/notNullAssertions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/oldLanguageVersions/operatorConventions") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class OperatorConventions extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInOperatorConventions() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/oldLanguageVersions/operatorConventions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/oldLanguageVersions/platformTypes") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class PlatformTypes extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInPlatformTypes() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/oldLanguageVersions/platformTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/oldLanguageVersions/platformTypes/primitives") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Primitives extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInPrimitives() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/oldLanguageVersions/platformTypes/primitives"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + } + } + + @TestMetadata("compiler/testData/codegen/box/operatorConventions") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class OperatorConventions extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInOperatorConventions() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/operatorConventions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("annotatedAssignment.kt") + public void testAnnotatedAssignment() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/annotatedAssignment.kt"); + } + + @TestMetadata("assignmentOperations.kt") + public void testAssignmentOperations() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/assignmentOperations.kt"); + } + + @TestMetadata("augmentedAssignmentInInitializer.kt") + public void testAugmentedAssignmentInInitializer() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/augmentedAssignmentInInitializer.kt"); + } + + @TestMetadata("augmentedAssignmentWithArrayLHS.kt") + public void testAugmentedAssignmentWithArrayLHS() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/augmentedAssignmentWithArrayLHS.kt"); + } + + @TestMetadata("genericArrayAccessCall.kt") + public void testGenericArrayAccessCall() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/genericArrayAccessCall.kt"); + } + + @TestMetadata("incDecOnObject.kt") + public void testIncDecOnObject() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/incDecOnObject.kt"); + } + + @TestMetadata("infixFunctionOverBuiltinMember.kt") + public void testInfixFunctionOverBuiltinMember() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/infixFunctionOverBuiltinMember.kt"); + } + + @TestMetadata("kt14201.kt") + public void testKt14201() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/kt14201.kt"); + } + + @TestMetadata("kt14201_2.kt") + public void testKt14201_2() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/kt14201_2.kt"); + } + + @TestMetadata("kt14227.kt") + public void testKt14227() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/kt14227.kt"); + } + + @TestMetadata("kt20387.kt") + public void testKt20387() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/kt20387.kt"); + } + + @TestMetadata("kt4152.kt") + public void testKt4152() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/kt4152.kt"); + } + + @TestMetadata("kt4987.kt") + public void testKt4987() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/kt4987.kt"); + } + + @TestMetadata("nestedMaps.kt") + public void testNestedMaps() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/nestedMaps.kt"); + } + + @TestMetadata("operatorSetLambda.kt") + public void testOperatorSetLambda() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/operatorSetLambda.kt"); + } + + @TestMetadata("overloadedSet.kt") + public void testOverloadedSet() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/overloadedSet.kt"); + } + + @TestMetadata("plusAssignWithComplexRHS.kt") + public void testPlusAssignWithComplexRHS() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/plusAssignWithComplexRHS.kt"); + } + + @TestMetadata("plusExplicit.kt") + public void testPlusExplicit() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/plusExplicit.kt"); + } + + @TestMetadata("remAssignmentOperation.kt") + public void testRemAssignmentOperation() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/remAssignmentOperation.kt"); + } + + @TestMetadata("remOverModOperation.kt") + public void testRemOverModOperation() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/remOverModOperation.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/operatorConventions/compareTo") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class CompareTo extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCompareTo() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/operatorConventions/compareTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("boolean.kt") + public void testBoolean() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/compareTo/boolean.kt"); + } + + @TestMetadata("comparable.kt") + public void testComparable() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/compareTo/comparable.kt"); + } + + @TestMetadata("doubleInt.kt") + public void testDoubleInt() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/compareTo/doubleInt.kt"); + } + + @TestMetadata("doubleLong.kt") + public void testDoubleLong() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/compareTo/doubleLong.kt"); + } + + @TestMetadata("extensionArray.kt") + public void testExtensionArray() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/compareTo/extensionArray.kt"); + } + + @TestMetadata("extensionObject.kt") + public void testExtensionObject() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/compareTo/extensionObject.kt"); + } + + @TestMetadata("intDouble.kt") + public void testIntDouble() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/compareTo/intDouble.kt"); + } + + @TestMetadata("intLong.kt") + public void testIntLong() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/compareTo/intLong.kt"); + } + + @TestMetadata("longDouble.kt") + public void testLongDouble() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/compareTo/longDouble.kt"); + } + + @TestMetadata("longInt.kt") + public void testLongInt() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/compareTo/longInt.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/optimizations") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Optimizations extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInOptimizations() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/optimizations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("kt20844.kt") + public void testKt20844() throws Exception { + runTest("compiler/testData/codegen/box/optimizations/kt20844.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/package") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Package extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInPackage() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/package"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("boxPrimitiveTypeInClinit.kt") + public void testBoxPrimitiveTypeInClinit() throws Exception { + runTest("compiler/testData/codegen/box/package/boxPrimitiveTypeInClinit.kt"); + } + + @TestMetadata("checkCast.kt") + public void testCheckCast() throws Exception { + runTest("compiler/testData/codegen/box/package/checkCast.kt"); + } + + @TestMetadata("incrementProperty.kt") + public void testIncrementProperty() throws Exception { + runTest("compiler/testData/codegen/box/package/incrementProperty.kt"); + } + + @TestMetadata("initializationOrder.kt") + public void testInitializationOrder() throws Exception { + runTest("compiler/testData/codegen/box/package/initializationOrder.kt"); + } + + @TestMetadata("invokespecial.kt") + public void testInvokespecial() throws Exception { + runTest("compiler/testData/codegen/box/package/invokespecial.kt"); + } + + @TestMetadata("nullablePrimitiveNoFieldInitializer.kt") + public void testNullablePrimitiveNoFieldInitializer() throws Exception { + runTest("compiler/testData/codegen/box/package/nullablePrimitiveNoFieldInitializer.kt"); + } + + @TestMetadata("packageLocalClassNotImportedWithDefaultImport.kt") + public void testPackageLocalClassNotImportedWithDefaultImport() throws Exception { + runTest("compiler/testData/codegen/box/package/packageLocalClassNotImportedWithDefaultImport.kt"); + } + + @TestMetadata("packageQualifiedMethod.kt") + public void testPackageQualifiedMethod() throws Exception { + runTest("compiler/testData/codegen/box/package/packageQualifiedMethod.kt"); + } + + @TestMetadata("privateMembersInImportList.kt") + public void testPrivateMembersInImportList() throws Exception { + runTest("compiler/testData/codegen/box/package/privateMembersInImportList.kt"); + } + + @TestMetadata("privateTopLevelPropAndVarInInner.kt") + public void testPrivateTopLevelPropAndVarInInner() throws Exception { + runTest("compiler/testData/codegen/box/package/privateTopLevelPropAndVarInInner.kt"); + } + + @TestMetadata("referenceWithTheSameNameAsPackage.kt") + public void testReferenceWithTheSameNameAsPackage() throws Exception { + runTest("compiler/testData/codegen/box/package/referenceWithTheSameNameAsPackage.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/parametersMetadata") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ParametersMetadata extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception { + KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInParametersMetadata() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/parametersMetadata"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/platformTypes") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class PlatformTypes extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInPlatformTypes() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/platformTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("inferenceFlexibleTToNullable.kt") + public void testInferenceFlexibleTToNullable() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/inferenceFlexibleTToNullable.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/platformTypes/primitives") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Primitives extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInPrimitives() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/platformTypes/primitives"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("assign.kt") + public void testAssign() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/assign.kt"); + } + + @TestMetadata("compareTo.kt") + public void testCompareTo() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/compareTo.kt"); + } + + @TestMetadata("dec.kt") + public void testDec() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/dec.kt"); + } + + @TestMetadata("div.kt") + public void testDiv() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/div.kt"); + } + + @TestMetadata("equals.kt") + public void testEquals() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/equals.kt"); + } + + @TestMetadata("hashCode.kt") + public void testHashCode() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/hashCode.kt"); + } + + @TestMetadata("inc.kt") + public void testInc() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/inc.kt"); + } + + @TestMetadata("minus.kt") + public void testMinus() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/minus.kt"); + } + + @TestMetadata("mod.kt") + public void testMod() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/mod.kt"); + } + + @TestMetadata("not.kt") + public void testNot() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/not.kt"); + } + + @TestMetadata("notEquals.kt") + public void testNotEquals() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/notEquals.kt"); + } + + @TestMetadata("plus.kt") + public void testPlus() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/plus.kt"); + } + + @TestMetadata("plusAssign.kt") + public void testPlusAssign() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/plusAssign.kt"); + } + + @TestMetadata("rangeTo.kt") + public void testRangeTo() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/rangeTo.kt"); + } + + @TestMetadata("times.kt") + public void testTimes() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/times.kt"); + } + + @TestMetadata("toShort.kt") + public void testToShort() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/toShort.kt"); + } + + @TestMetadata("toString.kt") + public void testToString() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/toString.kt"); + } + + @TestMetadata("unaryMinus.kt") + public void testUnaryMinus() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/unaryMinus.kt"); + } + + @TestMetadata("unaryPlus.kt") + public void testUnaryPlus() throws Exception { + runTest("compiler/testData/codegen/box/platformTypes/primitives/unaryPlus.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/polymorphicSignature") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class PolymorphicSignature extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInPolymorphicSignature() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/polymorphicSignature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/primitiveTypes") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class PrimitiveTypes extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInPrimitiveTypes() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/primitiveTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("comparisonWithNullCallsFun.kt") + public void testComparisonWithNullCallsFun() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/comparisonWithNullCallsFun.kt"); + } + + @TestMetadata("conversions.kt") + public void testConversions() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/conversions.kt"); + } + + @TestMetadata("ea35963.kt") + public void testEa35963() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/ea35963.kt"); + } + + @TestMetadata("equalsHashCodeToString.kt") + public void testEqualsHashCodeToString() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalsHashCodeToString.kt"); + } + + @TestMetadata("incrementByteCharShort.kt") + public void testIncrementByteCharShort() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/incrementByteCharShort.kt"); + } + + @TestMetadata("intLiteralIsNotNull.kt") + public void testIntLiteralIsNotNull() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/intLiteralIsNotNull.kt"); + } + + @TestMetadata("kt1054.kt") + public void testKt1054() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt1054.kt"); + } + + @TestMetadata("kt1055.kt") + public void testKt1055() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt1055.kt"); + } + + @TestMetadata("kt1093.kt") + public void testKt1093() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt1093.kt"); + } + + @TestMetadata("kt13023.kt") + public void testKt13023() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt13023.kt"); + } + + @TestMetadata("kt14868.kt") + public void testKt14868() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt14868.kt"); + } + + @TestMetadata("kt1508.kt") + public void testKt1508() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt1508.kt"); + } + + @TestMetadata("kt1634.kt") + public void testKt1634() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt1634.kt"); + } + + @TestMetadata("kt16732.kt") + public void testKt16732() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt16732.kt"); + } + + @TestMetadata("kt2251.kt") + public void testKt2251() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt2251.kt"); + } + + @TestMetadata("kt2269.kt") + public void testKt2269() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt2269.kt"); + } + + @TestMetadata("kt2269NotOptimizable.kt") + public void testKt2269NotOptimizable() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt2269NotOptimizable.kt"); + } + + @TestMetadata("kt2275.kt") + public void testKt2275() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt2275.kt"); + } + + @TestMetadata("kt239.kt") + public void testKt239() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt239.kt"); + } + + @TestMetadata("kt242.kt") + public void testKt242() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt242.kt"); + } + + @TestMetadata("kt248.kt") + public void testKt248() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt248.kt"); + } + + @TestMetadata("kt2768.kt") + public void testKt2768() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt2768.kt"); + } + + @TestMetadata("kt2794.kt") + public void testKt2794() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt2794.kt"); + } + + @TestMetadata("kt3078.kt") + public void testKt3078() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt3078.kt"); + } + + @TestMetadata("kt3517.kt") + public void testKt3517() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt3517.kt"); + } + + @TestMetadata("kt3576.kt") + public void testKt3576() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt3576.kt"); + } + + @TestMetadata("kt3613.kt") + public void testKt3613() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt3613.kt"); + } + + @TestMetadata("kt37505.kt") + public void testKt37505() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt37505.kt"); + } + + @TestMetadata("kt4097.kt") + public void testKt4097() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt4097.kt"); + } + + @TestMetadata("kt4098.kt") + public void testKt4098() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt4098.kt"); + } + + @TestMetadata("kt4210.kt") + public void testKt4210() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt4210.kt"); + } + + @TestMetadata("kt4251.kt") + public void testKt4251() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt4251.kt"); + } + + @TestMetadata("kt446.kt") + public void testKt446() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt446.kt"); + } + + @TestMetadata("kt518.kt") + public void testKt518() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt518.kt"); + } + + @TestMetadata("kt6590_identityEquals.kt") + public void testKt6590_identityEquals() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt6590_identityEquals.kt"); + } + + @TestMetadata("kt665.kt") + public void testKt665() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt665.kt"); + } + + @TestMetadata("kt684.kt") + public void testKt684() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt684.kt"); + } + + @TestMetadata("kt711.kt") + public void testKt711() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt711.kt"); + } + + @TestMetadata("kt737.kt") + public void testKt737() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt737.kt"); + } + + @TestMetadata("kt752.kt") + public void testKt752() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt752.kt"); + } + + @TestMetadata("kt753.kt") + public void testKt753() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt753.kt"); + } + + @TestMetadata("kt756.kt") + public void testKt756() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt756.kt"); + } + + @TestMetadata("kt757.kt") + public void testKt757() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt757.kt"); + } + + @TestMetadata("kt828.kt") + public void testKt828() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt828.kt"); + } + + @TestMetadata("kt877.kt") + public void testKt877() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt877.kt"); + } + + @TestMetadata("kt882.kt") + public void testKt882() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt882.kt"); + } + + @TestMetadata("kt887.kt") + public void testKt887() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt887.kt"); + } + + @TestMetadata("kt935.kt") + public void testKt935() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/kt935.kt"); + } + + @TestMetadata("nullAsNullableIntIsNull.kt") + public void testNullAsNullableIntIsNull() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/nullAsNullableIntIsNull.kt"); + } + + @TestMetadata("nullableAsIndex.kt") + public void testNullableAsIndex() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/nullableAsIndex.kt"); + } + + @TestMetadata("nullableCharBoolean.kt") + public void testNullableCharBoolean() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/nullableCharBoolean.kt"); + } + + @TestMetadata("numberEqualsHashCodeToString.kt") + public void testNumberEqualsHashCodeToString() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/numberEqualsHashCodeToString.kt"); + } + + @TestMetadata("rangeTo.kt") + public void testRangeTo() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/rangeTo.kt"); + } + + @TestMetadata("stringEqualsHashCodeToString.kt") + public void testStringEqualsHashCodeToString() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/stringEqualsHashCodeToString.kt"); + } + + @TestMetadata("substituteIntForGeneric.kt") + public void testSubstituteIntForGeneric() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/substituteIntForGeneric.kt"); + } + + @TestMetadata("unboxComparable.kt") + public void testUnboxComparable() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/unboxComparable.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/primitiveTypes/equalityWithObject") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class EqualityWithObject extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInEqualityWithObject() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/primitiveTypes/equalityWithObject"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("boxedEqPrimitiveEvaluationOrder.kt") + public void testBoxedEqPrimitiveEvaluationOrder() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/boxedEqPrimitiveEvaluationOrder.kt"); + } + + @TestMetadata("boxedLongEqualsLong.kt") + public void testBoxedLongEqualsLong() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/boxedLongEqualsLong.kt"); + } + + @TestMetadata("intEqualsNull.kt") + public void testIntEqualsNull() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/intEqualsNull.kt"); + } + + @TestMetadata("intEqualsNullableInt.kt") + public void testIntEqualsNullableInt() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/intEqualsNullableInt.kt"); + } + + @TestMetadata("intEqualsNullableIntWithSmartCasts.kt") + public void testIntEqualsNullableIntWithSmartCasts() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/intEqualsNullableIntWithSmartCasts.kt"); + } + + @TestMetadata("objectWithAsymmetricEqualsEqPrimitive.kt") + public void testObjectWithAsymmetricEqualsEqPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/objectWithAsymmetricEqualsEqPrimitive.kt"); + } + + @TestMetadata("whenIntAsNullableAny.kt") + public void testWhenIntAsNullableAny() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/whenIntAsNullableAny.kt"); + } + + @TestMetadata("whenNullableBoxed.kt") + public void testWhenNullableBoxed() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/whenNullableBoxed.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Generated extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInGenerated() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("boxedEqPrimitiveBoolean.kt") + public void testBoxedEqPrimitiveBoolean() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/boxedEqPrimitiveBoolean.kt"); + } + + @TestMetadata("boxedEqPrimitiveByte.kt") + public void testBoxedEqPrimitiveByte() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/boxedEqPrimitiveByte.kt"); + } + + @TestMetadata("boxedEqPrimitiveChar.kt") + public void testBoxedEqPrimitiveChar() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/boxedEqPrimitiveChar.kt"); + } + + @TestMetadata("boxedEqPrimitiveInt.kt") + public void testBoxedEqPrimitiveInt() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/boxedEqPrimitiveInt.kt"); + } + + @TestMetadata("boxedEqPrimitiveLong.kt") + public void testBoxedEqPrimitiveLong() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/boxedEqPrimitiveLong.kt"); + } + + @TestMetadata("boxedEqPrimitiveShort.kt") + public void testBoxedEqPrimitiveShort() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/boxedEqPrimitiveShort.kt"); + } + + @TestMetadata("primitiveEqBoxedBoolean.kt") + public void testPrimitiveEqBoxedBoolean() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqBoxedBoolean.kt"); + } + + @TestMetadata("primitiveEqBoxedByte.kt") + public void testPrimitiveEqBoxedByte() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqBoxedByte.kt"); + } + + @TestMetadata("primitiveEqBoxedChar.kt") + public void testPrimitiveEqBoxedChar() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqBoxedChar.kt"); + } + + @TestMetadata("primitiveEqBoxedInt.kt") + public void testPrimitiveEqBoxedInt() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqBoxedInt.kt"); + } + + @TestMetadata("primitiveEqBoxedLong.kt") + public void testPrimitiveEqBoxedLong() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqBoxedLong.kt"); + } + + @TestMetadata("primitiveEqBoxedShort.kt") + public void testPrimitiveEqBoxedShort() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqBoxedShort.kt"); + } + + @TestMetadata("primitiveEqObjectBoolean.kt") + public void testPrimitiveEqObjectBoolean() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqObjectBoolean.kt"); + } + + @TestMetadata("primitiveEqObjectByte.kt") + public void testPrimitiveEqObjectByte() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqObjectByte.kt"); + } + + @TestMetadata("primitiveEqObjectChar.kt") + public void testPrimitiveEqObjectChar() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqObjectChar.kt"); + } + + @TestMetadata("primitiveEqObjectInt.kt") + public void testPrimitiveEqObjectInt() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqObjectInt.kt"); + } + + @TestMetadata("primitiveEqObjectLong.kt") + public void testPrimitiveEqObjectLong() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqObjectLong.kt"); + } + + @TestMetadata("primitiveEqObjectShort.kt") + public void testPrimitiveEqObjectShort() throws Exception { + runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqObjectShort.kt"); + } + } + } + } + + @TestMetadata("compiler/testData/codegen/box/private") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Private extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInPrivate() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/private"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("arrayConvention.kt") + public void testArrayConvention() throws Exception { + runTest("compiler/testData/codegen/box/private/arrayConvention.kt"); + } + + @TestMetadata("kt9855.kt") + public void testKt9855() throws Exception { + runTest("compiler/testData/codegen/box/private/kt9855.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/privateConstructors") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class PrivateConstructors extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInPrivateConstructors() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/privateConstructors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("base.kt") + public void testBase() throws Exception { + runTest("compiler/testData/codegen/box/privateConstructors/base.kt"); + } + + @TestMetadata("captured.kt") + public void testCaptured() throws Exception { + runTest("compiler/testData/codegen/box/privateConstructors/captured.kt"); + } + + @TestMetadata("companion.kt") + public void testCompanion() throws Exception { + runTest("compiler/testData/codegen/box/privateConstructors/companion.kt"); + } + + @TestMetadata("inline.kt") + public void testInline() throws Exception { + runTest("compiler/testData/codegen/box/privateConstructors/inline.kt"); + } + + @TestMetadata("inner.kt") + public void testInner() throws Exception { + runTest("compiler/testData/codegen/box/privateConstructors/inner.kt"); + } + + @TestMetadata("kt4860.kt") + public void testKt4860() throws Exception { + runTest("compiler/testData/codegen/box/privateConstructors/kt4860.kt"); + } + + @TestMetadata("secondary.kt") + public void testSecondary() throws Exception { + runTest("compiler/testData/codegen/box/privateConstructors/secondary.kt"); + } + + @TestMetadata("withArguments.kt") + public void testWithArguments() throws Exception { + runTest("compiler/testData/codegen/box/privateConstructors/withArguments.kt"); + } + + @TestMetadata("withDefault.kt") + public void testWithDefault() throws Exception { + runTest("compiler/testData/codegen/box/privateConstructors/withDefault.kt"); + } + + @TestMetadata("withLinkedClasses.kt") + public void testWithLinkedClasses() throws Exception { + runTest("compiler/testData/codegen/box/privateConstructors/withLinkedClasses.kt"); + } + + @TestMetadata("withLinkedObjects.kt") + public void testWithLinkedObjects() throws Exception { + runTest("compiler/testData/codegen/box/privateConstructors/withLinkedObjects.kt"); + } + + @TestMetadata("withVarargs.kt") + public void testWithVarargs() throws Exception { + runTest("compiler/testData/codegen/box/privateConstructors/withVarargs.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/properties") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Properties extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("accessToPrivateProperty.kt") + public void testAccessToPrivateProperty() throws Exception { + runTest("compiler/testData/codegen/box/properties/accessToPrivateProperty.kt"); + } + + @TestMetadata("accessToPrivateSetter.kt") + public void testAccessToPrivateSetter() throws Exception { + runTest("compiler/testData/codegen/box/properties/accessToPrivateSetter.kt"); + } + + public void testAllFilesPresentInProperties() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("augmentedAssignmentsAndIncrements.kt") + public void testAugmentedAssignmentsAndIncrements() throws Exception { + runTest("compiler/testData/codegen/box/properties/augmentedAssignmentsAndIncrements.kt"); + } + + @TestMetadata("classArtificialFieldInsideNested.kt") + public void testClassArtificialFieldInsideNested() throws Exception { + runTest("compiler/testData/codegen/box/properties/classArtificialFieldInsideNested.kt"); + } + + @TestMetadata("classFieldInsideLambda.kt") + public void testClassFieldInsideLambda() throws Exception { + runTest("compiler/testData/codegen/box/properties/classFieldInsideLambda.kt"); + } + + @TestMetadata("classFieldInsideLocalInSetter.kt") + public void testClassFieldInsideLocalInSetter() throws Exception { + runTest("compiler/testData/codegen/box/properties/classFieldInsideLocalInSetter.kt"); + } + + @TestMetadata("classFieldInsideNested.kt") + public void testClassFieldInsideNested() throws Exception { + runTest("compiler/testData/codegen/box/properties/classFieldInsideNested.kt"); + } + + @TestMetadata("classFieldInsideNestedLambda.kt") + public void testClassFieldInsideNestedLambda() throws Exception { + runTest("compiler/testData/codegen/box/properties/classFieldInsideNestedLambda.kt"); + } + + @TestMetadata("classFieldInsideNestedNestedLambda.kt") + public void testClassFieldInsideNestedNestedLambda() throws Exception { + runTest("compiler/testData/codegen/box/properties/classFieldInsideNestedNestedLambda.kt"); + } + + @TestMetadata("classObjectProperties.kt") + public void testClassObjectProperties() throws Exception { + runTest("compiler/testData/codegen/box/properties/classObjectProperties.kt"); + } + + @TestMetadata("classPrivateArtificialFieldInsideNested.kt") + public void testClassPrivateArtificialFieldInsideNested() throws Exception { + runTest("compiler/testData/codegen/box/properties/classPrivateArtificialFieldInsideNested.kt"); + } + + @TestMetadata("companionFieldInsideLambda.kt") + public void testCompanionFieldInsideLambda() throws Exception { + runTest("compiler/testData/codegen/box/properties/companionFieldInsideLambda.kt"); + } + + @TestMetadata("companionPrivateField.kt") + public void testCompanionPrivateField() throws Exception { + runTest("compiler/testData/codegen/box/properties/companionPrivateField.kt"); + } + + @TestMetadata("companionPrivateFieldInsideLambda.kt") + public void testCompanionPrivateFieldInsideLambda() throws Exception { + runTest("compiler/testData/codegen/box/properties/companionPrivateFieldInsideLambda.kt"); + } + + @TestMetadata("complexPropertyInitializer.kt") + public void testComplexPropertyInitializer() throws Exception { + runTest("compiler/testData/codegen/box/properties/complexPropertyInitializer.kt"); + } + + @TestMetadata("field.kt") + public void testField() throws Exception { + runTest("compiler/testData/codegen/box/properties/field.kt"); + } + + @TestMetadata("fieldInClass.kt") + public void testFieldInClass() throws Exception { + runTest("compiler/testData/codegen/box/properties/fieldInClass.kt"); + } + + @TestMetadata("fieldInsideField.kt") + public void testFieldInsideField() throws Exception { + runTest("compiler/testData/codegen/box/properties/fieldInsideField.kt"); + } + + @TestMetadata("fieldInsideLambda.kt") + public void testFieldInsideLambda() throws Exception { + runTest("compiler/testData/codegen/box/properties/fieldInsideLambda.kt"); + } + + @TestMetadata("fieldInsideNested.kt") + public void testFieldInsideNested() throws Exception { + runTest("compiler/testData/codegen/box/properties/fieldInsideNested.kt"); + } + + @TestMetadata("fieldSimple.kt") + public void testFieldSimple() throws Exception { + runTest("compiler/testData/codegen/box/properties/fieldSimple.kt"); + } + + @TestMetadata("generalAccess.kt") + public void testGeneralAccess() throws Exception { + runTest("compiler/testData/codegen/box/properties/generalAccess.kt"); + } + + @TestMetadata("genericPropertyMultiModule.kt") + public void testGenericPropertyMultiModule() throws Exception { + runTest("compiler/testData/codegen/box/properties/genericPropertyMultiModule.kt"); + } + + @TestMetadata("genericWithSameName.kt") + public void testGenericWithSameName() throws Exception { + runTest("compiler/testData/codegen/box/properties/genericWithSameName.kt"); + } + + @TestMetadata("initOrderMultiModule.kt") + public void testInitOrderMultiModule() throws Exception { + runTest("compiler/testData/codegen/box/properties/initOrderMultiModule.kt"); + } + + @TestMetadata("kt10715.kt") + public void testKt10715() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt10715.kt"); + } + + @TestMetadata("kt10729.kt") + public void testKt10729() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt10729.kt"); + } + + @TestMetadata("kt1159.kt") + public void testKt1159() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt1159.kt"); + } + + @TestMetadata("kt1165.kt") + public void testKt1165() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt1165.kt"); + } + + @TestMetadata("kt1168.kt") + public void testKt1168() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt1168.kt"); + } + + @TestMetadata("kt1170.kt") + public void testKt1170() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt1170.kt"); + } + + @TestMetadata("kt1398.kt") + public void testKt1398() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt1398.kt"); + } + + @TestMetadata("kt1417.kt") + public void testKt1417() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt1417.kt"); + } + + @TestMetadata("kt1714.kt") + public void testKt1714() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt1714.kt"); + } + + @TestMetadata("kt1714_minimal.kt") + public void testKt1714_minimal() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt1714_minimal.kt"); + } + + @TestMetadata("kt1892.kt") + public void testKt1892() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt1892.kt"); + } + + @TestMetadata("kt2331.kt") + public void testKt2331() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt2331.kt"); + } + + @TestMetadata("kt257.kt") + public void testKt257() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt257.kt"); + } + + @TestMetadata("kt2655.kt") + public void testKt2655() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt2655.kt"); + } + + @TestMetadata("kt2786.kt") + public void testKt2786() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt2786.kt"); + } + + @TestMetadata("kt2892.kt") + public void testKt2892() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt2892.kt"); + } + + @TestMetadata("kt3118.kt") + public void testKt3118() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt3118.kt"); + } + + @TestMetadata("kt3524.kt") + public void testKt3524() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt3524.kt"); + } + + @TestMetadata("kt3551.kt") + public void testKt3551() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt3551.kt"); + } + + @TestMetadata("kt3556.kt") + public void testKt3556() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt3556.kt"); + } + + @TestMetadata("kt3930.kt") + public void testKt3930() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt3930.kt"); + } + + @TestMetadata("kt4140.kt") + public void testKt4140() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt4140.kt"); + } + + @TestMetadata("kt4252.kt") + public void testKt4252() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt4252.kt"); + } + + @TestMetadata("kt4252_2.kt") + public void testKt4252_2() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt4252_2.kt"); + } + + @TestMetadata("kt4340.kt") + public void testKt4340() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt4340.kt"); + } + + @TestMetadata("kt4373.kt") + public void testKt4373() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt4373.kt"); + } + + @TestMetadata("kt4383.kt") + public void testKt4383() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt4383.kt"); + } + + @TestMetadata("kt613.kt") + public void testKt613() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt613.kt"); + } + + @TestMetadata("kt8928.kt") + public void testKt8928() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt8928.kt"); + } + + @TestMetadata("kt9603.kt") + public void testKt9603() throws Exception { + runTest("compiler/testData/codegen/box/properties/kt9603.kt"); + } + + @TestMetadata("primitiveOverrideDefaultAccessor.kt") + public void testPrimitiveOverrideDefaultAccessor() throws Exception { + runTest("compiler/testData/codegen/box/properties/primitiveOverrideDefaultAccessor.kt"); + } + + @TestMetadata("primitiveOverrideDelegateAccessor.kt") + public void testPrimitiveOverrideDelegateAccessor() throws Exception { + runTest("compiler/testData/codegen/box/properties/primitiveOverrideDelegateAccessor.kt"); + } + + @TestMetadata("privateAccessorOfOverriddenProperty.kt") + public void testPrivateAccessorOfOverriddenProperty() throws Exception { + runTest("compiler/testData/codegen/box/properties/privateAccessorOfOverriddenProperty.kt"); + } + + @TestMetadata("privatePropertyInConstructor.kt") + public void testPrivatePropertyInConstructor() throws Exception { + runTest("compiler/testData/codegen/box/properties/privatePropertyInConstructor.kt"); + } + + @TestMetadata("privatePropertyWithoutBackingField.kt") + public void testPrivatePropertyWithoutBackingField() throws Exception { + runTest("compiler/testData/codegen/box/properties/privatePropertyWithoutBackingField.kt"); + } + + @TestMetadata("sideEffectInTopLevelInitializerMultiModule.kt") + public void testSideEffectInTopLevelInitializerMultiModule() throws Exception { + runTest("compiler/testData/codegen/box/properties/sideEffectInTopLevelInitializerMultiModule.kt"); + } + + @TestMetadata("twoAnnotatedExtensionPropertiesWithoutBackingFields.kt") + public void testTwoAnnotatedExtensionPropertiesWithoutBackingFields() throws Exception { + runTest("compiler/testData/codegen/box/properties/twoAnnotatedExtensionPropertiesWithoutBackingFields.kt"); + } + + @TestMetadata("typeInferredFromGetter.kt") + public void testTypeInferredFromGetter() throws Exception { + runTest("compiler/testData/codegen/box/properties/typeInferredFromGetter.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/properties/const") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Const extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInConst() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/const"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("anotherFile.kt") + public void testAnotherFile() throws Exception { + runTest("compiler/testData/codegen/box/properties/const/anotherFile.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/properties/lateinit") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Lateinit extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("accessor.kt") + public void testAccessor() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/accessor.kt"); + } + + @TestMetadata("accessorException.kt") + public void testAccessorException() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/accessorException.kt"); + } + + @TestMetadata("accessorExceptionPublic.kt") + public void testAccessorExceptionPublic() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/accessorExceptionPublic.kt"); + } + + public void testAllFilesPresentInLateinit() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/lateinit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("exceptionField.kt") + public void testExceptionField() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/exceptionField.kt"); + } + + @TestMetadata("exceptionGetter.kt") + public void testExceptionGetter() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/exceptionGetter.kt"); + } + + @TestMetadata("localClass.kt") + public void testLocalClass() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/localClass.kt"); + } + + @TestMetadata("nameClash.kt") + public void testNameClash() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/nameClash.kt"); + } + + @TestMetadata("override.kt") + public void testOverride() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/override.kt"); + } + + @TestMetadata("overrideException.kt") + public void testOverrideException() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/overrideException.kt"); + } + + @TestMetadata("privateSetter.kt") + public void testPrivateSetter() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/privateSetter.kt"); + } + + @TestMetadata("privateSetterFromLambda.kt") + public void testPrivateSetterFromLambda() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/privateSetterFromLambda.kt"); + } + + @TestMetadata("privateSetterViaSubclass.kt") + public void testPrivateSetterViaSubclass() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/privateSetterViaSubclass.kt"); + } + + @TestMetadata("simpleVar.kt") + public void testSimpleVar() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/simpleVar.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/properties/lateinit/isInitializedAndDeinitialize") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class IsInitializedAndDeinitialize extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInIsInitializedAndDeinitialize() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/lateinit/isInitializedAndDeinitialize"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("companionObjectField.kt") + public void testCompanionObjectField() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/isInitializedAndDeinitialize/companionObjectField.kt"); + } + + @TestMetadata("emptyLhs.kt") + public void testEmptyLhs() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/isInitializedAndDeinitialize/emptyLhs.kt"); + } + + @TestMetadata("innerSubclass.kt") + public void testInnerSubclass() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/isInitializedAndDeinitialize/innerSubclass.kt"); + } + + @TestMetadata("isInitializedMultiFile.kt") + public void testIsInitializedMultiFile() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/isInitializedAndDeinitialize/isInitializedMultiFile.kt"); + } + + @TestMetadata("nonInlineLambda.kt") + public void testNonInlineLambda() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/isInitializedAndDeinitialize/nonInlineLambda.kt"); + } + + @TestMetadata("propertyImportedFromObject.kt") + public void testPropertyImportedFromObject() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/isInitializedAndDeinitialize/propertyImportedFromObject.kt"); + } + + @TestMetadata("sideEffects.kt") + public void testSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/isInitializedAndDeinitialize/sideEffects.kt"); + } + + @TestMetadata("topLevelProperty.kt") + public void testTopLevelProperty() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/isInitializedAndDeinitialize/topLevelProperty.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/properties/lateinit/local") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Local extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInLocal() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/lateinit/local"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("capturedLocalLateinit.kt") + public void testCapturedLocalLateinit() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/local/capturedLocalLateinit.kt"); + } + + @TestMetadata("kt23260.kt") + public void testKt23260() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/local/kt23260.kt"); + } + + @TestMetadata("localLateinit.kt") + public void testLocalLateinit() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/local/localLateinit.kt"); + } + + @TestMetadata("uninitializedCapturedMemberAccess.kt") + public void testUninitializedCapturedMemberAccess() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/local/uninitializedCapturedMemberAccess.kt"); + } + + @TestMetadata("uninitializedCapturedRead.kt") + public void testUninitializedCapturedRead() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/local/uninitializedCapturedRead.kt"); + } + + @TestMetadata("uninitializedMemberAccess.kt") + public void testUninitializedMemberAccess() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/local/uninitializedMemberAccess.kt"); + } + + @TestMetadata("uninitializedRead.kt") + public void testUninitializedRead() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/local/uninitializedRead.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/properties/lateinit/topLevel") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class TopLevel extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("accessorException.kt") + public void testAccessorException() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/topLevel/accessorException.kt"); + } + + @TestMetadata("accessorForTopLevelLateinit.kt") + public void testAccessorForTopLevelLateinit() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/topLevel/accessorForTopLevelLateinit.kt"); + } + + public void testAllFilesPresentInTopLevel() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/lateinit/topLevel"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("topLevelLateinit.kt") + public void testTopLevelLateinit() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/topLevel/topLevelLateinit.kt"); + } + + @TestMetadata("uninitializedMemberAccess.kt") + public void testUninitializedMemberAccess() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/topLevel/uninitializedMemberAccess.kt"); + } + + @TestMetadata("uninitializedRead.kt") + public void testUninitializedRead() throws Exception { + runTest("compiler/testData/codegen/box/properties/lateinit/topLevel/uninitializedRead.kt"); + } + } + } + } + + @TestMetadata("compiler/testData/codegen/box/publishedApi") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class PublishedApi extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInPublishedApi() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/publishedApi"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/publishedApi/simple.kt"); + } + + @TestMetadata("topLevel.kt") + public void testTopLevel() throws Exception { + runTest("compiler/testData/codegen/box/publishedApi/topLevel.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Ranges extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInRanges() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("forByteProgressionWithIntIncrement.kt") + public void testForByteProgressionWithIntIncrement() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forByteProgressionWithIntIncrement.kt"); + } + + @TestMetadata("forInCharSequenceLengthDecreasedInLoopBody.kt") + public void testForInCharSequenceLengthDecreasedInLoopBody() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInCharSequenceLengthDecreasedInLoopBody.kt"); + } + + @TestMetadata("forInCharSequenceLengthIncreasedInLoopBody.kt") + public void testForInCharSequenceLengthIncreasedInLoopBody() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInCharSequenceLengthIncreasedInLoopBody.kt"); + } + + @TestMetadata("forInCharSequenceWithCustomIterator.kt") + public void testForInCharSequenceWithCustomIterator() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInCharSequenceWithCustomIterator.kt"); + } + + @TestMetadata("forInCharSequenceWithMultipleGetFunctions.kt") + public void testForInCharSequenceWithMultipleGetFunctions() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInCharSequenceWithMultipleGetFunctions.kt"); + } + + @TestMetadata("forInCustomCharSequence.kt") + public void testForInCustomCharSequence() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInCustomCharSequence.kt"); + } + + @TestMetadata("forInCustomIterable.kt") + public void testForInCustomIterable() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInCustomIterable.kt"); + } + + @TestMetadata("forInRangeLiteralWithMixedTypeBounds.kt") + public void testForInRangeLiteralWithMixedTypeBounds() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInRangeLiteralWithMixedTypeBounds.kt"); + } + + @TestMetadata("forInRangeWithImplicitReceiver.kt") + public void testForInRangeWithImplicitReceiver() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInRangeWithImplicitReceiver.kt"); + } + + @TestMetadata("forInStringVarUpdatedInLoopBody.kt") + public void testForInStringVarUpdatedInLoopBody() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInStringVarUpdatedInLoopBody.kt"); + } + + @TestMetadata("forIntRange.kt") + public void testForIntRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forIntRange.kt"); + } + + @TestMetadata("forNullableIntInRangeWithImplicitReceiver.kt") + public void testForNullableIntInRangeWithImplicitReceiver() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forNullableIntInRangeWithImplicitReceiver.kt"); + } + + @TestMetadata("kt37370.kt") + public void testKt37370() throws Exception { + runTest("compiler/testData/codegen/box/ranges/kt37370.kt"); + } + + @TestMetadata("kt37370a.kt") + public void testKt37370a() throws Exception { + runTest("compiler/testData/codegen/box/ranges/kt37370a.kt"); + } + + @TestMetadata("multiAssignmentIterationOverIntRange.kt") + public void testMultiAssignmentIterationOverIntRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/multiAssignmentIterationOverIntRange.kt"); + } + + @TestMetadata("safeCallRangeTo.kt") + public void testSafeCallRangeTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/safeCallRangeTo.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/ranges/contains") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Contains extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInContains() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/contains"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("comparisonWithRangeBoundEliminated.kt") + public void testComparisonWithRangeBoundEliminated() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/comparisonWithRangeBoundEliminated.kt"); + } + + @TestMetadata("evaluationOrderForCollection.kt") + public void testEvaluationOrderForCollection() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/evaluationOrderForCollection.kt"); + } + + @TestMetadata("evaluationOrderForComparableRange.kt") + public void testEvaluationOrderForComparableRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/evaluationOrderForComparableRange.kt"); + } + + @TestMetadata("evaluationOrderForDownTo.kt") + public void testEvaluationOrderForDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/evaluationOrderForDownTo.kt"); + } + + @TestMetadata("evaluationOrderForRangeLiteral.kt") + public void testEvaluationOrderForRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/evaluationOrderForRangeLiteral.kt"); + } + + @TestMetadata("genericCharInRangeLiteral.kt") + public void testGenericCharInRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/genericCharInRangeLiteral.kt"); + } + + @TestMetadata("inArray.kt") + public void testInArray() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inArray.kt"); + } + + @TestMetadata("inCharSequence.kt") + public void testInCharSequence() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inCharSequence.kt"); + } + + @TestMetadata("inComparableRange.kt") + public void testInComparableRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inComparableRange.kt"); + } + + @TestMetadata("inCustomObjectRange.kt") + public void testInCustomObjectRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inCustomObjectRange.kt"); + } + + @TestMetadata("inDoubleRangeLiteralVsComparableRangeLiteral.kt") + public void testInDoubleRangeLiteralVsComparableRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inDoubleRangeLiteralVsComparableRangeLiteral.kt"); + } + + @TestMetadata("inExtensionRange.kt") + public void testInExtensionRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inExtensionRange.kt"); + } + + @TestMetadata("inFloatingPointRangeWithNaNBound.kt") + public void testInFloatingPointRangeWithNaNBound() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inFloatingPointRangeWithNaNBound.kt"); + } + + @TestMetadata("inIntRange.kt") + public void testInIntRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inIntRange.kt"); + } + + @TestMetadata("inIterable.kt") + public void testInIterable() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inIterable.kt"); + } + + @TestMetadata("inNonMatchingRange.kt") + public void testInNonMatchingRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inNonMatchingRange.kt"); + } + + @TestMetadata("inOptimizableDoubleRange.kt") + public void testInOptimizableDoubleRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inOptimizableDoubleRange.kt"); + } + + @TestMetadata("inOptimizableFloatRange.kt") + public void testInOptimizableFloatRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inOptimizableFloatRange.kt"); + } + + @TestMetadata("inOptimizableIntRange.kt") + public void testInOptimizableIntRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inOptimizableIntRange.kt"); + } + + @TestMetadata("inOptimizableLongRange.kt") + public void testInOptimizableLongRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inOptimizableLongRange.kt"); + } + + @TestMetadata("inPrimitiveProgression.kt") + public void testInPrimitiveProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inPrimitiveProgression.kt"); + } + + @TestMetadata("inPrimitiveRange.kt") + public void testInPrimitiveRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inPrimitiveRange.kt"); + } + + @TestMetadata("inRangeLiteralComposition.kt") + public void testInRangeLiteralComposition() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inRangeLiteralComposition.kt"); + } + + @TestMetadata("inRangeWithCustomContains.kt") + public void testInRangeWithCustomContains() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inRangeWithCustomContains.kt"); + } + + @TestMetadata("inRangeWithImplicitReceiver.kt") + public void testInRangeWithImplicitReceiver() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inRangeWithImplicitReceiver.kt"); + } + + @TestMetadata("inRangeWithNonmatchingArguments.kt") + public void testInRangeWithNonmatchingArguments() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inRangeWithNonmatchingArguments.kt"); + } + + @TestMetadata("inRangeWithSmartCast.kt") + public void testInRangeWithSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inRangeWithSmartCast.kt"); + } + + @TestMetadata("inUntil.kt") + public void testInUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inUntil.kt"); + } + + @TestMetadata("kt20106.kt") + public void testKt20106() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/kt20106.kt"); + } + + @TestMetadata("nullableInPrimitiveRange.kt") + public void testNullableInPrimitiveRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/nullableInPrimitiveRange.kt"); + } + + @TestMetadata("rangeContainsString.kt") + public void testRangeContainsString() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/rangeContainsString.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/ranges/contains/generated") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Generated extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInGenerated() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/contains/generated"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("arrayIndices.kt") + public void testArrayIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/arrayIndices.kt"); + } + + @TestMetadata("charDownTo.kt") + public void testCharDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/charDownTo.kt"); + } + + @TestMetadata("charRangeLiteral.kt") + public void testCharRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/charRangeLiteral.kt"); + } + + @TestMetadata("charSequenceIndices.kt") + public void testCharSequenceIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/charSequenceIndices.kt"); + } + + @TestMetadata("charUntil.kt") + public void testCharUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/charUntil.kt"); + } + + @TestMetadata("collectionIndices.kt") + public void testCollectionIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/collectionIndices.kt"); + } + + @TestMetadata("doubleRangeLiteral.kt") + public void testDoubleRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/doubleRangeLiteral.kt"); + } + + @TestMetadata("floatRangeLiteral.kt") + public void testFloatRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/floatRangeLiteral.kt"); + } + + @TestMetadata("intDownTo.kt") + public void testIntDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/intDownTo.kt"); + } + + @TestMetadata("intRangeLiteral.kt") + public void testIntRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/intRangeLiteral.kt"); + } + + @TestMetadata("intUntil.kt") + public void testIntUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/intUntil.kt"); + } + + @TestMetadata("longDownTo.kt") + public void testLongDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/longDownTo.kt"); + } + + @TestMetadata("longRangeLiteral.kt") + public void testLongRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/longRangeLiteral.kt"); + } + + @TestMetadata("longUntil.kt") + public void testLongUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/generated/longUntil.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/evaluationOrder") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class EvaluationOrder extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInEvaluationOrder() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/evaluationOrder"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("forInDownTo.kt") + public void testForInDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/forInDownTo.kt"); + } + + @TestMetadata("forInDownToReversed.kt") + public void testForInDownToReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversed.kt"); + } + + @TestMetadata("forInDownToReversedReversed.kt") + public void testForInDownToReversedReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversedReversed.kt"); + } + + @TestMetadata("forInRangeLiteral.kt") + public void testForInRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteral.kt"); + } + + @TestMetadata("forInRangeLiteralReversed.kt") + public void testForInRangeLiteralReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversed.kt"); + } + + @TestMetadata("forInRangeLiteralReversedReversed.kt") + public void testForInRangeLiteralReversedReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversedReversed.kt"); + } + + @TestMetadata("forInUntil.kt") + public void testForInUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/forInUntil.kt"); + } + + @TestMetadata("forInUntilReversed.kt") + public void testForInUntilReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversed.kt"); + } + + @TestMetadata("forInUntilReversedReversed.kt") + public void testForInUntilReversedReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversedReversed.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/ranges/evaluationOrder/stepped") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Stepped extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInStepped() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/evaluationOrder/stepped"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ForInDownTo extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInForInDownTo() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("forInDownToReversedStep.kt") + public void testForInDownToReversedStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStep.kt"); + } + + @TestMetadata("forInDownToReversedStepReversed.kt") + public void testForInDownToReversedStepReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversed.kt"); + } + + @TestMetadata("forInDownToReversedStepReversedStep.kt") + public void testForInDownToReversedStepReversedStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversedStep.kt"); + } + + @TestMetadata("forInDownToStep.kt") + public void testForInDownToStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStep.kt"); + } + + @TestMetadata("forInDownToStepReversed.kt") + public void testForInDownToStepReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversed.kt"); + } + + @TestMetadata("forInDownToStepReversedStep.kt") + public void testForInDownToStepReversedStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStep.kt"); + } + + @TestMetadata("forInDownToStepReversedStepReversed.kt") + public void testForInDownToStepReversedStepReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStepReversed.kt"); + } + + @TestMetadata("forInDownToStepStep.kt") + public void testForInDownToStepStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepStep.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ForInRangeLiteral extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInForInRangeLiteral() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("forInRangeLiteralReversedStep.kt") + public void testForInRangeLiteralReversedStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStep.kt"); + } + + @TestMetadata("forInRangeLiteralReversedStepReversed.kt") + public void testForInRangeLiteralReversedStepReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversed.kt"); + } + + @TestMetadata("forInRangeLiteralReversedStepReversedStep.kt") + public void testForInRangeLiteralReversedStepReversedStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversedStep.kt"); + } + + @TestMetadata("forInRangeLiteralStep.kt") + public void testForInRangeLiteralStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStep.kt"); + } + + @TestMetadata("forInRangeLiteralStepReversed.kt") + public void testForInRangeLiteralStepReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversed.kt"); + } + + @TestMetadata("forInRangeLiteralStepReversedStep.kt") + public void testForInRangeLiteralStepReversedStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStep.kt"); + } + + @TestMetadata("forInRangeLiteralStepReversedStepReversed.kt") + public void testForInRangeLiteralStepReversedStepReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStepReversed.kt"); + } + + @TestMetadata("forInRangeLiteralStepStep.kt") + public void testForInRangeLiteralStepStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepStep.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ForInUntil extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInForInUntil() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("forInUntilReversedStep.kt") + public void testForInUntilReversedStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStep.kt"); + } + + @TestMetadata("forInUntilReversedStepReversed.kt") + public void testForInUntilReversedStepReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversed.kt"); + } + + @TestMetadata("forInUntilReversedStepReversedStep.kt") + public void testForInUntilReversedStepReversedStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversedStep.kt"); + } + + @TestMetadata("forInUntilStep.kt") + public void testForInUntilStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStep.kt"); + } + + @TestMetadata("forInUntilStepReversed.kt") + public void testForInUntilStepReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversed.kt"); + } + + @TestMetadata("forInUntilStepReversedStep.kt") + public void testForInUntilStepReversedStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStep.kt"); + } + + @TestMetadata("forInUntilStepReversedStepReversed.kt") + public void testForInUntilStepReversedStepReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStepReversed.kt"); + } + + @TestMetadata("forInUntilStepStep.kt") + public void testForInUntilStepStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepStep.kt"); + } + } + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/expression") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Expression extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInExpression() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/expression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("emptyDownto.kt") + public void testEmptyDownto() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/emptyDownto.kt"); + } + + @TestMetadata("emptyRange.kt") + public void testEmptyRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/emptyRange.kt"); + } + + @TestMetadata("inexactDownToMinValue.kt") + public void testInexactDownToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/inexactDownToMinValue.kt"); + } + + @TestMetadata("inexactSteppedDownTo.kt") + public void testInexactSteppedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/inexactSteppedDownTo.kt"); + } + + @TestMetadata("inexactSteppedRange.kt") + public void testInexactSteppedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/inexactSteppedRange.kt"); + } + + @TestMetadata("inexactToMaxValue.kt") + public void testInexactToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/inexactToMaxValue.kt"); + } + + @TestMetadata("maxValueMinusTwoToMaxValue.kt") + public void testMaxValueMinusTwoToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/maxValueMinusTwoToMaxValue.kt"); + } + + @TestMetadata("maxValueToMaxValue.kt") + public void testMaxValueToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/maxValueToMaxValue.kt"); + } + + @TestMetadata("maxValueToMinValue.kt") + public void testMaxValueToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/maxValueToMinValue.kt"); + } + + @TestMetadata("oneElementDownTo.kt") + public void testOneElementDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/oneElementDownTo.kt"); + } + + @TestMetadata("oneElementRange.kt") + public void testOneElementRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/oneElementRange.kt"); + } + + @TestMetadata("openRange.kt") + public void testOpenRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/openRange.kt"); + } + + @TestMetadata("overflowZeroDownToMaxValue.kt") + public void testOverflowZeroDownToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/overflowZeroDownToMaxValue.kt"); + } + + @TestMetadata("overflowZeroToMinValue.kt") + public void testOverflowZeroToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/overflowZeroToMinValue.kt"); + } + + @TestMetadata("progressionDownToMinValue.kt") + public void testProgressionDownToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/progressionDownToMinValue.kt"); + } + + @TestMetadata("progressionMaxValueMinusTwoToMaxValue.kt") + public void testProgressionMaxValueMinusTwoToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/progressionMaxValueMinusTwoToMaxValue.kt"); + } + + @TestMetadata("progressionMaxValueToMaxValue.kt") + public void testProgressionMaxValueToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/progressionMaxValueToMaxValue.kt"); + } + + @TestMetadata("progressionMaxValueToMinValue.kt") + public void testProgressionMaxValueToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/progressionMaxValueToMinValue.kt"); + } + + @TestMetadata("progressionMinValueToMinValue.kt") + public void testProgressionMinValueToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/progressionMinValueToMinValue.kt"); + } + + @TestMetadata("reversedBackSequence.kt") + public void testReversedBackSequence() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/reversedBackSequence.kt"); + } + + @TestMetadata("reversedEmptyBackSequence.kt") + public void testReversedEmptyBackSequence() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/reversedEmptyBackSequence.kt"); + } + + @TestMetadata("reversedEmptyRange.kt") + public void testReversedEmptyRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/reversedEmptyRange.kt"); + } + + @TestMetadata("reversedInexactSteppedDownTo.kt") + public void testReversedInexactSteppedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/reversedInexactSteppedDownTo.kt"); + } + + @TestMetadata("reversedRange.kt") + public void testReversedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/reversedRange.kt"); + } + + @TestMetadata("reversedSimpleSteppedRange.kt") + public void testReversedSimpleSteppedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/reversedSimpleSteppedRange.kt"); + } + + @TestMetadata("simpleDownTo.kt") + public void testSimpleDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/simpleDownTo.kt"); + } + + @TestMetadata("simpleRange.kt") + public void testSimpleRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/simpleRange.kt"); + } + + @TestMetadata("simpleRangeWithNonConstantEnds.kt") + public void testSimpleRangeWithNonConstantEnds() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/simpleRangeWithNonConstantEnds.kt"); + } + + @TestMetadata("simpleSteppedDownTo.kt") + public void testSimpleSteppedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/simpleSteppedDownTo.kt"); + } + + @TestMetadata("simpleSteppedRange.kt") + public void testSimpleSteppedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/expression/simpleSteppedRange.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/forInDownTo") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ForInDownTo extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInForInDownTo() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/forInDownTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("forIntInDownTo.kt") + public void testForIntInDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInDownTo/forIntInDownTo.kt"); + } + + @TestMetadata("forIntInDownToWithNonConstBounds.kt") + public void testForIntInDownToWithNonConstBounds() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInDownTo/forIntInDownToWithNonConstBounds.kt"); + } + + @TestMetadata("forIntInNonOptimizedDownTo.kt") + public void testForIntInNonOptimizedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInDownTo/forIntInNonOptimizedDownTo.kt"); + } + + @TestMetadata("forLongInDownTo.kt") + public void testForLongInDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInDownTo/forLongInDownTo.kt"); + } + + @TestMetadata("forNullableIntInDownTo.kt") + public void testForNullableIntInDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInDownTo/forNullableIntInDownTo.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/forInIndices") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ForInIndices extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInForInIndices() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/forInIndices"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("forInArrayListIndices.kt") + public void testForInArrayListIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/forInArrayListIndices.kt"); + } + + @TestMetadata("forInCharSequenceIndices.kt") + public void testForInCharSequenceIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/forInCharSequenceIndices.kt"); + } + + @TestMetadata("forInCharSequenceTypeParameterIndices.kt") + public void testForInCharSequenceTypeParameterIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/forInCharSequenceTypeParameterIndices.kt"); + } + + @TestMetadata("forInCollectionImplicitReceiverIndices.kt") + public void testForInCollectionImplicitReceiverIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/forInCollectionImplicitReceiverIndices.kt"); + } + + @TestMetadata("forInCollectionIndices.kt") + public void testForInCollectionIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/forInCollectionIndices.kt"); + } + + @TestMetadata("forInCollectionTypeParameterIndices.kt") + public void testForInCollectionTypeParameterIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/forInCollectionTypeParameterIndices.kt"); + } + + @TestMetadata("forInNonOptimizedIndices.kt") + public void testForInNonOptimizedIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/forInNonOptimizedIndices.kt"); + } + + @TestMetadata("forInObjectArrayIndices.kt") + public void testForInObjectArrayIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/forInObjectArrayIndices.kt"); + } + + @TestMetadata("forInPrimitiveArrayIndices.kt") + public void testForInPrimitiveArrayIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/forInPrimitiveArrayIndices.kt"); + } + + @TestMetadata("forNullableIntInArrayIndices.kt") + public void testForNullableIntInArrayIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/forNullableIntInArrayIndices.kt"); + } + + @TestMetadata("forNullableIntInCollectionIndices.kt") + public void testForNullableIntInCollectionIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/forNullableIntInCollectionIndices.kt"); + } + + @TestMetadata("indexOfLast.kt") + public void testIndexOfLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/indexOfLast.kt"); + } + + @TestMetadata("kt12983_forInGenericArrayIndices.kt") + public void testKt12983_forInGenericArrayIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/kt12983_forInGenericArrayIndices.kt"); + } + + @TestMetadata("kt12983_forInGenericCollectionIndices.kt") + public void testKt12983_forInGenericCollectionIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/kt12983_forInGenericCollectionIndices.kt"); + } + + @TestMetadata("kt12983_forInSpecificArrayIndices.kt") + public void testKt12983_forInSpecificArrayIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/kt12983_forInSpecificArrayIndices.kt"); + } + + @TestMetadata("kt12983_forInSpecificCollectionIndices.kt") + public void testKt12983_forInSpecificCollectionIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/kt12983_forInSpecificCollectionIndices.kt"); + } + + @TestMetadata("kt13241_Array.kt") + public void testKt13241_Array() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/kt13241_Array.kt"); + } + + @TestMetadata("kt13241_CharSequence.kt") + public void testKt13241_CharSequence() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/kt13241_CharSequence.kt"); + } + + @TestMetadata("kt13241_Collection.kt") + public void testKt13241_Collection() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInIndices/kt13241_Collection.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/forInProgressionWithIndex") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ForInProgressionWithIndex extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInForInProgressionWithIndex() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/forInProgressionWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("forInDownToWithIndex.kt") + public void testForInDownToWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInDownToWithIndex.kt"); + } + + @TestMetadata("forInIndicesWithIndex.kt") + public void testForInIndicesWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInIndicesWithIndex.kt"); + } + + @TestMetadata("forInRangeToWithIndex.kt") + public void testForInRangeToWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInRangeToWithIndex.kt"); + } + + @TestMetadata("forInReversedStepWithIndex.kt") + public void testForInReversedStepWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInReversedStepWithIndex.kt"); + } + + @TestMetadata("forInReversedWithIndex.kt") + public void testForInReversedWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInReversedWithIndex.kt"); + } + + @TestMetadata("forInStepReversedWithIndex.kt") + public void testForInStepReversedWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInStepReversedWithIndex.kt"); + } + + @TestMetadata("forInStepWithIndex.kt") + public void testForInStepWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInStepWithIndex.kt"); + } + + @TestMetadata("forInUntilWithIndex.kt") + public void testForInUntilWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInUntilWithIndex.kt"); + } + + @TestMetadata("forInWithIndexBreakAndContinue.kt") + public void testForInWithIndexBreakAndContinue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexBreakAndContinue.kt"); + } + + @TestMetadata("forInWithIndexNoIndexOrElementVar.kt") + public void testForInWithIndexNoIndexOrElementVar() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexNoIndexOrElementVar.kt"); + } + + @TestMetadata("forInWithIndexNotDestructured.kt") + public void testForInWithIndexNotDestructured() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexNotDestructured.kt"); + } + + @TestMetadata("forInWithIndexReversed.kt") + public void testForInWithIndexReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexReversed.kt"); + } + + @TestMetadata("forInWithIndexWithDestructuringInLoop.kt") + public void testForInWithIndexWithDestructuringInLoop() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexWithDestructuringInLoop.kt"); + } + + @TestMetadata("forInWithIndexWithIndex.kt") + public void testForInWithIndexWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexWithIndex.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/forInReversed") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ForInReversed extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInForInReversed() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/forInReversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("forInReversedArrayIndices.kt") + public void testForInReversedArrayIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedArrayIndices.kt"); + } + + @TestMetadata("forInReversedCharSequenceIndices.kt") + public void testForInReversedCharSequenceIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedCharSequenceIndices.kt"); + } + + @TestMetadata("forInReversedCollectionIndices.kt") + public void testForInReversedCollectionIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedCollectionIndices.kt"); + } + + @TestMetadata("forInReversedDownTo.kt") + public void testForInReversedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedDownTo.kt"); + } + + @TestMetadata("forInReversedEmptyRange.kt") + public void testForInReversedEmptyRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedEmptyRange.kt"); + } + + @TestMetadata("forInReversedEmptyRangeLiteral.kt") + public void testForInReversedEmptyRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedEmptyRangeLiteral.kt"); + } + + @TestMetadata("forInReversedEmptyRangeLiteralWithNonConstBounds.kt") + public void testForInReversedEmptyRangeLiteralWithNonConstBounds() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedEmptyRangeLiteralWithNonConstBounds.kt"); + } + + @TestMetadata("forInReversedRange.kt") + public void testForInReversedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedRange.kt"); + } + + @TestMetadata("forInReversedRangeLiteral.kt") + public void testForInReversedRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedRangeLiteral.kt"); + } + + @TestMetadata("forInReversedRangeLiteralWithNonConstBounds.kt") + public void testForInReversedRangeLiteralWithNonConstBounds() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedRangeLiteralWithNonConstBounds.kt"); + } + + @TestMetadata("forInReversedReversedArrayIndices.kt") + public void testForInReversedReversedArrayIndices() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedReversedArrayIndices.kt"); + } + + @TestMetadata("forInReversedReversedDownTo.kt") + public void testForInReversedReversedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedReversedDownTo.kt"); + } + + @TestMetadata("ForInReversedReversedRange.kt") + public void testForInReversedReversedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/ForInReversedReversedRange.kt"); + } + + @TestMetadata("forInReversedReversedReversedRange.kt") + public void testForInReversedReversedReversedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedReversedReversedRange.kt"); + } + + @TestMetadata("forInReversedReversedUntil.kt") + public void testForInReversedReversedUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedReversedUntil.kt"); + } + + @TestMetadata("forInReversedReversedUntilWithNonConstBounds.kt") + public void testForInReversedReversedUntilWithNonConstBounds() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedReversedUntilWithNonConstBounds.kt"); + } + + @TestMetadata("forInReversedUntil.kt") + public void testForInReversedUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedUntil.kt"); + } + + @TestMetadata("forInReversedUntilWithNonConstBounds.kt") + public void testForInReversedUntilWithNonConstBounds() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInReversed/forInReversedUntilWithNonConstBounds.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/forInUntil") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ForInUntil extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInForInUntil() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/forInUntil"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("forInUntilChar.kt") + public void testForInUntilChar() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/forInUntilChar.kt"); + } + + @TestMetadata("forInUntilCharMaxValue.kt") + public void testForInUntilCharMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/forInUntilCharMaxValue.kt"); + } + + @TestMetadata("forInUntilCharMinValue.kt") + public void testForInUntilCharMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/forInUntilCharMinValue.kt"); + } + + @TestMetadata("forInUntilCharMinValueNonConst.kt") + public void testForInUntilCharMinValueNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/forInUntilCharMinValueNonConst.kt"); + } + + @TestMetadata("forInUntilInt.kt") + public void testForInUntilInt() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/forInUntilInt.kt"); + } + + @TestMetadata("forInUntilIntMaxValue.kt") + public void testForInUntilIntMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/forInUntilIntMaxValue.kt"); + } + + @TestMetadata("forInUntilIntMinValue.kt") + public void testForInUntilIntMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/forInUntilIntMinValue.kt"); + } + + @TestMetadata("forInUntilIntMinValueNonConst.kt") + public void testForInUntilIntMinValueNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/forInUntilIntMinValueNonConst.kt"); + } + + @TestMetadata("forInUntilLesserInt.kt") + public void testForInUntilLesserInt() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/forInUntilLesserInt.kt"); + } + + @TestMetadata("forInUntilLong.kt") + public void testForInUntilLong() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/forInUntilLong.kt"); + } + + @TestMetadata("forInUntilLongMaxValue.kt") + public void testForInUntilLongMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/forInUntilLongMaxValue.kt"); + } + + @TestMetadata("forInUntilLongMinValue.kt") + public void testForInUntilLongMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/forInUntilLongMinValue.kt"); + } + + @TestMetadata("forInUntilLongMinValueNonConst.kt") + public void testForInUntilLongMinValueNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/forInUntilLongMinValueNonConst.kt"); + } + + @TestMetadata("forIntInIntUntilSmartcastInt.kt") + public void testForIntInIntUntilSmartcastInt() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInUntil/forIntInIntUntilSmartcastInt.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/forWithPossibleOverflow") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ForWithPossibleOverflow extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInForWithPossibleOverflow() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/forWithPossibleOverflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("forInDownToCharMinValue.kt") + public void testForInDownToCharMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToCharMinValue.kt"); + } + + @TestMetadata("forInDownToCharMinValueReversed.kt") + public void testForInDownToCharMinValueReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToCharMinValueReversed.kt"); + } + + @TestMetadata("forInDownToIntMinValue.kt") + public void testForInDownToIntMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToIntMinValue.kt"); + } + + @TestMetadata("forInDownToIntMinValueReversed.kt") + public void testForInDownToIntMinValueReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToIntMinValueReversed.kt"); + } + + @TestMetadata("forInDownToLongMinValue.kt") + public void testForInDownToLongMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToLongMinValue.kt"); + } + + @TestMetadata("forInDownToLongMinValueReversed.kt") + public void testForInDownToLongMinValueReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToLongMinValueReversed.kt"); + } + + @TestMetadata("forInRangeToCharMaxValue.kt") + public void testForInRangeToCharMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToCharMaxValue.kt"); + } + + @TestMetadata("forInRangeToCharMaxValueReversed.kt") + public void testForInRangeToCharMaxValueReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToCharMaxValueReversed.kt"); + } + + @TestMetadata("forInRangeToIntMaxValue.kt") + public void testForInRangeToIntMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToIntMaxValue.kt"); + } + + @TestMetadata("forInRangeToIntMaxValueReversed.kt") + public void testForInRangeToIntMaxValueReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToIntMaxValueReversed.kt"); + } + + @TestMetadata("forInRangeToLongMaxValue.kt") + public void testForInRangeToLongMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToLongMaxValue.kt"); + } + + @TestMetadata("forInRangeToLongMaxValueReversed.kt") + public void testForInRangeToLongMaxValueReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToLongMaxValueReversed.kt"); + } + + @TestMetadata("forInUntilIntMinValueReversed.kt") + public void testForInUntilIntMinValueReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInUntilIntMinValueReversed.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/javaInterop") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class JavaInterop extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInJavaInterop() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/javaInterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/ranges/javaInterop/withIndex") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class WithIndex extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInWithIndex() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/javaInterop/withIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/literal") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Literal extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInLiteral() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/literal"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("emptyDownto.kt") + public void testEmptyDownto() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/emptyDownto.kt"); + } + + @TestMetadata("emptyRange.kt") + public void testEmptyRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/emptyRange.kt"); + } + + @TestMetadata("inexactDownToMinValue.kt") + public void testInexactDownToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/inexactDownToMinValue.kt"); + } + + @TestMetadata("inexactSteppedDownTo.kt") + public void testInexactSteppedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/inexactSteppedDownTo.kt"); + } + + @TestMetadata("inexactSteppedRange.kt") + public void testInexactSteppedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/inexactSteppedRange.kt"); + } + + @TestMetadata("inexactToMaxValue.kt") + public void testInexactToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/inexactToMaxValue.kt"); + } + + @TestMetadata("maxValueMinusTwoToMaxValue.kt") + public void testMaxValueMinusTwoToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/maxValueMinusTwoToMaxValue.kt"); + } + + @TestMetadata("maxValueToMaxValue.kt") + public void testMaxValueToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/maxValueToMaxValue.kt"); + } + + @TestMetadata("maxValueToMinValue.kt") + public void testMaxValueToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/maxValueToMinValue.kt"); + } + + @TestMetadata("oneElementDownTo.kt") + public void testOneElementDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/oneElementDownTo.kt"); + } + + @TestMetadata("oneElementRange.kt") + public void testOneElementRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/oneElementRange.kt"); + } + + @TestMetadata("openRange.kt") + public void testOpenRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/openRange.kt"); + } + + @TestMetadata("overflowZeroDownToMaxValue.kt") + public void testOverflowZeroDownToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/overflowZeroDownToMaxValue.kt"); + } + + @TestMetadata("overflowZeroToMinValue.kt") + public void testOverflowZeroToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/overflowZeroToMinValue.kt"); + } + + @TestMetadata("progressionDownToMinValue.kt") + public void testProgressionDownToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/progressionDownToMinValue.kt"); + } + + @TestMetadata("progressionMaxValueMinusTwoToMaxValue.kt") + public void testProgressionMaxValueMinusTwoToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/progressionMaxValueMinusTwoToMaxValue.kt"); + } + + @TestMetadata("progressionMaxValueToMaxValue.kt") + public void testProgressionMaxValueToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/progressionMaxValueToMaxValue.kt"); + } + + @TestMetadata("progressionMaxValueToMinValue.kt") + public void testProgressionMaxValueToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/progressionMaxValueToMinValue.kt"); + } + + @TestMetadata("progressionMinValueToMinValue.kt") + public void testProgressionMinValueToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/progressionMinValueToMinValue.kt"); + } + + @TestMetadata("reversedBackSequence.kt") + public void testReversedBackSequence() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/reversedBackSequence.kt"); + } + + @TestMetadata("reversedEmptyBackSequence.kt") + public void testReversedEmptyBackSequence() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/reversedEmptyBackSequence.kt"); + } + + @TestMetadata("reversedEmptyRange.kt") + public void testReversedEmptyRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/reversedEmptyRange.kt"); + } + + @TestMetadata("reversedInexactSteppedDownTo.kt") + public void testReversedInexactSteppedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/reversedInexactSteppedDownTo.kt"); + } + + @TestMetadata("reversedRange.kt") + public void testReversedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/reversedRange.kt"); + } + + @TestMetadata("reversedSimpleSteppedRange.kt") + public void testReversedSimpleSteppedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/reversedSimpleSteppedRange.kt"); + } + + @TestMetadata("simpleDownTo.kt") + public void testSimpleDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/simpleDownTo.kt"); + } + + @TestMetadata("simpleRange.kt") + public void testSimpleRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/simpleRange.kt"); + } + + @TestMetadata("simpleRangeWithNonConstantEnds.kt") + public void testSimpleRangeWithNonConstantEnds() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/simpleRangeWithNonConstantEnds.kt"); + } + + @TestMetadata("simpleSteppedDownTo.kt") + public void testSimpleSteppedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/simpleSteppedDownTo.kt"); + } + + @TestMetadata("simpleSteppedRange.kt") + public void testSimpleSteppedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/literal/simpleSteppedRange.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/nullableLoopParameter") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NullableLoopParameter extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNullableLoopParameter() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/nullableLoopParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("progressionExpression.kt") + public void testProgressionExpression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/nullableLoopParameter/progressionExpression.kt"); + } + + @TestMetadata("rangeExpression.kt") + public void testRangeExpression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/nullableLoopParameter/rangeExpression.kt"); + } + + @TestMetadata("rangeLiteral.kt") + public void testRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/box/ranges/nullableLoopParameter/rangeLiteral.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Stepped extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInStepped() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/expression") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Expression extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInExpression() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/expression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/expression/downTo") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DownTo extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDownTo() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/expression/downTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("emptyProgression.kt") + public void testEmptyProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/emptyProgression.kt"); + } + + @TestMetadata("illegalStepNegative.kt") + public void testIllegalStepNegative() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/illegalStepNegative.kt"); + } + + @TestMetadata("illegalStepNonConst.kt") + public void testIllegalStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/illegalStepNonConst.kt"); + } + + @TestMetadata("illegalStepThenLegalStep.kt") + public void testIllegalStepThenLegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/illegalStepThenLegalStep.kt"); + } + + @TestMetadata("illegalStepZero.kt") + public void testIllegalStepZero() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/illegalStepZero.kt"); + } + + @TestMetadata("legalStepThenIllegalStep.kt") + public void testLegalStepThenIllegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/legalStepThenIllegalStep.kt"); + } + + @TestMetadata("maxValueToMinValueStepMaxValue.kt") + public void testMaxValueToMinValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/maxValueToMinValueStepMaxValue.kt"); + } + + @TestMetadata("maxValueToOneStepMaxValue.kt") + public void testMaxValueToOneStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/maxValueToOneStepMaxValue.kt"); + } + + @TestMetadata("maxValueToZeroStepMaxValue.kt") + public void testMaxValueToZeroStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/maxValueToZeroStepMaxValue.kt"); + } + + @TestMetadata("mixedTypeStep.kt") + public void testMixedTypeStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/mixedTypeStep.kt"); + } + + @TestMetadata("singleElementStepTwo.kt") + public void testSingleElementStepTwo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/singleElementStepTwo.kt"); + } + + @TestMetadata("stepNonConst.kt") + public void testStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/stepNonConst.kt"); + } + + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/stepOne.kt"); + } + + @TestMetadata("stepToOutsideRange.kt") + public void testStepToOutsideRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/stepToOutsideRange.kt"); + } + + @TestMetadata("stepToSameLast.kt") + public void testStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/stepToSameLast.kt"); + } + + @TestMetadata("stepToSmallerLast.kt") + public void testStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/stepToSmallerLast.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/expression/downTo/nestedStep") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NestedStep extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNestedStep() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/expression/downTo/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/nestedStep/stepOneThenStepOne.kt"); + } + + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/nestedStep/stepThenSameStep.kt"); + } + + @TestMetadata("stepToSameLastThenStepOne.kt") + public void testStepToSameLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/nestedStep/stepToSameLastThenStepOne.kt"); + } + + @TestMetadata("stepToSameLastThenStepToSameLast.kt") + public void testStepToSameLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/nestedStep/stepToSameLastThenStepToSameLast.kt"); + } + + @TestMetadata("stepToSameLastThenStepToSmallerLast.kt") + public void testStepToSameLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/nestedStep/stepToSameLastThenStepToSmallerLast.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepOne.kt") + public void testStepToSmallerLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/nestedStep/stepToSmallerLastThenStepOne.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepToSameLast.kt") + public void testStepToSmallerLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/nestedStep/stepToSmallerLastThenStepToSameLast.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt") + public void testStepToSmallerLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/expression/downTo/reversed") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Reversed extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInReversed() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/expression/downTo/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/reversed/reversedThenStep.kt"); + } + + @TestMetadata("reversedThenStepThenReversed.kt") + public void testReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/reversed/reversedThenStepThenReversed.kt"); + } + + @TestMetadata("reversedThenStepThenReversedThenStep.kt") + public void testReversedThenStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/reversed/reversedThenStepThenReversedThenStep.kt"); + } + + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/reversed/stepThenReversed.kt"); + } + + @TestMetadata("stepThenReversedThenStep.kt") + public void testStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/reversed/stepThenReversedThenStep.kt"); + } + + @TestMetadata("stepThenReversedThenStepThenReversed.kt") + public void testStepThenReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/downTo/reversed/stepThenReversedThenStepThenReversed.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class RangeTo extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInRangeTo() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("emptyProgression.kt") + public void testEmptyProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/emptyProgression.kt"); + } + + @TestMetadata("illegalStepNegative.kt") + public void testIllegalStepNegative() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/illegalStepNegative.kt"); + } + + @TestMetadata("illegalStepNonConst.kt") + public void testIllegalStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/illegalStepNonConst.kt"); + } + + @TestMetadata("illegalStepThenLegalStep.kt") + public void testIllegalStepThenLegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/illegalStepThenLegalStep.kt"); + } + + @TestMetadata("illegalStepZero.kt") + public void testIllegalStepZero() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/illegalStepZero.kt"); + } + + @TestMetadata("legalStepThenIllegalStep.kt") + public void testLegalStepThenIllegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/legalStepThenIllegalStep.kt"); + } + + @TestMetadata("minValueToMaxValueStepMaxValue.kt") + public void testMinValueToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/minValueToMaxValueStepMaxValue.kt"); + } + + @TestMetadata("mixedTypeStep.kt") + public void testMixedTypeStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/mixedTypeStep.kt"); + } + + @TestMetadata("oneToMaxValueStepMaxValue.kt") + public void testOneToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/oneToMaxValueStepMaxValue.kt"); + } + + @TestMetadata("singleElementStepTwo.kt") + public void testSingleElementStepTwo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/singleElementStepTwo.kt"); + } + + @TestMetadata("stepNonConst.kt") + public void testStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/stepNonConst.kt"); + } + + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/stepOne.kt"); + } + + @TestMetadata("stepToOutsideRange.kt") + public void testStepToOutsideRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/stepToOutsideRange.kt"); + } + + @TestMetadata("stepToSameLast.kt") + public void testStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/stepToSameLast.kt"); + } + + @TestMetadata("stepToSmallerLast.kt") + public void testStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/stepToSmallerLast.kt"); + } + + @TestMetadata("zeroToMaxValueStepMaxValue.kt") + public void testZeroToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/zeroToMaxValueStepMaxValue.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/nestedStep") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NestedStep extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNestedStep() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/nestedStep/stepOneThenStepOne.kt"); + } + + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/nestedStep/stepThenSameStep.kt"); + } + + @TestMetadata("stepToSameLastThenStepOne.kt") + public void testStepToSameLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/nestedStep/stepToSameLastThenStepOne.kt"); + } + + @TestMetadata("stepToSameLastThenStepToSameLast.kt") + public void testStepToSameLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/nestedStep/stepToSameLastThenStepToSameLast.kt"); + } + + @TestMetadata("stepToSameLastThenStepToSmallerLast.kt") + public void testStepToSameLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/nestedStep/stepToSameLastThenStepToSmallerLast.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepOne.kt") + public void testStepToSmallerLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/nestedStep/stepToSmallerLastThenStepOne.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepToSameLast.kt") + public void testStepToSmallerLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/nestedStep/stepToSmallerLastThenStepToSameLast.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt") + public void testStepToSmallerLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/reversed") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Reversed extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInReversed() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/reversed/reversedThenStep.kt"); + } + + @TestMetadata("reversedThenStepThenReversed.kt") + public void testReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/reversed/reversedThenStepThenReversed.kt"); + } + + @TestMetadata("reversedThenStepThenReversedThenStep.kt") + public void testReversedThenStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/reversed/reversedThenStepThenReversedThenStep.kt"); + } + + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/reversed/stepThenReversed.kt"); + } + + @TestMetadata("stepThenReversedThenStep.kt") + public void testStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/reversed/stepThenReversedThenStep.kt"); + } + + @TestMetadata("stepThenReversedThenStepThenReversed.kt") + public void testStepThenReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/reversed/stepThenReversedThenStepThenReversed.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/expression/until") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Until extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInUntil() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/expression/until"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("emptyProgression.kt") + public void testEmptyProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/emptyProgression.kt"); + } + + @TestMetadata("emptyProgressionToMinValue.kt") + public void testEmptyProgressionToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/emptyProgressionToMinValue.kt"); + } + + @TestMetadata("illegalStepNegative.kt") + public void testIllegalStepNegative() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/illegalStepNegative.kt"); + } + + @TestMetadata("illegalStepNonConst.kt") + public void testIllegalStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/illegalStepNonConst.kt"); + } + + @TestMetadata("illegalStepThenLegalStep.kt") + public void testIllegalStepThenLegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/illegalStepThenLegalStep.kt"); + } + + @TestMetadata("illegalStepZero.kt") + public void testIllegalStepZero() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/illegalStepZero.kt"); + } + + @TestMetadata("legalStepThenIllegalStep.kt") + public void testLegalStepThenIllegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/legalStepThenIllegalStep.kt"); + } + + @TestMetadata("minValueToMaxValueStepMaxValue.kt") + public void testMinValueToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/minValueToMaxValueStepMaxValue.kt"); + } + + @TestMetadata("mixedTypeStep.kt") + public void testMixedTypeStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/mixedTypeStep.kt"); + } + + @TestMetadata("progressionToNonConst.kt") + public void testProgressionToNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/progressionToNonConst.kt"); + } + + @TestMetadata("singleElementStepTwo.kt") + public void testSingleElementStepTwo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/singleElementStepTwo.kt"); + } + + @TestMetadata("stepNonConst.kt") + public void testStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/stepNonConst.kt"); + } + + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/stepOne.kt"); + } + + @TestMetadata("stepToOutsideRange.kt") + public void testStepToOutsideRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/stepToOutsideRange.kt"); + } + + @TestMetadata("stepToSameLast.kt") + public void testStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/stepToSameLast.kt"); + } + + @TestMetadata("stepToSmallerLast.kt") + public void testStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/stepToSmallerLast.kt"); + } + + @TestMetadata("zeroToMaxValueStepMaxValue.kt") + public void testZeroToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/zeroToMaxValueStepMaxValue.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/expression/until/nestedStep") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NestedStep extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNestedStep() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/expression/until/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/nestedStep/stepOneThenStepOne.kt"); + } + + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/nestedStep/stepThenSameStep.kt"); + } + + @TestMetadata("stepToSameLastThenStepOne.kt") + public void testStepToSameLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/nestedStep/stepToSameLastThenStepOne.kt"); + } + + @TestMetadata("stepToSameLastThenStepToSameLast.kt") + public void testStepToSameLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/nestedStep/stepToSameLastThenStepToSameLast.kt"); + } + + @TestMetadata("stepToSameLastThenStepToSmallerLast.kt") + public void testStepToSameLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/nestedStep/stepToSameLastThenStepToSmallerLast.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepOne.kt") + public void testStepToSmallerLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/nestedStep/stepToSmallerLastThenStepOne.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepToSameLast.kt") + public void testStepToSmallerLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/nestedStep/stepToSmallerLastThenStepToSameLast.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt") + public void testStepToSmallerLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/expression/until/reversed") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Reversed extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInReversed() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/expression/until/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/reversed/reversedThenStep.kt"); + } + + @TestMetadata("reversedThenStepThenReversed.kt") + public void testReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/reversed/reversedThenStepThenReversed.kt"); + } + + @TestMetadata("reversedThenStepThenReversedThenStep.kt") + public void testReversedThenStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/reversed/reversedThenStepThenReversedThenStep.kt"); + } + + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/reversed/stepThenReversed.kt"); + } + + @TestMetadata("stepThenReversedThenStep.kt") + public void testStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/reversed/stepThenReversedThenStep.kt"); + } + + @TestMetadata("stepThenReversedThenStepThenReversed.kt") + public void testStepThenReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/expression/until/reversed/stepThenReversedThenStepThenReversed.kt"); + } + } + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/literal") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Literal extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInLiteral() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/literal"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/literal/downTo") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DownTo extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDownTo() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/literal/downTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("emptyProgression.kt") + public void testEmptyProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/emptyProgression.kt"); + } + + @TestMetadata("illegalStepNegative.kt") + public void testIllegalStepNegative() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/illegalStepNegative.kt"); + } + + @TestMetadata("illegalStepNonConst.kt") + public void testIllegalStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/illegalStepNonConst.kt"); + } + + @TestMetadata("illegalStepThenLegalStep.kt") + public void testIllegalStepThenLegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/illegalStepThenLegalStep.kt"); + } + + @TestMetadata("illegalStepZero.kt") + public void testIllegalStepZero() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/illegalStepZero.kt"); + } + + @TestMetadata("legalStepThenIllegalStep.kt") + public void testLegalStepThenIllegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/legalStepThenIllegalStep.kt"); + } + + @TestMetadata("maxValueToMinValueStepMaxValue.kt") + public void testMaxValueToMinValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/maxValueToMinValueStepMaxValue.kt"); + } + + @TestMetadata("maxValueToOneStepMaxValue.kt") + public void testMaxValueToOneStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/maxValueToOneStepMaxValue.kt"); + } + + @TestMetadata("maxValueToZeroStepMaxValue.kt") + public void testMaxValueToZeroStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/maxValueToZeroStepMaxValue.kt"); + } + + @TestMetadata("mixedTypeStep.kt") + public void testMixedTypeStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/mixedTypeStep.kt"); + } + + @TestMetadata("singleElementStepTwo.kt") + public void testSingleElementStepTwo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/singleElementStepTwo.kt"); + } + + @TestMetadata("stepNonConst.kt") + public void testStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/stepNonConst.kt"); + } + + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/stepOne.kt"); + } + + @TestMetadata("stepToOutsideRange.kt") + public void testStepToOutsideRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/stepToOutsideRange.kt"); + } + + @TestMetadata("stepToSameLast.kt") + public void testStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/stepToSameLast.kt"); + } + + @TestMetadata("stepToSmallerLast.kt") + public void testStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/stepToSmallerLast.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/literal/downTo/nestedStep") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NestedStep extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNestedStep() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/literal/downTo/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/nestedStep/stepOneThenStepOne.kt"); + } + + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/nestedStep/stepThenSameStep.kt"); + } + + @TestMetadata("stepToSameLastThenStepOne.kt") + public void testStepToSameLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/nestedStep/stepToSameLastThenStepOne.kt"); + } + + @TestMetadata("stepToSameLastThenStepToSameLast.kt") + public void testStepToSameLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/nestedStep/stepToSameLastThenStepToSameLast.kt"); + } + + @TestMetadata("stepToSameLastThenStepToSmallerLast.kt") + public void testStepToSameLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/nestedStep/stepToSameLastThenStepToSmallerLast.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepOne.kt") + public void testStepToSmallerLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/nestedStep/stepToSmallerLastThenStepOne.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepToSameLast.kt") + public void testStepToSmallerLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/nestedStep/stepToSmallerLastThenStepToSameLast.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt") + public void testStepToSmallerLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/literal/downTo/reversed") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Reversed extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInReversed() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/literal/downTo/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/reversed/reversedThenStep.kt"); + } + + @TestMetadata("reversedThenStepThenReversed.kt") + public void testReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/reversed/reversedThenStepThenReversed.kt"); + } + + @TestMetadata("reversedThenStepThenReversedThenStep.kt") + public void testReversedThenStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/reversed/reversedThenStepThenReversedThenStep.kt"); + } + + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/reversed/stepThenReversed.kt"); + } + + @TestMetadata("stepThenReversedThenStep.kt") + public void testStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/reversed/stepThenReversedThenStep.kt"); + } + + @TestMetadata("stepThenReversedThenStepThenReversed.kt") + public void testStepThenReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/downTo/reversed/stepThenReversedThenStepThenReversed.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class RangeTo extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInRangeTo() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("emptyProgression.kt") + public void testEmptyProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/emptyProgression.kt"); + } + + @TestMetadata("illegalStepNegative.kt") + public void testIllegalStepNegative() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/illegalStepNegative.kt"); + } + + @TestMetadata("illegalStepNonConst.kt") + public void testIllegalStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/illegalStepNonConst.kt"); + } + + @TestMetadata("illegalStepThenLegalStep.kt") + public void testIllegalStepThenLegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/illegalStepThenLegalStep.kt"); + } + + @TestMetadata("illegalStepZero.kt") + public void testIllegalStepZero() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/illegalStepZero.kt"); + } + + @TestMetadata("legalStepThenIllegalStep.kt") + public void testLegalStepThenIllegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/legalStepThenIllegalStep.kt"); + } + + @TestMetadata("minValueToMaxValueStepMaxValue.kt") + public void testMinValueToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/minValueToMaxValueStepMaxValue.kt"); + } + + @TestMetadata("mixedTypeStep.kt") + public void testMixedTypeStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/mixedTypeStep.kt"); + } + + @TestMetadata("oneToMaxValueStepMaxValue.kt") + public void testOneToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/oneToMaxValueStepMaxValue.kt"); + } + + @TestMetadata("singleElementStepTwo.kt") + public void testSingleElementStepTwo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/singleElementStepTwo.kt"); + } + + @TestMetadata("stepNonConst.kt") + public void testStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/stepNonConst.kt"); + } + + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/stepOne.kt"); + } + + @TestMetadata("stepToOutsideRange.kt") + public void testStepToOutsideRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/stepToOutsideRange.kt"); + } + + @TestMetadata("stepToSameLast.kt") + public void testStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/stepToSameLast.kt"); + } + + @TestMetadata("stepToSmallerLast.kt") + public void testStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/stepToSmallerLast.kt"); + } + + @TestMetadata("zeroToMaxValueStepMaxValue.kt") + public void testZeroToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/zeroToMaxValueStepMaxValue.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/nestedStep") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NestedStep extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNestedStep() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/nestedStep/stepOneThenStepOne.kt"); + } + + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/nestedStep/stepThenSameStep.kt"); + } + + @TestMetadata("stepToSameLastThenStepOne.kt") + public void testStepToSameLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/nestedStep/stepToSameLastThenStepOne.kt"); + } + + @TestMetadata("stepToSameLastThenStepToSameLast.kt") + public void testStepToSameLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/nestedStep/stepToSameLastThenStepToSameLast.kt"); + } + + @TestMetadata("stepToSameLastThenStepToSmallerLast.kt") + public void testStepToSameLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/nestedStep/stepToSameLastThenStepToSmallerLast.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepOne.kt") + public void testStepToSmallerLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/nestedStep/stepToSmallerLastThenStepOne.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepToSameLast.kt") + public void testStepToSmallerLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/nestedStep/stepToSmallerLastThenStepToSameLast.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt") + public void testStepToSmallerLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/reversed") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Reversed extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInReversed() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/reversed/reversedThenStep.kt"); + } + + @TestMetadata("reversedThenStepThenReversed.kt") + public void testReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/reversed/reversedThenStepThenReversed.kt"); + } + + @TestMetadata("reversedThenStepThenReversedThenStep.kt") + public void testReversedThenStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/reversed/reversedThenStepThenReversedThenStep.kt"); + } + + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/reversed/stepThenReversed.kt"); + } + + @TestMetadata("stepThenReversedThenStep.kt") + public void testStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/reversed/stepThenReversedThenStep.kt"); + } + + @TestMetadata("stepThenReversedThenStepThenReversed.kt") + public void testStepThenReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/reversed/stepThenReversedThenStepThenReversed.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/literal/until") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Until extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInUntil() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/literal/until"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("emptyProgression.kt") + public void testEmptyProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/emptyProgression.kt"); + } + + @TestMetadata("emptyProgressionToMinValue.kt") + public void testEmptyProgressionToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/emptyProgressionToMinValue.kt"); + } + + @TestMetadata("illegalStepNegative.kt") + public void testIllegalStepNegative() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/illegalStepNegative.kt"); + } + + @TestMetadata("illegalStepNonConst.kt") + public void testIllegalStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/illegalStepNonConst.kt"); + } + + @TestMetadata("illegalStepThenLegalStep.kt") + public void testIllegalStepThenLegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/illegalStepThenLegalStep.kt"); + } + + @TestMetadata("illegalStepZero.kt") + public void testIllegalStepZero() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/illegalStepZero.kt"); + } + + @TestMetadata("legalStepThenIllegalStep.kt") + public void testLegalStepThenIllegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/legalStepThenIllegalStep.kt"); + } + + @TestMetadata("minValueToMaxValueStepMaxValue.kt") + public void testMinValueToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/minValueToMaxValueStepMaxValue.kt"); + } + + @TestMetadata("mixedTypeStep.kt") + public void testMixedTypeStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/mixedTypeStep.kt"); + } + + @TestMetadata("progressionToNonConst.kt") + public void testProgressionToNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/progressionToNonConst.kt"); + } + + @TestMetadata("singleElementStepTwo.kt") + public void testSingleElementStepTwo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/singleElementStepTwo.kt"); + } + + @TestMetadata("stepNonConst.kt") + public void testStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/stepNonConst.kt"); + } + + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/stepOne.kt"); + } + + @TestMetadata("stepToOutsideRange.kt") + public void testStepToOutsideRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/stepToOutsideRange.kt"); + } + + @TestMetadata("stepToSameLast.kt") + public void testStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/stepToSameLast.kt"); + } + + @TestMetadata("stepToSmallerLast.kt") + public void testStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/stepToSmallerLast.kt"); + } + + @TestMetadata("zeroToMaxValueStepMaxValue.kt") + public void testZeroToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/zeroToMaxValueStepMaxValue.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/literal/until/nestedStep") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NestedStep extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNestedStep() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/literal/until/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/nestedStep/stepOneThenStepOne.kt"); + } + + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/nestedStep/stepThenSameStep.kt"); + } + + @TestMetadata("stepToSameLastThenStepOne.kt") + public void testStepToSameLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/nestedStep/stepToSameLastThenStepOne.kt"); + } + + @TestMetadata("stepToSameLastThenStepToSameLast.kt") + public void testStepToSameLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/nestedStep/stepToSameLastThenStepToSameLast.kt"); + } + + @TestMetadata("stepToSameLastThenStepToSmallerLast.kt") + public void testStepToSameLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/nestedStep/stepToSameLastThenStepToSmallerLast.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepOne.kt") + public void testStepToSmallerLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/nestedStep/stepToSmallerLastThenStepOne.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepToSameLast.kt") + public void testStepToSmallerLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/nestedStep/stepToSmallerLastThenStepToSameLast.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt") + public void testStepToSmallerLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/literal/until/reversed") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Reversed extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInReversed() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/literal/until/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/reversed/reversedThenStep.kt"); + } + + @TestMetadata("reversedThenStepThenReversed.kt") + public void testReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/reversed/reversedThenStepThenReversed.kt"); + } + + @TestMetadata("reversedThenStepThenReversedThenStep.kt") + public void testReversedThenStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/reversed/reversedThenStepThenReversedThenStep.kt"); + } + + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/reversed/stepThenReversed.kt"); + } + + @TestMetadata("stepThenReversedThenStep.kt") + public void testStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/reversed/stepThenReversedThenStep.kt"); + } + + @TestMetadata("stepThenReversedThenStepThenReversed.kt") + public void testStepThenReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/literal/until/reversed/stepThenReversedThenStepThenReversed.kt"); + } + } + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Unsigned extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInUnsigned() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/expression") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Expression extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInExpression() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/expression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DownTo extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDownTo() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("emptyProgression.kt") + public void testEmptyProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/emptyProgression.kt"); + } + + @TestMetadata("illegalStepNegative.kt") + public void testIllegalStepNegative() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/illegalStepNegative.kt"); + } + + @TestMetadata("illegalStepNonConst.kt") + public void testIllegalStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/illegalStepNonConst.kt"); + } + + @TestMetadata("illegalStepThenLegalStep.kt") + public void testIllegalStepThenLegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/illegalStepThenLegalStep.kt"); + } + + @TestMetadata("illegalStepZero.kt") + public void testIllegalStepZero() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/illegalStepZero.kt"); + } + + @TestMetadata("legalStepThenIllegalStep.kt") + public void testLegalStepThenIllegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/legalStepThenIllegalStep.kt"); + } + + @TestMetadata("maxValueToMinValueStepMaxValue.kt") + public void testMaxValueToMinValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/maxValueToMinValueStepMaxValue.kt"); + } + + @TestMetadata("maxValueToOneStepMaxValue.kt") + public void testMaxValueToOneStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/maxValueToOneStepMaxValue.kt"); + } + + @TestMetadata("maxValueToZeroStepMaxValue.kt") + public void testMaxValueToZeroStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/maxValueToZeroStepMaxValue.kt"); + } + + @TestMetadata("mixedTypeStep.kt") + public void testMixedTypeStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/mixedTypeStep.kt"); + } + + @TestMetadata("singleElementStepTwo.kt") + public void testSingleElementStepTwo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/singleElementStepTwo.kt"); + } + + @TestMetadata("stepNonConst.kt") + public void testStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/stepNonConst.kt"); + } + + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/stepOne.kt"); + } + + @TestMetadata("stepToOutsideRange.kt") + public void testStepToOutsideRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/stepToOutsideRange.kt"); + } + + @TestMetadata("stepToSameLast.kt") + public void testStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/stepToSameLast.kt"); + } + + @TestMetadata("stepToSmallerLast.kt") + public void testStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/stepToSmallerLast.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/nestedStep") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NestedStep extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNestedStep() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/nestedStep/stepOneThenStepOne.kt"); + } + + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/nestedStep/stepThenSameStep.kt"); + } + + @TestMetadata("stepToSameLastThenStepOne.kt") + public void testStepToSameLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/nestedStep/stepToSameLastThenStepOne.kt"); + } + + @TestMetadata("stepToSameLastThenStepToSameLast.kt") + public void testStepToSameLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/nestedStep/stepToSameLastThenStepToSameLast.kt"); + } + + @TestMetadata("stepToSameLastThenStepToSmallerLast.kt") + public void testStepToSameLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/nestedStep/stepToSameLastThenStepToSmallerLast.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepOne.kt") + public void testStepToSmallerLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/nestedStep/stepToSmallerLastThenStepOne.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepToSameLast.kt") + public void testStepToSmallerLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/nestedStep/stepToSmallerLastThenStepToSameLast.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt") + public void testStepToSmallerLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/reversed") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Reversed extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInReversed() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/reversed/reversedThenStep.kt"); + } + + @TestMetadata("reversedThenStepThenReversed.kt") + public void testReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/reversed/reversedThenStepThenReversed.kt"); + } + + @TestMetadata("reversedThenStepThenReversedThenStep.kt") + public void testReversedThenStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/reversed/reversedThenStepThenReversedThenStep.kt"); + } + + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/reversed/stepThenReversed.kt"); + } + + @TestMetadata("stepThenReversedThenStep.kt") + public void testStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/reversed/stepThenReversedThenStep.kt"); + } + + @TestMetadata("stepThenReversedThenStepThenReversed.kt") + public void testStepThenReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/reversed/stepThenReversedThenStepThenReversed.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class RangeTo extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInRangeTo() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("emptyProgression.kt") + public void testEmptyProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/emptyProgression.kt"); + } + + @TestMetadata("illegalStepNegative.kt") + public void testIllegalStepNegative() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/illegalStepNegative.kt"); + } + + @TestMetadata("illegalStepNonConst.kt") + public void testIllegalStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/illegalStepNonConst.kt"); + } + + @TestMetadata("illegalStepThenLegalStep.kt") + public void testIllegalStepThenLegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/illegalStepThenLegalStep.kt"); + } + + @TestMetadata("illegalStepZero.kt") + public void testIllegalStepZero() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/illegalStepZero.kt"); + } + + @TestMetadata("legalStepThenIllegalStep.kt") + public void testLegalStepThenIllegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/legalStepThenIllegalStep.kt"); + } + + @TestMetadata("minValueToMaxValueStepMaxValue.kt") + public void testMinValueToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/minValueToMaxValueStepMaxValue.kt"); + } + + @TestMetadata("mixedTypeStep.kt") + public void testMixedTypeStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/mixedTypeStep.kt"); + } + + @TestMetadata("oneToMaxValueStepMaxValue.kt") + public void testOneToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/oneToMaxValueStepMaxValue.kt"); + } + + @TestMetadata("singleElementStepTwo.kt") + public void testSingleElementStepTwo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/singleElementStepTwo.kt"); + } + + @TestMetadata("stepNonConst.kt") + public void testStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/stepNonConst.kt"); + } + + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/stepOne.kt"); + } + + @TestMetadata("stepToOutsideRange.kt") + public void testStepToOutsideRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/stepToOutsideRange.kt"); + } + + @TestMetadata("stepToSameLast.kt") + public void testStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/stepToSameLast.kt"); + } + + @TestMetadata("stepToSmallerLast.kt") + public void testStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/stepToSmallerLast.kt"); + } + + @TestMetadata("zeroToMaxValueStepMaxValue.kt") + public void testZeroToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/zeroToMaxValueStepMaxValue.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/nestedStep") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NestedStep extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNestedStep() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/nestedStep/stepOneThenStepOne.kt"); + } + + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/nestedStep/stepThenSameStep.kt"); + } + + @TestMetadata("stepToSameLastThenStepOne.kt") + public void testStepToSameLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/nestedStep/stepToSameLastThenStepOne.kt"); + } + + @TestMetadata("stepToSameLastThenStepToSameLast.kt") + public void testStepToSameLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/nestedStep/stepToSameLastThenStepToSameLast.kt"); + } + + @TestMetadata("stepToSameLastThenStepToSmallerLast.kt") + public void testStepToSameLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/nestedStep/stepToSameLastThenStepToSmallerLast.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepOne.kt") + public void testStepToSmallerLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/nestedStep/stepToSmallerLastThenStepOne.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepToSameLast.kt") + public void testStepToSmallerLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/nestedStep/stepToSmallerLastThenStepToSameLast.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt") + public void testStepToSmallerLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/reversed") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Reversed extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInReversed() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/reversed/reversedThenStep.kt"); + } + + @TestMetadata("reversedThenStepThenReversed.kt") + public void testReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/reversed/reversedThenStepThenReversed.kt"); + } + + @TestMetadata("reversedThenStepThenReversedThenStep.kt") + public void testReversedThenStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/reversed/reversedThenStepThenReversedThenStep.kt"); + } + + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/reversed/stepThenReversed.kt"); + } + + @TestMetadata("stepThenReversedThenStep.kt") + public void testStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/reversed/stepThenReversedThenStep.kt"); + } + + @TestMetadata("stepThenReversedThenStepThenReversed.kt") + public void testStepThenReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/reversed/stepThenReversedThenStepThenReversed.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Until extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInUntil() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("emptyProgression.kt") + public void testEmptyProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/emptyProgression.kt"); + } + + @TestMetadata("emptyProgressionToMinValue.kt") + public void testEmptyProgressionToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/emptyProgressionToMinValue.kt"); + } + + @TestMetadata("illegalStepNegative.kt") + public void testIllegalStepNegative() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/illegalStepNegative.kt"); + } + + @TestMetadata("illegalStepNonConst.kt") + public void testIllegalStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/illegalStepNonConst.kt"); + } + + @TestMetadata("illegalStepThenLegalStep.kt") + public void testIllegalStepThenLegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/illegalStepThenLegalStep.kt"); + } + + @TestMetadata("illegalStepZero.kt") + public void testIllegalStepZero() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/illegalStepZero.kt"); + } + + @TestMetadata("legalStepThenIllegalStep.kt") + public void testLegalStepThenIllegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/legalStepThenIllegalStep.kt"); + } + + @TestMetadata("minValueToMaxValueStepMaxValue.kt") + public void testMinValueToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/minValueToMaxValueStepMaxValue.kt"); + } + + @TestMetadata("mixedTypeStep.kt") + public void testMixedTypeStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/mixedTypeStep.kt"); + } + + @TestMetadata("progressionToNonConst.kt") + public void testProgressionToNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/progressionToNonConst.kt"); + } + + @TestMetadata("singleElementStepTwo.kt") + public void testSingleElementStepTwo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/singleElementStepTwo.kt"); + } + + @TestMetadata("stepNonConst.kt") + public void testStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/stepNonConst.kt"); + } + + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/stepOne.kt"); + } + + @TestMetadata("stepToOutsideRange.kt") + public void testStepToOutsideRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/stepToOutsideRange.kt"); + } + + @TestMetadata("stepToSameLast.kt") + public void testStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/stepToSameLast.kt"); + } + + @TestMetadata("stepToSmallerLast.kt") + public void testStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/stepToSmallerLast.kt"); + } + + @TestMetadata("zeroToMaxValueStepMaxValue.kt") + public void testZeroToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/zeroToMaxValueStepMaxValue.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/nestedStep") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NestedStep extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNestedStep() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/nestedStep/stepOneThenStepOne.kt"); + } + + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/nestedStep/stepThenSameStep.kt"); + } + + @TestMetadata("stepToSameLastThenStepOne.kt") + public void testStepToSameLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/nestedStep/stepToSameLastThenStepOne.kt"); + } + + @TestMetadata("stepToSameLastThenStepToSameLast.kt") + public void testStepToSameLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/nestedStep/stepToSameLastThenStepToSameLast.kt"); + } + + @TestMetadata("stepToSameLastThenStepToSmallerLast.kt") + public void testStepToSameLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/nestedStep/stepToSameLastThenStepToSmallerLast.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepOne.kt") + public void testStepToSmallerLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/nestedStep/stepToSmallerLastThenStepOne.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepToSameLast.kt") + public void testStepToSmallerLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/nestedStep/stepToSmallerLastThenStepToSameLast.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt") + public void testStepToSmallerLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/reversed") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Reversed extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInReversed() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/reversed/reversedThenStep.kt"); + } + + @TestMetadata("reversedThenStepThenReversed.kt") + public void testReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/reversed/reversedThenStepThenReversed.kt"); + } + + @TestMetadata("reversedThenStepThenReversedThenStep.kt") + public void testReversedThenStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/reversed/reversedThenStepThenReversedThenStep.kt"); + } + + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/reversed/stepThenReversed.kt"); + } + + @TestMetadata("stepThenReversedThenStep.kt") + public void testStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/reversed/stepThenReversedThenStep.kt"); + } + + @TestMetadata("stepThenReversedThenStepThenReversed.kt") + public void testStepThenReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/reversed/stepThenReversedThenStepThenReversed.kt"); + } + } + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/literal") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Literal extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInLiteral() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/literal"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DownTo extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDownTo() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("emptyProgression.kt") + public void testEmptyProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/emptyProgression.kt"); + } + + @TestMetadata("illegalStepNegative.kt") + public void testIllegalStepNegative() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/illegalStepNegative.kt"); + } + + @TestMetadata("illegalStepNonConst.kt") + public void testIllegalStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/illegalStepNonConst.kt"); + } + + @TestMetadata("illegalStepThenLegalStep.kt") + public void testIllegalStepThenLegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/illegalStepThenLegalStep.kt"); + } + + @TestMetadata("illegalStepZero.kt") + public void testIllegalStepZero() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/illegalStepZero.kt"); + } + + @TestMetadata("legalStepThenIllegalStep.kt") + public void testLegalStepThenIllegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/legalStepThenIllegalStep.kt"); + } + + @TestMetadata("maxValueToMinValueStepMaxValue.kt") + public void testMaxValueToMinValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/maxValueToMinValueStepMaxValue.kt"); + } + + @TestMetadata("maxValueToOneStepMaxValue.kt") + public void testMaxValueToOneStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/maxValueToOneStepMaxValue.kt"); + } + + @TestMetadata("maxValueToZeroStepMaxValue.kt") + public void testMaxValueToZeroStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/maxValueToZeroStepMaxValue.kt"); + } + + @TestMetadata("mixedTypeStep.kt") + public void testMixedTypeStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/mixedTypeStep.kt"); + } + + @TestMetadata("singleElementStepTwo.kt") + public void testSingleElementStepTwo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/singleElementStepTwo.kt"); + } + + @TestMetadata("stepNonConst.kt") + public void testStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/stepNonConst.kt"); + } + + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/stepOne.kt"); + } + + @TestMetadata("stepToOutsideRange.kt") + public void testStepToOutsideRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/stepToOutsideRange.kt"); + } + + @TestMetadata("stepToSameLast.kt") + public void testStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/stepToSameLast.kt"); + } + + @TestMetadata("stepToSmallerLast.kt") + public void testStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/stepToSmallerLast.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/nestedStep") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NestedStep extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNestedStep() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/nestedStep/stepOneThenStepOne.kt"); + } + + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/nestedStep/stepThenSameStep.kt"); + } + + @TestMetadata("stepToSameLastThenStepOne.kt") + public void testStepToSameLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/nestedStep/stepToSameLastThenStepOne.kt"); + } + + @TestMetadata("stepToSameLastThenStepToSameLast.kt") + public void testStepToSameLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/nestedStep/stepToSameLastThenStepToSameLast.kt"); + } + + @TestMetadata("stepToSameLastThenStepToSmallerLast.kt") + public void testStepToSameLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/nestedStep/stepToSameLastThenStepToSmallerLast.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepOne.kt") + public void testStepToSmallerLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/nestedStep/stepToSmallerLastThenStepOne.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepToSameLast.kt") + public void testStepToSmallerLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/nestedStep/stepToSmallerLastThenStepToSameLast.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt") + public void testStepToSmallerLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/reversed") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Reversed extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInReversed() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/reversed/reversedThenStep.kt"); + } + + @TestMetadata("reversedThenStepThenReversed.kt") + public void testReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/reversed/reversedThenStepThenReversed.kt"); + } + + @TestMetadata("reversedThenStepThenReversedThenStep.kt") + public void testReversedThenStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/reversed/reversedThenStepThenReversedThenStep.kt"); + } + + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/reversed/stepThenReversed.kt"); + } + + @TestMetadata("stepThenReversedThenStep.kt") + public void testStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/reversed/stepThenReversedThenStep.kt"); + } + + @TestMetadata("stepThenReversedThenStepThenReversed.kt") + public void testStepThenReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/reversed/stepThenReversedThenStepThenReversed.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class RangeTo extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInRangeTo() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("emptyProgression.kt") + public void testEmptyProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/emptyProgression.kt"); + } + + @TestMetadata("illegalStepNegative.kt") + public void testIllegalStepNegative() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/illegalStepNegative.kt"); + } + + @TestMetadata("illegalStepNonConst.kt") + public void testIllegalStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/illegalStepNonConst.kt"); + } + + @TestMetadata("illegalStepThenLegalStep.kt") + public void testIllegalStepThenLegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/illegalStepThenLegalStep.kt"); + } + + @TestMetadata("illegalStepZero.kt") + public void testIllegalStepZero() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/illegalStepZero.kt"); + } + + @TestMetadata("legalStepThenIllegalStep.kt") + public void testLegalStepThenIllegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/legalStepThenIllegalStep.kt"); + } + + @TestMetadata("minValueToMaxValueStepMaxValue.kt") + public void testMinValueToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/minValueToMaxValueStepMaxValue.kt"); + } + + @TestMetadata("mixedTypeStep.kt") + public void testMixedTypeStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/mixedTypeStep.kt"); + } + + @TestMetadata("oneToMaxValueStepMaxValue.kt") + public void testOneToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/oneToMaxValueStepMaxValue.kt"); + } + + @TestMetadata("singleElementStepTwo.kt") + public void testSingleElementStepTwo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/singleElementStepTwo.kt"); + } + + @TestMetadata("stepNonConst.kt") + public void testStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/stepNonConst.kt"); + } + + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/stepOne.kt"); + } + + @TestMetadata("stepToOutsideRange.kt") + public void testStepToOutsideRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/stepToOutsideRange.kt"); + } + + @TestMetadata("stepToSameLast.kt") + public void testStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/stepToSameLast.kt"); + } + + @TestMetadata("stepToSmallerLast.kt") + public void testStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/stepToSmallerLast.kt"); + } + + @TestMetadata("zeroToMaxValueStepMaxValue.kt") + public void testZeroToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/zeroToMaxValueStepMaxValue.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/nestedStep") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NestedStep extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNestedStep() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/nestedStep/stepOneThenStepOne.kt"); + } + + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/nestedStep/stepThenSameStep.kt"); + } + + @TestMetadata("stepToSameLastThenStepOne.kt") + public void testStepToSameLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/nestedStep/stepToSameLastThenStepOne.kt"); + } + + @TestMetadata("stepToSameLastThenStepToSameLast.kt") + public void testStepToSameLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/nestedStep/stepToSameLastThenStepToSameLast.kt"); + } + + @TestMetadata("stepToSameLastThenStepToSmallerLast.kt") + public void testStepToSameLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/nestedStep/stepToSameLastThenStepToSmallerLast.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepOne.kt") + public void testStepToSmallerLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/nestedStep/stepToSmallerLastThenStepOne.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepToSameLast.kt") + public void testStepToSmallerLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/nestedStep/stepToSmallerLastThenStepToSameLast.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt") + public void testStepToSmallerLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/reversed") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Reversed extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInReversed() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/reversed/reversedThenStep.kt"); + } + + @TestMetadata("reversedThenStepThenReversed.kt") + public void testReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/reversed/reversedThenStepThenReversed.kt"); + } + + @TestMetadata("reversedThenStepThenReversedThenStep.kt") + public void testReversedThenStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/reversed/reversedThenStepThenReversedThenStep.kt"); + } + + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/reversed/stepThenReversed.kt"); + } + + @TestMetadata("stepThenReversedThenStep.kt") + public void testStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/reversed/stepThenReversedThenStep.kt"); + } + + @TestMetadata("stepThenReversedThenStepThenReversed.kt") + public void testStepThenReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/reversed/stepThenReversedThenStepThenReversed.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Until extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInUntil() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("emptyProgression.kt") + public void testEmptyProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/emptyProgression.kt"); + } + + @TestMetadata("emptyProgressionToMinValue.kt") + public void testEmptyProgressionToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/emptyProgressionToMinValue.kt"); + } + + @TestMetadata("illegalStepNegative.kt") + public void testIllegalStepNegative() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/illegalStepNegative.kt"); + } + + @TestMetadata("illegalStepNonConst.kt") + public void testIllegalStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/illegalStepNonConst.kt"); + } + + @TestMetadata("illegalStepThenLegalStep.kt") + public void testIllegalStepThenLegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/illegalStepThenLegalStep.kt"); + } + + @TestMetadata("illegalStepZero.kt") + public void testIllegalStepZero() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/illegalStepZero.kt"); + } + + @TestMetadata("legalStepThenIllegalStep.kt") + public void testLegalStepThenIllegalStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/legalStepThenIllegalStep.kt"); + } + + @TestMetadata("minValueToMaxValueStepMaxValue.kt") + public void testMinValueToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/minValueToMaxValueStepMaxValue.kt"); + } + + @TestMetadata("mixedTypeStep.kt") + public void testMixedTypeStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/mixedTypeStep.kt"); + } + + @TestMetadata("progressionToNonConst.kt") + public void testProgressionToNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/progressionToNonConst.kt"); + } + + @TestMetadata("singleElementStepTwo.kt") + public void testSingleElementStepTwo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/singleElementStepTwo.kt"); + } + + @TestMetadata("stepNonConst.kt") + public void testStepNonConst() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/stepNonConst.kt"); + } + + @TestMetadata("stepOne.kt") + public void testStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/stepOne.kt"); + } + + @TestMetadata("stepToOutsideRange.kt") + public void testStepToOutsideRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/stepToOutsideRange.kt"); + } + + @TestMetadata("stepToSameLast.kt") + public void testStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/stepToSameLast.kt"); + } + + @TestMetadata("stepToSmallerLast.kt") + public void testStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/stepToSmallerLast.kt"); + } + + @TestMetadata("zeroToMaxValueStepMaxValue.kt") + public void testZeroToMaxValueStepMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/zeroToMaxValueStepMaxValue.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/nestedStep") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NestedStep extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNestedStep() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("stepOneThenStepOne.kt") + public void testStepOneThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/nestedStep/stepOneThenStepOne.kt"); + } + + @TestMetadata("stepThenSameStep.kt") + public void testStepThenSameStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/nestedStep/stepThenSameStep.kt"); + } + + @TestMetadata("stepToSameLastThenStepOne.kt") + public void testStepToSameLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/nestedStep/stepToSameLastThenStepOne.kt"); + } + + @TestMetadata("stepToSameLastThenStepToSameLast.kt") + public void testStepToSameLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/nestedStep/stepToSameLastThenStepToSameLast.kt"); + } + + @TestMetadata("stepToSameLastThenStepToSmallerLast.kt") + public void testStepToSameLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/nestedStep/stepToSameLastThenStepToSmallerLast.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepOne.kt") + public void testStepToSmallerLastThenStepOne() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/nestedStep/stepToSmallerLastThenStepOne.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepToSameLast.kt") + public void testStepToSmallerLastThenStepToSameLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/nestedStep/stepToSmallerLastThenStepToSameLast.kt"); + } + + @TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt") + public void testStepToSmallerLastThenStepToSmallerLast() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/reversed") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Reversed extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInReversed() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("reversedThenStep.kt") + public void testReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/reversed/reversedThenStep.kt"); + } + + @TestMetadata("reversedThenStepThenReversed.kt") + public void testReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/reversed/reversedThenStepThenReversed.kt"); + } + + @TestMetadata("reversedThenStepThenReversedThenStep.kt") + public void testReversedThenStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/reversed/reversedThenStepThenReversedThenStep.kt"); + } + + @TestMetadata("stepThenReversed.kt") + public void testStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/reversed/stepThenReversed.kt"); + } + + @TestMetadata("stepThenReversedThenStep.kt") + public void testStepThenReversedThenStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/reversed/stepThenReversedThenStep.kt"); + } + + @TestMetadata("stepThenReversedThenStepThenReversed.kt") + public void testStepThenReversedThenStepThenReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/reversed/stepThenReversedThenStepThenReversed.kt"); + } + } + } + } + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/unsigned") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Unsigned extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInUnsigned() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/unsigned"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("inMixedUnsignedRange.kt") + public void testInMixedUnsignedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/inMixedUnsignedRange.kt"); + } + + @TestMetadata("kt35004.kt") + public void testKt35004() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/kt35004.kt"); + } + + @TestMetadata("kt36953.kt") + public void testKt36953() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/kt36953.kt"); + } + + @TestMetadata("kt36953_continue.kt") + public void testKt36953_continue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/kt36953_continue.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/ranges/unsigned/expression") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Expression extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInExpression() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/unsigned/expression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("emptyDownto.kt") + public void testEmptyDownto() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/emptyDownto.kt"); + } + + @TestMetadata("emptyRange.kt") + public void testEmptyRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/emptyRange.kt"); + } + + @TestMetadata("inexactDownToMinValue.kt") + public void testInexactDownToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/inexactDownToMinValue.kt"); + } + + @TestMetadata("inexactSteppedDownTo.kt") + public void testInexactSteppedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/inexactSteppedDownTo.kt"); + } + + @TestMetadata("inexactSteppedRange.kt") + public void testInexactSteppedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/inexactSteppedRange.kt"); + } + + @TestMetadata("inexactToMaxValue.kt") + public void testInexactToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/inexactToMaxValue.kt"); + } + + @TestMetadata("maxValueMinusTwoToMaxValue.kt") + public void testMaxValueMinusTwoToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/maxValueMinusTwoToMaxValue.kt"); + } + + @TestMetadata("maxValueToMaxValue.kt") + public void testMaxValueToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/maxValueToMaxValue.kt"); + } + + @TestMetadata("maxValueToMinValue.kt") + public void testMaxValueToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/maxValueToMinValue.kt"); + } + + @TestMetadata("oneElementDownTo.kt") + public void testOneElementDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/oneElementDownTo.kt"); + } + + @TestMetadata("oneElementRange.kt") + public void testOneElementRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/oneElementRange.kt"); + } + + @TestMetadata("openRange.kt") + public void testOpenRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/openRange.kt"); + } + + @TestMetadata("overflowZeroDownToMaxValue.kt") + public void testOverflowZeroDownToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/overflowZeroDownToMaxValue.kt"); + } + + @TestMetadata("overflowZeroToMinValue.kt") + public void testOverflowZeroToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/overflowZeroToMinValue.kt"); + } + + @TestMetadata("progressionDownToMinValue.kt") + public void testProgressionDownToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/progressionDownToMinValue.kt"); + } + + @TestMetadata("progressionMaxValueMinusTwoToMaxValue.kt") + public void testProgressionMaxValueMinusTwoToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/progressionMaxValueMinusTwoToMaxValue.kt"); + } + + @TestMetadata("progressionMaxValueToMaxValue.kt") + public void testProgressionMaxValueToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/progressionMaxValueToMaxValue.kt"); + } + + @TestMetadata("progressionMaxValueToMinValue.kt") + public void testProgressionMaxValueToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/progressionMaxValueToMinValue.kt"); + } + + @TestMetadata("progressionMinValueToMinValue.kt") + public void testProgressionMinValueToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/progressionMinValueToMinValue.kt"); + } + + @TestMetadata("reversedBackSequence.kt") + public void testReversedBackSequence() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/reversedBackSequence.kt"); + } + + @TestMetadata("reversedEmptyBackSequence.kt") + public void testReversedEmptyBackSequence() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/reversedEmptyBackSequence.kt"); + } + + @TestMetadata("reversedEmptyRange.kt") + public void testReversedEmptyRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/reversedEmptyRange.kt"); + } + + @TestMetadata("reversedInexactSteppedDownTo.kt") + public void testReversedInexactSteppedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/reversedInexactSteppedDownTo.kt"); + } + + @TestMetadata("reversedRange.kt") + public void testReversedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/reversedRange.kt"); + } + + @TestMetadata("reversedSimpleSteppedRange.kt") + public void testReversedSimpleSteppedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/reversedSimpleSteppedRange.kt"); + } + + @TestMetadata("simpleDownTo.kt") + public void testSimpleDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/simpleDownTo.kt"); + } + + @TestMetadata("simpleRange.kt") + public void testSimpleRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/simpleRange.kt"); + } + + @TestMetadata("simpleRangeWithNonConstantEnds.kt") + public void testSimpleRangeWithNonConstantEnds() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/simpleRangeWithNonConstantEnds.kt"); + } + + @TestMetadata("simpleSteppedDownTo.kt") + public void testSimpleSteppedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/simpleSteppedDownTo.kt"); + } + + @TestMetadata("simpleSteppedRange.kt") + public void testSimpleSteppedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/expression/simpleSteppedRange.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/unsigned/literal") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Literal extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInLiteral() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/unsigned/literal"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("emptyDownto.kt") + public void testEmptyDownto() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/emptyDownto.kt"); + } + + @TestMetadata("emptyRange.kt") + public void testEmptyRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/emptyRange.kt"); + } + + @TestMetadata("inexactDownToMinValue.kt") + public void testInexactDownToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/inexactDownToMinValue.kt"); + } + + @TestMetadata("inexactSteppedDownTo.kt") + public void testInexactSteppedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/inexactSteppedDownTo.kt"); + } + + @TestMetadata("inexactSteppedRange.kt") + public void testInexactSteppedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/inexactSteppedRange.kt"); + } + + @TestMetadata("inexactToMaxValue.kt") + public void testInexactToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/inexactToMaxValue.kt"); + } + + @TestMetadata("maxValueMinusTwoToMaxValue.kt") + public void testMaxValueMinusTwoToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/maxValueMinusTwoToMaxValue.kt"); + } + + @TestMetadata("maxValueToMaxValue.kt") + public void testMaxValueToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/maxValueToMaxValue.kt"); + } + + @TestMetadata("maxValueToMinValue.kt") + public void testMaxValueToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/maxValueToMinValue.kt"); + } + + @TestMetadata("oneElementDownTo.kt") + public void testOneElementDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/oneElementDownTo.kt"); + } + + @TestMetadata("oneElementRange.kt") + public void testOneElementRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/oneElementRange.kt"); + } + + @TestMetadata("openRange.kt") + public void testOpenRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/openRange.kt"); + } + + @TestMetadata("overflowZeroDownToMaxValue.kt") + public void testOverflowZeroDownToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/overflowZeroDownToMaxValue.kt"); + } + + @TestMetadata("overflowZeroToMinValue.kt") + public void testOverflowZeroToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/overflowZeroToMinValue.kt"); + } + + @TestMetadata("progressionDownToMinValue.kt") + public void testProgressionDownToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/progressionDownToMinValue.kt"); + } + + @TestMetadata("progressionMaxValueMinusTwoToMaxValue.kt") + public void testProgressionMaxValueMinusTwoToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/progressionMaxValueMinusTwoToMaxValue.kt"); + } + + @TestMetadata("progressionMaxValueToMaxValue.kt") + public void testProgressionMaxValueToMaxValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/progressionMaxValueToMaxValue.kt"); + } + + @TestMetadata("progressionMaxValueToMinValue.kt") + public void testProgressionMaxValueToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/progressionMaxValueToMinValue.kt"); + } + + @TestMetadata("progressionMinValueToMinValue.kt") + public void testProgressionMinValueToMinValue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/progressionMinValueToMinValue.kt"); + } + + @TestMetadata("reversedBackSequence.kt") + public void testReversedBackSequence() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/reversedBackSequence.kt"); + } + + @TestMetadata("reversedEmptyBackSequence.kt") + public void testReversedEmptyBackSequence() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/reversedEmptyBackSequence.kt"); + } + + @TestMetadata("reversedEmptyRange.kt") + public void testReversedEmptyRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/reversedEmptyRange.kt"); + } + + @TestMetadata("reversedInexactSteppedDownTo.kt") + public void testReversedInexactSteppedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/reversedInexactSteppedDownTo.kt"); + } + + @TestMetadata("reversedRange.kt") + public void testReversedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/reversedRange.kt"); + } + + @TestMetadata("reversedSimpleSteppedRange.kt") + public void testReversedSimpleSteppedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/reversedSimpleSteppedRange.kt"); + } + + @TestMetadata("simpleDownTo.kt") + public void testSimpleDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/simpleDownTo.kt"); + } + + @TestMetadata("simpleRange.kt") + public void testSimpleRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/simpleRange.kt"); + } + + @TestMetadata("simpleRangeWithNonConstantEnds.kt") + public void testSimpleRangeWithNonConstantEnds() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/simpleRangeWithNonConstantEnds.kt"); + } + + @TestMetadata("simpleSteppedDownTo.kt") + public void testSimpleSteppedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/simpleSteppedDownTo.kt"); + } + + @TestMetadata("simpleSteppedRange.kt") + public void testSimpleSteppedRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/literal/simpleSteppedRange.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ranges/unsigned/nullableLoopParameter") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NullableLoopParameter extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNullableLoopParameter() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/unsigned/nullableLoopParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("progressionExpression.kt") + public void testProgressionExpression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/nullableLoopParameter/progressionExpression.kt"); + } + + @TestMetadata("rangeExpression.kt") + public void testRangeExpression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/nullableLoopParameter/rangeExpression.kt"); + } + + @TestMetadata("rangeLiteral.kt") + public void testRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/box/ranges/unsigned/nullableLoopParameter/rangeLiteral.kt"); + } + } + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Reflection extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInReflection() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/reflection/annotations") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Annotations extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInAnnotations() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("annotationRetentionAnnotation.kt") + public void testAnnotationRetentionAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/annotationRetentionAnnotation.kt"); + } + + @TestMetadata("findAnnotation.kt") + public void testFindAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/findAnnotation.kt"); + } + + @TestMetadata("localClassParameterAnnotation.kt") + public void testLocalClassParameterAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/localClassParameterAnnotation.kt"); + } + + @TestMetadata("openSuspendFun.kt") + public void testOpenSuspendFun() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/openSuspendFun.kt"); + } + + @TestMetadata("privateAnnotation.kt") + public void testPrivateAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/privateAnnotation.kt"); + } + + @TestMetadata("propertyAccessors.kt") + public void testPropertyAccessors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/propertyAccessors.kt"); + } + + @TestMetadata("propertyWithoutBackingField.kt") + public void testPropertyWithoutBackingField() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/propertyWithoutBackingField.kt"); + } + + @TestMetadata("setparam.kt") + public void testSetparam() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/setparam.kt"); + } + + @TestMetadata("simpleClassAnnotation.kt") + public void testSimpleClassAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/simpleClassAnnotation.kt"); + } + + @TestMetadata("simpleFunAnnotation.kt") + public void testSimpleFunAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/simpleFunAnnotation.kt"); + } + + @TestMetadata("simpleParamAnnotation.kt") + public void testSimpleParamAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/simpleParamAnnotation.kt"); + } + + @TestMetadata("simpleValAnnotation.kt") + public void testSimpleValAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/reflection/annotations/simpleValAnnotation.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/reflection/annotations/onTypes") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class OnTypes extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInOnTypes() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/annotations/onTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/builtins") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Builtins extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInBuiltins() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/builtins"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("enumNameOrdinal.kt") + public void testEnumNameOrdinal() throws Exception { + runTest("compiler/testData/codegen/box/reflection/builtins/enumNameOrdinal.kt"); + } + + @TestMetadata("stringLength.kt") + public void testStringLength() throws Exception { + runTest("compiler/testData/codegen/box/reflection/builtins/stringLength.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/call") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Call extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCall() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/call"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("bigArity.kt") + public void testBigArity() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/bigArity.kt"); + } + + @TestMetadata("equalsHashCodeToString.kt") + public void testEqualsHashCodeToString() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/equalsHashCodeToString.kt"); + } + + @TestMetadata("fakeOverride.kt") + public void testFakeOverride() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/fakeOverride.kt"); + } + + @TestMetadata("fakeOverrideSubstituted.kt") + public void testFakeOverrideSubstituted() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/fakeOverrideSubstituted.kt"); + } + + @TestMetadata("innerClassConstructor.kt") + public void testInnerClassConstructor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/innerClassConstructor.kt"); + } + + @TestMetadata("localClassMember.kt") + public void testLocalClassMember() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/localClassMember.kt"); + } + + @TestMetadata("memberOfGenericClass.kt") + public void testMemberOfGenericClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/memberOfGenericClass.kt"); + } + + @TestMetadata("propertyAccessors.kt") + public void testPropertyAccessors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/propertyAccessors.kt"); + } + + @TestMetadata("propertyGetterAndGetFunctionDifferentReturnType.kt") + public void testPropertyGetterAndGetFunctionDifferentReturnType() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/propertyGetterAndGetFunctionDifferentReturnType.kt"); + } + + @TestMetadata("simpleConstructor.kt") + public void testSimpleConstructor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/simpleConstructor.kt"); + } + + @TestMetadata("simpleMemberFunction.kt") + public void testSimpleMemberFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/simpleMemberFunction.kt"); + } + + @TestMetadata("simpleTopLevelFunctions.kt") + public void testSimpleTopLevelFunctions() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/simpleTopLevelFunctions.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/reflection/call/bound") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Bound extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInBound() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/call/bound"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("companionObjectPropertyAccessors.kt") + public void testCompanionObjectPropertyAccessors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/bound/companionObjectPropertyAccessors.kt"); + } + + @TestMetadata("extensionFunction.kt") + public void testExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/bound/extensionFunction.kt"); + } + + @TestMetadata("extensionPropertyAccessors.kt") + public void testExtensionPropertyAccessors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/bound/extensionPropertyAccessors.kt"); + } + + @TestMetadata("innerClassConstructor.kt") + public void testInnerClassConstructor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/bound/innerClassConstructor.kt"); + } + + @TestMetadata("memberFunction.kt") + public void testMemberFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/bound/memberFunction.kt"); + } + + @TestMetadata("memberPropertyAccessors.kt") + public void testMemberPropertyAccessors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/bound/memberPropertyAccessors.kt"); + } + + @TestMetadata("objectFunction.kt") + public void testObjectFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/bound/objectFunction.kt"); + } + + @TestMetadata("objectPropertyAccessors.kt") + public void testObjectPropertyAccessors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/bound/objectPropertyAccessors.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/call/inlineClasses") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class InlineClasses extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInlineClasses() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/call/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("constructorWithInlineClassParameters.kt") + public void testConstructorWithInlineClassParameters() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/constructorWithInlineClassParameters.kt"); + } + + @TestMetadata("functionsWithInlineClassParameters.kt") + public void testFunctionsWithInlineClassParameters() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/functionsWithInlineClassParameters.kt"); + } + + @TestMetadata("inlineClassConstructor.kt") + public void testInlineClassConstructor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/inlineClassConstructor.kt"); + } + + @TestMetadata("internalPrimaryValOfInlineClass.kt") + public void testInternalPrimaryValOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/internalPrimaryValOfInlineClass.kt"); + } + + @TestMetadata("nonOverridingFunOfInlineClass.kt") + public void testNonOverridingFunOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nonOverridingFunOfInlineClass.kt"); + } + + @TestMetadata("nonOverridingVarOfInlineClass.kt") + public void testNonOverridingVarOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nonOverridingVarOfInlineClass.kt"); + } + + @TestMetadata("overridingFunOfInlineClass.kt") + public void testOverridingFunOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/overridingFunOfInlineClass.kt"); + } + + @TestMetadata("overridingVarOfInlineClass.kt") + public void testOverridingVarOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/overridingVarOfInlineClass.kt"); + } + + @TestMetadata("primaryValOfInlineClass.kt") + public void testPrimaryValOfInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primaryValOfInlineClass.kt"); + } + + @TestMetadata("properties.kt") + public void testProperties() throws Exception { + runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/properties.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/callBy") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class CallBy extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCallBy() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/callBy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("boundExtensionFunction.kt") + public void testBoundExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/boundExtensionFunction.kt"); + } + + @TestMetadata("boundExtensionPropertyAcessor.kt") + public void testBoundExtensionPropertyAcessor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/boundExtensionPropertyAcessor.kt"); + } + + @TestMetadata("companionObject.kt") + public void testCompanionObject() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/companionObject.kt"); + } + + @TestMetadata("defaultAndNonDefaultIntertwined.kt") + public void testDefaultAndNonDefaultIntertwined() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/defaultAndNonDefaultIntertwined.kt"); + } + + @TestMetadata("defaultInSuperClass.kt") + public void testDefaultInSuperClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/defaultInSuperClass.kt"); + } + + @TestMetadata("defaultInSuperInterface.kt") + public void testDefaultInSuperInterface() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/defaultInSuperInterface.kt"); + } + + @TestMetadata("emptyVarArg.kt") + public void testEmptyVarArg() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/emptyVarArg.kt"); + } + + @TestMetadata("extensionFunction.kt") + public void testExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/extensionFunction.kt"); + } + + @TestMetadata("inlineClassDefaultArguments.kt") + public void testInlineClassDefaultArguments() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/inlineClassDefaultArguments.kt"); + } + + @TestMetadata("inlineClassFunctionsAndConstructors.kt") + public void testInlineClassFunctionsAndConstructors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/inlineClassFunctionsAndConstructors.kt"); + } + + @TestMetadata("inlineClassMembers.kt") + public void testInlineClassMembers() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/inlineClassMembers.kt"); + } + + @TestMetadata("manyArgumentsNoneDefaultConstructor.kt") + public void testManyArgumentsNoneDefaultConstructor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/manyArgumentsNoneDefaultConstructor.kt"); + } + + @TestMetadata("manyArgumentsNoneDefaultFunction.kt") + public void testManyArgumentsNoneDefaultFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/manyArgumentsNoneDefaultFunction.kt"); + } + + @TestMetadata("manyArgumentsOnlyOneDefault.kt") + public void testManyArgumentsOnlyOneDefault() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/manyArgumentsOnlyOneDefault.kt"); + } + + @TestMetadata("manyMaskArguments.kt") + public void testManyMaskArguments() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/manyMaskArguments.kt"); + } + + @TestMetadata("nonDefaultParameterOmitted.kt") + public void testNonDefaultParameterOmitted() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/nonDefaultParameterOmitted.kt"); + } + + @TestMetadata("nullValue.kt") + public void testNullValue() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/nullValue.kt"); + } + + @TestMetadata("ordinaryMethodIsInvokedWhenNoDefaultValuesAreUsed.kt") + public void testOrdinaryMethodIsInvokedWhenNoDefaultValuesAreUsed() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/ordinaryMethodIsInvokedWhenNoDefaultValuesAreUsed.kt"); + } + + @TestMetadata("primitiveDefaultValues.kt") + public void testPrimitiveDefaultValues() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/primitiveDefaultValues.kt"); + } + + @TestMetadata("simpleConstructor.kt") + public void testSimpleConstructor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/simpleConstructor.kt"); + } + + @TestMetadata("simpleMemberFunciton.kt") + public void testSimpleMemberFunciton() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/simpleMemberFunciton.kt"); + } + + @TestMetadata("simpleTopLevelFunction.kt") + public void testSimpleTopLevelFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/callBy/simpleTopLevelFunction.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/classLiterals") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ClassLiterals extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInClassLiterals() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/classLiterals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("annotationClassLiteral.kt") + public void testAnnotationClassLiteral() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classLiterals/annotationClassLiteral.kt"); + } + + @TestMetadata("genericClass.kt") + public void testGenericClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classLiterals/genericClass.kt"); + } + + @TestMetadata("simpleClassLiteral.kt") + public void testSimpleClassLiteral() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classLiterals/simpleClassLiteral.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/classes") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Classes extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInClasses() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/classes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("companionObject.kt") + public void testCompanionObject() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classes/companionObject.kt"); + } + + @TestMetadata("createInstance.kt") + public void testCreateInstance() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classes/createInstance.kt"); + } + + @TestMetadata("localClassSimpleName.kt") + public void testLocalClassSimpleName() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classes/localClassSimpleName.kt"); + } + + @TestMetadata("objectInstance.kt") + public void testObjectInstance() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classes/objectInstance.kt"); + } + + @TestMetadata("starProjectedType.kt") + public void testStarProjectedType() throws Exception { + runTest("compiler/testData/codegen/box/reflection/classes/starProjectedType.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/constructors") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Constructors extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInConstructors() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/constructors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("annotationClass.kt") + public void testAnnotationClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/constructors/annotationClass.kt"); + } + + @TestMetadata("classesWithoutConstructors.kt") + public void testClassesWithoutConstructors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/constructors/classesWithoutConstructors.kt"); + } + + @TestMetadata("constructorName.kt") + public void testConstructorName() throws Exception { + runTest("compiler/testData/codegen/box/reflection/constructors/constructorName.kt"); + } + + @TestMetadata("enumEntry.kt") + public void testEnumEntry() throws Exception { + runTest("compiler/testData/codegen/box/reflection/constructors/enumEntry.kt"); + } + + @TestMetadata("primaryConstructor.kt") + public void testPrimaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/constructors/primaryConstructor.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/createAnnotation") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class CreateAnnotation extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCreateAnnotation() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/createAnnotation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("annotationType.kt") + public void testAnnotationType() throws Exception { + runTest("compiler/testData/codegen/box/reflection/createAnnotation/annotationType.kt"); + } + + @TestMetadata("arrayOfKClasses.kt") + public void testArrayOfKClasses() throws Exception { + runTest("compiler/testData/codegen/box/reflection/createAnnotation/arrayOfKClasses.kt"); + } + + @TestMetadata("callByWithEmptyVarArg.kt") + public void testCallByWithEmptyVarArg() throws Exception { + runTest("compiler/testData/codegen/box/reflection/createAnnotation/callByWithEmptyVarArg.kt"); + } + + @TestMetadata("enumKClassAnnotation.kt") + public void testEnumKClassAnnotation() throws Exception { + runTest("compiler/testData/codegen/box/reflection/createAnnotation/enumKClassAnnotation.kt"); + } + + @TestMetadata("equalsHashCodeToString.kt") + public void testEqualsHashCodeToString() throws Exception { + runTest("compiler/testData/codegen/box/reflection/createAnnotation/equalsHashCodeToString.kt"); + } + + @TestMetadata("floatingPointParameters.kt") + public void testFloatingPointParameters() throws Exception { + runTest("compiler/testData/codegen/box/reflection/createAnnotation/floatingPointParameters.kt"); + } + + @TestMetadata("parameterNamedEquals.kt") + public void testParameterNamedEquals() throws Exception { + runTest("compiler/testData/codegen/box/reflection/createAnnotation/parameterNamedEquals.kt"); + } + + @TestMetadata("primitivesAndArrays.kt") + public void testPrimitivesAndArrays() throws Exception { + runTest("compiler/testData/codegen/box/reflection/createAnnotation/primitivesAndArrays.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/enclosing") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Enclosing extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInEnclosing() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/enclosing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/functions") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Functions extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInFunctions() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/functions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("enumValuesValueOf.kt") + public void testEnumValuesValueOf() throws Exception { + runTest("compiler/testData/codegen/box/reflection/functions/enumValuesValueOf.kt"); + } + + @TestMetadata("genericOverriddenFunction.kt") + public void testGenericOverriddenFunction() throws Exception { + runTest("compiler/testData/codegen/box/reflection/functions/genericOverriddenFunction.kt"); + } + + @TestMetadata("simpleGetFunctions.kt") + public void testSimpleGetFunctions() throws Exception { + runTest("compiler/testData/codegen/box/reflection/functions/simpleGetFunctions.kt"); + } + + @TestMetadata("simpleNames.kt") + public void testSimpleNames() throws Exception { + runTest("compiler/testData/codegen/box/reflection/functions/simpleNames.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/genericSignature") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class GenericSignature extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInGenericSignature() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/genericSignature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/isInstance") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class IsInstance extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInIsInstance() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/isInstance"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/kClassInAnnotation") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class KClassInAnnotation extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInKClassInAnnotation() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/kClassInAnnotation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("forceWrapping.kt") + public void testForceWrapping() throws Exception { + runTest("compiler/testData/codegen/box/reflection/kClassInAnnotation/forceWrapping.kt"); + } + + @TestMetadata("wrappingForCallableReferences.kt") + public void testWrappingForCallableReferences() throws Exception { + runTest("compiler/testData/codegen/box/reflection/kClassInAnnotation/wrappingForCallableReferences.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/lambdaClasses") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class LambdaClasses extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInLambdaClasses() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/lambdaClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/mapping") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Mapping extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInMapping() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/mapping"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/reflection/mapping/fakeOverrides") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class FakeOverrides extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInFakeOverrides() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/mapping/fakeOverrides"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/mapping/jvmStatic") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class JvmStatic extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInJvmStatic() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/mapping/jvmStatic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/mapping/types") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Types extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInTypes() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/mapping/types"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/methodsFromAny") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class MethodsFromAny extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInMethodsFromAny() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/methodsFromAny"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("callableReferencesEqualToCallablesFromAPI.kt") + public void testCallableReferencesEqualToCallablesFromAPI() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/callableReferencesEqualToCallablesFromAPI.kt"); + } + + @TestMetadata("extensionPropertyReceiverToString.kt") + public void testExtensionPropertyReceiverToString() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/extensionPropertyReceiverToString.kt"); + } + + @TestMetadata("fakeOverrideEqualsHashCode.kt") + public void testFakeOverrideEqualsHashCode() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/fakeOverrideEqualsHashCode.kt"); + } + + @TestMetadata("fakeOverrideToString.kt") + public void testFakeOverrideToString() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/fakeOverrideToString.kt"); + } + + @TestMetadata("fakeOverrideToString2.kt") + public void testFakeOverrideToString2() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/fakeOverrideToString2.kt"); + } + + @TestMetadata("functionEqualsHashCode.kt") + public void testFunctionEqualsHashCode() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/functionEqualsHashCode.kt"); + } + + @TestMetadata("functionFromStdlibMultiFileFacade.kt") + public void testFunctionFromStdlibMultiFileFacade() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/functionFromStdlibMultiFileFacade.kt"); + } + + @TestMetadata("functionFromStdlibSingleFileFacade.kt") + public void testFunctionFromStdlibSingleFileFacade() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/functionFromStdlibSingleFileFacade.kt"); + } + + @TestMetadata("functionToString.kt") + public void testFunctionToString() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/functionToString.kt"); + } + + @TestMetadata("memberExtensionToString.kt") + public void testMemberExtensionToString() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/memberExtensionToString.kt"); + } + + @TestMetadata("parametersEqualsHashCode.kt") + public void testParametersEqualsHashCode() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/parametersEqualsHashCode.kt"); + } + + @TestMetadata("parametersToString.kt") + public void testParametersToString() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/parametersToString.kt"); + } + + @TestMetadata("propertyEqualsHashCode.kt") + public void testPropertyEqualsHashCode() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/propertyEqualsHashCode.kt"); + } + + @TestMetadata("propertyToString.kt") + public void testPropertyToString() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/propertyToString.kt"); + } + + @TestMetadata("typeEqualsHashCode.kt") + public void testTypeEqualsHashCode() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/typeEqualsHashCode.kt"); + } + + @TestMetadata("typeParametersEqualsHashCode.kt") + public void testTypeParametersEqualsHashCode() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/typeParametersEqualsHashCode.kt"); + } + + @TestMetadata("typeParametersToString.kt") + public void testTypeParametersToString() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/typeParametersToString.kt"); + } + + @TestMetadata("typeToString.kt") + public void testTypeToString() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/typeToString.kt"); + } + + @TestMetadata("typeToStringInnerGeneric.kt") + public void testTypeToStringInnerGeneric() throws Exception { + runTest("compiler/testData/codegen/box/reflection/methodsFromAny/typeToStringInnerGeneric.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/modifiers") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Modifiers extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInModifiers() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/modifiers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("callableModality.kt") + public void testCallableModality() throws Exception { + runTest("compiler/testData/codegen/box/reflection/modifiers/callableModality.kt"); + } + + @TestMetadata("callableVisibility.kt") + public void testCallableVisibility() throws Exception { + runTest("compiler/testData/codegen/box/reflection/modifiers/callableVisibility.kt"); + } + + @TestMetadata("classModality.kt") + public void testClassModality() throws Exception { + runTest("compiler/testData/codegen/box/reflection/modifiers/classModality.kt"); + } + + @TestMetadata("classVisibility.kt") + public void testClassVisibility() throws Exception { + runTest("compiler/testData/codegen/box/reflection/modifiers/classVisibility.kt"); + } + + @TestMetadata("functions.kt") + public void testFunctions() throws Exception { + runTest("compiler/testData/codegen/box/reflection/modifiers/functions.kt"); + } + + @TestMetadata("properties.kt") + public void testProperties() throws Exception { + runTest("compiler/testData/codegen/box/reflection/modifiers/properties.kt"); + } + + @TestMetadata("typeParameters.kt") + public void testTypeParameters() throws Exception { + runTest("compiler/testData/codegen/box/reflection/modifiers/typeParameters.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/multifileClasses") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class MultifileClasses extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInMultifileClasses() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/multifileClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/noReflectAtRuntime") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NoReflectAtRuntime extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNoReflectAtRuntime() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/noReflectAtRuntime"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("propertyGetSetName.kt") + public void testPropertyGetSetName() throws Exception { + runTest("compiler/testData/codegen/box/reflection/noReflectAtRuntime/propertyGetSetName.kt"); + } + + @TestMetadata("propertyInstanceof.kt") + public void testPropertyInstanceof() throws Exception { + runTest("compiler/testData/codegen/box/reflection/noReflectAtRuntime/propertyInstanceof.kt"); + } + + @TestMetadata("simpleClassLiterals.kt") + public void testSimpleClassLiterals() throws Exception { + runTest("compiler/testData/codegen/box/reflection/noReflectAtRuntime/simpleClassLiterals.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/reflection/noReflectAtRuntime/methodsFromAny") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class MethodsFromAny extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInMethodsFromAny() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/noReflectAtRuntime/methodsFromAny"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("callableReferences.kt") + public void testCallableReferences() throws Exception { + runTest("compiler/testData/codegen/box/reflection/noReflectAtRuntime/methodsFromAny/callableReferences.kt"); + } + + @TestMetadata("delegatedProperty.kt") + public void testDelegatedProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/noReflectAtRuntime/methodsFromAny/delegatedProperty.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/parameters") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Parameters extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInParameters() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/parameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("bigArity.kt") + public void testBigArity() throws Exception { + runTest("compiler/testData/codegen/box/reflection/parameters/bigArity.kt"); + } + + @TestMetadata("boundInnerClassConstructor.kt") + public void testBoundInnerClassConstructor() throws Exception { + runTest("compiler/testData/codegen/box/reflection/parameters/boundInnerClassConstructor.kt"); + } + + @TestMetadata("boundReferences.kt") + public void testBoundReferences() throws Exception { + runTest("compiler/testData/codegen/box/reflection/parameters/boundReferences.kt"); + } + + @TestMetadata("functionParameterNameAndIndex.kt") + public void testFunctionParameterNameAndIndex() throws Exception { + runTest("compiler/testData/codegen/box/reflection/parameters/functionParameterNameAndIndex.kt"); + } + + @TestMetadata("instanceExtensionReceiverAndValueParameters.kt") + public void testInstanceExtensionReceiverAndValueParameters() throws Exception { + runTest("compiler/testData/codegen/box/reflection/parameters/instanceExtensionReceiverAndValueParameters.kt"); + } + + @TestMetadata("isMarkedNullable.kt") + public void testIsMarkedNullable() throws Exception { + runTest("compiler/testData/codegen/box/reflection/parameters/isMarkedNullable.kt"); + } + + @TestMetadata("isOptional.kt") + public void testIsOptional() throws Exception { + runTest("compiler/testData/codegen/box/reflection/parameters/isOptional.kt"); + } + + @TestMetadata("kinds.kt") + public void testKinds() throws Exception { + runTest("compiler/testData/codegen/box/reflection/parameters/kinds.kt"); + } + + @TestMetadata("propertySetter.kt") + public void testPropertySetter() throws Exception { + runTest("compiler/testData/codegen/box/reflection/parameters/propertySetter.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/properties") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Properties extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInProperties() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("allVsDeclared.kt") + public void testAllVsDeclared() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/allVsDeclared.kt"); + } + + @TestMetadata("fakeOverridesInSubclass.kt") + public void testFakeOverridesInSubclass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/fakeOverridesInSubclass.kt"); + } + + @TestMetadata("genericClassLiteralPropertyReceiverIsStar.kt") + public void testGenericClassLiteralPropertyReceiverIsStar() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/genericClassLiteralPropertyReceiverIsStar.kt"); + } + + @TestMetadata("genericOverriddenProperty.kt") + public void testGenericOverriddenProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/genericOverriddenProperty.kt"); + } + + @TestMetadata("genericProperty.kt") + public void testGenericProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/genericProperty.kt"); + } + + @TestMetadata("getExtensionPropertiesMutableVsReadonly.kt") + public void testGetExtensionPropertiesMutableVsReadonly() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/getExtensionPropertiesMutableVsReadonly.kt"); + } + + @TestMetadata("getPropertiesMutableVsReadonly.kt") + public void testGetPropertiesMutableVsReadonly() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/getPropertiesMutableVsReadonly.kt"); + } + + @TestMetadata("invokeKProperty.kt") + public void testInvokeKProperty() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/invokeKProperty.kt"); + } + + @TestMetadata("memberAndMemberExtensionWithSameName.kt") + public void testMemberAndMemberExtensionWithSameName() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/memberAndMemberExtensionWithSameName.kt"); + } + + @TestMetadata("privateFakeOverrideFromSuperclass.kt") + public void testPrivateFakeOverrideFromSuperclass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/privateFakeOverrideFromSuperclass.kt"); + } + + @TestMetadata("propertyOfNestedClassAndArrayType.kt") + public void testPropertyOfNestedClassAndArrayType() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/propertyOfNestedClassAndArrayType.kt"); + } + + @TestMetadata("simpleGetProperties.kt") + public void testSimpleGetProperties() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/simpleGetProperties.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/reflection/properties/accessors") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Accessors extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("accessorNames.kt") + public void testAccessorNames() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/accessors/accessorNames.kt"); + } + + public void testAllFilesPresentInAccessors() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/properties/accessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("extensionPropertyAccessors.kt") + public void testExtensionPropertyAccessors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/accessors/extensionPropertyAccessors.kt"); + } + + @TestMetadata("memberExtensions.kt") + public void testMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/accessors/memberExtensions.kt"); + } + + @TestMetadata("memberPropertyAccessors.kt") + public void testMemberPropertyAccessors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/accessors/memberPropertyAccessors.kt"); + } + + @TestMetadata("topLevelPropertyAccessors.kt") + public void testTopLevelPropertyAccessors() throws Exception { + runTest("compiler/testData/codegen/box/reflection/properties/accessors/topLevelPropertyAccessors.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/properties/getDelegate") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class GetDelegate extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInGetDelegate() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/properties/getDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/properties/jvmField") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class JvmField extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInJvmField() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/properties/jvmField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/properties/localDelegated") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class LocalDelegated extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInLocalDelegated() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/properties/localDelegated"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/supertypes") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Supertypes extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSupertypes() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/supertypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("genericSubstitution.kt") + public void testGenericSubstitution() throws Exception { + runTest("compiler/testData/codegen/box/reflection/supertypes/genericSubstitution.kt"); + } + + @TestMetadata("isSubclassOfIsSuperclassOf.kt") + public void testIsSubclassOfIsSuperclassOf() throws Exception { + runTest("compiler/testData/codegen/box/reflection/supertypes/isSubclassOfIsSuperclassOf.kt"); + } + + @TestMetadata("simpleSupertypes.kt") + public void testSimpleSupertypes() throws Exception { + runTest("compiler/testData/codegen/box/reflection/supertypes/simpleSupertypes.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/typeOf") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class TypeOf extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInTypeOf() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/typeOf"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("inlineClasses.kt") + public void testInlineClasses() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/inlineClasses.kt"); + } + + @TestMetadata("manyTypeArguments.kt") + public void testManyTypeArguments() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/manyTypeArguments.kt"); + } + + @TestMetadata("multipleLayers.kt") + public void testMultipleLayers() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/multipleLayers.kt"); + } + + @TestMetadata("typeOfCapturedStar.kt") + public void testTypeOfCapturedStar() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/typeOfCapturedStar.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/reflection/typeOf/js") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Js extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInJs() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/typeOf/js"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/typeOf/noReflect") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NoReflect extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNoReflect() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/typeOf/noReflect"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/reflection/typeOf/noReflect/nonReifiedTypeParameters") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NonReifiedTypeParameters extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNonReifiedTypeParameters() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/typeOf/noReflect/nonReifiedTypeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NonReifiedTypeParameters extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNonReifiedTypeParameters() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("defaultUpperBound.kt") + public void testDefaultUpperBound() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/defaultUpperBound.kt"); + } + + @TestMetadata("equalsOnClassParameters.kt") + public void testEqualsOnClassParameters() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/equalsOnClassParameters.kt"); + } + + @TestMetadata("equalsOnFunctionParameters.kt") + public void testEqualsOnFunctionParameters() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/equalsOnFunctionParameters.kt"); + } + + @TestMetadata("innerGeneric.kt") + public void testInnerGeneric() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/innerGeneric.kt"); + } + + @TestMetadata("simpleClassParameter.kt") + public void testSimpleClassParameter() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/simpleClassParameter.kt"); + } + + @TestMetadata("simpleFunctionParameter.kt") + public void testSimpleFunctionParameter() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/simpleFunctionParameter.kt"); + } + + @TestMetadata("simplePropertyParameter.kt") + public void testSimplePropertyParameter() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/simplePropertyParameter.kt"); + } + + @TestMetadata("typeParameterFlags.kt") + public void testTypeParameterFlags() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/typeParameterFlags.kt"); + } + + @TestMetadata("upperBoundUsesOuterClassParameter.kt") + public void testUpperBoundUsesOuterClassParameter() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/upperBoundUsesOuterClassParameter.kt"); + } + + @TestMetadata("upperBounds.kt") + public void testUpperBounds() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/upperBounds.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/typeParameters") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class TypeParameters extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInTypeParameters() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("declarationSiteVariance.kt") + public void testDeclarationSiteVariance() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeParameters/declarationSiteVariance.kt"); + } + + @TestMetadata("typeParametersAndNames.kt") + public void testTypeParametersAndNames() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeParameters/typeParametersAndNames.kt"); + } + + @TestMetadata("upperBounds.kt") + public void testUpperBounds() throws Exception { + runTest("compiler/testData/codegen/box/reflection/typeParameters/upperBounds.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/types") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Types extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInTypes() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/types"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("classifierIsClass.kt") + public void testClassifierIsClass() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/classifierIsClass.kt"); + } + + @TestMetadata("classifierIsTypeParameter.kt") + public void testClassifierIsTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/classifierIsTypeParameter.kt"); + } + + @TestMetadata("innerGenericArguments.kt") + public void testInnerGenericArguments() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/innerGenericArguments.kt"); + } + + @TestMetadata("typeArguments.kt") + public void testTypeArguments() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/typeArguments.kt"); + } + + @TestMetadata("useSiteVariance.kt") + public void testUseSiteVariance() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/useSiteVariance.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/reflection/types/createType") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class CreateType extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCreateType() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/types/createType"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("equality.kt") + public void testEquality() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/createType/equality.kt"); + } + + @TestMetadata("innerGeneric.kt") + public void testInnerGeneric() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/createType/innerGeneric.kt"); + } + + @TestMetadata("simpleCreateType.kt") + public void testSimpleCreateType() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/createType/simpleCreateType.kt"); + } + + @TestMetadata("typeParameter.kt") + public void testTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/createType/typeParameter.kt"); + } + + @TestMetadata("wrongNumberOfArguments.kt") + public void testWrongNumberOfArguments() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/createType/wrongNumberOfArguments.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/types/subtyping") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Subtyping extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSubtyping() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/types/subtyping"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("simpleGenericTypes.kt") + public void testSimpleGenericTypes() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/subtyping/simpleGenericTypes.kt"); + } + + @TestMetadata("simpleSubtypeSupertype.kt") + public void testSimpleSubtypeSupertype() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/subtyping/simpleSubtypeSupertype.kt"); + } + + @TestMetadata("typeProjection.kt") + public void testTypeProjection() throws Exception { + runTest("compiler/testData/codegen/box/reflection/types/subtyping/typeProjection.kt"); + } + } + } + } + + @TestMetadata("compiler/testData/codegen/box/regressions") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Regressions extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInRegressions() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/regressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("arrayLengthNPE.kt") + public void testArrayLengthNPE() throws Exception { + runTest("compiler/testData/codegen/box/regressions/arrayLengthNPE.kt"); + } + + @TestMetadata("commonSupertypeContravariant.kt") + public void testCommonSupertypeContravariant() throws Exception { + runTest("compiler/testData/codegen/box/regressions/commonSupertypeContravariant.kt"); + } + + @TestMetadata("commonSupertypeContravariant2.kt") + public void testCommonSupertypeContravariant2() throws Exception { + runTest("compiler/testData/codegen/box/regressions/commonSupertypeContravariant2.kt"); + } + + @TestMetadata("dontCaptureTypesWithTypeVariables.kt") + public void testDontCaptureTypesWithTypeVariables() throws Exception { + runTest("compiler/testData/codegen/box/regressions/dontCaptureTypesWithTypeVariables.kt"); + } + + @TestMetadata("doubleMerge.kt") + public void testDoubleMerge() throws Exception { + runTest("compiler/testData/codegen/box/regressions/doubleMerge.kt"); + } + + @TestMetadata("floatMerge.kt") + public void testFloatMerge() throws Exception { + runTest("compiler/testData/codegen/box/regressions/floatMerge.kt"); + } + + @TestMetadata("functionLiteralAsLastExpressionInBlock.kt") + public void testFunctionLiteralAsLastExpressionInBlock() throws Exception { + runTest("compiler/testData/codegen/box/regressions/functionLiteralAsLastExpressionInBlock.kt"); + } + + @TestMetadata("generic.kt") + public void testGeneric() throws Exception { + runTest("compiler/testData/codegen/box/regressions/generic.kt"); + } + + @TestMetadata("hashCodeNPE.kt") + public void testHashCodeNPE() throws Exception { + runTest("compiler/testData/codegen/box/regressions/hashCodeNPE.kt"); + } + + @TestMetadata("internalTopLevelOtherPackage.kt") + public void testInternalTopLevelOtherPackage() throws Exception { + runTest("compiler/testData/codegen/box/regressions/internalTopLevelOtherPackage.kt"); + } + + @TestMetadata("intersectionOfEqualTypes.kt") + public void testIntersectionOfEqualTypes() throws Exception { + runTest("compiler/testData/codegen/box/regressions/intersectionOfEqualTypes.kt"); + } + + @TestMetadata("kt10143.kt") + public void testKt10143() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt10143.kt"); + } + + @TestMetadata("kt10934.kt") + public void testKt10934() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt10934.kt"); + } + + @TestMetadata("Kt1149.kt") + public void testKt1149() throws Exception { + runTest("compiler/testData/codegen/box/regressions/Kt1149.kt"); + } + + @TestMetadata("kt1172.kt") + public void testKt1172() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt1172.kt"); + } + + @TestMetadata("kt13381.kt") + public void testKt13381() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt13381.kt"); + } + + @TestMetadata("kt14447.kt") + public void testKt14447() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt14447.kt"); + } + + @TestMetadata("kt15196.kt") + public void testKt15196() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt15196.kt"); + } + + @TestMetadata("kt1528.kt") + public void testKt1528() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt1528.kt"); + } + + @TestMetadata("Kt1619Test.kt") + public void testKt1619Test() throws Exception { + runTest("compiler/testData/codegen/box/regressions/Kt1619Test.kt"); + } + + @TestMetadata("kt1779.kt") + public void testKt1779() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt1779.kt"); + } + + @TestMetadata("kt1800.kt") + public void testKt1800() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt1800.kt"); + } + + @TestMetadata("kt1845.kt") + public void testKt1845() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt1845.kt"); + } + + @TestMetadata("kt18779.kt") + public void testKt18779() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt18779.kt"); + } + + @TestMetadata("kt2017.kt") + public void testKt2017() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt2017.kt"); + } + + @TestMetadata("kt2060.kt") + public void testKt2060() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt2060.kt"); + } + + @TestMetadata("kt2210.kt") + public void testKt2210() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt2210.kt"); + } + + @TestMetadata("kt2246.kt") + public void testKt2246() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt2246.kt"); + } + + @TestMetadata("kt24913.kt") + public void testKt24913() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt24913.kt"); + } + + @TestMetadata("Kt2495Test.kt") + public void testKt2495Test() throws Exception { + runTest("compiler/testData/codegen/box/regressions/Kt2495Test.kt"); + } + + @TestMetadata("kt2509.kt") + public void testKt2509() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt2509.kt"); + } + + @TestMetadata("kt3107.kt") + public void testKt3107() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt3107.kt"); + } + + @TestMetadata("kt32949.kt") + public void testKt32949() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt32949.kt"); + } + + @TestMetadata("kt33638.kt") + public void testKt33638() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt33638.kt"); + } + + @TestMetadata("kt3421.kt") + public void testKt3421() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt3421.kt"); + } + + @TestMetadata("kt344.kt") + public void testKt344() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt344.kt"); + } + + @TestMetadata("kt3442.kt") + public void testKt3442() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt3442.kt"); + } + + @TestMetadata("kt3587.kt") + public void testKt3587() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt3587.kt"); + } + + @TestMetadata("kt35914.kt") + public void testKt35914() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt35914.kt"); + } + + @TestMetadata("kt3850.kt") + public void testKt3850() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt3850.kt"); + } + + @TestMetadata("kt3903.kt") + public void testKt3903() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt3903.kt"); + } + + @TestMetadata("kt4142.kt") + public void testKt4142() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt4142.kt"); + } + + @TestMetadata("kt4281.kt") + public void testKt4281() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt4281.kt"); + } + + @TestMetadata("kt5056.kt") + public void testKt5056() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt5056.kt"); + } + + @TestMetadata("kt5395.kt") + public void testKt5395() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt5395.kt"); + } + + @TestMetadata("kt5786_privateWithDefault.kt") + public void testKt5786_privateWithDefault() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt5786_privateWithDefault.kt"); + } + + @TestMetadata("kt5953.kt") + public void testKt5953() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt5953.kt"); + } + + @TestMetadata("kt6153.kt") + public void testKt6153() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt6153.kt"); + } + + @TestMetadata("kt6434.kt") + public void testKt6434() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt6434.kt"); + } + + @TestMetadata("kt6434_2.kt") + public void testKt6434_2() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt6434_2.kt"); + } + + @TestMetadata("kt7401.kt") + public void testKt7401() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt7401.kt"); + } + + @TestMetadata("kt789.kt") + public void testKt789() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt789.kt"); + } + + @TestMetadata("kt998.kt") + public void testKt998() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt998.kt"); + } + + @TestMetadata("lambdaAsLastExpressionInLambda.kt") + public void testLambdaAsLastExpressionInLambda() throws Exception { + runTest("compiler/testData/codegen/box/regressions/lambdaAsLastExpressionInLambda.kt"); + } + + @TestMetadata("lambdaPostponeConstruction.kt") + public void testLambdaPostponeConstruction() throws Exception { + runTest("compiler/testData/codegen/box/regressions/lambdaPostponeConstruction.kt"); + } + + @TestMetadata("lambdaWrongReturnType.kt") + public void testLambdaWrongReturnType() throws Exception { + runTest("compiler/testData/codegen/box/regressions/lambdaWrongReturnType.kt"); + } + + @TestMetadata("noAssertionsWhenNullableTypeParameterReplacedWithIntersectionType.kt") + public void testNoAssertionsWhenNullableTypeParameterReplacedWithIntersectionType() throws Exception { + runTest("compiler/testData/codegen/box/regressions/noAssertionsWhenNullableTypeParameterReplacedWithIntersectionType.kt"); + } + + @TestMetadata("noCapturingForTypesWithTypeVariables.kt") + public void testNoCapturingForTypesWithTypeVariables() throws Exception { + runTest("compiler/testData/codegen/box/regressions/noCapturingForTypesWithTypeVariables.kt"); + } + + @TestMetadata("noResolutionRecursion.kt") + public void testNoResolutionRecursion() throws Exception { + runTest("compiler/testData/codegen/box/regressions/noResolutionRecursion.kt"); + } + + @TestMetadata("nullabilityForCommonCapturedSupertypes.kt") + public void testNullabilityForCommonCapturedSupertypes() throws Exception { + runTest("compiler/testData/codegen/box/regressions/nullabilityForCommonCapturedSupertypes.kt"); + } + + @TestMetadata("nullableAfterExclExcl.kt") + public void testNullableAfterExclExcl() throws Exception { + runTest("compiler/testData/codegen/box/regressions/nullableAfterExclExcl.kt"); + } + + @TestMetadata("objectCaptureOuterConstructorProperty.kt") + public void testObjectCaptureOuterConstructorProperty() throws Exception { + runTest("compiler/testData/codegen/box/regressions/objectCaptureOuterConstructorProperty.kt"); + } + + @TestMetadata("objectInsideDelegation.kt") + public void testObjectInsideDelegation() throws Exception { + runTest("compiler/testData/codegen/box/regressions/objectInsideDelegation.kt"); + } + + @TestMetadata("resolvedCallForGetOperator.kt") + public void testResolvedCallForGetOperator() throws Exception { + runTest("compiler/testData/codegen/box/regressions/resolvedCallForGetOperator.kt"); + } + + @TestMetadata("supertypeDepth.kt") + public void testSupertypeDepth() throws Exception { + runTest("compiler/testData/codegen/box/regressions/supertypeDepth.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/reified") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Reified extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInReified() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reified"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("checkcast.kt") + public void testCheckcast() throws Exception { + runTest("compiler/testData/codegen/box/reified/checkcast.kt"); + } + + @TestMetadata("copyToArray.kt") + public void testCopyToArray() throws Exception { + runTest("compiler/testData/codegen/box/reified/copyToArray.kt"); + } + + @TestMetadata("filterIsInstance.kt") + public void testFilterIsInstance() throws Exception { + runTest("compiler/testData/codegen/box/reified/filterIsInstance.kt"); + } + + @TestMetadata("instanceof.kt") + public void testInstanceof() throws Exception { + runTest("compiler/testData/codegen/box/reified/instanceof.kt"); + } + + @TestMetadata("newArrayInt.kt") + public void testNewArrayInt() throws Exception { + runTest("compiler/testData/codegen/box/reified/newArrayInt.kt"); + } + + @TestMetadata("recursiveNewArray.kt") + public void testRecursiveNewArray() throws Exception { + runTest("compiler/testData/codegen/box/reified/recursiveNewArray.kt"); + } + + @TestMetadata("reifiedChain.kt") + public void testReifiedChain() throws Exception { + runTest("compiler/testData/codegen/box/reified/reifiedChain.kt"); + } + + @TestMetadata("reifiedIntersectionType.kt") + public void testReifiedIntersectionType() throws Exception { + runTest("compiler/testData/codegen/box/reified/reifiedIntersectionType.kt"); + } + + @TestMetadata("reifiedIntersectionTypeArgument.kt") + public void testReifiedIntersectionTypeArgument() throws Exception { + runTest("compiler/testData/codegen/box/reified/reifiedIntersectionTypeArgument.kt"); + } + + @TestMetadata("reifiedIntersectionTypeArgumentCrossModule.kt") + public void testReifiedIntersectionTypeArgumentCrossModule() throws Exception { + runTest("compiler/testData/codegen/box/reified/reifiedIntersectionTypeArgumentCrossModule.kt"); + } + + @TestMetadata("reifiedTypeArgumentWithIntersectionTypeAsTypeArgument.kt") + public void testReifiedTypeArgumentWithIntersectionTypeAsTypeArgument() throws Exception { + runTest("compiler/testData/codegen/box/reified/reifiedTypeArgumentWithIntersectionTypeAsTypeArgument.kt"); + } + + @TestMetadata("reifiedTypeArgumentWithRecursion.kt") + public void testReifiedTypeArgumentWithRecursion() throws Exception { + runTest("compiler/testData/codegen/box/reified/reifiedTypeArgumentWithRecursion.kt"); + } + + @TestMetadata("safecast.kt") + public void testSafecast() throws Exception { + runTest("compiler/testData/codegen/box/reified/safecast.kt"); + } + + @TestMetadata("sameIndexRecursive.kt") + public void testSameIndexRecursive() throws Exception { + runTest("compiler/testData/codegen/box/reified/sameIndexRecursive.kt"); + } + + @TestMetadata("spreads.kt") + public void testSpreads() throws Exception { + runTest("compiler/testData/codegen/box/reified/spreads.kt"); + } + + @TestMetadata("varargs.kt") + public void testVarargs() throws Exception { + runTest("compiler/testData/codegen/box/reified/varargs.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/reified/arraysReification") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ArraysReification extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInArraysReification() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reified/arraysReification"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("instanceOf.kt") + public void testInstanceOf() throws Exception { + runTest("compiler/testData/codegen/box/reified/arraysReification/instanceOf.kt"); + } + + @TestMetadata("instanceOfArrays.kt") + public void testInstanceOfArrays() throws Exception { + runTest("compiler/testData/codegen/box/reified/arraysReification/instanceOfArrays.kt"); + } + + @TestMetadata("jaggedArray.kt") + public void testJaggedArray() throws Exception { + runTest("compiler/testData/codegen/box/reified/arraysReification/jaggedArray.kt"); + } + + @TestMetadata("jaggedDeep.kt") + public void testJaggedDeep() throws Exception { + runTest("compiler/testData/codegen/box/reified/arraysReification/jaggedDeep.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/safeCall") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class SafeCall extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSafeCall() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/safeCall"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("genericNull.kt") + public void testGenericNull() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/genericNull.kt"); + } + + @TestMetadata("kt1572.kt") + public void testKt1572() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/kt1572.kt"); + } + + @TestMetadata("kt232.kt") + public void testKt232() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/kt232.kt"); + } + + @TestMetadata("kt245.kt") + public void testKt245() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/kt245.kt"); + } + + @TestMetadata("kt247.kt") + public void testKt247() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/kt247.kt"); + } + + @TestMetadata("kt3430.kt") + public void testKt3430() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/kt3430.kt"); + } + + @TestMetadata("kt4733.kt") + public void testKt4733() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/kt4733.kt"); + } + + @TestMetadata("primitive.kt") + public void testPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/primitive.kt"); + } + + @TestMetadata("primitiveEqSafeCall.kt") + public void testPrimitiveEqSafeCall() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/primitiveEqSafeCall.kt"); + } + + @TestMetadata("primitiveNotEqSafeCall.kt") + public void testPrimitiveNotEqSafeCall() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/primitiveNotEqSafeCall.kt"); + } + + @TestMetadata("safeCallEqPrimitive.kt") + public void testSafeCallEqPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/safeCallEqPrimitive.kt"); + } + + @TestMetadata("safeCallNotEqPrimitive.kt") + public void testSafeCallNotEqPrimitive() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/safeCallNotEqPrimitive.kt"); + } + + @TestMetadata("safeCallOnLong.kt") + public void testSafeCallOnLong() throws Exception { + runTest("compiler/testData/codegen/box/safeCall/safeCallOnLong.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/sam") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Sam extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSam() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/box/sam/constructors") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Constructors extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInConstructors() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sam/constructors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("comparator.kt") + public void testComparator() throws Exception { + runTest("compiler/testData/codegen/box/sam/constructors/comparator.kt"); + } + + @TestMetadata("nonLiteralComparator.kt") + public void testNonLiteralComparator() throws Exception { + runTest("compiler/testData/codegen/box/sam/constructors/nonLiteralComparator.kt"); + } + + @TestMetadata("sameWrapperClass.kt") + public void testSameWrapperClass() throws Exception { + runTest("compiler/testData/codegen/box/sam/constructors/sameWrapperClass.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/sam/equality") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Equality extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInEquality() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sam/equality"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/sealed") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Sealed extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSealed() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sealed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("objects.kt") + public void testObjects() throws Exception { + runTest("compiler/testData/codegen/box/sealed/objects.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/sealed/simple.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/secondaryConstructors") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class SecondaryConstructors extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("accessToCompanion.kt") + public void testAccessToCompanion() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/accessToCompanion.kt"); + } + + @TestMetadata("accessToNestedObject.kt") + public void testAccessToNestedObject() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/accessToNestedObject.kt"); + } + + public void testAllFilesPresentInSecondaryConstructors() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/secondaryConstructors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("basicNoPrimaryManySinks.kt") + public void testBasicNoPrimaryManySinks() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/basicNoPrimaryManySinks.kt"); + } + + @TestMetadata("basicNoPrimaryOneSink.kt") + public void testBasicNoPrimaryOneSink() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/basicNoPrimaryOneSink.kt"); + } + + @TestMetadata("basicPrimary.kt") + public void testBasicPrimary() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/basicPrimary.kt"); + } + + @TestMetadata("callFromLocalSubClass.kt") + public void testCallFromLocalSubClass() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/callFromLocalSubClass.kt"); + } + + @TestMetadata("callFromPrimaryWithNamedArgs.kt") + public void testCallFromPrimaryWithNamedArgs() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/callFromPrimaryWithNamedArgs.kt"); + } + + @TestMetadata("callFromPrimaryWithOptionalArgs.kt") + public void testCallFromPrimaryWithOptionalArgs() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/callFromPrimaryWithOptionalArgs.kt"); + } + + @TestMetadata("callFromSubClass.kt") + public void testCallFromSubClass() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/callFromSubClass.kt"); + } + + @TestMetadata("clashingDefaultConstructors.kt") + public void testClashingDefaultConstructors() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/clashingDefaultConstructors.kt"); + } + + @TestMetadata("dataClasses.kt") + public void testDataClasses() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/dataClasses.kt"); + } + + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/defaultArgs.kt"); + } + + @TestMetadata("defaultParametersNotDuplicated.kt") + public void testDefaultParametersNotDuplicated() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/defaultParametersNotDuplicated.kt"); + } + + @TestMetadata("delegateWithComplexExpression.kt") + public void testDelegateWithComplexExpression() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/delegateWithComplexExpression.kt"); + } + + @TestMetadata("delegatedThisWithLambda.kt") + public void testDelegatedThisWithLambda() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/delegatedThisWithLambda.kt"); + } + + @TestMetadata("delegationWithPrimary.kt") + public void testDelegationWithPrimary() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/delegationWithPrimary.kt"); + } + + @TestMetadata("enums.kt") + public void testEnums() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/enums.kt"); + } + + @TestMetadata("fieldInitializerOptimization.kt") + public void testFieldInitializerOptimization() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/fieldInitializerOptimization.kt"); + } + + @TestMetadata("generics.kt") + public void testGenerics() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/generics.kt"); + } + + @TestMetadata("innerClasses.kt") + public void testInnerClasses() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/innerClasses.kt"); + } + + @TestMetadata("innerClassesInheritance.kt") + public void testInnerClassesInheritance() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/innerClassesInheritance.kt"); + } + + @TestMetadata("localClasses.kt") + public void testLocalClasses() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/localClasses.kt"); + } + + @TestMetadata("superCallPrimary.kt") + public void testSuperCallPrimary() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/superCallPrimary.kt"); + } + + @TestMetadata("superCallSecondary.kt") + public void testSuperCallSecondary() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/superCallSecondary.kt"); + } + + @TestMetadata("varargs.kt") + public void testVarargs() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/varargs.kt"); + } + + @TestMetadata("withNonLocalReturn.kt") + public void testWithNonLocalReturn() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/withNonLocalReturn.kt"); + } + + @TestMetadata("withReturn.kt") + public void testWithReturn() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/withReturn.kt"); + } + + @TestMetadata("withReturnUnit.kt") + public void testWithReturnUnit() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/withReturnUnit.kt"); + } + + @TestMetadata("withoutPrimarySimple.kt") + public void testWithoutPrimarySimple() throws Exception { + runTest("compiler/testData/codegen/box/secondaryConstructors/withoutPrimarySimple.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/signatureAnnotations") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class SignatureAnnotations extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSignatureAnnotations() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/signatureAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/smap") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Smap extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSmap() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/smap"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/smartCasts") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class SmartCasts extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSmartCasts() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/smartCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("falseSmartCast.kt") + public void testFalseSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/falseSmartCast.kt"); + } + + @TestMetadata("genericIntersection.kt") + public void testGenericIntersection() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/genericIntersection.kt"); + } + + @TestMetadata("genericSet.kt") + public void testGenericSet() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/genericSet.kt"); + } + + @TestMetadata("implicitExtensionReceiver.kt") + public void testImplicitExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/implicitExtensionReceiver.kt"); + } + + @TestMetadata("implicitMemberReceiver.kt") + public void testImplicitMemberReceiver() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/implicitMemberReceiver.kt"); + } + + @TestMetadata("implicitReceiver.kt") + public void testImplicitReceiver() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/implicitReceiver.kt"); + } + + @TestMetadata("implicitReceiverInWhen.kt") + public void testImplicitReceiverInWhen() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/implicitReceiverInWhen.kt"); + } + + @TestMetadata("implicitToGrandSon.kt") + public void testImplicitToGrandSon() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/implicitToGrandSon.kt"); + } + + @TestMetadata("kt17725.kt") + public void testKt17725() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/kt17725.kt"); + } + + @TestMetadata("kt19100.kt") + public void testKt19100() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/kt19100.kt"); + } + + @TestMetadata("lambdaArgumentWithoutType.kt") + public void testLambdaArgumentWithoutType() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/lambdaArgumentWithoutType.kt"); + } + + @TestMetadata("nullSmartCast.kt") + public void testNullSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/nullSmartCast.kt"); + } + + @TestMetadata("smartCastInsideIf.kt") + public void testSmartCastInsideIf() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/smartCastInsideIf.kt"); + } + + @TestMetadata("whenSmartCast.kt") + public void testWhenSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/whenSmartCast.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/specialBuiltins") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class SpecialBuiltins extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSpecialBuiltins() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/specialBuiltins"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("bridgeNotEmptyMap.kt") + public void testBridgeNotEmptyMap() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/bridgeNotEmptyMap.kt"); + } + + @TestMetadata("bridges.kt") + public void testBridges() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/bridges.kt"); + } + + @TestMetadata("commonBridgesTarget.kt") + public void testCommonBridgesTarget() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/commonBridgesTarget.kt"); + } + + @TestMetadata("emptyList.kt") + public void testEmptyList() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/emptyList.kt"); + } + + @TestMetadata("emptyMap.kt") + public void testEmptyMap() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/emptyMap.kt"); + } + + @TestMetadata("emptyStringMap.kt") + public void testEmptyStringMap() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/emptyStringMap.kt"); + } + + @TestMetadata("entrySetSOE.kt") + public void testEntrySetSOE() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/entrySetSOE.kt"); + } + + @TestMetadata("enumAsOrdinaled.kt") + public void testEnumAsOrdinaled() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/enumAsOrdinaled.kt"); + } + + @TestMetadata("exceptionCause.kt") + public void testExceptionCause() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/exceptionCause.kt"); + } + + @TestMetadata("explicitSuperCall.kt") + public void testExplicitSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/explicitSuperCall.kt"); + } + + @TestMetadata("irrelevantRemoveAtOverride.kt") + public void testIrrelevantRemoveAtOverride() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/irrelevantRemoveAtOverride.kt"); + } + + @TestMetadata("maps.kt") + public void testMaps() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/maps.kt"); + } + + @TestMetadata("noSpecialBridgeInSuperClass.kt") + public void testNoSpecialBridgeInSuperClass() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/noSpecialBridgeInSuperClass.kt"); + } + + @TestMetadata("notEmptyListAny.kt") + public void testNotEmptyListAny() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/notEmptyListAny.kt"); + } + + @TestMetadata("notEmptyMap.kt") + public void testNotEmptyMap() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/notEmptyMap.kt"); + } + + @TestMetadata("redundantStubForSize.kt") + public void testRedundantStubForSize() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/redundantStubForSize.kt"); + } + + @TestMetadata("removeAtTwoSpecialBridges.kt") + public void testRemoveAtTwoSpecialBridges() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/removeAtTwoSpecialBridges.kt"); + } + + @TestMetadata("removeSetInt.kt") + public void testRemoveSetInt() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/removeSetInt.kt"); + } + + @TestMetadata("throwable.kt") + public void testThrowable() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/throwable.kt"); + } + + @TestMetadata("throwableCause.kt") + public void testThrowableCause() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/throwableCause.kt"); + } + + @TestMetadata("throwableComplex.kt") + public void testThrowableComplex() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/throwableComplex.kt"); + } + + @TestMetadata("throwableImpl.kt") + public void testThrowableImpl() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/throwableImpl.kt"); + } + + @TestMetadata("throwableImplWithSecondaryConstructor.kt") + public void testThrowableImplWithSecondaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/throwableImplWithSecondaryConstructor.kt"); + } + + @TestMetadata("valuesInsideEnum.kt") + public void testValuesInsideEnum() throws Exception { + runTest("compiler/testData/codegen/box/specialBuiltins/valuesInsideEnum.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/statics") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Statics extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInStatics() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/statics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("anonymousInitializerIObject.kt") + public void testAnonymousInitializerIObject() throws Exception { + runTest("compiler/testData/codegen/box/statics/anonymousInitializerIObject.kt"); + } + + @TestMetadata("anonymousInitializerInClassObject.kt") + public void testAnonymousInitializerInClassObject() throws Exception { + runTest("compiler/testData/codegen/box/statics/anonymousInitializerInClassObject.kt"); + } + + @TestMetadata("incInClassObject.kt") + public void testIncInClassObject() throws Exception { + runTest("compiler/testData/codegen/box/statics/incInClassObject.kt"); + } + + @TestMetadata("incInObject.kt") + public void testIncInObject() throws Exception { + runTest("compiler/testData/codegen/box/statics/incInObject.kt"); + } + + @TestMetadata("inheritedPropertyInClassObject.kt") + public void testInheritedPropertyInClassObject() throws Exception { + runTest("compiler/testData/codegen/box/statics/inheritedPropertyInClassObject.kt"); + } + + @TestMetadata("inheritedPropertyInObject.kt") + public void testInheritedPropertyInObject() throws Exception { + runTest("compiler/testData/codegen/box/statics/inheritedPropertyInObject.kt"); + } + + @TestMetadata("kt8089.kt") + public void testKt8089() throws Exception { + runTest("compiler/testData/codegen/box/statics/kt8089.kt"); + } + + @TestMetadata("syntheticAccessor.kt") + public void testSyntheticAccessor() throws Exception { + runTest("compiler/testData/codegen/box/statics/syntheticAccessor.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/storeStackBeforeInline") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class StoreStackBeforeInline extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInStoreStackBeforeInline() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/storeStackBeforeInline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("differentTypes.kt") + public void testDifferentTypes() throws Exception { + runTest("compiler/testData/codegen/box/storeStackBeforeInline/differentTypes.kt"); + } + + @TestMetadata("primitiveMerge.kt") + public void testPrimitiveMerge() throws Exception { + runTest("compiler/testData/codegen/box/storeStackBeforeInline/primitiveMerge.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/storeStackBeforeInline/simple.kt"); + } + + @TestMetadata("unreachableMarker.kt") + public void testUnreachableMarker() throws Exception { + runTest("compiler/testData/codegen/box/storeStackBeforeInline/unreachableMarker.kt"); + } + + @TestMetadata("withLambda.kt") + public void testWithLambda() throws Exception { + runTest("compiler/testData/codegen/box/storeStackBeforeInline/withLambda.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/strings") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Strings extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInStrings() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/strings"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("constInStringTemplate.kt") + public void testConstInStringTemplate() throws Exception { + runTest("compiler/testData/codegen/box/strings/constInStringTemplate.kt"); + } + + @TestMetadata("ea35743.kt") + public void testEa35743() throws Exception { + runTest("compiler/testData/codegen/box/strings/ea35743.kt"); + } + + @TestMetadata("forInString.kt") + public void testForInString() throws Exception { + runTest("compiler/testData/codegen/box/strings/forInString.kt"); + } + + @TestMetadata("interpolation.kt") + public void testInterpolation() throws Exception { + runTest("compiler/testData/codegen/box/strings/interpolation.kt"); + } + + @TestMetadata("kt2592.kt") + public void testKt2592() throws Exception { + runTest("compiler/testData/codegen/box/strings/kt2592.kt"); + } + + @TestMetadata("kt3571.kt") + public void testKt3571() throws Exception { + runTest("compiler/testData/codegen/box/strings/kt3571.kt"); + } + + @TestMetadata("kt3652.kt") + public void testKt3652() throws Exception { + runTest("compiler/testData/codegen/box/strings/kt3652.kt"); + } + + @TestMetadata("kt5389_stringBuilderGet.kt") + public void testKt5389_stringBuilderGet() throws Exception { + runTest("compiler/testData/codegen/box/strings/kt5389_stringBuilderGet.kt"); + } + + @TestMetadata("kt5956.kt") + public void testKt5956() throws Exception { + runTest("compiler/testData/codegen/box/strings/kt5956.kt"); + } + + @TestMetadata("kt881.kt") + public void testKt881() throws Exception { + runTest("compiler/testData/codegen/box/strings/kt881.kt"); + } + + @TestMetadata("kt889.kt") + public void testKt889() throws Exception { + runTest("compiler/testData/codegen/box/strings/kt889.kt"); + } + + @TestMetadata("kt894.kt") + public void testKt894() throws Exception { + runTest("compiler/testData/codegen/box/strings/kt894.kt"); + } + + @TestMetadata("multilineStringsWithTemplates.kt") + public void testMultilineStringsWithTemplates() throws Exception { + runTest("compiler/testData/codegen/box/strings/multilineStringsWithTemplates.kt"); + } + + @TestMetadata("nestedConcat.kt") + public void testNestedConcat() throws Exception { + runTest("compiler/testData/codegen/box/strings/nestedConcat.kt"); + } + + @TestMetadata("rawStrings.kt") + public void testRawStrings() throws Exception { + runTest("compiler/testData/codegen/box/strings/rawStrings.kt"); + } + + @TestMetadata("rawStringsWithManyQuotes.kt") + public void testRawStringsWithManyQuotes() throws Exception { + runTest("compiler/testData/codegen/box/strings/rawStringsWithManyQuotes.kt"); + } + + @TestMetadata("simpleStringPlus.kt") + public void testSimpleStringPlus() throws Exception { + runTest("compiler/testData/codegen/box/strings/simpleStringPlus.kt"); + } + + @TestMetadata("singleConcatNullable.kt") + public void testSingleConcatNullable() throws Exception { + runTest("compiler/testData/codegen/box/strings/singleConcatNullable.kt"); + } + + @TestMetadata("stringBuilderAppend.kt") + public void testStringBuilderAppend() throws Exception { + runTest("compiler/testData/codegen/box/strings/stringBuilderAppend.kt"); + } + + @TestMetadata("stringPlusOnlyWorksOnString.kt") + public void testStringPlusOnlyWorksOnString() throws Exception { + runTest("compiler/testData/codegen/box/strings/stringPlusOnlyWorksOnString.kt"); + } + + @TestMetadata("stringPlusOverride.kt") + public void testStringPlusOverride() throws Exception { + runTest("compiler/testData/codegen/box/strings/stringPlusOverride.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/super") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Super extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSuper() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/super"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("basicmethodSuperClass.kt") + public void testBasicmethodSuperClass() throws Exception { + runTest("compiler/testData/codegen/box/super/basicmethodSuperClass.kt"); + } + + @TestMetadata("basicmethodSuperTrait.kt") + public void testBasicmethodSuperTrait() throws Exception { + runTest("compiler/testData/codegen/box/super/basicmethodSuperTrait.kt"); + } + + @TestMetadata("basicproperty.kt") + public void testBasicproperty() throws Exception { + runTest("compiler/testData/codegen/box/super/basicproperty.kt"); + } + + @TestMetadata("enclosedFun.kt") + public void testEnclosedFun() throws Exception { + runTest("compiler/testData/codegen/box/super/enclosedFun.kt"); + } + + @TestMetadata("enclosedVar.kt") + public void testEnclosedVar() throws Exception { + runTest("compiler/testData/codegen/box/super/enclosedVar.kt"); + } + + @TestMetadata("innerClassLabeledSuper.kt") + public void testInnerClassLabeledSuper() throws Exception { + runTest("compiler/testData/codegen/box/super/innerClassLabeledSuper.kt"); + } + + @TestMetadata("innerClassLabeledSuper2.kt") + public void testInnerClassLabeledSuper2() throws Exception { + runTest("compiler/testData/codegen/box/super/innerClassLabeledSuper2.kt"); + } + + @TestMetadata("innerClassLabeledSuperProperty.kt") + public void testInnerClassLabeledSuperProperty() throws Exception { + runTest("compiler/testData/codegen/box/super/innerClassLabeledSuperProperty.kt"); + } + + @TestMetadata("innerClassLabeledSuperProperty2.kt") + public void testInnerClassLabeledSuperProperty2() throws Exception { + runTest("compiler/testData/codegen/box/super/innerClassLabeledSuperProperty2.kt"); + } + + @TestMetadata("innerClassQualifiedFunctionCall.kt") + public void testInnerClassQualifiedFunctionCall() throws Exception { + runTest("compiler/testData/codegen/box/super/innerClassQualifiedFunctionCall.kt"); + } + + @TestMetadata("innerClassQualifiedPropertyAccess.kt") + public void testInnerClassQualifiedPropertyAccess() throws Exception { + runTest("compiler/testData/codegen/box/super/innerClassQualifiedPropertyAccess.kt"); + } + + @TestMetadata("interfaceHashCode.kt") + public void testInterfaceHashCode() throws Exception { + runTest("compiler/testData/codegen/box/super/interfaceHashCode.kt"); + } + + @TestMetadata("kt14243.kt") + public void testKt14243() throws Exception { + runTest("compiler/testData/codegen/box/super/kt14243.kt"); + } + + @TestMetadata("kt14243_2.kt") + public void testKt14243_2() throws Exception { + runTest("compiler/testData/codegen/box/super/kt14243_2.kt"); + } + + @TestMetadata("kt14243_class.kt") + public void testKt14243_class() throws Exception { + runTest("compiler/testData/codegen/box/super/kt14243_class.kt"); + } + + @TestMetadata("kt14243_prop.kt") + public void testKt14243_prop() throws Exception { + runTest("compiler/testData/codegen/box/super/kt14243_prop.kt"); + } + + @TestMetadata("kt3492ClassFun.kt") + public void testKt3492ClassFun() throws Exception { + runTest("compiler/testData/codegen/box/super/kt3492ClassFun.kt"); + } + + @TestMetadata("kt3492ClassProperty.kt") + public void testKt3492ClassProperty() throws Exception { + runTest("compiler/testData/codegen/box/super/kt3492ClassProperty.kt"); + } + + @TestMetadata("kt3492TraitFun.kt") + public void testKt3492TraitFun() throws Exception { + runTest("compiler/testData/codegen/box/super/kt3492TraitFun.kt"); + } + + @TestMetadata("kt3492TraitProperty.kt") + public void testKt3492TraitProperty() throws Exception { + runTest("compiler/testData/codegen/box/super/kt3492TraitProperty.kt"); + } + + @TestMetadata("kt4173.kt") + public void testKt4173() throws Exception { + runTest("compiler/testData/codegen/box/super/kt4173.kt"); + } + + @TestMetadata("kt4173_2.kt") + public void testKt4173_2() throws Exception { + runTest("compiler/testData/codegen/box/super/kt4173_2.kt"); + } + + @TestMetadata("kt4173_3.kt") + public void testKt4173_3() throws Exception { + runTest("compiler/testData/codegen/box/super/kt4173_3.kt"); + } + + @TestMetadata("kt4982.kt") + public void testKt4982() throws Exception { + runTest("compiler/testData/codegen/box/super/kt4982.kt"); + } + + @TestMetadata("multipleSuperTraits.kt") + public void testMultipleSuperTraits() throws Exception { + runTest("compiler/testData/codegen/box/super/multipleSuperTraits.kt"); + } + + @TestMetadata("superCallToNonGenericImplThroughGenericDefaultImpls.kt") + public void testSuperCallToNonGenericImplThroughGenericDefaultImpls() throws Exception { + runTest("compiler/testData/codegen/box/super/superCallToNonGenericImplThroughGenericDefaultImpls.kt"); + } + + @TestMetadata("traitproperty.kt") + public void testTraitproperty() throws Exception { + runTest("compiler/testData/codegen/box/super/traitproperty.kt"); + } + + @TestMetadata("unqualifiedSuper.kt") + public void testUnqualifiedSuper() throws Exception { + runTest("compiler/testData/codegen/box/super/unqualifiedSuper.kt"); + } + + @TestMetadata("unqualifiedSuperWithDeeperHierarchies.kt") + public void testUnqualifiedSuperWithDeeperHierarchies() throws Exception { + runTest("compiler/testData/codegen/box/super/unqualifiedSuperWithDeeperHierarchies.kt"); + } + + @TestMetadata("unqualifiedSuperWithMethodsOfAny.kt") + public void testUnqualifiedSuperWithMethodsOfAny() throws Exception { + runTest("compiler/testData/codegen/box/super/unqualifiedSuperWithMethodsOfAny.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/super/superConstructor") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class SuperConstructor extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSuperConstructor() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/super/superConstructor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("kt13846.kt") + public void testKt13846() throws Exception { + runTest("compiler/testData/codegen/box/super/superConstructor/kt13846.kt"); + } + + @TestMetadata("kt17464_arrayOf.kt") + public void testKt17464_arrayOf() throws Exception { + runTest("compiler/testData/codegen/box/super/superConstructor/kt17464_arrayOf.kt"); + } + + @TestMetadata("kt17464_linkedMapOf.kt") + public void testKt17464_linkedMapOf() throws Exception { + runTest("compiler/testData/codegen/box/super/superConstructor/kt17464_linkedMapOf.kt"); + } + + @TestMetadata("kt18356.kt") + public void testKt18356() throws Exception { + runTest("compiler/testData/codegen/box/super/superConstructor/kt18356.kt"); + } + + @TestMetadata("kt18356_2.kt") + public void testKt18356_2() throws Exception { + runTest("compiler/testData/codegen/box/super/superConstructor/kt18356_2.kt"); + } + + @TestMetadata("objectExtendsInner.kt") + public void testObjectExtendsInner() throws Exception { + runTest("compiler/testData/codegen/box/super/superConstructor/objectExtendsInner.kt"); + } + + @TestMetadata("objectExtendsLocalInner.kt") + public void testObjectExtendsLocalInner() throws Exception { + runTest("compiler/testData/codegen/box/super/superConstructor/objectExtendsLocalInner.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/synchronized") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Synchronized extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSynchronized() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/synchronized"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/syntheticAccessors") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class SyntheticAccessors extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("accessorForGenericConstructor.kt") + public void testAccessorForGenericConstructor() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/accessorForGenericConstructor.kt"); + } + + @TestMetadata("accessorForGenericMethod.kt") + public void testAccessorForGenericMethod() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/accessorForGenericMethod.kt"); + } + + @TestMetadata("accessorForGenericMethodWithDefaults.kt") + public void testAccessorForGenericMethodWithDefaults() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/accessorForGenericMethodWithDefaults.kt"); + } + + @TestMetadata("accessorForProtected.kt") + public void testAccessorForProtected() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/accessorForProtected.kt"); + } + + @TestMetadata("accessorForProtectedInvokeVirtual.kt") + public void testAccessorForProtectedInvokeVirtual() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/accessorForProtectedInvokeVirtual.kt"); + } + + public void testAllFilesPresentInSyntheticAccessors() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/syntheticAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("inline.kt") + public void testInline() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/inline.kt"); + } + + @TestMetadata("inlineInOtherClass.kt") + public void testInlineInOtherClass() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/inlineInOtherClass.kt"); + } + + @TestMetadata("kt10047.kt") + public void testKt10047() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/kt10047.kt"); + } + + @TestMetadata("kt21258_indirect.kt") + public void testKt21258_indirect() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/kt21258_indirect.kt"); + } + + @TestMetadata("kt21258_simple.kt") + public void testKt21258_simple() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/kt21258_simple.kt"); + } + + @TestMetadata("kt9717.kt") + public void testKt9717() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/kt9717.kt"); + } + + @TestMetadata("kt9717DifferentPackages.kt") + public void testKt9717DifferentPackages() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/kt9717DifferentPackages.kt"); + } + + @TestMetadata("kt9958.kt") + public void testKt9958() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/kt9958.kt"); + } + + @TestMetadata("kt9958Interface.kt") + public void testKt9958Interface() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/kt9958Interface.kt"); + } + + @TestMetadata("protectedFromLambda.kt") + public void testProtectedFromLambda() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/protectedFromLambda.kt"); + } + + @TestMetadata("superCallFromMultipleSubclasses.kt") + public void testSuperCallFromMultipleSubclasses() throws Exception { + runTest("compiler/testData/codegen/box/syntheticAccessors/superCallFromMultipleSubclasses.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/throws") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Throws extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInThrows() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/throws"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/box/toArray") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ToArray extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInToArray() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/toArray"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("kt3177-toTypedArray.kt") + public void testKt3177_toTypedArray() throws Exception { + runTest("compiler/testData/codegen/box/toArray/kt3177-toTypedArray.kt"); + } + + @TestMetadata("returnToTypedArray.kt") + public void testReturnToTypedArray() throws Exception { + runTest("compiler/testData/codegen/box/toArray/returnToTypedArray.kt"); + } + + @TestMetadata("toTypedArray.kt") + public void testToTypedArray() throws Exception { + runTest("compiler/testData/codegen/box/toArray/toTypedArray.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/topLevelPrivate") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class TopLevelPrivate extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInTopLevelPrivate() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/topLevelPrivate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("privateInInlineNested.kt") + public void testPrivateInInlineNested() throws Exception { + runTest("compiler/testData/codegen/box/topLevelPrivate/privateInInlineNested.kt"); + } + + @TestMetadata("syntheticAccessor.kt") + public void testSyntheticAccessor() throws Exception { + runTest("compiler/testData/codegen/box/topLevelPrivate/syntheticAccessor.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/trailingComma") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class TrailingComma extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInTrailingComma() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/trailingComma"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("noDisambiguation.kt") + public void testNoDisambiguation() throws Exception { + runTest("compiler/testData/codegen/box/trailingComma/noDisambiguation.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/traits") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Traits extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInTraits() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/traits"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("diamondPropertyAccessors.kt") + public void testDiamondPropertyAccessors() throws Exception { + runTest("compiler/testData/codegen/box/traits/diamondPropertyAccessors.kt"); + } + + @TestMetadata("doubleDiamond.kt") + public void testDoubleDiamond() throws Exception { + runTest("compiler/testData/codegen/box/traits/doubleDiamond.kt"); + } + + @TestMetadata("genericMethod.kt") + public void testGenericMethod() throws Exception { + runTest("compiler/testData/codegen/box/traits/genericMethod.kt"); + } + + @TestMetadata("indirectlyInheritPropertyGetter.kt") + public void testIndirectlyInheritPropertyGetter() throws Exception { + runTest("compiler/testData/codegen/box/traits/indirectlyInheritPropertyGetter.kt"); + } + + @TestMetadata("inheritedFun.kt") + public void testInheritedFun() throws Exception { + runTest("compiler/testData/codegen/box/traits/inheritedFun.kt"); + } + + @TestMetadata("inheritedVar.kt") + public void testInheritedVar() throws Exception { + runTest("compiler/testData/codegen/box/traits/inheritedVar.kt"); + } + + @TestMetadata("interfaceWithNonAbstractFunIndirect.kt") + public void testInterfaceWithNonAbstractFunIndirect() throws Exception { + runTest("compiler/testData/codegen/box/traits/interfaceWithNonAbstractFunIndirect.kt"); + } + + @TestMetadata("interfaceWithNonAbstractFunIndirectGeneric.kt") + public void testInterfaceWithNonAbstractFunIndirectGeneric() throws Exception { + runTest("compiler/testData/codegen/box/traits/interfaceWithNonAbstractFunIndirectGeneric.kt"); + } + + @TestMetadata("kt1936.kt") + public void testKt1936() throws Exception { + runTest("compiler/testData/codegen/box/traits/kt1936.kt"); + } + + @TestMetadata("kt1936_1.kt") + public void testKt1936_1() throws Exception { + runTest("compiler/testData/codegen/box/traits/kt1936_1.kt"); + } + + @TestMetadata("kt2260.kt") + public void testKt2260() throws Exception { + runTest("compiler/testData/codegen/box/traits/kt2260.kt"); + } + + @TestMetadata("kt2399.kt") + public void testKt2399() throws Exception { + runTest("compiler/testData/codegen/box/traits/kt2399.kt"); + } + + @TestMetadata("kt2541.kt") + public void testKt2541() throws Exception { + runTest("compiler/testData/codegen/box/traits/kt2541.kt"); + } + + @TestMetadata("kt3315.kt") + public void testKt3315() throws Exception { + runTest("compiler/testData/codegen/box/traits/kt3315.kt"); + } + + @TestMetadata("kt3500.kt") + public void testKt3500() throws Exception { + runTest("compiler/testData/codegen/box/traits/kt3500.kt"); + } + + @TestMetadata("kt3579.kt") + public void testKt3579() throws Exception { + runTest("compiler/testData/codegen/box/traits/kt3579.kt"); + } + + @TestMetadata("kt3579_2.kt") + public void testKt3579_2() throws Exception { + runTest("compiler/testData/codegen/box/traits/kt3579_2.kt"); + } + + @TestMetadata("kt36973.kt") + public void testKt36973() throws Exception { + runTest("compiler/testData/codegen/box/traits/kt36973.kt"); + } + + @TestMetadata("kt5393.kt") + public void testKt5393() throws Exception { + runTest("compiler/testData/codegen/box/traits/kt5393.kt"); + } + + @TestMetadata("kt5393_property.kt") + public void testKt5393_property() throws Exception { + runTest("compiler/testData/codegen/box/traits/kt5393_property.kt"); + } + + @TestMetadata("multiple.kt") + public void testMultiple() throws Exception { + runTest("compiler/testData/codegen/box/traits/multiple.kt"); + } + + @TestMetadata("noPrivateDelegation.kt") + public void testNoPrivateDelegation() throws Exception { + runTest("compiler/testData/codegen/box/traits/noPrivateDelegation.kt"); + } + + @TestMetadata("privateInterfaceMethod.kt") + public void testPrivateInterfaceMethod() throws Exception { + runTest("compiler/testData/codegen/box/traits/privateInterfaceMethod.kt"); + } + + @TestMetadata("receiverOfIntersectionType.kt") + public void testReceiverOfIntersectionType() throws Exception { + runTest("compiler/testData/codegen/box/traits/receiverOfIntersectionType.kt"); + } + + @TestMetadata("syntheticAccessor.kt") + public void testSyntheticAccessor() throws Exception { + runTest("compiler/testData/codegen/box/traits/syntheticAccessor.kt"); + } + + @TestMetadata("traitImplDelegationWithCovariantOverride.kt") + public void testTraitImplDelegationWithCovariantOverride() throws Exception { + runTest("compiler/testData/codegen/box/traits/traitImplDelegationWithCovariantOverride.kt"); + } + + @TestMetadata("traitImplDiamond.kt") + public void testTraitImplDiamond() throws Exception { + runTest("compiler/testData/codegen/box/traits/traitImplDiamond.kt"); + } + + @TestMetadata("traitImplGenericDelegation.kt") + public void testTraitImplGenericDelegation() throws Exception { + runTest("compiler/testData/codegen/box/traits/traitImplGenericDelegation.kt"); + } + + @TestMetadata("traitWithPrivateExtension.kt") + public void testTraitWithPrivateExtension() throws Exception { + runTest("compiler/testData/codegen/box/traits/traitWithPrivateExtension.kt"); + } + + @TestMetadata("traitWithPrivateMember.kt") + public void testTraitWithPrivateMember() throws Exception { + runTest("compiler/testData/codegen/box/traits/traitWithPrivateMember.kt"); + } + + @TestMetadata("traitWithPrivateMemberAccessFromLambda.kt") + public void testTraitWithPrivateMemberAccessFromLambda() throws Exception { + runTest("compiler/testData/codegen/box/traits/traitWithPrivateMemberAccessFromLambda.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/typeInfo") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class TypeInfo extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInTypeInfo() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/typeInfo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("ifOrWhenSpecialCall.kt") + public void testIfOrWhenSpecialCall() throws Exception { + runTest("compiler/testData/codegen/box/typeInfo/ifOrWhenSpecialCall.kt"); + } + + @TestMetadata("implicitSmartCastThis.kt") + public void testImplicitSmartCastThis() throws Exception { + runTest("compiler/testData/codegen/box/typeInfo/implicitSmartCastThis.kt"); + } + + @TestMetadata("inheritance.kt") + public void testInheritance() throws Exception { + runTest("compiler/testData/codegen/box/typeInfo/inheritance.kt"); + } + + @TestMetadata("kt2811.kt") + public void testKt2811() throws Exception { + runTest("compiler/testData/codegen/box/typeInfo/kt2811.kt"); + } + + @TestMetadata("primitiveTypeInfo.kt") + public void testPrimitiveTypeInfo() throws Exception { + runTest("compiler/testData/codegen/box/typeInfo/primitiveTypeInfo.kt"); + } + + @TestMetadata("smartCastThis.kt") + public void testSmartCastThis() throws Exception { + runTest("compiler/testData/codegen/box/typeInfo/smartCastThis.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/typeMapping") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class TypeMapping extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInTypeMapping() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/typeMapping"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("kt2831.kt") + public void testKt2831() throws Exception { + runTest("compiler/testData/codegen/box/typeMapping/kt2831.kt"); + } + + @TestMetadata("kt3286.kt") + public void testKt3286() throws Exception { + runTest("compiler/testData/codegen/box/typeMapping/kt3286.kt"); + } + + @TestMetadata("kt3863.kt") + public void testKt3863() throws Exception { + runTest("compiler/testData/codegen/box/typeMapping/kt3863.kt"); + } + + @TestMetadata("kt3976.kt") + public void testKt3976() throws Exception { + runTest("compiler/testData/codegen/box/typeMapping/kt3976.kt"); + } + + @TestMetadata("nothing.kt") + public void testNothing() throws Exception { + runTest("compiler/testData/codegen/box/typeMapping/nothing.kt"); + } + + @TestMetadata("nullNothing.kt") + public void testNullNothing() throws Exception { + runTest("compiler/testData/codegen/box/typeMapping/nullNothing.kt"); + } + + @TestMetadata("nullableNothing.kt") + public void testNullableNothing() throws Exception { + runTest("compiler/testData/codegen/box/typeMapping/nullableNothing.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/typealias") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Typealias extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInTypealias() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/typealias"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("enumEntryQualifier.kt") + public void testEnumEntryQualifier() throws Exception { + runTest("compiler/testData/codegen/box/typealias/enumEntryQualifier.kt"); + } + + @TestMetadata("genericTypeAliasConstructor.kt") + public void testGenericTypeAliasConstructor() throws Exception { + runTest("compiler/testData/codegen/box/typealias/genericTypeAliasConstructor.kt"); + } + + @TestMetadata("genericTypeAliasConstructor2.kt") + public void testGenericTypeAliasConstructor2() throws Exception { + runTest("compiler/testData/codegen/box/typealias/genericTypeAliasConstructor2.kt"); + } + + @TestMetadata("innerClassTypeAliasConstructor.kt") + public void testInnerClassTypeAliasConstructor() throws Exception { + runTest("compiler/testData/codegen/box/typealias/innerClassTypeAliasConstructor.kt"); + } + + @TestMetadata("innerClassTypeAliasConstructorInSupertypes.kt") + public void testInnerClassTypeAliasConstructorInSupertypes() throws Exception { + runTest("compiler/testData/codegen/box/typealias/innerClassTypeAliasConstructorInSupertypes.kt"); + } + + @TestMetadata("kt15109.kt") + public void testKt15109() throws Exception { + runTest("compiler/testData/codegen/box/typealias/kt15109.kt"); + } + + @TestMetadata("objectLiteralConstructor.kt") + public void testObjectLiteralConstructor() throws Exception { + runTest("compiler/testData/codegen/box/typealias/objectLiteralConstructor.kt"); + } + + @TestMetadata("privateInKlib.kt") + public void testPrivateInKlib() throws Exception { + runTest("compiler/testData/codegen/box/typealias/privateInKlib.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/box/typealias/simple.kt"); + } + + @TestMetadata("typeAliasAsBareType.kt") + public void testTypeAliasAsBareType() throws Exception { + runTest("compiler/testData/codegen/box/typealias/typeAliasAsBareType.kt"); + } + + @TestMetadata("typeAliasCompanion.kt") + public void testTypeAliasCompanion() throws Exception { + runTest("compiler/testData/codegen/box/typealias/typeAliasCompanion.kt"); + } + + @TestMetadata("typeAliasConstructor.kt") + public void testTypeAliasConstructor() throws Exception { + runTest("compiler/testData/codegen/box/typealias/typeAliasConstructor.kt"); + } + + @TestMetadata("typeAliasConstructorAccessor.kt") + public void testTypeAliasConstructorAccessor() throws Exception { + runTest("compiler/testData/codegen/box/typealias/typeAliasConstructorAccessor.kt"); + } + + @TestMetadata("typeAliasConstructorForArray.kt") + public void testTypeAliasConstructorForArray() throws Exception { + runTest("compiler/testData/codegen/box/typealias/typeAliasConstructorForArray.kt"); + } + + @TestMetadata("typeAliasConstructorInSuperCall.kt") + public void testTypeAliasConstructorInSuperCall() throws Exception { + runTest("compiler/testData/codegen/box/typealias/typeAliasConstructorInSuperCall.kt"); + } + + @TestMetadata("typeAliasInAnonymousObjectType.kt") + public void testTypeAliasInAnonymousObjectType() throws Exception { + runTest("compiler/testData/codegen/box/typealias/typeAliasInAnonymousObjectType.kt"); + } + + @TestMetadata("typeAliasObject.kt") + public void testTypeAliasObject() throws Exception { + runTest("compiler/testData/codegen/box/typealias/typeAliasObject.kt"); + } + + @TestMetadata("typeAliasObjectCallable.kt") + public void testTypeAliasObjectCallable() throws Exception { + runTest("compiler/testData/codegen/box/typealias/typeAliasObjectCallable.kt"); + } + + @TestMetadata("typeAliasSecondaryConstructor.kt") + public void testTypeAliasSecondaryConstructor() throws Exception { + runTest("compiler/testData/codegen/box/typealias/typeAliasSecondaryConstructor.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/unaryOp") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class UnaryOp extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInUnaryOp() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/unaryOp"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("call.kt") + public void testCall() throws Exception { + runTest("compiler/testData/codegen/box/unaryOp/call.kt"); + } + + @TestMetadata("callNullable.kt") + public void testCallNullable() throws Exception { + runTest("compiler/testData/codegen/box/unaryOp/callNullable.kt"); + } + + @TestMetadata("callWithCommonType.kt") + public void testCallWithCommonType() throws Exception { + runTest("compiler/testData/codegen/box/unaryOp/callWithCommonType.kt"); + } + + @TestMetadata("intrinsic.kt") + public void testIntrinsic() throws Exception { + runTest("compiler/testData/codegen/box/unaryOp/intrinsic.kt"); + } + + @TestMetadata("intrinsicNullable.kt") + public void testIntrinsicNullable() throws Exception { + runTest("compiler/testData/codegen/box/unaryOp/intrinsicNullable.kt"); + } + + @TestMetadata("longOverflow.kt") + public void testLongOverflow() throws Exception { + runTest("compiler/testData/codegen/box/unaryOp/longOverflow.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/unit") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Unit extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInUnit() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/unit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("closureReturnsNullableUnit.kt") + public void testClosureReturnsNullableUnit() throws Exception { + runTest("compiler/testData/codegen/box/unit/closureReturnsNullableUnit.kt"); + } + + @TestMetadata("ifElse.kt") + public void testIfElse() throws Exception { + runTest("compiler/testData/codegen/box/unit/ifElse.kt"); + } + + @TestMetadata("kt3634.kt") + public void testKt3634() throws Exception { + runTest("compiler/testData/codegen/box/unit/kt3634.kt"); + } + + @TestMetadata("kt4212.kt") + public void testKt4212() throws Exception { + runTest("compiler/testData/codegen/box/unit/kt4212.kt"); + } + + @TestMetadata("kt4265.kt") + public void testKt4265() throws Exception { + runTest("compiler/testData/codegen/box/unit/kt4265.kt"); + } + + @TestMetadata("nullableUnit.kt") + public void testNullableUnit() throws Exception { + runTest("compiler/testData/codegen/box/unit/nullableUnit.kt"); + } + + @TestMetadata("nullableUnitInWhen1.kt") + public void testNullableUnitInWhen1() throws Exception { + runTest("compiler/testData/codegen/box/unit/nullableUnitInWhen1.kt"); + } + + @TestMetadata("nullableUnitInWhen2.kt") + public void testNullableUnitInWhen2() throws Exception { + runTest("compiler/testData/codegen/box/unit/nullableUnitInWhen2.kt"); + } + + @TestMetadata("nullableUnitInWhen3.kt") + public void testNullableUnitInWhen3() throws Exception { + runTest("compiler/testData/codegen/box/unit/nullableUnitInWhen3.kt"); + } + + @TestMetadata("unitClassObject.kt") + public void testUnitClassObject() throws Exception { + runTest("compiler/testData/codegen/box/unit/unitClassObject.kt"); + } + + @TestMetadata("UnitValue.kt") + public void testUnitValue() throws Exception { + runTest("compiler/testData/codegen/box/unit/UnitValue.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/unsignedTypes") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class UnsignedTypes extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInUnsignedTypes() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/unsignedTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("boxConstValOfUnsignedType.kt") + public void testBoxConstValOfUnsignedType() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/boxConstValOfUnsignedType.kt"); + } + + @TestMetadata("boxedUnsignedEqualsZero.kt") + public void testBoxedUnsignedEqualsZero() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/boxedUnsignedEqualsZero.kt"); + } + + @TestMetadata("checkBasicUnsignedLiterals.kt") + public void testCheckBasicUnsignedLiterals() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/checkBasicUnsignedLiterals.kt"); + } + + @TestMetadata("equalsImplForInlineClassWrappingNullableInlineClass.kt") + public void testEqualsImplForInlineClassWrappingNullableInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/equalsImplForInlineClassWrappingNullableInlineClass.kt"); + } + + @TestMetadata("forEachIndexedInListOfUInts.kt") + public void testForEachIndexedInListOfUInts() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/forEachIndexedInListOfUInts.kt"); + } + + @TestMetadata("forInUnsignedDownTo.kt") + public void testForInUnsignedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/forInUnsignedDownTo.kt"); + } + + @TestMetadata("forInUnsignedProgression.kt") + public void testForInUnsignedProgression() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/forInUnsignedProgression.kt"); + } + + @TestMetadata("forInUnsignedRange.kt") + public void testForInUnsignedRange() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/forInUnsignedRange.kt"); + } + + @TestMetadata("forInUnsignedRangeLiteral.kt") + public void testForInUnsignedRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/forInUnsignedRangeLiteral.kt"); + } + + @TestMetadata("forInUnsignedRangeWithCoercion.kt") + public void testForInUnsignedRangeWithCoercion() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/forInUnsignedRangeWithCoercion.kt"); + } + + @TestMetadata("forInUnsignedUntil.kt") + public void testForInUnsignedUntil() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/forInUnsignedUntil.kt"); + } + + @TestMetadata("inUnsignedDownTo.kt") + public void testInUnsignedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/inUnsignedDownTo.kt"); + } + + @TestMetadata("inUnsignedRange.kt") + public void testInUnsignedRange() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/inUnsignedRange.kt"); + } + + @TestMetadata("inUnsignedRangeLiteral.kt") + public void testInUnsignedRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/inUnsignedRangeLiteral.kt"); + } + + @TestMetadata("inUnsignedUntil.kt") + public void testInUnsignedUntil() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/inUnsignedUntil.kt"); + } + + @TestMetadata("iterateOverArrayOfUnsignedValues.kt") + public void testIterateOverArrayOfUnsignedValues() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/iterateOverArrayOfUnsignedValues.kt"); + } + + @TestMetadata("iterateOverListOfBoxedUnsignedValues.kt") + public void testIterateOverListOfBoxedUnsignedValues() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/iterateOverListOfBoxedUnsignedValues.kt"); + } + + @TestMetadata("kt25784.kt") + public void testKt25784() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/kt25784.kt"); + } + + @TestMetadata("literalEqualsNullableUnsigned.kt") + public void testLiteralEqualsNullableUnsigned() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/literalEqualsNullableUnsigned.kt"); + } + + @TestMetadata("nullableUnsignedEqualsLiteral.kt") + public void testNullableUnsignedEqualsLiteral() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/nullableUnsignedEqualsLiteral.kt"); + } + + @TestMetadata("unsignedIntCompare.kt") + public void testUnsignedIntCompare() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntCompare.kt"); + } + + @TestMetadata("unsignedIntDivide.kt") + public void testUnsignedIntDivide() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntDivide.kt"); + } + + @TestMetadata("unsignedIntRemainder.kt") + public void testUnsignedIntRemainder() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntRemainder.kt"); + } + + @TestMetadata("unsignedIntToString.kt") + public void testUnsignedIntToString() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntToString.kt"); + } + + @TestMetadata("unsignedLiteralsForMaxLongValue.kt") + public void testUnsignedLiteralsForMaxLongValue() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLiteralsForMaxLongValue.kt"); + } + + @TestMetadata("unsignedLiteralsWithSignedOverflow.kt") + public void testUnsignedLiteralsWithSignedOverflow() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLiteralsWithSignedOverflow.kt"); + } + + @TestMetadata("unsignedLongCompare.kt") + public void testUnsignedLongCompare() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongCompare.kt"); + } + + @TestMetadata("unsignedLongDivide.kt") + public void testUnsignedLongDivide() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongDivide.kt"); + } + + @TestMetadata("unsignedLongRemainder.kt") + public void testUnsignedLongRemainder() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongRemainder.kt"); + } + + @TestMetadata("unsignedLongToString.kt") + public void testUnsignedLongToString() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongToString.kt"); + } + + @TestMetadata("unsignedRangeIterator.kt") + public void testUnsignedRangeIterator() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedRangeIterator.kt"); + } + + @TestMetadata("unsignedToSignedConversion.kt") + public void testUnsignedToSignedConversion() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedToSignedConversion.kt"); + } + + @TestMetadata("unsignedTypePrefixIncrementDecrementBoxing.kt") + public void testUnsignedTypePrefixIncrementDecrementBoxing() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedTypePrefixIncrementDecrementBoxing.kt"); + } + + @TestMetadata("unsignedTypeValuesInsideStringTemplates.kt") + public void testUnsignedTypeValuesInsideStringTemplates() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/unsignedTypeValuesInsideStringTemplates.kt"); + } + + @TestMetadata("varargsOfUnsignedTypes.kt") + public void testVarargsOfUnsignedTypes() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/varargsOfUnsignedTypes.kt"); + } + + @TestMetadata("whenByUnsigned.kt") + public void testWhenByUnsigned() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/whenByUnsigned.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/vararg") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Vararg extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInVararg() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/vararg"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("doNotCopyImmediatelyCreatedArrays.kt") + public void testDoNotCopyImmediatelyCreatedArrays() throws Exception { + runTest("compiler/testData/codegen/box/vararg/doNotCopyImmediatelyCreatedArrays.kt"); + } + + @TestMetadata("kt1978.kt") + public void testKt1978() throws Exception { + runTest("compiler/testData/codegen/box/vararg/kt1978.kt"); + } + + @TestMetadata("kt37715.kt") + public void testKt37715() throws Exception { + runTest("compiler/testData/codegen/box/vararg/kt37715.kt"); + } + + @TestMetadata("kt37779.kt") + public void testKt37779() throws Exception { + runTest("compiler/testData/codegen/box/vararg/kt37779.kt"); + } + + @TestMetadata("kt581.kt") + public void testKt581() throws Exception { + runTest("compiler/testData/codegen/box/vararg/kt581.kt"); + } + + @TestMetadata("kt6192.kt") + public void testKt6192() throws Exception { + runTest("compiler/testData/codegen/box/vararg/kt6192.kt"); + } + + @TestMetadata("kt796_797.kt") + public void testKt796_797() throws Exception { + runTest("compiler/testData/codegen/box/vararg/kt796_797.kt"); + } + + @TestMetadata("singleAssignmentToVarargsInFunction.kt") + public void testSingleAssignmentToVarargsInFunction() throws Exception { + runTest("compiler/testData/codegen/box/vararg/singleAssignmentToVarargsInFunction.kt"); + } + + @TestMetadata("spreadCopiesArray.kt") + public void testSpreadCopiesArray() throws Exception { + runTest("compiler/testData/codegen/box/vararg/spreadCopiesArray.kt"); + } + + @TestMetadata("varargInFunParam.kt") + public void testVarargInFunParam() throws Exception { + runTest("compiler/testData/codegen/box/vararg/varargInFunParam.kt"); + } + + @TestMetadata("varargsAndFunctionLiterals.kt") + public void testVarargsAndFunctionLiterals() throws Exception { + runTest("compiler/testData/codegen/box/vararg/varargsAndFunctionLiterals.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/when") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class When extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInWhen() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/when"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("callProperty.kt") + public void testCallProperty() throws Exception { + runTest("compiler/testData/codegen/box/when/callProperty.kt"); + } + + @TestMetadata("edgeCases.kt") + public void testEdgeCases() throws Exception { + runTest("compiler/testData/codegen/box/when/edgeCases.kt"); + } + + @TestMetadata("emptyWhen.kt") + public void testEmptyWhen() throws Exception { + runTest("compiler/testData/codegen/box/when/emptyWhen.kt"); + } + + @TestMetadata("exceptionOnNoMatch.kt") + public void testExceptionOnNoMatch() throws Exception { + runTest("compiler/testData/codegen/box/when/exceptionOnNoMatch.kt"); + } + + @TestMetadata("exhaustiveBoolean.kt") + public void testExhaustiveBoolean() throws Exception { + runTest("compiler/testData/codegen/box/when/exhaustiveBoolean.kt"); + } + + @TestMetadata("exhaustiveBreakContinue.kt") + public void testExhaustiveBreakContinue() throws Exception { + runTest("compiler/testData/codegen/box/when/exhaustiveBreakContinue.kt"); + } + + @TestMetadata("exhaustiveWhenInitialization.kt") + public void testExhaustiveWhenInitialization() throws Exception { + runTest("compiler/testData/codegen/box/when/exhaustiveWhenInitialization.kt"); + } + + @TestMetadata("exhaustiveWhenReturn.kt") + public void testExhaustiveWhenReturn() throws Exception { + runTest("compiler/testData/codegen/box/when/exhaustiveWhenReturn.kt"); + } + + @TestMetadata("implicitExhaustiveAndReturn.kt") + public void testImplicitExhaustiveAndReturn() throws Exception { + runTest("compiler/testData/codegen/box/when/implicitExhaustiveAndReturn.kt"); + } + + @TestMetadata("integralWhenWithNoInlinedConstants.kt") + public void testIntegralWhenWithNoInlinedConstants() throws Exception { + runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants.kt"); + } + + @TestMetadata("is.kt") + public void testIs() throws Exception { + runTest("compiler/testData/codegen/box/when/is.kt"); + } + + @TestMetadata("kt2457.kt") + public void testKt2457() throws Exception { + runTest("compiler/testData/codegen/box/when/kt2457.kt"); + } + + @TestMetadata("kt2466.kt") + public void testKt2466() throws Exception { + runTest("compiler/testData/codegen/box/when/kt2466.kt"); + } + + @TestMetadata("kt5307.kt") + public void testKt5307() throws Exception { + runTest("compiler/testData/codegen/box/when/kt5307.kt"); + } + + @TestMetadata("kt5448.kt") + public void testKt5448() throws Exception { + runTest("compiler/testData/codegen/box/when/kt5448.kt"); + } + + @TestMetadata("longInRange.kt") + public void testLongInRange() throws Exception { + runTest("compiler/testData/codegen/box/when/longInRange.kt"); + } + + @TestMetadata("matchNotNullAgainstNullable.kt") + public void testMatchNotNullAgainstNullable() throws Exception { + runTest("compiler/testData/codegen/box/when/matchNotNullAgainstNullable.kt"); + } + + @TestMetadata("multipleEntries.kt") + public void testMultipleEntries() throws Exception { + runTest("compiler/testData/codegen/box/when/multipleEntries.kt"); + } + + @TestMetadata("noElseCoerceToUnit.kt") + public void testNoElseCoerceToUnit() throws Exception { + runTest("compiler/testData/codegen/box/when/noElseCoerceToUnit.kt"); + } + + @TestMetadata("noElseExhaustive.kt") + public void testNoElseExhaustive() throws Exception { + runTest("compiler/testData/codegen/box/when/noElseExhaustive.kt"); + } + + @TestMetadata("noElseExhaustiveStatement.kt") + public void testNoElseExhaustiveStatement() throws Exception { + runTest("compiler/testData/codegen/box/when/noElseExhaustiveStatement.kt"); + } + + @TestMetadata("noElseExhaustiveUnitExpected.kt") + public void testNoElseExhaustiveUnitExpected() throws Exception { + runTest("compiler/testData/codegen/box/when/noElseExhaustiveUnitExpected.kt"); + } + + @TestMetadata("noElseInStatement.kt") + public void testNoElseInStatement() throws Exception { + runTest("compiler/testData/codegen/box/when/noElseInStatement.kt"); + } + + @TestMetadata("noElseNoMatch.kt") + public void testNoElseNoMatch() throws Exception { + runTest("compiler/testData/codegen/box/when/noElseNoMatch.kt"); + } + + @TestMetadata("nullableWhen.kt") + public void testNullableWhen() throws Exception { + runTest("compiler/testData/codegen/box/when/nullableWhen.kt"); + } + + @TestMetadata("range.kt") + public void testRange() throws Exception { + runTest("compiler/testData/codegen/box/when/range.kt"); + } + + @TestMetadata("sealedWhenInitialization.kt") + public void testSealedWhenInitialization() throws Exception { + runTest("compiler/testData/codegen/box/when/sealedWhenInitialization.kt"); + } + + @TestMetadata("switchOptimizationDense.kt") + public void testSwitchOptimizationDense() throws Exception { + runTest("compiler/testData/codegen/box/when/switchOptimizationDense.kt"); + } + + @TestMetadata("switchOptimizationDuplicates.kt") + public void testSwitchOptimizationDuplicates() throws Exception { + runTest("compiler/testData/codegen/box/when/switchOptimizationDuplicates.kt"); + } + + @TestMetadata("switchOptimizationMultipleConditions.kt") + public void testSwitchOptimizationMultipleConditions() throws Exception { + runTest("compiler/testData/codegen/box/when/switchOptimizationMultipleConditions.kt"); + } + + @TestMetadata("switchOptimizationSingleStatementCase.kt") + public void testSwitchOptimizationSingleStatementCase() throws Exception { + runTest("compiler/testData/codegen/box/when/switchOptimizationSingleStatementCase.kt"); + } + + @TestMetadata("switchOptimizationSparse.kt") + public void testSwitchOptimizationSparse() throws Exception { + runTest("compiler/testData/codegen/box/when/switchOptimizationSparse.kt"); + } + + @TestMetadata("switchOptimizationStatement.kt") + public void testSwitchOptimizationStatement() throws Exception { + runTest("compiler/testData/codegen/box/when/switchOptimizationStatement.kt"); + } + + @TestMetadata("switchOptimizationTypes.kt") + public void testSwitchOptimizationTypes() throws Exception { + runTest("compiler/testData/codegen/box/when/switchOptimizationTypes.kt"); + } + + @TestMetadata("switchOptimizationUnordered.kt") + public void testSwitchOptimizationUnordered() throws Exception { + runTest("compiler/testData/codegen/box/when/switchOptimizationUnordered.kt"); + } + + @TestMetadata("switchOptimizationWithGap.kt") + public void testSwitchOptimizationWithGap() throws Exception { + runTest("compiler/testData/codegen/box/when/switchOptimizationWithGap.kt"); + } + + @TestMetadata("typeDisjunction.kt") + public void testTypeDisjunction() throws Exception { + runTest("compiler/testData/codegen/box/when/typeDisjunction.kt"); + } + + @TestMetadata("whenArgumentIsEvaluatedOnlyOnce.kt") + public void testWhenArgumentIsEvaluatedOnlyOnce() throws Exception { + runTest("compiler/testData/codegen/box/when/whenArgumentIsEvaluatedOnlyOnce.kt"); + } + + @TestMetadata("whenSafeCallSubjectEvaluatedOnce.kt") + public void testWhenSafeCallSubjectEvaluatedOnce() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSafeCallSubjectEvaluatedOnce.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/when/enumOptimization") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class EnumOptimization extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInEnumOptimization() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/when/enumOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("bigEnum.kt") + public void testBigEnum() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/bigEnum.kt"); + } + + @TestMetadata("differentEnumClasses.kt") + public void testDifferentEnumClasses() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/differentEnumClasses.kt"); + } + + @TestMetadata("differentEnumClasses2.kt") + public void testDifferentEnumClasses2() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/differentEnumClasses2.kt"); + } + + @TestMetadata("duplicatingItems.kt") + public void testDuplicatingItems() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/duplicatingItems.kt"); + } + + @TestMetadata("enumInsideClassObject.kt") + public void testEnumInsideClassObject() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/enumInsideClassObject.kt"); + } + + @TestMetadata("expression.kt") + public void testExpression() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/expression.kt"); + } + + @TestMetadata("functionLiteralInTopLevel.kt") + public void testFunctionLiteralInTopLevel() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/functionLiteralInTopLevel.kt"); + } + + @TestMetadata("kt14597.kt") + public void testKt14597() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/kt14597.kt"); + } + + @TestMetadata("kt14597_full.kt") + public void testKt14597_full() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/kt14597_full.kt"); + } + + @TestMetadata("kt14802.kt") + public void testKt14802() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/kt14802.kt"); + } + + @TestMetadata("kt15806.kt") + public void testKt15806() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/kt15806.kt"); + } + + @TestMetadata("manyWhensWithinClass.kt") + public void testManyWhensWithinClass() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/manyWhensWithinClass.kt"); + } + + @TestMetadata("nonConstantEnum.kt") + public void testNonConstantEnum() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/nonConstantEnum.kt"); + } + + @TestMetadata("nullIsTheFirstEntry.kt") + public void testNullIsTheFirstEntry() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/nullIsTheFirstEntry.kt"); + } + + @TestMetadata("nullability.kt") + public void testNullability() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/nullability.kt"); + } + + @TestMetadata("nullableEnum.kt") + public void testNullableEnum() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/nullableEnum.kt"); + } + + @TestMetadata("subjectAny.kt") + public void testSubjectAny() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/subjectAny.kt"); + } + + @TestMetadata("withoutElse.kt") + public void testWithoutElse() throws Exception { + runTest("compiler/testData/codegen/box/when/enumOptimization/withoutElse.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/when/stringOptimization") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class StringOptimization extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInStringOptimization() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/when/stringOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("duplicatingItems.kt") + public void testDuplicatingItems() throws Exception { + runTest("compiler/testData/codegen/box/when/stringOptimization/duplicatingItems.kt"); + } + + @TestMetadata("duplicatingItemsSameHashCode.kt") + public void testDuplicatingItemsSameHashCode() throws Exception { + runTest("compiler/testData/codegen/box/when/stringOptimization/duplicatingItemsSameHashCode.kt"); + } + + @TestMetadata("duplicatingItemsSameHashCode2.kt") + public void testDuplicatingItemsSameHashCode2() throws Exception { + runTest("compiler/testData/codegen/box/when/stringOptimization/duplicatingItemsSameHashCode2.kt"); + } + + @TestMetadata("duplicatingItemsSameHashCode3.kt") + public void testDuplicatingItemsSameHashCode3() throws Exception { + runTest("compiler/testData/codegen/box/when/stringOptimization/duplicatingItemsSameHashCode3.kt"); + } + + @TestMetadata("expression.kt") + public void testExpression() throws Exception { + runTest("compiler/testData/codegen/box/when/stringOptimization/expression.kt"); + } + + @TestMetadata("nullability.kt") + public void testNullability() throws Exception { + runTest("compiler/testData/codegen/box/when/stringOptimization/nullability.kt"); + } + + @TestMetadata("sameHashCode.kt") + public void testSameHashCode() throws Exception { + runTest("compiler/testData/codegen/box/when/stringOptimization/sameHashCode.kt"); + } + + @TestMetadata("statement.kt") + public void testStatement() throws Exception { + runTest("compiler/testData/codegen/box/when/stringOptimization/statement.kt"); + } + + @TestMetadata("temporaryVarInWhenByStringIsDisposedProperly.kt") + public void testTemporaryVarInWhenByStringIsDisposedProperly() throws Exception { + runTest("compiler/testData/codegen/box/when/stringOptimization/temporaryVarInWhenByStringIsDisposedProperly.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/when/whenSubjectVariable") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class WhenSubjectVariable extends AbstractIrJsCodegenBoxES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInWhenSubjectVariable() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/when/whenSubjectVariable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("captureSubjectVariable.kt") + public void testCaptureSubjectVariable() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/captureSubjectVariable.kt"); + } + + @TestMetadata("denseIntSwitchWithSubjectVariable.kt") + public void testDenseIntSwitchWithSubjectVariable() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/denseIntSwitchWithSubjectVariable.kt"); + } + + @TestMetadata("equalityWithSubjectVariable.kt") + public void testEqualityWithSubjectVariable() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/equalityWithSubjectVariable.kt"); + } + + @TestMetadata("ieee754Equality.kt") + public void testIeee754Equality() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/ieee754Equality.kt"); + } + + @TestMetadata("ieee754EqualityWithSmartCast.kt") + public void testIeee754EqualityWithSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/ieee754EqualityWithSmartCast.kt"); + } + + @TestMetadata("isCheckOnSubjectVariable.kt") + public void testIsCheckOnSubjectVariable() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/isCheckOnSubjectVariable.kt"); + } + + @TestMetadata("kt27161.kt") + public void testKt27161() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt27161.kt"); + } + + @TestMetadata("kt27161_int.kt") + public void testKt27161_int() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt27161_int.kt"); + } + + @TestMetadata("kt27161_nested.kt") + public void testKt27161_nested() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt27161_nested.kt"); + } + + @TestMetadata("kt27161_nested2.kt") + public void testKt27161_nested2() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt27161_nested2.kt"); + } + + @TestMetadata("kt27161_string.kt") + public void testKt27161_string() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt27161_string.kt"); + } + + @TestMetadata("rangeCheckOnSubjectVariable.kt") + public void testRangeCheckOnSubjectVariable() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/rangeCheckOnSubjectVariable.kt"); + } + + @TestMetadata("sparseIntSwitchWithSubjectVariable.kt") + public void testSparseIntSwitchWithSubjectVariable() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/sparseIntSwitchWithSubjectVariable.kt"); + } + + @TestMetadata("subjectExpressionIsEvaluatedOnce.kt") + public void testSubjectExpressionIsEvaluatedOnce() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/subjectExpressionIsEvaluatedOnce.kt"); + } + + @TestMetadata("whenByEnum.kt") + public void testWhenByEnum() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/whenByEnum.kt"); + } + + @TestMetadata("whenByNullableEnum.kt") + public void testWhenByNullableEnum() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/whenByNullableEnum.kt"); + } + + @TestMetadata("whenByString.kt") + public void testWhenByString() throws Exception { + runTest("compiler/testData/codegen/box/when/whenSubjectVariable/whenByString.kt"); + } + } + } +} diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenInlineES6TestGenerated.java b/js/js.tests/test/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenInlineES6TestGenerated.java new file mode 100644 index 00000000000..acce68a744c --- /dev/null +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenInlineES6TestGenerated.java @@ -0,0 +1,3918 @@ +/* + * Copyright 2010-2020 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.js.test.es6.semantics; + +import com.intellij.testFramework.TestDataPath; +import org.jetbrains.kotlin.test.JUnit3RunnerWithInners; +import org.jetbrains.kotlin.test.KotlinTestUtils; +import org.jetbrains.kotlin.test.TargetBackend; +import org.jetbrains.kotlin.test.TestMetadata; +import org.junit.runner.RunWith; + +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 */ +@SuppressWarnings("all") +@TestMetadata("compiler/testData/codegen/boxInline") +@TestDataPath("$PROJECT_ROOT") +@RunWith(JUnit3RunnerWithInners.class) +public class IrJsCodegenInlineES6TestGenerated extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInBoxInline() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class AnonymousObject extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInAnonymousObject() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("anonymousObjectInDefault.kt") + public void testAnonymousObjectInDefault() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectInDefault.kt"); + } + + @TestMetadata("anonymousObjectOnCallSite.kt") + public void testAnonymousObjectOnCallSite() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnCallSite.kt"); + } + + @TestMetadata("anonymousObjectOnCallSiteSuperParams.kt") + public void testAnonymousObjectOnCallSiteSuperParams() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnCallSiteSuperParams.kt"); + } + + @TestMetadata("anonymousObjectOnDeclarationSite.kt") + public void testAnonymousObjectOnDeclarationSite() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnDeclarationSite.kt"); + } + + @TestMetadata("anonymousObjectOnDeclarationSiteSuperParams.kt") + public void testAnonymousObjectOnDeclarationSiteSuperParams() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/anonymousObjectOnDeclarationSiteSuperParams.kt"); + } + + @TestMetadata("capturedLambdaInInline.kt") + public void testCapturedLambdaInInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline.kt"); + } + + @TestMetadata("capturedLambdaInInline2.kt") + public void testCapturedLambdaInInline2() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline2.kt"); + } + + @TestMetadata("capturedLambdaInInline3.kt") + public void testCapturedLambdaInInline3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInline3.kt"); + } + + @TestMetadata("capturedLambdaInInlineObject.kt") + public void testCapturedLambdaInInlineObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInlineObject.kt"); + } + + @TestMetadata("capturedLocalFun.kt") + public void testCapturedLocalFun() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLocalFun.kt"); + } + + @TestMetadata("capturedLocalFunRef.kt") + public void testCapturedLocalFunRef() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/capturedLocalFunRef.kt"); + } + + @TestMetadata("changingReturnType.kt") + public void testChangingReturnType() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/changingReturnType.kt"); + } + + @TestMetadata("constructorVisibility.kt") + public void testConstructorVisibility() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/constructorVisibility.kt"); + } + + @TestMetadata("constructorVisibilityInConstLambda.kt") + public void testConstructorVisibilityInConstLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/constructorVisibilityInConstLambda.kt"); + } + + @TestMetadata("constructorVisibilityInLambda.kt") + public void testConstructorVisibilityInLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/constructorVisibilityInLambda.kt"); + } + + @TestMetadata("defineClass.kt") + public void testDefineClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt"); + } + + @TestMetadata("inlineCallInsideInlineLambda.kt") + public void testInlineCallInsideInlineLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/inlineCallInsideInlineLambda.kt"); + } + + @TestMetadata("kt13182.kt") + public void testKt13182() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt13182.kt"); + } + + @TestMetadata("kt13374.kt") + public void testKt13374() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt13374.kt"); + } + + @TestMetadata("kt14011.kt") + public void testKt14011() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt14011.kt"); + } + + @TestMetadata("kt14011_2.kt") + public void testKt14011_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt14011_2.kt"); + } + + @TestMetadata("kt14011_3.kt") + public void testKt14011_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt14011_3.kt"); + } + + @TestMetadata("kt15751.kt") + public void testKt15751() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt15751.kt"); + } + + @TestMetadata("kt17972.kt") + public void testKt17972() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972.kt"); + } + + @TestMetadata("kt17972_2.kt") + public void testKt17972_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_2.kt"); + } + + @TestMetadata("kt17972_3.kt") + public void testKt17972_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_3.kt"); + } + + @TestMetadata("kt17972_4.kt") + public void testKt17972_4() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_4.kt"); + } + + @TestMetadata("kt17972_5.kt") + public void testKt17972_5() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_5.kt"); + } + + @TestMetadata("kt17972_super.kt") + public void testKt17972_super() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_super.kt"); + } + + @TestMetadata("kt17972_super2.kt") + public void testKt17972_super2() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_super2.kt"); + } + + @TestMetadata("kt17972_super3.kt") + public void testKt17972_super3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt17972_super3.kt"); + } + + @TestMetadata("kt19389.kt") + public void testKt19389() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19389.kt"); + } + + @TestMetadata("kt19399.kt") + public void testKt19399() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19399.kt"); + } + + @TestMetadata("kt19723.kt") + public void testKt19723() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt19723.kt"); + } + + @TestMetadata("kt34656.kt") + public void testKt34656() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt34656.kt"); + } + + @TestMetadata("kt38197.kt") + public void testKt38197() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt"); + } + + @TestMetadata("kt6552.kt") + public void testKt6552() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt6552.kt"); + } + + @TestMetadata("kt8133.kt") + public void testKt8133() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt8133.kt"); + } + + @TestMetadata("kt9064.kt") + public void testKt9064() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9064.kt"); + } + + @TestMetadata("kt9064v2.kt") + public void testKt9064v2() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9064v2.kt"); + } + + @TestMetadata("kt9591.kt") + public void testKt9591() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9591.kt"); + } + + @TestMetadata("kt9877.kt") + public void testKt9877() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9877.kt"); + } + + @TestMetadata("kt9877_2.kt") + public void testKt9877_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/kt9877_2.kt"); + } + + @TestMetadata("objectInLambdaCapturesAnotherObject.kt") + public void testObjectInLambdaCapturesAnotherObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/objectInLambdaCapturesAnotherObject.kt"); + } + + @TestMetadata("safeCall.kt") + public void testSafeCall() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/safeCall.kt"); + } + + @TestMetadata("safeCall_2.kt") + public void testSafeCall_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/safeCall_2.kt"); + } + + @TestMetadata("sharedFromCrossinline.kt") + public void testSharedFromCrossinline() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/sharedFromCrossinline.kt"); + } + + @TestMetadata("superConstructorWithObjectParameter.kt") + public void testSuperConstructorWithObjectParameter() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/superConstructorWithObjectParameter.kt"); + } + + @TestMetadata("typeInfo.kt") + public void testTypeInfo() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/typeInfo.kt"); + } + + @TestMetadata("withInlineMethod.kt") + public void testWithInlineMethod() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/withInlineMethod.kt"); + } + + @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/enumWhen") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class EnumWhen extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInEnumWhen() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/enumWhen"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("callSite.kt") + public void testCallSite() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/callSite.kt"); + } + + @TestMetadata("declSite.kt") + public void testDeclSite() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/declSite.kt"); + } + + @TestMetadata("declSiteSeveralMappings.kt") + public void testDeclSiteSeveralMappings() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/declSiteSeveralMappings.kt"); + } + + @TestMetadata("declSiteSeveralMappingsDifOrder.kt") + public void testDeclSiteSeveralMappingsDifOrder() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/enumWhen/declSiteSeveralMappingsDifOrder.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ProperRecapturing extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInProperRecapturing() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("inlineChain.kt") + public void testInlineChain() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/inlineChain.kt"); + } + + @TestMetadata("lambdaChain.kt") + public void testLambdaChain() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChain.kt"); + } + + @TestMetadata("lambdaChainSimple.kt") + public void testLambdaChainSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChainSimple.kt"); + } + + @TestMetadata("lambdaChain_2.kt") + public void testLambdaChain_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChain_2.kt"); + } + + @TestMetadata("lambdaChain_3.kt") + public void testLambdaChain_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/lambdaChain_3.kt"); + } + + @TestMetadata("noInlineLambda.kt") + public void testNoInlineLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturing/noInlineLambda.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ProperRecapturingInClass extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInProperRecapturingInClass() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("inlineChain.kt") + public void testInlineChain() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/inlineChain.kt"); + } + + @TestMetadata("inlinelambdaChain.kt") + public void testInlinelambdaChain() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/inlinelambdaChain.kt"); + } + + @TestMetadata("lambdaChain.kt") + public void testLambdaChain() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain.kt"); + } + + @TestMetadata("lambdaChainSimple.kt") + public void testLambdaChainSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChainSimple.kt"); + } + + @TestMetadata("lambdaChainSimple_2.kt") + public void testLambdaChainSimple_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChainSimple_2.kt"); + } + + @TestMetadata("lambdaChain_2.kt") + public void testLambdaChain_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain_2.kt"); + } + + @TestMetadata("lambdaChain_3.kt") + public void testLambdaChain_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/lambdaChain_3.kt"); + } + + @TestMetadata("noCapturedThisOnCallSite.kt") + public void testNoCapturedThisOnCallSite() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/noCapturedThisOnCallSite.kt"); + } + + @TestMetadata("noInlineLambda.kt") + public void testNoInlineLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/noInlineLambda.kt"); + } + + @TestMetadata("twoInlineLambda.kt") + public void testTwoInlineLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/twoInlineLambda.kt"); + } + + @TestMetadata("twoInlineLambdaComplex.kt") + public void testTwoInlineLambdaComplex() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/twoInlineLambdaComplex.kt"); + } + + @TestMetadata("twoInlineLambdaComplex_2.kt") + public void testTwoInlineLambdaComplex_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/properRecapturingInClass/twoInlineLambdaComplex_2.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/sam") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Sam extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSam() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class TwoCapturedReceivers extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInTwoCapturedReceivers() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("kt8668.kt") + public void testKt8668() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668.kt"); + } + + @TestMetadata("kt8668_2.kt") + public void testKt8668_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_2.kt"); + } + + @TestMetadata("kt8668_3.kt") + public void testKt8668_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_3.kt"); + } + + @TestMetadata("twoDifferentDispatchReceivers.kt") + public void testTwoDifferentDispatchReceivers() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/twoDifferentDispatchReceivers.kt"); + } + + @TestMetadata("twoExtensionReceivers.kt") + public void testTwoExtensionReceivers() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/twoExtensionReceivers.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/argumentOrder") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ArgumentOrder extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInArgumentOrder() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/argumentOrder"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("boundFunctionReference.kt") + public void testBoundFunctionReference() throws Exception { + runTest("compiler/testData/codegen/boxInline/argumentOrder/boundFunctionReference.kt"); + } + + @TestMetadata("boundFunctionReference2.kt") + public void testBoundFunctionReference2() throws Exception { + runTest("compiler/testData/codegen/boxInline/argumentOrder/boundFunctionReference2.kt"); + } + + @TestMetadata("captured.kt") + public void testCaptured() throws Exception { + runTest("compiler/testData/codegen/boxInline/argumentOrder/captured.kt"); + } + + @TestMetadata("capturedInExtension.kt") + public void testCapturedInExtension() throws Exception { + runTest("compiler/testData/codegen/boxInline/argumentOrder/capturedInExtension.kt"); + } + + @TestMetadata("defaultParametersAndLastVararg.kt") + public void testDefaultParametersAndLastVararg() throws Exception { + runTest("compiler/testData/codegen/boxInline/argumentOrder/defaultParametersAndLastVararg.kt"); + } + + @TestMetadata("extension.kt") + public void testExtension() throws Exception { + runTest("compiler/testData/codegen/boxInline/argumentOrder/extension.kt"); + } + + @TestMetadata("extensionInClass.kt") + public void testExtensionInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/argumentOrder/extensionInClass.kt"); + } + + @TestMetadata("lambdaMigration.kt") + public void testLambdaMigration() throws Exception { + runTest("compiler/testData/codegen/boxInline/argumentOrder/lambdaMigration.kt"); + } + + @TestMetadata("lambdaMigrationInClass.kt") + public void testLambdaMigrationInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/argumentOrder/lambdaMigrationInClass.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/argumentOrder/simple.kt"); + } + + @TestMetadata("simpleInClass.kt") + public void testSimpleInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/argumentOrder/simpleInClass.kt"); + } + + @TestMetadata("varargAndDefaultParameters.kt") + public void testVarargAndDefaultParameters() throws Exception { + runTest("compiler/testData/codegen/boxInline/argumentOrder/varargAndDefaultParameters.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/arrayConvention") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ArrayConvention extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInArrayConvention() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/arrayConvention"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("simpleAccess.kt") + public void testSimpleAccess() throws Exception { + runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccess.kt"); + } + + @TestMetadata("simpleAccessInClass.kt") + public void testSimpleAccessInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessInClass.kt"); + } + + @TestMetadata("simpleAccessWithDefault.kt") + public void testSimpleAccessWithDefault() throws Exception { + runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithDefault.kt"); + } + + @TestMetadata("simpleAccessWithDefaultInClass.kt") + public void testSimpleAccessWithDefaultInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithDefaultInClass.kt"); + } + + @TestMetadata("simpleAccessWithLambda.kt") + public void testSimpleAccessWithLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithLambda.kt"); + } + + @TestMetadata("simpleAccessWithLambdaInClass.kt") + public void testSimpleAccessWithLambdaInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/arrayConvention/simpleAccessWithLambdaInClass.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/assert") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Assert extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInAssert() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/assert"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/builders") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Builders extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInBuilders() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/builders"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/bytecodePreprocessing") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class BytecodePreprocessing extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInBytecodePreprocessing() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/bytecodePreprocessing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/callableReference") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class CallableReference extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCallableReference() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("classLevel.kt") + public void testClassLevel() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/classLevel.kt"); + } + + @TestMetadata("classLevel2.kt") + public void testClassLevel2() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/classLevel2.kt"); + } + + @TestMetadata("constructor.kt") + public void testConstructor() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/constructor.kt"); + } + + @TestMetadata("innerGenericConstuctor.kt") + public void testInnerGenericConstuctor() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/innerGenericConstuctor.kt"); + } + + @TestMetadata("intrinsic.kt") + public void testIntrinsic() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/intrinsic.kt"); + } + + @TestMetadata("kt15449.kt") + public void testKt15449() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/kt15449.kt"); + } + + @TestMetadata("kt15751_2.kt") + public void testKt15751_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/kt15751_2.kt"); + } + + @TestMetadata("kt16411.kt") + public void testKt16411() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/kt16411.kt"); + } + + @TestMetadata("kt35101.kt") + public void testKt35101() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/kt35101.kt"); + } + + @TestMetadata("propertyIntrinsic.kt") + public void testPropertyIntrinsic() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/propertyIntrinsic.kt"); + } + + @TestMetadata("propertyReference.kt") + public void testPropertyReference() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/propertyReference.kt"); + } + + @TestMetadata("topLevel.kt") + public void testTopLevel() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/topLevel.kt"); + } + + @TestMetadata("topLevelExtension.kt") + public void testTopLevelExtension() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/topLevelExtension.kt"); + } + + @TestMetadata("topLevelProperty.kt") + public void testTopLevelProperty() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/topLevelProperty.kt"); + } + + @TestMetadata("compiler/testData/codegen/boxInline/callableReference/bound") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Bound extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInBound() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/callableReference/bound"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("classProperty.kt") + public void testClassProperty() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/classProperty.kt"); + } + + @TestMetadata("emptyLhsFunction.kt") + public void testEmptyLhsFunction() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsFunction.kt"); + } + + @TestMetadata("emptyLhsOnInlineProperty.kt") + public void testEmptyLhsOnInlineProperty() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsOnInlineProperty.kt"); + } + + @TestMetadata("emptyLhsProperty.kt") + public void testEmptyLhsProperty() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsProperty.kt"); + } + + @TestMetadata("expression.kt") + public void testExpression() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/expression.kt"); + } + + @TestMetadata("extensionReceiver.kt") + public void testExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/extensionReceiver.kt"); + } + + @TestMetadata("filter.kt") + public void testFilter() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/filter.kt"); + } + + @TestMetadata("inlineValueParameterInsteadOfReceiver.kt") + public void testInlineValueParameterInsteadOfReceiver() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/inlineValueParameterInsteadOfReceiver.kt"); + } + + @TestMetadata("innerGenericConstuctor.kt") + public void testInnerGenericConstuctor() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/innerGenericConstuctor.kt"); + } + + @TestMetadata("intrinsic.kt") + public void testIntrinsic() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/intrinsic.kt"); + } + + @TestMetadata("kt18728.kt") + public void testKt18728() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728.kt"); + } + + @TestMetadata("kt18728_2.kt") + public void testKt18728_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_2.kt"); + } + + @TestMetadata("kt18728_3.kt") + public void testKt18728_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_3.kt"); + } + + @TestMetadata("kt18728_4.kt") + public void testKt18728_4() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/kt18728_4.kt"); + } + + @TestMetadata("map.kt") + public void testMap() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/map.kt"); + } + + @TestMetadata("mixed.kt") + public void testMixed() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/mixed.kt"); + } + + @TestMetadata("objectProperty.kt") + public void testObjectProperty() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/objectProperty.kt"); + } + + @TestMetadata("propertyImportedFromObject.kt") + public void testPropertyImportedFromObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/propertyImportedFromObject.kt"); + } + + @TestMetadata("sideEffect.kt") + public void testSideEffect() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/sideEffect.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/simple.kt"); + } + + @TestMetadata("simpleVal.kt") + public void testSimpleVal() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/simpleVal.kt"); + } + + @TestMetadata("simpleVal2.kt") + public void testSimpleVal2() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/simpleVal2.kt"); + } + + @TestMetadata("topLevelExtensionProperty.kt") + public void testTopLevelExtensionProperty() throws Exception { + runTest("compiler/testData/codegen/boxInline/callableReference/bound/topLevelExtensionProperty.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/capture") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Capture extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCapture() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/capture"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("captureInlinable.kt") + public void testCaptureInlinable() throws Exception { + runTest("compiler/testData/codegen/boxInline/capture/captureInlinable.kt"); + } + + @TestMetadata("captureInlinableAndOther.kt") + public void testCaptureInlinableAndOther() throws Exception { + runTest("compiler/testData/codegen/boxInline/capture/captureInlinableAndOther.kt"); + } + + @TestMetadata("captureThisAndReceiver.kt") + public void testCaptureThisAndReceiver() throws Exception { + runTest("compiler/testData/codegen/boxInline/capture/captureThisAndReceiver.kt"); + } + + @TestMetadata("generics.kt") + public void testGenerics() throws Exception { + runTest("compiler/testData/codegen/boxInline/capture/generics.kt"); + } + + @TestMetadata("simpleCapturingInClass.kt") + public void testSimpleCapturingInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/capture/simpleCapturingInClass.kt"); + } + + @TestMetadata("simpleCapturingInPackage.kt") + public void testSimpleCapturingInPackage() throws Exception { + runTest("compiler/testData/codegen/boxInline/capture/simpleCapturingInPackage.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/complex") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Complex extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInComplex() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/complex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("closureChain.kt") + public void testClosureChain() throws Exception { + runTest("compiler/testData/codegen/boxInline/complex/closureChain.kt"); + } + + @TestMetadata("swapAndWith.kt") + public void testSwapAndWith() throws Exception { + runTest("compiler/testData/codegen/boxInline/complex/swapAndWith.kt"); + } + + @TestMetadata("swapAndWith2.kt") + public void testSwapAndWith2() throws Exception { + runTest("compiler/testData/codegen/boxInline/complex/swapAndWith2.kt"); + } + + @TestMetadata("use.kt") + public void testUse() throws Exception { + runTest("compiler/testData/codegen/boxInline/complex/use.kt"); + } + + @TestMetadata("with.kt") + public void testWith() throws Exception { + runTest("compiler/testData/codegen/boxInline/complex/with.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/complexStack") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ComplexStack extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInComplexStack() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/complexStack"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("asCheck.kt") + public void testAsCheck() throws Exception { + runTest("compiler/testData/codegen/boxInline/complexStack/asCheck.kt"); + } + + @TestMetadata("asCheck2.kt") + public void testAsCheck2() throws Exception { + runTest("compiler/testData/codegen/boxInline/complexStack/asCheck2.kt"); + } + + @TestMetadata("breakContinueInInlineLambdaArgument.kt") + public void testBreakContinueInInlineLambdaArgument() throws Exception { + runTest("compiler/testData/codegen/boxInline/complexStack/breakContinueInInlineLambdaArgument.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/complexStack/simple.kt"); + } + + @TestMetadata("simple2.kt") + public void testSimple2() throws Exception { + runTest("compiler/testData/codegen/boxInline/complexStack/simple2.kt"); + } + + @TestMetadata("simple3.kt") + public void testSimple3() throws Exception { + runTest("compiler/testData/codegen/boxInline/complexStack/simple3.kt"); + } + + @TestMetadata("simple4.kt") + public void testSimple4() throws Exception { + runTest("compiler/testData/codegen/boxInline/complexStack/simple4.kt"); + } + + @TestMetadata("simpleExtension.kt") + public void testSimpleExtension() throws Exception { + runTest("compiler/testData/codegen/boxInline/complexStack/simpleExtension.kt"); + } + + @TestMetadata("spillConstructorArgumentsAndInlineLambdaParameter.kt") + public void testSpillConstructorArgumentsAndInlineLambdaParameter() throws Exception { + runTest("compiler/testData/codegen/boxInline/complexStack/spillConstructorArgumentsAndInlineLambdaParameter.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/contracts") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Contracts extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInContracts() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/contracts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("cfgDependendValInitialization.kt") + public void testCfgDependendValInitialization() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/cfgDependendValInitialization.kt"); + } + + @TestMetadata("complexInitializer.kt") + public void testComplexInitializer() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/complexInitializer.kt"); + } + + @TestMetadata("complexInitializerWithStackTransformation.kt") + public void testComplexInitializerWithStackTransformation() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/complexInitializerWithStackTransformation.kt"); + } + + @TestMetadata("crossinlineCallableReference.kt") + public void testCrossinlineCallableReference() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/crossinlineCallableReference.kt"); + } + + @TestMetadata("definiteLongValInitialization.kt") + public void testDefiniteLongValInitialization() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/definiteLongValInitialization.kt"); + } + + @TestMetadata("definiteNestedValInitialization.kt") + public void testDefiniteNestedValInitialization() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/definiteNestedValInitialization.kt"); + } + + @TestMetadata("definiteValInitInInitializer.kt") + public void testDefiniteValInitInInitializer() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/definiteValInitInInitializer.kt"); + } + + @TestMetadata("definiteValInitialization.kt") + public void testDefiniteValInitialization() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/definiteValInitialization.kt"); + } + + @TestMetadata("exactlyOnceCrossinline.kt") + public void testExactlyOnceCrossinline() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline.kt"); + } + + @TestMetadata("exactlyOnceCrossinline2.kt") + public void testExactlyOnceCrossinline2() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceCrossinline2.kt"); + } + + @TestMetadata("exactlyOnceNoinline.kt") + public void testExactlyOnceNoinline() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/exactlyOnceNoinline.kt"); + } + + @TestMetadata("nonLocalReturn.kt") + public void testNonLocalReturn() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/nonLocalReturn.kt"); + } + + @TestMetadata("nonLocalReturnWithCycle.kt") + public void testNonLocalReturnWithCycle() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/nonLocalReturnWithCycle.kt"); + } + + @TestMetadata("propertyInitialization.kt") + public void testPropertyInitialization() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/propertyInitialization.kt"); + } + + @TestMetadata("valInitializationAndUsageInNestedLambda.kt") + public void testValInitializationAndUsageInNestedLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/contracts/valInitializationAndUsageInNestedLambda.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/defaultValues") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DefaultValues extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("33Parameters.kt") + public void test33Parameters() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/33Parameters.kt"); + } + + @TestMetadata("33ParametersInConstructor.kt") + public void test33ParametersInConstructor() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/33ParametersInConstructor.kt"); + } + + public void testAllFilesPresentInDefaultValues() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("defaultInExtension.kt") + public void testDefaultInExtension() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/defaultInExtension.kt"); + } + + @TestMetadata("defaultMethod.kt") + public void testDefaultMethod() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/defaultMethod.kt"); + } + + @TestMetadata("defaultMethodInClass.kt") + public void testDefaultMethodInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/defaultMethodInClass.kt"); + } + + @TestMetadata("defaultParamRemapping.kt") + public void testDefaultParamRemapping() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/defaultParamRemapping.kt"); + } + + @TestMetadata("inlineInDefaultParameter.kt") + public void testInlineInDefaultParameter() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/inlineInDefaultParameter.kt"); + } + + @TestMetadata("inlineLambdaInNoInlineDefault.kt") + public void testInlineLambdaInNoInlineDefault() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/inlineLambdaInNoInlineDefault.kt"); + } + + @TestMetadata("kt11479.kt") + public void testKt11479() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/kt11479.kt"); + } + + @TestMetadata("kt11479InlinedDefaultParameter.kt") + public void testKt11479InlinedDefaultParameter() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/kt11479InlinedDefaultParameter.kt"); + } + + @TestMetadata("kt14564.kt") + public void testKt14564() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564.kt"); + } + + @TestMetadata("kt14564_2.kt") + public void testKt14564_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564_2.kt"); + } + + @TestMetadata("kt16496.kt") + public void testKt16496() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/kt16496.kt"); + } + + @TestMetadata("kt18689.kt") + public void testKt18689() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689.kt"); + } + + @TestMetadata("kt18689_2.kt") + public void testKt18689_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_2.kt"); + } + + @TestMetadata("kt18689_3.kt") + public void testKt18689_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_3.kt"); + } + + @TestMetadata("kt18689_4.kt") + public void testKt18689_4() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689_4.kt"); + } + + @TestMetadata("kt5685.kt") + public void testKt5685() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/kt5685.kt"); + } + + @TestMetadata("simpleDefaultMethod.kt") + public void testSimpleDefaultMethod() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/simpleDefaultMethod.kt"); + } + + @TestMetadata("varArgNoInline.kt") + public void testVarArgNoInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/varArgNoInline.kt"); + } + + @TestMetadata("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class LambdaInlining extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInLambdaInlining() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("checkLambdaClassIsPresent.kt") + public void testCheckLambdaClassIsPresent() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkLambdaClassIsPresent.kt"); + } + + @TestMetadata("checkLambdaClassesArePresent.kt") + public void testCheckLambdaClassesArePresent() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkLambdaClassesArePresent.kt"); + } + + @TestMetadata("checkObjectClassIsPresent.kt") + public void testCheckObjectClassIsPresent() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkObjectClassIsPresent.kt"); + } + + @TestMetadata("checkStaticLambdaClassIsPresent.kt") + public void testCheckStaticLambdaClassIsPresent() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticLambdaClassIsPresent.kt"); + } + + @TestMetadata("checkStaticLambdaClassesArePresent.kt") + public void testCheckStaticLambdaClassesArePresent() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticLambdaClassesArePresent.kt"); + } + + @TestMetadata("checkStaticObjectClassIsPresent.kt") + public void testCheckStaticObjectClassIsPresent() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticObjectClassIsPresent.kt"); + } + + @TestMetadata("defaultCallInDefaultLambda.kt") + public void testDefaultCallInDefaultLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultCallInDefaultLambda.kt"); + } + + @TestMetadata("defaultLambdaInNoInline.kt") + public void testDefaultLambdaInNoInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultLambdaInNoInline.kt"); + } + + @TestMetadata("differentInvokeSignature.kt") + public void testDifferentInvokeSignature() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/differentInvokeSignature.kt"); + } + + @TestMetadata("genericLambda.kt") + public void testGenericLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/genericLambda.kt"); + } + + @TestMetadata("instanceCapturedInClass.kt") + public void testInstanceCapturedInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInClass.kt"); + } + + @TestMetadata("instanceCapturedInInterface.kt") + public void testInstanceCapturedInInterface() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInInterface.kt"); + } + + @TestMetadata("kt21827.kt") + public void testKt21827() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21827.kt"); + } + + @TestMetadata("kt21946.kt") + public void testKt21946() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21946.kt"); + } + + @TestMetadata("kt24477.kt") + public void testKt24477() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt24477.kt"); + } + + @TestMetadata("kt25106.kt") + public void testKt25106() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt25106.kt"); + } + + @TestMetadata("noInline.kt") + public void testNoInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/noInline.kt"); + } + + @TestMetadata("nonDefaultInlineInNoInline.kt") + public void testNonDefaultInlineInNoInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/nonDefaultInlineInNoInline.kt"); + } + + @TestMetadata("receiverClash.kt") + public void testReceiverClash() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash.kt"); + } + + @TestMetadata("receiverClash2.kt") + public void testReceiverClash2() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClash2.kt"); + } + + @TestMetadata("receiverClashInClass.kt") + public void testReceiverClashInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass.kt"); + } + + @TestMetadata("receiverClashInClass2.kt") + public void testReceiverClashInClass2() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/receiverClashInClass2.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simple.kt"); + } + + @TestMetadata("simpleErased.kt") + public void testSimpleErased() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErased.kt"); + } + + @TestMetadata("simpleErasedStaticInstance.kt") + public void testSimpleErasedStaticInstance() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErasedStaticInstance.kt"); + } + + @TestMetadata("simpleExtension.kt") + public void testSimpleExtension() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleExtension.kt"); + } + + @TestMetadata("simpleGeneric.kt") + public void testSimpleGeneric() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleGeneric.kt"); + } + + @TestMetadata("simpleStaticInstance.kt") + public void testSimpleStaticInstance() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleStaticInstance.kt"); + } + + @TestMetadata("thisClash.kt") + public void testThisClash() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClash.kt"); + } + + @TestMetadata("thisClashInClass.kt") + public void testThisClashInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/thisClashInClass.kt"); + } + + @TestMetadata("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class CallableReferences extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCallableReferences() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("boundFunctionReference.kt") + public void testBoundFunctionReference() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReference.kt"); + } + + @TestMetadata("boundFunctionReferenceOnInt.kt") + public void testBoundFunctionReferenceOnInt() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnInt.kt"); + } + + @TestMetadata("boundFunctionReferenceOnLong.kt") + public void testBoundFunctionReferenceOnLong() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundFunctionReferenceOnLong.kt"); + } + + @TestMetadata("boundPropertyReference.kt") + public void testBoundPropertyReference() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReference.kt"); + } + + @TestMetadata("boundPropertyReferenceOnInt.kt") + public void testBoundPropertyReferenceOnInt() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnInt.kt"); + } + + @TestMetadata("boundPropertyReferenceOnLong.kt") + public void testBoundPropertyReferenceOnLong() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/boundPropertyReferenceOnLong.kt"); + } + + @TestMetadata("constuctorReference.kt") + public void testConstuctorReference() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/constuctorReference.kt"); + } + + @TestMetadata("differentInvokeSignature.kt") + public void testDifferentInvokeSignature() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature.kt"); + } + + @TestMetadata("differentInvokeSignature2.kt") + public void testDifferentInvokeSignature2() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/differentInvokeSignature2.kt"); + } + + @TestMetadata("functionImportedFromObject.kt") + public void testFunctionImportedFromObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionImportedFromObject.kt"); + } + + @TestMetadata("functionReference.kt") + public void testFunctionReference() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReference.kt"); + } + + @TestMetadata("functionReferenceFromClass.kt") + public void testFunctionReferenceFromClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromClass.kt"); + } + + @TestMetadata("functionReferenceFromObject.kt") + public void testFunctionReferenceFromObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromObject.kt"); + } + + @TestMetadata("innerClassConstuctorReference.kt") + public void testInnerClassConstuctorReference() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/innerClassConstuctorReference.kt"); + } + + @TestMetadata("mutableBoundPropertyReferenceFromClass.kt") + public void testMutableBoundPropertyReferenceFromClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutableBoundPropertyReferenceFromClass.kt"); + } + + @TestMetadata("mutablePropertyReferenceFromClass.kt") + public void testMutablePropertyReferenceFromClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/mutablePropertyReferenceFromClass.kt"); + } + + @TestMetadata("privateFunctionReference.kt") + public void testPrivateFunctionReference() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privateFunctionReference.kt"); + } + + @TestMetadata("privatePropertyReference.kt") + public void testPrivatePropertyReference() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/privatePropertyReference.kt"); + } + + @TestMetadata("propertyImportedFromObject.kt") + public void testPropertyImportedFromObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyImportedFromObject.kt"); + } + + @TestMetadata("propertyReference.kt") + public void testPropertyReference() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReference.kt"); + } + + @TestMetadata("propertyReferenceFromClass.kt") + public void testPropertyReferenceFromClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromClass.kt"); + } + + @TestMetadata("propertyReferenceFromObject.kt") + public void testPropertyReferenceFromObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromObject.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/defaultValues/maskElimination") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class MaskElimination extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("32Parameters.kt") + public void test32Parameters() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/32Parameters.kt"); + } + + @TestMetadata("33Parameters.kt") + public void test33Parameters() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/33Parameters.kt"); + } + + public void testAllFilesPresentInMaskElimination() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/maskElimination"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("kt18792.kt") + public void testKt18792() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt18792.kt"); + } + + @TestMetadata("kt19679.kt") + public void testKt19679() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679.kt"); + } + + @TestMetadata("kt19679_2.kt") + public void testKt19679_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_2.kt"); + } + + @TestMetadata("kt19679_3.kt") + public void testKt19679_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt19679_3.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/defaultValues/maskElimination/simple.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/delegatedProperty") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DelegatedProperty extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDelegatedProperty() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/delegatedProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("kt16864.kt") + public void testKt16864() throws Exception { + runTest("compiler/testData/codegen/boxInline/delegatedProperty/kt16864.kt"); + } + + @TestMetadata("local.kt") + public void testLocal() throws Exception { + runTest("compiler/testData/codegen/boxInline/delegatedProperty/local.kt"); + } + + @TestMetadata("localInAnonymousObject.kt") + public void testLocalInAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/delegatedProperty/localInAnonymousObject.kt"); + } + + @TestMetadata("localInLambda.kt") + public void testLocalInLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/delegatedProperty/localInLambda.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/enclosingInfo") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class EnclosingInfo extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInEnclosingInfo() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/enclosingInfo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/enum") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Enum extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInEnum() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/enum"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("kt10569.kt") + public void testKt10569() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/kt10569.kt"); + } + + @TestMetadata("kt18254.kt") + public void testKt18254() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/kt18254.kt"); + } + + @TestMetadata("valueOf.kt") + public void testValueOf() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/valueOf.kt"); + } + + @TestMetadata("valueOfCapturedType.kt") + public void testValueOfCapturedType() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/valueOfCapturedType.kt"); + } + + @TestMetadata("valueOfChain.kt") + public void testValueOfChain() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/valueOfChain.kt"); + } + + @TestMetadata("valueOfChainCapturedType.kt") + public void testValueOfChainCapturedType() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/valueOfChainCapturedType.kt"); + } + + @TestMetadata("valueOfNonReified.kt") + public void testValueOfNonReified() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/valueOfNonReified.kt"); + } + + @TestMetadata("values.kt") + public void testValues() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/values.kt"); + } + + @TestMetadata("valuesAsArray.kt") + public void testValuesAsArray() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/valuesAsArray.kt"); + } + + @TestMetadata("valuesCapturedType.kt") + public void testValuesCapturedType() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/valuesCapturedType.kt"); + } + + @TestMetadata("valuesChain.kt") + public void testValuesChain() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/valuesChain.kt"); + } + + @TestMetadata("valuesChainCapturedType.kt") + public void testValuesChainCapturedType() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/valuesChainCapturedType.kt"); + } + + @TestMetadata("valuesNonReified.kt") + public void testValuesNonReified() throws Exception { + runTest("compiler/testData/codegen/boxInline/enum/valuesNonReified.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/functionExpression") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class FunctionExpression extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInFunctionExpression() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/functionExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("extension.kt") + public void testExtension() throws Exception { + runTest("compiler/testData/codegen/boxInline/functionExpression/extension.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/inlineClasses") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class InlineClasses extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInlineClasses() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("inlineFunctionInsideInlineClassesBox.kt") + public void testInlineFunctionInsideInlineClassesBox() throws Exception { + runTest("compiler/testData/codegen/boxInline/inlineClasses/inlineFunctionInsideInlineClassesBox.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/innerClasses") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class InnerClasses extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInnerClasses() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/innerClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("captureThisAndOuter.kt") + public void testCaptureThisAndOuter() throws Exception { + runTest("compiler/testData/codegen/boxInline/innerClasses/captureThisAndOuter.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/jvmPackageName") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class JvmPackageName extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInJvmPackageName() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/jvmPackageName"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/lambdaClassClash") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class LambdaClassClash extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInLambdaClassClash() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/lambdaClassClash"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("lambdaClassClash.kt") + public void testLambdaClassClash() throws Exception { + runTest("compiler/testData/codegen/boxInline/lambdaClassClash/lambdaClassClash.kt"); + } + + @TestMetadata("noInlineLambdaX2.kt") + public void testNoInlineLambdaX2() throws Exception { + runTest("compiler/testData/codegen/boxInline/lambdaClassClash/noInlineLambdaX2.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/lambdaTransformation") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class LambdaTransformation extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInLambdaTransformation() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/lambdaTransformation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("lambdaCloning.kt") + public void testLambdaCloning() throws Exception { + runTest("compiler/testData/codegen/boxInline/lambdaTransformation/lambdaCloning.kt"); + } + + @TestMetadata("lambdaInLambdaNoInline.kt") + public void testLambdaInLambdaNoInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/lambdaTransformation/lambdaInLambdaNoInline.kt"); + } + + @TestMetadata("regeneratedLambdaName.kt") + public void testRegeneratedLambdaName() throws Exception { + runTest("compiler/testData/codegen/boxInline/lambdaTransformation/regeneratedLambdaName.kt"); + } + + @TestMetadata("regeneratedLambdaName2.kt") + public void testRegeneratedLambdaName2() throws Exception { + runTest("compiler/testData/codegen/boxInline/lambdaTransformation/regeneratedLambdaName2.kt"); + } + + @TestMetadata("sameCaptured.kt") + public void testSameCaptured() throws Exception { + runTest("compiler/testData/codegen/boxInline/lambdaTransformation/sameCaptured.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/localFunInLambda") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class LocalFunInLambda extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInLocalFunInLambda() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/localFunInLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("defaultParam.kt") + public void testDefaultParam() throws Exception { + runTest("compiler/testData/codegen/boxInline/localFunInLambda/defaultParam.kt"); + } + + @TestMetadata("lambdaInLambdaCapturesAnotherFun.kt") + public void testLambdaInLambdaCapturesAnotherFun() throws Exception { + runTest("compiler/testData/codegen/boxInline/localFunInLambda/lambdaInLambdaCapturesAnotherFun.kt"); + } + + @TestMetadata("localFunInLambda.kt") + public void testLocalFunInLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/localFunInLambda/localFunInLambda.kt"); + } + + @TestMetadata("localFunInLambdaCapturesAnotherFun.kt") + public void testLocalFunInLambdaCapturesAnotherFun() throws Exception { + runTest("compiler/testData/codegen/boxInline/localFunInLambda/localFunInLambdaCapturesAnotherFun.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/multiModule") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class MultiModule extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInMultiModule() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiModule"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("tryCatchWithRecursiveInline.kt") + public void testTryCatchWithRecursiveInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/multiModule/tryCatchWithRecursiveInline.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/multifileClasses") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class MultifileClasses extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInMultifileClasses() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multifileClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/multiplatform") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Multiplatform extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInMultiplatform() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("compiler/testData/codegen/boxInline/multiplatform/defaultArguments") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DefaultArguments extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDefaultArguments() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/multiplatform/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("receiversAndParametersInLambda.kt") + public void testReceiversAndParametersInLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/multiplatform/defaultArguments/receiversAndParametersInLambda.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/noInline") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NoInline extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNoInline() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/noInline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("extensionReceiver.kt") + public void testExtensionReceiver() throws Exception { + runTest("compiler/testData/codegen/boxInline/noInline/extensionReceiver.kt"); + } + + @TestMetadata("lambdaAsGeneric.kt") + public void testLambdaAsGeneric() throws Exception { + runTest("compiler/testData/codegen/boxInline/noInline/lambdaAsGeneric.kt"); + } + + @TestMetadata("lambdaAsNonFunction.kt") + public void testLambdaAsNonFunction() throws Exception { + runTest("compiler/testData/codegen/boxInline/noInline/lambdaAsNonFunction.kt"); + } + + @TestMetadata("noInline.kt") + public void testNoInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/noInline/noInline.kt"); + } + + @TestMetadata("noInlineLambdaChain.kt") + public void testNoInlineLambdaChain() throws Exception { + runTest("compiler/testData/codegen/boxInline/noInline/noInlineLambdaChain.kt"); + } + + @TestMetadata("noInlineLambdaChainWithCapturedInline.kt") + public void testNoInlineLambdaChainWithCapturedInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/noInline/noInlineLambdaChainWithCapturedInline.kt"); + } + + @TestMetadata("withoutInline.kt") + public void testWithoutInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/noInline/withoutInline.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NonLocalReturns extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNonLocalReturns() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("explicitLocalReturn.kt") + public void testExplicitLocalReturn() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/explicitLocalReturn.kt"); + } + + @TestMetadata("fromInterfaceDefaultGetter.kt") + public void testFromInterfaceDefaultGetter() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromInterfaceDefaultGetter.kt"); + } + + @TestMetadata("justReturnInLambda.kt") + public void testJustReturnInLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/justReturnInLambda.kt"); + } + + @TestMetadata("kt5199.kt") + public void testKt5199() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt5199.kt"); + } + + @TestMetadata("kt8948.kt") + public void testKt8948() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948.kt"); + } + + @TestMetadata("kt8948v2.kt") + public void testKt8948v2() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt"); + } + + @TestMetadata("nestedNonLocals.kt") + public void testNestedNonLocals() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/nestedNonLocals.kt"); + } + + @TestMetadata("noInlineLocalReturn.kt") + public void testNoInlineLocalReturn() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/noInlineLocalReturn.kt"); + } + + @TestMetadata("nonLocalReturnFromOuterLambda.kt") + public void testNonLocalReturnFromOuterLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/nonLocalReturnFromOuterLambda.kt"); + } + + @TestMetadata("propertyAccessors.kt") + public void testPropertyAccessors() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/propertyAccessors.kt"); + } + + @TestMetadata("returnFromFunctionExpr.kt") + public void testReturnFromFunctionExpr() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/returnFromFunctionExpr.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simple.kt"); + } + + @TestMetadata("simpleFunctional.kt") + public void testSimpleFunctional() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simpleFunctional.kt"); + } + + @TestMetadata("simpleVoid.kt") + public void testSimpleVoid() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/simpleVoid.kt"); + } + + @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Deparenthesize extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDeparenthesize() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("bracket.kt") + public void testBracket() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize/bracket.kt"); + } + + @TestMetadata("labeled.kt") + public void testLabeled() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize/labeled.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class TryFinally extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInTryFinally() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("kt16417.kt") + public void testKt16417() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt16417.kt"); + } + + @TestMetadata("kt20433.kt") + public void testKt20433() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433.kt"); + } + + @TestMetadata("kt20433_2.kt") + public void testKt20433_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2.kt"); + } + + @TestMetadata("kt20433_2_void.kt") + public void testKt20433_2_void() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_2_void.kt"); + } + + @TestMetadata("kt20433_void.kt") + public void testKt20433_void() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt20433_void.kt"); + } + + @TestMetadata("kt26384.kt") + public void testKt26384() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384.kt"); + } + + @TestMetadata("kt26384_2.kt") + public void testKt26384_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt26384_2.kt"); + } + + @TestMetadata("kt28546.kt") + public void testKt28546() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt28546.kt"); + } + + @TestMetadata("kt6956.kt") + public void testKt6956() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt6956.kt"); + } + + @TestMetadata("kt7273.kt") + public void testKt7273() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt7273.kt"); + } + + @TestMetadata("nonLocalReturnFromCatchBlock.kt") + public void testNonLocalReturnFromCatchBlock() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromCatchBlock.kt"); + } + + @TestMetadata("nonLocalReturnFromOuterLambda.kt") + public void testNonLocalReturnFromOuterLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromOuterLambda.kt"); + } + + @TestMetadata("nonLocalReturnToCatchBlock.kt") + public void testNonLocalReturnToCatchBlock() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnToCatchBlock.kt"); + } + + @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class CallSite extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCallSite() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("callSite.kt") + public void testCallSite() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/callSite.kt"); + } + + @TestMetadata("callSiteComplex.kt") + public void testCallSiteComplex() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/callSiteComplex.kt"); + } + + @TestMetadata("exceptionTableSplit.kt") + public void testExceptionTableSplit() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplit.kt"); + } + + @TestMetadata("exceptionTableSplitNoReturn.kt") + public void testExceptionTableSplitNoReturn() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/exceptionTableSplitNoReturn.kt"); + } + + @TestMetadata("finallyInFinally.kt") + public void testFinallyInFinally() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/finallyInFinally.kt"); + } + + @TestMetadata("wrongVarInterval.kt") + public void testWrongVarInterval() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/wrongVarInterval.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Chained extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInChained() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("finallyInFinally.kt") + public void testFinallyInFinally() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally.kt"); + } + + @TestMetadata("finallyInFinally2.kt") + public void testFinallyInFinally2() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally2.kt"); + } + + @TestMetadata("intReturn.kt") + public void testIntReturn() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturn.kt"); + } + + @TestMetadata("intReturnComplex.kt") + public void testIntReturnComplex() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex.kt"); + } + + @TestMetadata("intReturnComplex2.kt") + public void testIntReturnComplex2() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex2.kt"); + } + + @TestMetadata("intReturnComplex3.kt") + public void testIntReturnComplex3() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex3.kt"); + } + + @TestMetadata("intReturnComplex4.kt") + public void testIntReturnComplex4() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex4.kt"); + } + + @TestMetadata("nestedLambda.kt") + public void testNestedLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/nestedLambda.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DeclSite extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDeclSite() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("complex.kt") + public void testComplex() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/complex.kt"); + } + + @TestMetadata("intReturn.kt") + public void testIntReturn() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturn.kt"); + } + + @TestMetadata("intReturnComplex.kt") + public void testIntReturnComplex() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturnComplex.kt"); + } + + @TestMetadata("longReturn.kt") + public void testLongReturn() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/longReturn.kt"); + } + + @TestMetadata("nested.kt") + public void testNested() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/nested.kt"); + } + + @TestMetadata("returnInFinally.kt") + public void testReturnInFinally() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInFinally.kt"); + } + + @TestMetadata("returnInTry.kt") + public void testReturnInTry() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTry.kt"); + } + + @TestMetadata("returnInTryAndFinally.kt") + public void testReturnInTryAndFinally() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTryAndFinally.kt"); + } + + @TestMetadata("severalInTry.kt") + public void testSeveralInTry() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTry.kt"); + } + + @TestMetadata("severalInTryComplex.kt") + public void testSeveralInTryComplex() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTryComplex.kt"); + } + + @TestMetadata("voidInlineFun.kt") + public void testVoidInlineFun() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidInlineFun.kt"); + } + + @TestMetadata("voidNonLocal.kt") + public void testVoidNonLocal() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidNonLocal.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ExceptionTable extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInExceptionTable() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("break.kt") + public void testBreak() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/break.kt"); + } + + @TestMetadata("continue.kt") + public void testContinue() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/continue.kt"); + } + + @TestMetadata("exceptionInFinally.kt") + public void testExceptionInFinally() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/exceptionInFinally.kt"); + } + + @TestMetadata("forInFinally.kt") + public void testForInFinally() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/forInFinally.kt"); + } + + @TestMetadata("innerAndExternal.kt") + public void testInnerAndExternal() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternal.kt"); + } + + @TestMetadata("innerAndExternalNested.kt") + public void testInnerAndExternalNested() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalNested.kt"); + } + + @TestMetadata("innerAndExternalSimple.kt") + public void testInnerAndExternalSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalSimple.kt"); + } + + @TestMetadata("kt31653.kt") + public void testKt31653() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653.kt"); + } + + @TestMetadata("kt31653_2.kt") + public void testKt31653_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31653_2.kt"); + } + + @TestMetadata("kt31923.kt") + public void testKt31923() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923.kt"); + } + + @TestMetadata("kt31923_2.kt") + public void testKt31923_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/kt31923_2.kt"); + } + + @TestMetadata("nested.kt") + public void testNested() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nested.kt"); + } + + @TestMetadata("nestedWithReturns.kt") + public void testNestedWithReturns() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturns.kt"); + } + + @TestMetadata("nestedWithReturnsSimple.kt") + public void testNestedWithReturnsSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturnsSimple.kt"); + } + + @TestMetadata("noFinally.kt") + public void testNoFinally() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/noFinally.kt"); + } + + @TestMetadata("severalCatchClause.kt") + public void testSeveralCatchClause() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/severalCatchClause.kt"); + } + + @TestMetadata("simpleThrow.kt") + public void testSimpleThrow() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/simpleThrow.kt"); + } + + @TestMetadata("synchonized.kt") + public void testSynchonized() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/synchonized.kt"); + } + + @TestMetadata("throwInFinally.kt") + public void testThrowInFinally() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/throwInFinally.kt"); + } + + @TestMetadata("tryCatchInFinally.kt") + public void testTryCatchInFinally() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/tryCatchInFinally.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Variables extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInVariables() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("kt7792.kt") + public void testKt7792() throws Exception { + runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables/kt7792.kt"); + } + } + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/optimizations") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Optimizations extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInOptimizations() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/optimizations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("kt20844.kt") + public void testKt20844() throws Exception { + runTest("compiler/testData/codegen/boxInline/optimizations/kt20844.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/private") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Private extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + @TestMetadata("accessorForConst.kt") + public void testAccessorForConst() throws Exception { + runTest("compiler/testData/codegen/boxInline/private/accessorForConst.kt"); + } + + @TestMetadata("accessorStability.kt") + public void testAccessorStability() throws Exception { + runTest("compiler/testData/codegen/boxInline/private/accessorStability.kt"); + } + + @TestMetadata("accessorStabilityInClass.kt") + public void testAccessorStabilityInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/private/accessorStabilityInClass.kt"); + } + + public void testAllFilesPresentInPrivate() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/private"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("effectivePrivate.kt") + public void testEffectivePrivate() throws Exception { + runTest("compiler/testData/codegen/boxInline/private/effectivePrivate.kt"); + } + + @TestMetadata("kt6453.kt") + public void testKt6453() throws Exception { + runTest("compiler/testData/codegen/boxInline/private/kt6453.kt"); + } + + @TestMetadata("kt8094.kt") + public void testKt8094() throws Exception { + runTest("compiler/testData/codegen/boxInline/private/kt8094.kt"); + } + + @TestMetadata("kt8095.kt") + public void testKt8095() throws Exception { + runTest("compiler/testData/codegen/boxInline/private/kt8095.kt"); + } + + @TestMetadata("nestedInPrivateClass.kt") + public void testNestedInPrivateClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/private/nestedInPrivateClass.kt"); + } + + @TestMetadata("privateClass.kt") + public void testPrivateClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/private/privateClass.kt"); + } + + @TestMetadata("privateClassExtensionLambda.kt") + public void testPrivateClassExtensionLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/private/privateClassExtensionLambda.kt"); + } + + @TestMetadata("privateInline.kt") + public void testPrivateInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/private/privateInline.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/property") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Property extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInProperty() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/property"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("augAssignmentAndInc.kt") + public void testAugAssignmentAndInc() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndInc.kt"); + } + + @TestMetadata("augAssignmentAndIncInClass.kt") + public void testAugAssignmentAndIncInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClass.kt"); + } + + @TestMetadata("augAssignmentAndIncInClassViaConvention.kt") + public void testAugAssignmentAndIncInClassViaConvention() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncInClassViaConvention.kt"); + } + + @TestMetadata("augAssignmentAndIncOnExtension.kt") + public void testAugAssignmentAndIncOnExtension() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtension.kt"); + } + + @TestMetadata("augAssignmentAndIncOnExtensionInClass.kt") + public void testAugAssignmentAndIncOnExtensionInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncOnExtensionInClass.kt"); + } + + @TestMetadata("augAssignmentAndIncViaConvention.kt") + public void testAugAssignmentAndIncViaConvention() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/augAssignmentAndIncViaConvention.kt"); + } + + @TestMetadata("fromObject.kt") + public void testFromObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/fromObject.kt"); + } + + @TestMetadata("kt22649.kt") + public void testKt22649() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/kt22649.kt"); + } + + @TestMetadata("property.kt") + public void testProperty() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/property.kt"); + } + + @TestMetadata("reifiedVal.kt") + public void testReifiedVal() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/reifiedVal.kt"); + } + + @TestMetadata("reifiedVar.kt") + public void testReifiedVar() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/reifiedVar.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/simple.kt"); + } + + @TestMetadata("simpleExtension.kt") + public void testSimpleExtension() throws Exception { + runTest("compiler/testData/codegen/boxInline/property/simpleExtension.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/reified") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Reified extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInReified() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("arrayConstructor.kt") + public void testArrayConstructor() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/arrayConstructor.kt"); + } + + @TestMetadata("arrayOf.kt") + public void testArrayOf() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/arrayOf.kt"); + } + + @TestMetadata("capturedLambda.kt") + public void testCapturedLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/capturedLambda.kt"); + } + + @TestMetadata("capturedLambda2.kt") + public void testCapturedLambda2() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/capturedLambda2.kt"); + } + + @TestMetadata("kt15956.kt") + public void testKt15956() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt15956.kt"); + } + + @TestMetadata("kt18977.kt") + public void testKt18977() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt"); + } + + @TestMetadata("kt7017.kt") + public void testKt7017() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt7017.kt"); + } + + @TestMetadata("kt8047.kt") + public void testKt8047() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt8047.kt"); + } + + @TestMetadata("kt8047_2.kt") + public void testKt8047_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt8047_2.kt"); + } + + @TestMetadata("kt9637_2.kt") + public void testKt9637_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/kt9637_2.kt"); + } + + @TestMetadata("nonCapturingObjectInLambda.kt") + public void testNonCapturingObjectInLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/nonCapturingObjectInLambda.kt"); + } + + @TestMetadata("compiler/testData/codegen/boxInline/reified/checkCast") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class CheckCast extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCheckCast() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified/checkCast"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("chain.kt") + public void testChain() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/checkCast/chain.kt"); + } + + @TestMetadata("kt26435.kt") + public void testKt26435() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt26435.kt"); + } + + @TestMetadata("kt26435_2.kt") + public void testKt26435_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt26435_2.kt"); + } + + @TestMetadata("kt26435_3.kt") + public void testKt26435_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt26435_3.kt"); + } + + @TestMetadata("kt8043.kt") + public void testKt8043() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/checkCast/kt8043.kt"); + } + + @TestMetadata("maxStack.kt") + public void testMaxStack() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/checkCast/maxStack.kt"); + } + + @TestMetadata("nullable.kt") + public void testNullable() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/checkCast/nullable.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/checkCast/simple.kt"); + } + + @TestMetadata("simpleSafe.kt") + public void testSimpleSafe() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/checkCast/simpleSafe.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/reified/defaultLambda") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DefaultLambda extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDefaultLambda() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified/defaultLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/reified/isCheck") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class IsCheck extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInIsCheck() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/reified/isCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("chain.kt") + public void testChain() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/isCheck/chain.kt"); + } + + @TestMetadata("nullable.kt") + public void testNullable() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/isCheck/nullable.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/reified/isCheck/simple.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/signature") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Signature extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSignature() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/signature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/simple") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Simple extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSimple() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/simple"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("captureAndArgumentIncompatibleTypes.kt") + public void testCaptureAndArgumentIncompatibleTypes() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/captureAndArgumentIncompatibleTypes.kt"); + } + + @TestMetadata("classObject.kt") + public void testClassObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/classObject.kt"); + } + + @TestMetadata("destructuring.kt") + public void testDestructuring() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/destructuring.kt"); + } + + @TestMetadata("destructuringIndexClash.kt") + public void testDestructuringIndexClash() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/destructuringIndexClash.kt"); + } + + @TestMetadata("extension.kt") + public void testExtension() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/extension.kt"); + } + + @TestMetadata("extensionLambda.kt") + public void testExtensionLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/extensionLambda.kt"); + } + + @TestMetadata("funImportedFromObject.kt") + public void testFunImportedFromObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/funImportedFromObject.kt"); + } + + @TestMetadata("inlineCallInInlineLambda.kt") + public void testInlineCallInInlineLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/inlineCallInInlineLambda.kt"); + } + + @TestMetadata("kt17431.kt") + public void testKt17431() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/kt17431.kt"); + } + + @TestMetadata("kt28547.kt") + public void testKt28547() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/kt28547.kt"); + } + + @TestMetadata("kt28547_2.kt") + public void testKt28547_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/kt28547_2.kt"); + } + + @TestMetadata("params.kt") + public void testParams() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/params.kt"); + } + + @TestMetadata("rootConstructor.kt") + public void testRootConstructor() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/rootConstructor.kt"); + } + + @TestMetadata("safeCall.kt") + public void testSafeCall() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/safeCall.kt"); + } + + @TestMetadata("severalClosures.kt") + public void testSeveralClosures() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/severalClosures.kt"); + } + + @TestMetadata("severalUsage.kt") + public void testSeveralUsage() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/severalUsage.kt"); + } + + @TestMetadata("simpleDouble.kt") + public void testSimpleDouble() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/simpleDouble.kt"); + } + + @TestMetadata("simpleEnum.kt") + public void testSimpleEnum() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/simpleEnum.kt"); + } + + @TestMetadata("simpleGenerics.kt") + public void testSimpleGenerics() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/simpleGenerics.kt"); + } + + @TestMetadata("simpleInt.kt") + public void testSimpleInt() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/simpleInt.kt"); + } + + @TestMetadata("simpleLambda.kt") + public void testSimpleLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/simpleLambda.kt"); + } + + @TestMetadata("simpleObject.kt") + public void testSimpleObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/simpleObject.kt"); + } + + @TestMetadata("vararg.kt") + public void testVararg() throws Exception { + runTest("compiler/testData/codegen/boxInline/simple/vararg.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/smap") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Smap extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSmap() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("assertion.kt") + public void testAssertion() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/assertion.kt"); + } + + @TestMetadata("classCycle.kt") + public void testClassCycle() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/classCycle.kt"); + } + + @TestMetadata("classFromDefaultPackage.kt") + public void testClassFromDefaultPackage() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/classFromDefaultPackage.kt"); + } + + @TestMetadata("crossroutines.kt") + public void testCrossroutines() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/crossroutines.kt"); + } + + @TestMetadata("defaultFunction.kt") + public void testDefaultFunction() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/defaultFunction.kt"); + } + + @TestMetadata("defaultFunctionWithInlineCall.kt") + public void testDefaultFunctionWithInlineCall() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/defaultFunctionWithInlineCall.kt"); + } + + @TestMetadata("interleavedFiles.kt") + public void testInterleavedFiles() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/interleavedFiles.kt"); + } + + @TestMetadata("kt23369.kt") + public void testKt23369() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/kt23369.kt"); + } + + @TestMetadata("kt23369_2.kt") + public void testKt23369_2() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/kt23369_2.kt"); + } + + @TestMetadata("kt23369_3.kt") + public void testKt23369_3() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/kt23369_3.kt"); + } + + @TestMetadata("kt35006.kt") + public void testKt35006() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/kt35006.kt"); + } + + @TestMetadata("oneFile.kt") + public void testOneFile() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/oneFile.kt"); + } + + @TestMetadata("rangeFolding.kt") + public void testRangeFolding() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/rangeFolding.kt"); + } + + @TestMetadata("rangeFoldingInClass.kt") + public void testRangeFoldingInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/rangeFoldingInClass.kt"); + } + + @TestMetadata("smap.kt") + public void testSmap() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/smap.kt"); + } + + @TestMetadata("smapWithNewSyntax.kt") + public void testSmapWithNewSyntax() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/smapWithNewSyntax.kt"); + } + + @TestMetadata("smapWithOldSyntax.kt") + public void testSmapWithOldSyntax() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/smapWithOldSyntax.kt"); + } + + @TestMetadata("compiler/testData/codegen/boxInline/smap/anonymous") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Anonymous extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInAnonymous() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("kt19175.kt") + public void testKt19175() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/anonymous/kt19175.kt"); + } + + @TestMetadata("lambda.kt") + public void testLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/anonymous/lambda.kt"); + } + + @TestMetadata("lambdaOnCallSite.kt") + public void testLambdaOnCallSite() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/anonymous/lambdaOnCallSite.kt"); + } + + @TestMetadata("lambdaOnInlineCallSite.kt") + public void testLambdaOnInlineCallSite() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/anonymous/lambdaOnInlineCallSite.kt"); + } + + @TestMetadata("object.kt") + public void testObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/anonymous/object.kt"); + } + + @TestMetadata("objectOnCallSite.kt") + public void testObjectOnCallSite() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnCallSite.kt"); + } + + @TestMetadata("objectOnInlineCallSite.kt") + public void testObjectOnInlineCallSite() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSite.kt"); + } + + @TestMetadata("objectOnInlineCallSite2.kt") + public void testObjectOnInlineCallSite2() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSite2.kt"); + } + + @TestMetadata("objectOnInlineCallSiteWithCapture.kt") + public void testObjectOnInlineCallSiteWithCapture() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSiteWithCapture.kt"); + } + + @TestMetadata("severalMappingsForDefaultFile.kt") + public void testSeveralMappingsForDefaultFile() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/anonymous/severalMappingsForDefaultFile.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/smap/defaultLambda") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DefaultLambda extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDefaultLambda() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/defaultLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("defaultLambdaInAnonymous.kt") + public void testDefaultLambdaInAnonymous() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/defaultLambdaInAnonymous.kt"); + } + + @TestMetadata("inlinInDefault.kt") + public void testInlinInDefault() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlinInDefault.kt"); + } + + @TestMetadata("inlinInDefault2.kt") + public void testInlinInDefault2() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlinInDefault2.kt"); + } + + @TestMetadata("inlineAnonymousInDefault.kt") + public void testInlineAnonymousInDefault() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlineAnonymousInDefault.kt"); + } + + @TestMetadata("inlineAnonymousInDefault2.kt") + public void testInlineAnonymousInDefault2() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/inlineAnonymousInDefault2.kt"); + } + + @TestMetadata("kt21827.kt") + public void testKt21827() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/kt21827.kt"); + } + + @TestMetadata("nested.kt") + public void testNested() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/nested.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/simple.kt"); + } + + @TestMetadata("simple2.kt") + public void testSimple2() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/defaultLambda/simple2.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/smap/inlineOnly") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class InlineOnly extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInlineOnly() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/inlineOnly"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("noSmap.kt") + public void testNoSmap() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/noSmap.kt"); + } + + @TestMetadata("noSmapWithProperty.kt") + public void testNoSmapWithProperty() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/inlineOnly/noSmapWithProperty.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/smap/newsmap") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Newsmap extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNewsmap() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/newsmap"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("differentMapping.kt") + public void testDifferentMapping() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/newsmap/differentMapping.kt"); + } + + @TestMetadata("mappingInInlineFunLambda.kt") + public void testMappingInInlineFunLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/newsmap/mappingInInlineFunLambda.kt"); + } + + @TestMetadata("mappingInSubInlineLambda.kt") + public void testMappingInSubInlineLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/newsmap/mappingInSubInlineLambda.kt"); + } + + @TestMetadata("mappingInSubInlineLambdaSameFileInline.kt") + public void testMappingInSubInlineLambdaSameFileInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/newsmap/mappingInSubInlineLambdaSameFileInline.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/smap/resolve") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Resolve extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInResolve() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/resolve"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("inlineComponent.kt") + public void testInlineComponent() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/resolve/inlineComponent.kt"); + } + + @TestMetadata("inlineIterator.kt") + public void testInlineIterator() throws Exception { + runTest("compiler/testData/codegen/boxInline/smap/resolve/inlineIterator.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/special") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Special extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSpecial() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/special"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("identityCheck.kt") + public void testIdentityCheck() throws Exception { + runTest("compiler/testData/codegen/boxInline/special/identityCheck.kt"); + } + + @TestMetadata("ifBranches.kt") + public void testIfBranches() throws Exception { + runTest("compiler/testData/codegen/boxInline/special/ifBranches.kt"); + } + + @TestMetadata("iinc.kt") + public void testIinc() throws Exception { + runTest("compiler/testData/codegen/boxInline/special/iinc.kt"); + } + + @TestMetadata("inlineChain.kt") + public void testInlineChain() throws Exception { + runTest("compiler/testData/codegen/boxInline/special/inlineChain.kt"); + } + + @TestMetadata("loopInStoreLoadChains.kt") + public void testLoopInStoreLoadChains() throws Exception { + runTest("compiler/testData/codegen/boxInline/special/loopInStoreLoadChains.kt"); + } + + @TestMetadata("loopInStoreLoadChains2.kt") + public void testLoopInStoreLoadChains2() throws Exception { + runTest("compiler/testData/codegen/boxInline/special/loopInStoreLoadChains2.kt"); + } + + @TestMetadata("plusAssign.kt") + public void testPlusAssign() throws Exception { + runTest("compiler/testData/codegen/boxInline/special/plusAssign.kt"); + } + + @TestMetadata("stackHeightBug.kt") + public void testStackHeightBug() throws Exception { + runTest("compiler/testData/codegen/boxInline/special/stackHeightBug.kt"); + } + + @TestMetadata("unusedInlineLambda.kt") + public void testUnusedInlineLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/special/unusedInlineLambda.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/stackOnReturn") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class StackOnReturn extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInStackOnReturn() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/stackOnReturn"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("elvis.kt") + public void testElvis() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/elvis.kt"); + } + + @TestMetadata("ifThenElse.kt") + public void testIfThenElse() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/ifThenElse.kt"); + } + + @TestMetadata("kt11499.kt") + public void testKt11499() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt11499.kt"); + } + + @TestMetadata("kt17591.kt") + public void testKt17591() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt17591.kt"); + } + + @TestMetadata("kt17591a.kt") + public void testKt17591a() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt17591a.kt"); + } + + @TestMetadata("kt17591b.kt") + public void testKt17591b() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/kt17591b.kt"); + } + + @TestMetadata("mixedTypesOnStack1.kt") + public void testMixedTypesOnStack1() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack1.kt"); + } + + @TestMetadata("mixedTypesOnStack2.kt") + public void testMixedTypesOnStack2() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack2.kt"); + } + + @TestMetadata("mixedTypesOnStack3.kt") + public void testMixedTypesOnStack3() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/mixedTypesOnStack3.kt"); + } + + @TestMetadata("nonLocalReturn1.kt") + public void testNonLocalReturn1() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn1.kt"); + } + + @TestMetadata("nonLocalReturn2.kt") + public void testNonLocalReturn2() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn2.kt"); + } + + @TestMetadata("nonLocalReturn3.kt") + public void testNonLocalReturn3() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/nonLocalReturn3.kt"); + } + + @TestMetadata("poppedLocalReturn.kt") + public void testPoppedLocalReturn() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/poppedLocalReturn.kt"); + } + + @TestMetadata("poppedLocalReturn2.kt") + public void testPoppedLocalReturn2() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/poppedLocalReturn2.kt"); + } + + @TestMetadata("returnLong.kt") + public void testReturnLong() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/returnLong.kt"); + } + + @TestMetadata("tryFinally.kt") + public void testTryFinally() throws Exception { + runTest("compiler/testData/codegen/boxInline/stackOnReturn/tryFinally.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/suspend") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Suspend extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception { + KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSuspend() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("capturedVariables.kt") + public void testCapturedVariables_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/capturedVariables.kt", "kotlin.coroutines"); + } + + @TestMetadata("crossinlineSuspendLambdaInsideCrossinlineSuspendLambda.kt") + public void testCrossinlineSuspendLambdaInsideCrossinlineSuspendLambda_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/crossinlineSuspendLambdaInsideCrossinlineSuspendLambda.kt", "kotlin.coroutines"); + } + + @TestMetadata("doubleRegenerationWithNonSuspendingLambda.kt") + public void testDoubleRegenerationWithNonSuspendingLambda_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/doubleRegenerationWithNonSuspendingLambda.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlineOrdinaryOfCrossinlineSuspend.kt") + public void testInlineOrdinaryOfCrossinlineSuspend_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfCrossinlineSuspend.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlineOrdinaryOfNoinlineSuspend.kt") + public void testInlineOrdinaryOfNoinlineSuspend_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/inlineOrdinaryOfNoinlineSuspend.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlineSuspendOfCrossinlineOrdinary.kt") + public void testInlineSuspendOfCrossinlineOrdinary_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineOrdinary.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlineSuspendOfCrossinlineSuspend.kt") + public void testInlineSuspendOfCrossinlineSuspend_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfCrossinlineSuspend.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlineSuspendOfNoinlineOrdinary.kt") + public void testInlineSuspendOfNoinlineOrdinary_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineOrdinary.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlineSuspendOfNoinlineSuspend.kt") + public void testInlineSuspendOfNoinlineSuspend_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfNoinlineSuspend.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlineSuspendOfOrdinary.kt") + public void testInlineSuspendOfOrdinary_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfOrdinary.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlineSuspendOfSuspend.kt") + public void testInlineSuspendOfSuspend_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/inlineSuspendOfSuspend.kt", "kotlin.coroutines"); + } + + @TestMetadata("kt26658.kt") + public void testKt26658() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/kt26658.kt"); + } + + @TestMetadata("maxStackWithCrossinline.kt") + public void testMaxStackWithCrossinline_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/maxStackWithCrossinline.kt", "kotlin.coroutines"); + } + + @TestMetadata("multipleLocals.kt") + public void testMultipleLocals_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/multipleLocals.kt", "kotlin.coroutines"); + } + + @TestMetadata("multipleSuspensionPoints.kt") + public void testMultipleSuspensionPoints_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/multipleSuspensionPoints.kt", "kotlin.coroutines"); + } + + @TestMetadata("nonLocalReturn.kt") + public void testNonLocalReturn() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/nonLocalReturn.kt"); + } + + @TestMetadata("nonSuspendCrossinline.kt") + public void testNonSuspendCrossinline_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/nonSuspendCrossinline.kt", "kotlin.coroutines"); + } + + @TestMetadata("returnValue.kt") + public void testReturnValue_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/returnValue.kt", "kotlin.coroutines"); + } + + @TestMetadata("tryCatchReceiver.kt") + public void testTryCatchReceiver_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/tryCatchReceiver.kt", "kotlin.coroutines"); + } + + @TestMetadata("tryCatchStackTransform.kt") + public void testTryCatchStackTransform_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/tryCatchStackTransform.kt", "kotlin.coroutines"); + } + + @TestMetadata("twiceRegeneratedAnonymousObject.kt") + public void testTwiceRegeneratedAnonymousObject() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/twiceRegeneratedAnonymousObject.kt"); + } + + @TestMetadata("twiceRegeneratedSuspendLambda.kt") + public void testTwiceRegeneratedSuspendLambda() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/twiceRegeneratedSuspendLambda.kt"); + } + + @TestMetadata("compiler/testData/codegen/boxInline/suspend/callableReference") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class CallableReference extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInCallableReference() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("nonTailCall.kt") + public void testNonTailCall() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/callableReference/nonTailCall.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/callableReference/simple.kt"); + } + + @TestMetadata("unitReturn.kt") + public void testUnitReturn() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/callableReference/unitReturn.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/suspend/defaultParameter") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DefaultParameter extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception { + KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDefaultParameter() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/defaultParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("defaultValueCrossinline.kt") + public void testDefaultValueCrossinline_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueCrossinline.kt", "kotlin.coroutines"); + } + + @TestMetadata("defaultValueInClass.kt") + public void testDefaultValueInClass() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInClass.kt"); + } + + @TestMetadata("defaultValueInlineFromMultiFileFacade.kt") + public void testDefaultValueInlineFromMultiFileFacade_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInlineFromMultiFileFacade.kt", "kotlin.coroutines"); + } + + @TestMetadata("defaultValueInline.kt") + public void testDefaultValueInline_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/defaultParameter/defaultValueInline.kt", "kotlin.coroutines"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class InlineUsedAsNoinline extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInlineUsedAsNoinline() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("inlineOnly.kt") + public void testInlineOnly() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/inlineOnly.kt"); + } + + @TestMetadata("simpleNamed.kt") + public void testSimpleNamed() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/inlineUsedAsNoinline/simpleNamed.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/suspend/receiver") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Receiver extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception { + KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInReceiver() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/receiver"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("inlineOrdinaryOfCrossinlineSuspend.kt") + public void testInlineOrdinaryOfCrossinlineSuspend_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfCrossinlineSuspend.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlineOrdinaryOfNoinlineSuspend.kt") + public void testInlineOrdinaryOfNoinlineSuspend_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/receiver/inlineOrdinaryOfNoinlineSuspend.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlineSuspendOfCrossinlineOrdinary.kt") + public void testInlineSuspendOfCrossinlineOrdinary_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineOrdinary.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlineSuspendOfCrossinlineSuspend.kt") + public void testInlineSuspendOfCrossinlineSuspend_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfCrossinlineSuspend.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlineSuspendOfNoinlineOrdinary.kt") + public void testInlineSuspendOfNoinlineOrdinary_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineOrdinary.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlineSuspendOfNoinlineSuspend.kt") + public void testInlineSuspendOfNoinlineSuspend_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfNoinlineSuspend.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlineSuspendOfOrdinary.kt") + public void testInlineSuspendOfOrdinary_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfOrdinary.kt", "kotlin.coroutines"); + } + + @TestMetadata("inlineSuspendOfSuspend.kt") + public void testInlineSuspendOfSuspend_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/receiver/inlineSuspendOfSuspend.kt", "kotlin.coroutines"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/suspend/stateMachine") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class StateMachine extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception { + KotlinTestUtils.runTest0(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInStateMachine() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/stateMachine"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("crossingCoroutineBoundaries.kt") + public void testCrossingCoroutineBoundaries_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/crossingCoroutineBoundaries.kt", "kotlin.coroutines"); + } + + @TestMetadata("independentInline.kt") + public void testIndependentInline_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/independentInline.kt", "kotlin.coroutines"); + } + + @TestMetadata("innerLambdaInsideLambda.kt") + public void testInnerLambdaInsideLambda_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaInsideLambda.kt", "kotlin.coroutines"); + } + + @TestMetadata("innerLambdaWithoutCrossinline.kt") + public void testInnerLambdaWithoutCrossinline_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambdaWithoutCrossinline.kt", "kotlin.coroutines"); + } + + @TestMetadata("innerLambda.kt") + public void testInnerLambda_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerLambda.kt", "kotlin.coroutines"); + } + + @TestMetadata("innerMadnessCallSite.kt") + public void testInnerMadnessCallSite_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadnessCallSite.kt", "kotlin.coroutines"); + } + + @TestMetadata("innerMadness.kt") + public void testInnerMadness_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerMadness.kt", "kotlin.coroutines"); + } + + @TestMetadata("innerObjectInsideInnerObject.kt") + public void testInnerObjectInsideInnerObject_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectInsideInnerObject.kt", "kotlin.coroutines"); + } + + @TestMetadata("innerObjectRetransformation.kt") + public void testInnerObjectRetransformation_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectRetransformation.kt", "kotlin.coroutines"); + } + + @TestMetadata("innerObjectSeveralFunctions.kt") + public void testInnerObjectSeveralFunctions_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectSeveralFunctions.kt", "kotlin.coroutines"); + } + + @TestMetadata("innerObjectWithoutCapturingCrossinline.kt") + public void testInnerObjectWithoutCapturingCrossinline_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObjectWithoutCapturingCrossinline.kt", "kotlin.coroutines"); + } + + @TestMetadata("innerObject.kt") + public void testInnerObject_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/innerObject.kt", "kotlin.coroutines"); + } + + @TestMetadata("insideObject.kt") + public void testInsideObject_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/insideObject.kt", "kotlin.coroutines"); + } + + @TestMetadata("lambdaTransformation.kt") + public void testLambdaTransformation() throws Exception { + runTest("compiler/testData/codegen/boxInline/suspend/stateMachine/lambdaTransformation.kt"); + } + + @TestMetadata("normalInline.kt") + public void testNormalInline_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/normalInline.kt", "kotlin.coroutines"); + } + + @TestMetadata("numberOfSuspentions.kt") + public void testNumberOfSuspentions_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/numberOfSuspentions.kt", "kotlin.coroutines"); + } + + @TestMetadata("objectInsideLambdas.kt") + public void testObjectInsideLambdas_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/objectInsideLambdas.kt", "kotlin.coroutines"); + } + + @TestMetadata("oneInlineTwoCaptures.kt") + public void testOneInlineTwoCaptures_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/oneInlineTwoCaptures.kt", "kotlin.coroutines"); + } + + @TestMetadata("passLambda.kt") + public void testPassLambda_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/passLambda.kt", "kotlin.coroutines"); + } + + @TestMetadata("passParameterLambda.kt") + public void testPassParameterLambda_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/passParameterLambda.kt", "kotlin.coroutines"); + } + + @TestMetadata("passParameter.kt") + public void testPassParameter_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/passParameter.kt", "kotlin.coroutines"); + } + + @TestMetadata("unreachableSuspendMarker.kt") + public void testUnreachableSuspendMarker_1_3() throws Exception { + runTestWithPackageReplacement("compiler/testData/codegen/boxInline/suspend/stateMachine/unreachableSuspendMarker.kt", "kotlin.coroutines"); + } + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/syntheticAccessors") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class SyntheticAccessors extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSyntheticAccessors() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/syntheticAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("constField.kt") + public void testConstField() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/constField.kt"); + } + + @TestMetadata("packagePrivateMembers.kt") + public void testPackagePrivateMembers() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/packagePrivateMembers.kt"); + } + + @TestMetadata("propertyModifiers.kt") + public void testPropertyModifiers() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/propertyModifiers.kt"); + } + + @TestMetadata("protectedMembers.kt") + public void testProtectedMembers() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/protectedMembers.kt"); + } + + @TestMetadata("protectedMembersFromSuper.kt") + public void testProtectedMembersFromSuper() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/protectedMembersFromSuper.kt"); + } + + @TestMetadata("superCall.kt") + public void testSuperCall() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/superCall.kt"); + } + + @TestMetadata("superCallFromMultipleSubclasses.kt") + public void testSuperCallFromMultipleSubclasses() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/superCallFromMultipleSubclasses.kt"); + } + + @TestMetadata("superProperty.kt") + public void testSuperProperty() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/superProperty.kt"); + } + + @TestMetadata("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class WithinInlineLambda extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInWithinInlineLambda() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("directFieldAccess.kt") + public void testDirectFieldAccess() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/directFieldAccess.kt"); + } + + @TestMetadata("directFieldAccessInCrossInline.kt") + public void testDirectFieldAccessInCrossInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/directFieldAccessInCrossInline.kt"); + } + + @TestMetadata("privateCall.kt") + public void testPrivateCall() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateCall.kt"); + } + + @TestMetadata("privateInCrossInline.kt") + public void testPrivateInCrossInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/privateInCrossInline.kt"); + } + + @TestMetadata("protectedInCrossinline.kt") + public void testProtectedInCrossinline() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/protectedInCrossinline.kt"); + } + + @TestMetadata("protectedMembersFromSuper.kt") + public void testProtectedMembersFromSuper() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/protectedMembersFromSuper.kt"); + } + + @TestMetadata("superCall.kt") + public void testSuperCall() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superCall.kt"); + } + + @TestMetadata("superInCrossInline.kt") + public void testSuperInCrossInline() throws Exception { + runTest("compiler/testData/codegen/boxInline/syntheticAccessors/withinInlineLambda/superInCrossInline.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/trait") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Trait extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInTrait() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/trait"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("trait.kt") + public void testTrait() throws Exception { + runTest("compiler/testData/codegen/boxInline/trait/trait.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/tryCatchFinally") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class TryCatchFinally extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInTryCatchFinally() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/tryCatchFinally"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("kt5863.kt") + public void testKt5863() throws Exception { + runTest("compiler/testData/codegen/boxInline/tryCatchFinally/kt5863.kt"); + } + + @TestMetadata("tryCatch.kt") + public void testTryCatch() throws Exception { + runTest("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch.kt"); + } + + @TestMetadata("tryCatch2.kt") + public void testTryCatch2() throws Exception { + runTest("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch2.kt"); + } + + @TestMetadata("tryCatchFinally.kt") + public void testTryCatchFinally() throws Exception { + runTest("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatchFinally.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/boxInline/varargs") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Varargs extends AbstractIrJsCodegenInlineES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInVarargs() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/varargs"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("kt17653.kt") + public void testKt17653() throws Exception { + runTest("compiler/testData/codegen/boxInline/varargs/kt17653.kt"); + } + + @TestMetadata("varargAndDefaultParameters.kt") + public void testVarargAndDefaultParameters() throws Exception { + runTest("compiler/testData/codegen/boxInline/varargs/varargAndDefaultParameters.kt"); + } + + @TestMetadata("varargAndDefaultParameters2.kt") + public void testVarargAndDefaultParameters2() throws Exception { + runTest("compiler/testData/codegen/boxInline/varargs/varargAndDefaultParameters2.kt"); + } + } +} diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/es6/semantics/IrJsTypeScriptExportES6TestGenerated.java b/js/js.tests/test/org/jetbrains/kotlin/js/test/es6/semantics/IrJsTypeScriptExportES6TestGenerated.java new file mode 100644 index 00000000000..27952472c96 --- /dev/null +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/es6/semantics/IrJsTypeScriptExportES6TestGenerated.java @@ -0,0 +1,139 @@ +/* + * Copyright 2010-2020 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.js.test.es6.semantics; + +import com.intellij.testFramework.TestDataPath; +import org.jetbrains.kotlin.test.JUnit3RunnerWithInners; +import org.jetbrains.kotlin.test.KotlinTestUtils; +import org.jetbrains.kotlin.test.TargetBackend; +import org.jetbrains.kotlin.test.TestMetadata; +import org.junit.runner.RunWith; + +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 */ +@SuppressWarnings("all") +@TestMetadata("js/js.translator/testData/typescript-export") +@TestDataPath("$PROJECT_ROOT") +@RunWith(JUnit3RunnerWithInners.class) +public class IrJsTypeScriptExportES6TestGenerated extends AbstractIrJsTypeScriptExportES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInTypescript_export() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("js/js.translator/testData/typescript-export/declarations") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Declarations extends AbstractIrJsTypeScriptExportES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInDeclarations() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/declarations"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("declarations.kt") + public void testDeclarations() throws Exception { + runTest("js/js.translator/testData/typescript-export/declarations/declarations.kt"); + } + } + + @TestMetadata("js/js.translator/testData/typescript-export/inheritance") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Inheritance extends AbstractIrJsTypeScriptExportES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInInheritance() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/inheritance"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("inheritance.kt") + public void testInheritance() throws Exception { + runTest("js/js.translator/testData/typescript-export/inheritance/inheritance.kt"); + } + } + + @TestMetadata("js/js.translator/testData/typescript-export/namespaces") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Namespaces extends AbstractIrJsTypeScriptExportES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInNamespaces() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/namespaces"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("namespaces.kt") + public void testNamespaces() throws Exception { + runTest("js/js.translator/testData/typescript-export/namespaces/namespaces.kt"); + } + } + + @TestMetadata("js/js.translator/testData/typescript-export/primitives") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Primitives extends AbstractIrJsTypeScriptExportES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInPrimitives() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/primitives"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("primitives.kt") + public void testPrimitives() throws Exception { + runTest("js/js.translator/testData/typescript-export/primitives/primitives.kt"); + } + } + + @TestMetadata("js/js.translator/testData/typescript-export/selectiveExport") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class SelectiveExport extends AbstractIrJsTypeScriptExportES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInSelectiveExport() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/selectiveExport"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("selectiveExport.kt") + public void testSelectiveExport() throws Exception { + runTest("js/js.translator/testData/typescript-export/selectiveExport/selectiveExport.kt"); + } + } + + @TestMetadata("js/js.translator/testData/typescript-export/visibility") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Visibility extends AbstractIrJsTypeScriptExportES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInVisibility() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/visibility"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("visibility.kt") + public void testVisibility() throws Exception { + runTest("js/js.translator/testData/typescript-export/visibility/visibility.kt"); + } + } +} diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/es6/semantics/abstractClassesForGeneratedIrTests.kt b/js/js.tests/test/org/jetbrains/kotlin/js/test/es6/semantics/abstractClassesForGeneratedIrTests.kt new file mode 100644 index 00000000000..21704695d09 --- /dev/null +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/es6/semantics/abstractClassesForGeneratedIrTests.kt @@ -0,0 +1,26 @@ +/* + * Copyright 2010-2020 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.js.test.es6.semantics + +import org.jetbrains.kotlin.js.test.BasicIrBoxES6Test +import org.jetbrains.kotlin.js.test.ir.semantics.AbstractIrJsTypeScriptExportTest +import org.jetbrains.kotlin.test.TargetBackend + +abstract class AbstractIrBoxJsES6Test : BasicIrBoxES6Test(TEST_DATA_DIR_PATH + "box/", "irBox/") + +abstract class AbstractIrJsCodegenBoxES6Test : BasicIrBoxES6Test( + "compiler/testData/codegen/box/", + "codegen/irBox/" +) + +abstract class AbstractIrJsCodegenInlineES6Test : BasicIrBoxES6Test( + "compiler/testData/codegen/boxInline/", + "codegen/irBoxInline/" +) + +abstract class AbstractIrJsTypeScriptExportES6Test : AbstractIrJsTypeScriptExportTest( + targetBackend = TargetBackend.JS_IR_ES6 +) diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/ir/semantics/AbstractIrJsTypeScriptExportTest.kt b/js/js.tests/test/org/jetbrains/kotlin/js/test/ir/semantics/AbstractIrJsTypeScriptExportTest.kt index 7ff6ad4f1c7..94501c6b259 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/js/test/ir/semantics/AbstractIrJsTypeScriptExportTest.kt +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/ir/semantics/AbstractIrJsTypeScriptExportTest.kt @@ -7,15 +7,19 @@ package org.jetbrains.kotlin.js.test.ir.semantics import org.jetbrains.kotlin.js.test.BasicIrBoxTest import org.jetbrains.kotlin.test.KotlinTestUtils +import org.jetbrains.kotlin.test.TargetBackend import org.jetbrains.kotlin.utils.fileUtils.withReplacedExtensionOrNull import java.io.File import java.lang.Boolean.getBoolean @Suppress("ConstantConditionIf") -abstract class AbstractIrJsTypeScriptExportTest : BasicIrBoxTest( +abstract class AbstractIrJsTypeScriptExportTest( + targetBackend: TargetBackend = TargetBackend.JS_IR +) : BasicIrBoxTest( pathToTestDir = TEST_DATA_DIR_PATH + "typescript-export/", testGroupOutputDirPrefix = "typescript-export/", - pathToRootOutputDir = TEST_DATA_DIR_PATH + pathToRootOutputDir = TEST_DATA_DIR_PATH, + targetBackend = targetBackend ) { override val generateDts = true private val updateReferenceDtsFiles = getBoolean("kotlin.js.updateReferenceDtsFiles")