JS_IR: add common codegen box tests (same as for old backend)
This commit is contained in:
@@ -72,7 +72,7 @@ fun createCommonCoroutinesTestMethodModels(
|
||||
targetBackend: TargetBackend,
|
||||
skipIgnored: Boolean
|
||||
): Collection<MethodModel> {
|
||||
return if (targetBackend == TargetBackend.JS)
|
||||
return if (targetBackend == TargetBackend.JS || targetBackend == TargetBackend.JS_IR)
|
||||
listOf(
|
||||
CoroutinesTestModel(
|
||||
rootDir,
|
||||
|
||||
@@ -48,30 +48,58 @@ fun main(args: Array<String>) {
|
||||
model("codegen/box", targetBackend = TargetBackend.JS)
|
||||
}
|
||||
|
||||
testClass<AbstractIrJsCodegenBoxTest> {
|
||||
model("codegen/box", targetBackend = TargetBackend.JS_IR)
|
||||
}
|
||||
|
||||
testClass<AbstractNonLocalReturnsTest> {
|
||||
model("codegen/boxInline/nonLocalReturns/", targetBackend = TargetBackend.JS)
|
||||
}
|
||||
|
||||
testClass<AbstractIrNonLocalReturnsTest> {
|
||||
model("codegen/boxInline/nonLocalReturns/", targetBackend = TargetBackend.JS_IR)
|
||||
}
|
||||
|
||||
testClass<AbstractPropertyAccessorsInlineTests> {
|
||||
model("codegen/boxInline/property/", targetBackend = TargetBackend.JS)
|
||||
}
|
||||
|
||||
testClass<AbstractIrPropertyAccessorsInlineTests> {
|
||||
model("codegen/boxInline/property/", targetBackend = TargetBackend.JS_IR)
|
||||
}
|
||||
|
||||
testClass<AbstractNoInlineTests> {
|
||||
model("codegen/boxInline/noInline/", targetBackend = TargetBackend.JS)
|
||||
}
|
||||
|
||||
testClass<AbstractIrNoInlineTests> {
|
||||
model("codegen/boxInline/noInline/", targetBackend = TargetBackend.JS_IR)
|
||||
}
|
||||
|
||||
testClass<AbstractCallableReferenceInlineTests> {
|
||||
model("codegen/boxInline/callableReference/", targetBackend = TargetBackend.JS)
|
||||
}
|
||||
|
||||
testClass<AbstractIrCallableReferenceInlineTests> {
|
||||
model("codegen/boxInline/callableReference/", targetBackend = TargetBackend.JS_IR)
|
||||
}
|
||||
|
||||
testClass<AbstractEnumValuesInlineTests> {
|
||||
model("codegen/boxInline/enum/", targetBackend = TargetBackend.JS)
|
||||
}
|
||||
|
||||
testClass<AbstractIrEnumValuesInlineTests> {
|
||||
model("codegen/boxInline/enum/", targetBackend = TargetBackend.JS_IR)
|
||||
}
|
||||
|
||||
testClass<AbstractInlineDefaultValuesTests> {
|
||||
model("codegen/boxInline/defaultValues/", targetBackend = TargetBackend.JS)
|
||||
}
|
||||
|
||||
testClass<AbstractIrInlineDefaultValuesTests> {
|
||||
model("codegen/boxInline/defaultValues/", targetBackend = TargetBackend.JS_IR)
|
||||
}
|
||||
|
||||
testClass<AbstractJsLegacyPrimitiveArraysBoxTest> {
|
||||
model("codegen/box/arrays", targetBackend = TargetBackend.JS)
|
||||
}
|
||||
|
||||
js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/IrCallableReferenceInlineTestsGenerated.java
Generated
+179
@@ -0,0 +1,179 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o. 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.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/callableReference")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrCallableReferenceInlineTestsGenerated extends AbstractIrCallableReferenceInlineTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCallableReference() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/boxInline/callableReference"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS_IR, 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("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("kt16411.kt")
|
||||
public void testKt16411() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/kt16411.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 AbstractIrCallableReferenceInlineTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInBound() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/boxInline/callableReference/bound"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS_IR, 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("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("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("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelExtensionProperty.kt")
|
||||
public void testTopLevelExtensionProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/callableReference/bound/topLevelExtensionProperty.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+96
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o. 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.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/enum")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrEnumValuesInlineTestsGenerated extends AbstractIrEnumValuesInlineTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInEnum() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/boxInline/enum"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS_IR, 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");
|
||||
}
|
||||
}
|
||||
Generated
+425
@@ -0,0 +1,425 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o. 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.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/defaultValues")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrInlineDefaultValuesTestsGenerated extends AbstractIrInlineDefaultValuesTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, 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.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS_IR, 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("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 AbstractIrInlineDefaultValuesTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInLambdaInlining() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS_IR, 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("genericLambda.kt")
|
||||
public void testGenericLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/genericLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("instanceCapuredInClass.kt")
|
||||
public void testInstanceCapuredInClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapuredInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("instanceCapuredInInterface.kt")
|
||||
public void testInstanceCapuredInInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapuredInInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmStaticDefault.kt")
|
||||
public void testJvmStaticDefault() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/jvmStaticDefault.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt21827.kt")
|
||||
public void testKt21827() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21827.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 AbstractIrInlineDefaultValuesTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCallableReferences() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS_IR, 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("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("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 AbstractIrInlineDefaultValuesTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, 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.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues/maskElimination"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS_IR, 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");
|
||||
}
|
||||
}
|
||||
}
|
||||
+19489
File diff suppressed because it is too large
Load Diff
+66
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o. 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.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/noInline")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrNoInlineTestsGenerated extends AbstractIrNoInlineTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInNoInline() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/boxInline/noInline"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS_IR, 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");
|
||||
}
|
||||
}
|
||||
Generated
+457
@@ -0,0 +1,457 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o. 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.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/nonLocalReturns")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrNonLocalReturnsTestGenerated extends AbstractIrNonLocalReturnsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInNonLocalReturns() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("explicitLocalReturn.kt")
|
||||
public void testExplicitLocalReturn() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/explicitLocalReturn.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 AbstractIrNonLocalReturnsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDeparenthesize() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/deparenthesize"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS_IR, 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 AbstractIrNonLocalReturnsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTryFinally() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@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("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 AbstractIrNonLocalReturnsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCallSite() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS_IR, 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 AbstractIrNonLocalReturnsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInChained() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS_IR, 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 AbstractIrNonLocalReturnsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDeclSite() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS_IR, 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 AbstractIrNonLocalReturnsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInExceptionTable() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS_IR, 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("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 AbstractIrNonLocalReturnsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInVariables() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("kt7792.kt")
|
||||
public void testKt7792() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/variables/kt7792.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/IrPropertyAccessorsInlineTestsGenerated.java
Generated
+86
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o. 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.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/property")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrPropertyAccessorsInlineTestsGenerated extends AbstractIrPropertyAccessorsInlineTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInProperty() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/boxInline/property"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS_IR, 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("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");
|
||||
}
|
||||
}
|
||||
+26
@@ -55,3 +55,29 @@ abstract class AbstractSourceMapGenerationSmokeTest : BasicBoxTest(
|
||||
)
|
||||
|
||||
abstract class AbstractIrBoxJsTest : BasicIrBoxTest(BasicBoxTest.TEST_DATA_DIR_PATH + "box/", "irBox/")
|
||||
|
||||
abstract class AbstractIrJsCodegenBoxTest : BasicIrBoxTest(
|
||||
"compiler/testData/codegen/box/",
|
||||
"codegen/irBox/"
|
||||
)
|
||||
|
||||
abstract class BorrowedIrInlineTest(relativePath: String) : BasicIrBoxTest(
|
||||
"compiler/testData/codegen/boxInline/$relativePath",
|
||||
"codegen/irBoxInline/$relativePath"
|
||||
) {
|
||||
init {
|
||||
additionalCommonFileDirectories += BasicBoxTest.TEST_DATA_DIR_PATH + relativePath + "/_commonFiles/"
|
||||
}
|
||||
}
|
||||
|
||||
abstract class AbstractIrNonLocalReturnsTest : BorrowedIrInlineTest("nonLocalReturns/")
|
||||
|
||||
abstract class AbstractIrPropertyAccessorsInlineTests : BorrowedIrInlineTest("property/")
|
||||
|
||||
abstract class AbstractIrNoInlineTests : BorrowedIrInlineTest("noInline/")
|
||||
|
||||
abstract class AbstractIrCallableReferenceInlineTests : BorrowedIrInlineTest("callableReference/")
|
||||
|
||||
abstract class AbstractIrEnumValuesInlineTests : BorrowedIrInlineTest("enum/")
|
||||
|
||||
abstract class AbstractIrInlineDefaultValuesTests : BorrowedIrInlineTest("defaultValues/")
|
||||
Reference in New Issue
Block a user