Files
kotlin/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java
2021-08-19 23:38:31 +03:00

35177 lines
1.6 MiB
Generated

/*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.codegen;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.util.KtTestUtil;
import org.jetbrains.kotlin.test.TargetBackend;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;
import 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 LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInBox() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true, "ranges/stepped", "compileKotlinAgainstKotlin", "testsWithJava9", "testsWithJava15", "testsWithJava17");
}
@TestMetadata("compiler/testData/codegen/box/annotations")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Annotations extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInAnnotations() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("annotatedAnnotationParameter.kt")
public void testAnnotatedAnnotationParameter() throws Exception {
runTest("compiler/testData/codegen/box/annotations/annotatedAnnotationParameter.kt");
}
@TestMetadata("annotatedEnumEntry.kt")
public void testAnnotatedEnumEntry() throws Exception {
runTest("compiler/testData/codegen/box/annotations/annotatedEnumEntry.kt");
}
@TestMetadata("annotatedObjectLiteral.kt")
public void testAnnotatedObjectLiteral() throws Exception {
runTest("compiler/testData/codegen/box/annotations/annotatedObjectLiteral.kt");
}
@TestMetadata("annotationOnWhen.kt")
public void testAnnotationOnWhen() throws Exception {
runTest("compiler/testData/codegen/box/annotations/annotationOnWhen.kt");
}
@TestMetadata("annotationProperty.kt")
public void testAnnotationProperty() throws Exception {
runTest("compiler/testData/codegen/box/annotations/annotationProperty.kt");
}
@TestMetadata("annotationTargets.kt")
public void testAnnotationTargets() throws Exception {
runTest("compiler/testData/codegen/box/annotations/annotationTargets.kt");
}
@TestMetadata("annotationWithKotlinProperty.kt")
public void testAnnotationWithKotlinProperty() throws Exception {
runTest("compiler/testData/codegen/box/annotations/annotationWithKotlinProperty.kt");
}
@TestMetadata("annotationWithKotlinPropertyFromInterfaceCompanion.kt")
public void testAnnotationWithKotlinPropertyFromInterfaceCompanion() throws Exception {
runTest("compiler/testData/codegen/box/annotations/annotationWithKotlinPropertyFromInterfaceCompanion.kt");
}
@TestMetadata("annotationsOnDefault.kt")
public void testAnnotationsOnDefault() throws Exception {
runTest("compiler/testData/codegen/box/annotations/annotationsOnDefault.kt");
}
@TestMetadata("annotationsOnLateinitAccessors.kt")
public void testAnnotationsOnLateinitAccessors() throws Exception {
runTest("compiler/testData/codegen/box/annotations/annotationsOnLateinitAccessors.kt");
}
@TestMetadata("annotationsOnLateinitFields.kt")
public void testAnnotationsOnLateinitFields() throws Exception {
runTest("compiler/testData/codegen/box/annotations/annotationsOnLateinitFields.kt");
}
@TestMetadata("annotationsOnNonExistentAccessors.kt")
public void testAnnotationsOnNonExistentAccessors() throws Exception {
runTest("compiler/testData/codegen/box/annotations/annotationsOnNonExistentAccessors.kt");
}
@TestMetadata("annotationsOnTypeAliases.kt")
public void testAnnotationsOnTypeAliases() throws Exception {
runTest("compiler/testData/codegen/box/annotations/annotationsOnTypeAliases.kt");
}
@TestMetadata("constValInAnnotation.kt")
public void testConstValInAnnotation() throws Exception {
runTest("compiler/testData/codegen/box/annotations/constValInAnnotation.kt");
}
@TestMetadata("defaultParameterValues.kt")
public void testDefaultParameterValues() throws Exception {
runTest("compiler/testData/codegen/box/annotations/defaultParameterValues.kt");
}
@TestMetadata("delegatedPropertySetter.kt")
public void testDelegatedPropertySetter() throws Exception {
runTest("compiler/testData/codegen/box/annotations/delegatedPropertySetter.kt");
}
@TestMetadata("divisionByZeroInJava.kt")
public void testDivisionByZeroInJava() throws Exception {
runTest("compiler/testData/codegen/box/annotations/divisionByZeroInJava.kt");
}
@TestMetadata("fileClassWithFileAnnotation.kt")
public void testFileClassWithFileAnnotation() throws Exception {
runTest("compiler/testData/codegen/box/annotations/fileClassWithFileAnnotation.kt");
}
@TestMetadata("genericAnnotations.kt")
public void testGenericAnnotations() throws Exception {
runTest("compiler/testData/codegen/box/annotations/genericAnnotations.kt");
}
@TestMetadata("javaAnnotationArrayValueDefault.kt")
public void testJavaAnnotationArrayValueDefault() throws Exception {
runTest("compiler/testData/codegen/box/annotations/javaAnnotationArrayValueDefault.kt");
}
@TestMetadata("javaAnnotationArrayValueNoDefault.kt")
public void testJavaAnnotationArrayValueNoDefault() throws Exception {
runTest("compiler/testData/codegen/box/annotations/javaAnnotationArrayValueNoDefault.kt");
}
@TestMetadata("javaAnnotationCall.kt")
public void testJavaAnnotationCall() throws Exception {
runTest("compiler/testData/codegen/box/annotations/javaAnnotationCall.kt");
}
@TestMetadata("javaAnnotationDefault.kt")
public void testJavaAnnotationDefault() throws Exception {
runTest("compiler/testData/codegen/box/annotations/javaAnnotationDefault.kt");
}
@TestMetadata("javaAnnotationOnProperty.kt")
public void testJavaAnnotationOnProperty() throws Exception {
runTest("compiler/testData/codegen/box/annotations/javaAnnotationOnProperty.kt");
}
@TestMetadata("javaAnnotationOnSecondaryConstructorOfLocalClass.kt")
public void testJavaAnnotationOnSecondaryConstructorOfLocalClass() throws Exception {
runTest("compiler/testData/codegen/box/annotations/javaAnnotationOnSecondaryConstructorOfLocalClass.kt");
}
@TestMetadata("javaAnnotationWithSingleArrayArgument.kt")
public void testJavaAnnotationWithSingleArrayArgument() throws Exception {
runTest("compiler/testData/codegen/box/annotations/javaAnnotationWithSingleArrayArgument.kt");
}
@TestMetadata("javaNegativePropertyAsAnnotationParameter.kt")
public void testJavaNegativePropertyAsAnnotationParameter() throws Exception {
runTest("compiler/testData/codegen/box/annotations/javaNegativePropertyAsAnnotationParameter.kt");
}
@TestMetadata("javaPropertyAsAnnotationParameter.kt")
public void testJavaPropertyAsAnnotationParameter() throws Exception {
runTest("compiler/testData/codegen/box/annotations/javaPropertyAsAnnotationParameter.kt");
}
@TestMetadata("javaPropertyWithIntInitializer.kt")
public void testJavaPropertyWithIntInitializer() throws Exception {
runTest("compiler/testData/codegen/box/annotations/javaPropertyWithIntInitializer.kt");
}
@TestMetadata("jvmAnnotationFlags.kt")
public void testJvmAnnotationFlags() throws Exception {
runTest("compiler/testData/codegen/box/annotations/jvmAnnotationFlags.kt");
}
@TestMetadata("kotlinPropertyFromClassObjectAsParameter.kt")
public void testKotlinPropertyFromClassObjectAsParameter() throws Exception {
runTest("compiler/testData/codegen/box/annotations/kotlinPropertyFromClassObjectAsParameter.kt");
}
@TestMetadata("kotlinTopLevelPropertyAsParameter.kt")
public void testKotlinTopLevelPropertyAsParameter() throws Exception {
runTest("compiler/testData/codegen/box/annotations/kotlinTopLevelPropertyAsParameter.kt");
}
@TestMetadata("kt10136.kt")
public void testKt10136() throws Exception {
runTest("compiler/testData/codegen/box/annotations/kt10136.kt");
}
@TestMetadata("kt25489.kt")
public void testKt25489() throws Exception {
runTest("compiler/testData/codegen/box/annotations/kt25489.kt");
}
@TestMetadata("mustBeDocumented.kt")
public void testMustBeDocumented() throws Exception {
runTest("compiler/testData/codegen/box/annotations/mustBeDocumented.kt");
}
@TestMetadata("nestedAnnotation.kt")
public void testNestedAnnotation() throws Exception {
runTest("compiler/testData/codegen/box/annotations/nestedAnnotation.kt");
}
@TestMetadata("nestedClassPropertyAsParameter.kt")
public void testNestedClassPropertyAsParameter() throws Exception {
runTest("compiler/testData/codegen/box/annotations/nestedClassPropertyAsParameter.kt");
}
@TestMetadata("nestedClassesInAnnotations.kt")
public void testNestedClassesInAnnotations() throws Exception {
runTest("compiler/testData/codegen/box/annotations/nestedClassesInAnnotations.kt");
}
@TestMetadata("parameterAnnotationInDefaultImpls.kt")
public void testParameterAnnotationInDefaultImpls() throws Exception {
runTest("compiler/testData/codegen/box/annotations/parameterAnnotationInDefaultImpls.kt");
}
@TestMetadata("parameterWithPrimitiveType.kt")
public void testParameterWithPrimitiveType() throws Exception {
runTest("compiler/testData/codegen/box/annotations/parameterWithPrimitiveType.kt");
}
@TestMetadata("parameters.kt")
public void testParameters() throws Exception {
runTest("compiler/testData/codegen/box/annotations/parameters.kt");
}
@TestMetadata("propertyWithPropertyInInitializerAsParameter.kt")
public void testPropertyWithPropertyInInitializerAsParameter() throws Exception {
runTest("compiler/testData/codegen/box/annotations/propertyWithPropertyInInitializerAsParameter.kt");
}
@TestMetadata("resolveWithLowPriorityAnnotation.kt")
public void testResolveWithLowPriorityAnnotation() throws Exception {
runTest("compiler/testData/codegen/box/annotations/resolveWithLowPriorityAnnotation.kt");
}
@TestMetadata("retentionInJava.kt")
public void testRetentionInJava() throws Exception {
runTest("compiler/testData/codegen/box/annotations/retentionInJava.kt");
}
@TestMetadata("singleAssignmentToVarargInAnnotation.kt")
public void testSingleAssignmentToVarargInAnnotation() throws Exception {
runTest("compiler/testData/codegen/box/annotations/singleAssignmentToVarargInAnnotation.kt");
}
@TestMetadata("syntheticMethodForJvmStaticProperty.kt")
public void testSyntheticMethodForJvmStaticProperty() throws Exception {
runTest("compiler/testData/codegen/box/annotations/syntheticMethodForJvmStaticProperty.kt");
}
@TestMetadata("syntheticMethodForProperty.kt")
public void testSyntheticMethodForProperty() throws Exception {
runTest("compiler/testData/codegen/box/annotations/syntheticMethodForProperty.kt");
}
@TestMetadata("typeAnnotationOnJdk6.kt")
public void testTypeAnnotationOnJdk6() throws Exception {
runTest("compiler/testData/codegen/box/annotations/typeAnnotationOnJdk6.kt");
}
@TestMetadata("useTypeParameterAnnotationFromJava.kt")
public void testUseTypeParameterAnnotationFromJava() throws Exception {
runTest("compiler/testData/codegen/box/annotations/useTypeParameterAnnotationFromJava.kt");
}
@TestMetadata("useTypeUseAnnotationFromJava.kt")
public void testUseTypeUseAnnotationFromJava() throws Exception {
runTest("compiler/testData/codegen/box/annotations/useTypeUseAnnotationFromJava.kt");
}
@TestMetadata("varargInAnnotationParameter.kt")
public void testVarargInAnnotationParameter() throws Exception {
runTest("compiler/testData/codegen/box/annotations/varargInAnnotationParameter.kt");
}
@TestMetadata("compiler/testData/codegen/box/annotations/annotatedLambda")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class AnnotatedLambda extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInAnnotatedLambda() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations/annotatedLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("funExpression.kt")
public void testFunExpression() throws Exception {
runTest("compiler/testData/codegen/box/annotations/annotatedLambda/funExpression.kt");
}
@TestMetadata("lambda.kt")
public void testLambda() throws Exception {
runTest("compiler/testData/codegen/box/annotations/annotatedLambda/lambda.kt");
}
@TestMetadata("samFunExpression.kt")
public void testSamFunExpression() throws Exception {
runTest("compiler/testData/codegen/box/annotations/annotatedLambda/samFunExpression.kt");
}
@TestMetadata("samFunReference.kt")
public void testSamFunReference() throws Exception {
runTest("compiler/testData/codegen/box/annotations/annotatedLambda/samFunReference.kt");
}
@TestMetadata("samLambda.kt")
public void testSamLambda() throws Exception {
runTest("compiler/testData/codegen/box/annotations/annotatedLambda/samLambda.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/annotations/instances")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Instances extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInInstances() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations/instances"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
}
@TestMetadata("compiler/testData/codegen/box/annotations/kClassMapping")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class KClassMapping extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInKClassMapping() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations/kClassMapping"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("arrayClassParameter.kt")
public void testArrayClassParameter() throws Exception {
runTest("compiler/testData/codegen/box/annotations/kClassMapping/arrayClassParameter.kt");
}
@TestMetadata("arrayClassParameterOnJavaClass.kt")
public void testArrayClassParameterOnJavaClass() throws Exception {
runTest("compiler/testData/codegen/box/annotations/kClassMapping/arrayClassParameterOnJavaClass.kt");
}
@TestMetadata("classParameter.kt")
public void testClassParameter() throws Exception {
runTest("compiler/testData/codegen/box/annotations/kClassMapping/classParameter.kt");
}
@TestMetadata("classParameterOnJavaClass.kt")
public void testClassParameterOnJavaClass() throws Exception {
runTest("compiler/testData/codegen/box/annotations/kClassMapping/classParameterOnJavaClass.kt");
}
@TestMetadata("varargClassParameter.kt")
public void testVarargClassParameter() throws Exception {
runTest("compiler/testData/codegen/box/annotations/kClassMapping/varargClassParameter.kt");
}
@TestMetadata("varargClassParameterOnJavaClass.kt")
public void testVarargClassParameterOnJavaClass() throws Exception {
runTest("compiler/testData/codegen/box/annotations/kClassMapping/varargClassParameterOnJavaClass.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/annotations/repeatable")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Repeatable extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInRepeatable() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations/repeatable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
}
@TestMetadata("compiler/testData/codegen/box/annotations/typeAnnotations")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class TypeAnnotations extends AbstractLightAnalysisModeTest {
@TestMetadata("classTypeParameterBoundsJava.kt")
public void ignoreClassTypeParameterBoundsJava() throws Exception {
runTest("compiler/testData/codegen/box/annotations/typeAnnotations/classTypeParameterBoundsJava.kt");
}
@TestMetadata("methodTypeParameters.kt")
public void ignoreMethodTypeParameters() throws Exception {
runTest("compiler/testData/codegen/box/annotations/typeAnnotations/methodTypeParameters.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInTypeAnnotations() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations/typeAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("checkingNotincorporatedInputTypes.kt")
public void testCheckingNotincorporatedInputTypes() throws Exception {
runTest("compiler/testData/codegen/box/annotations/typeAnnotations/checkingNotincorporatedInputTypes.kt");
}
@TestMetadata("classTypeParameterBound.kt")
public void testClassTypeParameterBound() throws Exception {
runTest("compiler/testData/codegen/box/annotations/typeAnnotations/classTypeParameterBound.kt");
}
@TestMetadata("functionTypeParameterBound.kt")
public void testFunctionTypeParameterBound() throws Exception {
runTest("compiler/testData/codegen/box/annotations/typeAnnotations/functionTypeParameterBound.kt");
}
@TestMetadata("implicitReturn.kt")
public void testImplicitReturn() throws Exception {
runTest("compiler/testData/codegen/box/annotations/typeAnnotations/implicitReturn.kt");
}
@TestMetadata("implicitReturnAgainstCompiled.kt")
public void testImplicitReturnAgainstCompiled() throws Exception {
runTest("compiler/testData/codegen/box/annotations/typeAnnotations/implicitReturnAgainstCompiled.kt");
}
@TestMetadata("kt41484.kt")
public void testKt41484() throws Exception {
runTest("compiler/testData/codegen/box/annotations/typeAnnotations/kt41484.kt");
}
@TestMetadata("methodParameters.kt")
public void testMethodParameters() throws Exception {
runTest("compiler/testData/codegen/box/annotations/typeAnnotations/methodParameters.kt");
}
@TestMetadata("typeAnnotationTarget6.kt")
public void testTypeAnnotationTarget6() throws Exception {
runTest("compiler/testData/codegen/box/annotations/typeAnnotations/typeAnnotationTarget6.kt");
}
@TestMetadata("typeUseAnnotation.kt")
public void testTypeUseAnnotation() throws Exception {
runTest("compiler/testData/codegen/box/annotations/typeAnnotations/typeUseAnnotation.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/argumentOrder")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ArgumentOrder extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInArgumentOrder() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/argumentOrder"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("argumentOrderInObjectSuperCall.kt")
public void testArgumentOrderInObjectSuperCall() throws Exception {
runTest("compiler/testData/codegen/box/argumentOrder/argumentOrderInObjectSuperCall.kt");
}
@TestMetadata("argumentOrderInObjectSuperCallWithPlatformType.kt")
public void testArgumentOrderInObjectSuperCallWithPlatformType() throws Exception {
runTest("compiler/testData/codegen/box/argumentOrder/argumentOrderInObjectSuperCallWithPlatformType.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("kt17691.kt")
public void testKt17691() throws Exception {
runTest("compiler/testData/codegen/box/argumentOrder/kt17691.kt");
}
@TestMetadata("kt17691WithEnabledFeature.kt")
public void testKt17691WithEnabledFeature() throws Exception {
runTest("compiler/testData/codegen/box/argumentOrder/kt17691WithEnabledFeature.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("singleSideEffect.kt")
public void testSingleSideEffect() throws Exception {
runTest("compiler/testData/codegen/box/argumentOrder/singleSideEffect.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/arrays")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Arrays extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInArrays() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("kt17134.kt")
public void testKt17134() throws Exception {
runTest("compiler/testData/codegen/box/arrays/kt17134.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("kt34291_16dimensions.kt")
public void testKt34291_16dimensions() throws Exception {
runTest("compiler/testData/codegen/box/arrays/kt34291_16dimensions.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("kt42932.kt")
public void testKt42932() throws Exception {
runTest("compiler/testData/codegen/box/arrays/kt42932.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("kt45410.kt")
public void testKt45410() throws Exception {
runTest("compiler/testData/codegen/box/arrays/kt45410.kt");
}
@TestMetadata("kt47499.kt")
public void testKt47499() throws Exception {
runTest("compiler/testData/codegen/box/arrays/kt47499.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("kt602.kt")
public void testKt602() throws Exception {
runTest("compiler/testData/codegen/box/arrays/kt602.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("varargsWithJava.kt")
public void testVarargsWithJava() throws Exception {
runTest("compiler/testData/codegen/box/arrays/varargsWithJava.kt");
}
@TestMetadata("compiler/testData/codegen/box/arrays/arraysOfInlineClass")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ArraysOfInlineClass extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, 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 {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays/arraysOfInlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInForInReversed() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays/forInReversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInMultiDecl() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays/multiDecl"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInInt() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays/multiDecl/int"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInLong() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays/multiDecl/long"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInAssert() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/assert"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
@TestMetadata("classAssertionsForInnerClasses.kt")
public void ignoreClassAssertionsForInnerClasses() throws Exception {
runTest("compiler/testData/codegen/box/assert/jvm/classAssertionsForInnerClasses.kt");
}
@TestMetadata("classAssertionsForLocalClasses.kt")
public void ignoreClassAssertionsForLocalClasses() throws Exception {
runTest("compiler/testData/codegen/box/assert/jvm/classAssertionsForLocalClasses.kt");
}
@TestMetadata("classAssertionsForNestedClasses.kt")
public void ignoreClassAssertionsForNestedClasses() throws Exception {
runTest("compiler/testData/codegen/box/assert/jvm/classAssertionsForNestedClasses.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInJvm() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/assert/jvm"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("assertionsEnabledBeforeClassInitializers.kt")
public void testAssertionsEnabledBeforeClassInitializers() throws Exception {
runTest("compiler/testData/codegen/box/assert/jvm/assertionsEnabledBeforeClassInitializers.kt");
}
@TestMetadata("classAssertions.kt")
public void testClassAssertions() throws Exception {
runTest("compiler/testData/codegen/box/assert/jvm/classAssertions.kt");
}
@TestMetadata("classAssertionsForCompanion.kt")
public void testClassAssertionsForCompanion() throws Exception {
runTest("compiler/testData/codegen/box/assert/jvm/classAssertionsForCompanion.kt");
}
@TestMetadata("interfaceAssertionsDisabled.kt")
public void testInterfaceAssertionsDisabled() throws Exception {
runTest("compiler/testData/codegen/box/assert/jvm/interfaceAssertionsDisabled.kt");
}
@TestMetadata("interfaceAssertionsEnabled.kt")
public void testInterfaceAssertionsEnabled() throws Exception {
runTest("compiler/testData/codegen/box/assert/jvm/interfaceAssertionsEnabled.kt");
}
@TestMetadata("lambdaNotEvaluated.kt")
public void testLambdaNotEvaluated() throws Exception {
runTest("compiler/testData/codegen/box/assert/jvm/lambdaNotEvaluated.kt");
}
@TestMetadata("localAnonymousFunction.kt")
public void testLocalAnonymousFunction() throws Exception {
runTest("compiler/testData/codegen/box/assert/jvm/localAnonymousFunction.kt");
}
@TestMetadata("localClass.kt")
public void testLocalClass() throws Exception {
runTest("compiler/testData/codegen/box/assert/jvm/localClass.kt");
}
@TestMetadata("localFunction.kt")
public void testLocalFunction() throws Exception {
runTest("compiler/testData/codegen/box/assert/jvm/localFunction.kt");
}
@TestMetadata("localLambda.kt")
public void testLocalLambda() throws Exception {
runTest("compiler/testData/codegen/box/assert/jvm/localLambda.kt");
}
@TestMetadata("localObject.kt")
public void testLocalObject() throws Exception {
runTest("compiler/testData/codegen/box/assert/jvm/localObject.kt");
}
@TestMetadata("noUnnecessaryClassInitialization.kt")
public void testNoUnnecessaryClassInitialization() throws Exception {
runTest("compiler/testData/codegen/box/assert/jvm/noUnnecessaryClassInitialization.kt");
}
@TestMetadata("nonLocalReturn.kt")
public void testNonLocalReturn() throws Exception {
runTest("compiler/testData/codegen/box/assert/jvm/nonLocalReturn.kt");
}
@TestMetadata("ordinary.kt")
public void testOrdinary() throws Exception {
runTest("compiler/testData/codegen/box/assert/jvm/ordinary.kt");
}
@TestMetadata("superClassInitializer.kt")
public void testSuperClassInitializer() throws Exception {
runTest("compiler/testData/codegen/box/assert/jvm/superClassInitializer.kt");
}
@TestMetadata("suspendFunctionAssertionDisabled.kt")
public void testSuspendFunctionAssertionDisabled() throws Exception {
runTest("compiler/testData/codegen/box/assert/jvm/suspendFunctionAssertionDisabled.kt");
}
@TestMetadata("suspendFunctionAssertionsEnabled.kt")
public void testSuspendFunctionAssertionsEnabled() throws Exception {
runTest("compiler/testData/codegen/box/assert/jvm/suspendFunctionAssertionsEnabled.kt");
}
@TestMetadata("suspendLambdaAssertionsDisabled.kt")
public void testSuspendLambdaAssertionsDisabled() throws Exception {
runTest("compiler/testData/codegen/box/assert/jvm/suspendLambdaAssertionsDisabled.kt");
}
@TestMetadata("suspendLambdaAssertionsEnabled.kt")
public void testSuspendLambdaAssertionsEnabled() throws Exception {
runTest("compiler/testData/codegen/box/assert/jvm/suspendLambdaAssertionsEnabled.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/binaryOp")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class BinaryOp extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInBinaryOp() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/binaryOp"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("boxingOfLiteralReceiverWithIntegerValueType.kt")
public void testBoxingOfLiteralReceiverWithIntegerValueType() throws Exception {
runTest("compiler/testData/codegen/box/binaryOp/boxingOfLiteralReceiverWithIntegerValueType.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("compareWithBoxedDouble.kt")
public void testCompareWithBoxedDouble() throws Exception {
runTest("compiler/testData/codegen/box/binaryOp/compareWithBoxedDouble.kt");
}
@TestMetadata("compareWithBoxedLong.kt")
public void testCompareWithBoxedLong() throws Exception {
runTest("compiler/testData/codegen/box/binaryOp/compareWithBoxedLong.kt");
}
@TestMetadata("compareWithBoxedNotNullDouble.kt")
public void testCompareWithBoxedNotNullDouble() throws Exception {
runTest("compiler/testData/codegen/box/binaryOp/compareWithBoxedNotNullDouble.kt");
}
@TestMetadata("compareWithBoxedNotNullLong.kt")
public void testCompareWithBoxedNotNullLong() throws Exception {
runTest("compiler/testData/codegen/box/binaryOp/compareWithBoxedNotNullLong.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("eqNullableShortToShort.kt")
public void testEqNullableShortToShort() throws Exception {
runTest("compiler/testData/codegen/box/binaryOp/eqNullableShortToShort.kt");
}
@TestMetadata("eqNullableToPrimitiveWithSideEffects.kt")
public void testEqNullableToPrimitiveWithSideEffects() throws Exception {
runTest("compiler/testData/codegen/box/binaryOp/eqNullableToPrimitiveWithSideEffects.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("kt44402.kt")
public void testKt44402() throws Exception {
runTest("compiler/testData/codegen/box/binaryOp/kt44402.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("primitiveEqualsSafeCall.kt")
public void testPrimitiveEqualsSafeCall() throws Exception {
runTest("compiler/testData/codegen/box/binaryOp/primitiveEqualsSafeCall.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/boxingOptimization")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class BoxingOptimization extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInBoxingOptimization() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxingOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("kClassEquals.kt")
public void testKClassEquals() throws Exception {
runTest("compiler/testData/codegen/box/boxingOptimization/kClassEquals.kt");
}
@TestMetadata("kt15871.kt")
public void testKt15871() throws Exception {
runTest("compiler/testData/codegen/box/boxingOptimization/kt15871.kt");
}
@TestMetadata("kt17748.kt")
public void testKt17748() throws Exception {
runTest("compiler/testData/codegen/box/boxingOptimization/kt17748.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_3.kt")
public void testKt19767_3() throws Exception {
runTest("compiler/testData/codegen/box/boxingOptimization/kt19767_3.kt");
}
@TestMetadata("kt19767_chain.kt")
public void testKt19767_chain() throws Exception {
runTest("compiler/testData/codegen/box/boxingOptimization/kt19767_chain.kt");
}
@TestMetadata("kt46859.kt")
public void testKt46859() throws Exception {
runTest("compiler/testData/codegen/box/boxingOptimization/kt46859.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("kt6047.kt")
public void testKt6047() throws Exception {
runTest("compiler/testData/codegen/box/boxingOptimization/kt6047.kt");
}
@TestMetadata("kt6842.kt")
public void testKt6842() throws Exception {
runTest("compiler/testData/codegen/box/boxingOptimization/kt6842.kt");
}
@TestMetadata("maxMinByOrNull.kt")
public void testMaxMinByOrNull() throws Exception {
runTest("compiler/testData/codegen/box/boxingOptimization/maxMinByOrNull.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("safeCallWithElvisAndEnhancedNullability.kt")
public void testSafeCallWithElvisAndEnhancedNullability() throws Exception {
runTest("compiler/testData/codegen/box/boxingOptimization/safeCallWithElvisAndEnhancedNullability.kt");
}
@TestMetadata("safeCallWithElvisMultipleFiles.kt")
public void testSafeCallWithElvisMultipleFiles() throws Exception {
runTest("compiler/testData/codegen/box/boxingOptimization/safeCallWithElvisMultipleFiles.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 AbstractLightAnalysisModeTest {
@TestMetadata("kt24193.kt")
public void ignoreKt24193() throws Exception {
runTest("compiler/testData/codegen/box/bridges/kt24193.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("abstractOverrideBridge.kt")
public void testAbstractOverrideBridge() throws Exception {
runTest("compiler/testData/codegen/box/bridges/abstractOverrideBridge.kt");
}
public void testAllFilesPresentInBridges() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/bridges"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("bridgeInInterface.kt")
public void testBridgeInInterface() throws Exception {
runTest("compiler/testData/codegen/box/bridges/bridgeInInterface.kt");
}
@TestMetadata("bridgeInInterfaceWithProperties.kt")
public void testBridgeInInterfaceWithProperties() throws Exception {
runTest("compiler/testData/codegen/box/bridges/bridgeInInterfaceWithProperties.kt");
}
@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("innerClassTypeParameters.kt")
public void testInnerClassTypeParameters() throws Exception {
runTest("compiler/testData/codegen/box/bridges/innerClassTypeParameters.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("kt42137.kt")
public void testKt42137() throws Exception {
runTest("compiler/testData/codegen/box/bridges/kt42137.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("objectClone.kt")
public void testObjectClone() throws Exception {
runTest("compiler/testData/codegen/box/bridges/objectClone.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("strListRemove.kt")
public void testStrListRemove() throws Exception {
runTest("compiler/testData/codegen/box/bridges/strListRemove.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("abstractFun.kt")
public void testAbstractFun() throws Exception {
runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/abstractFun.kt");
}
public void testAllFilesPresentInSubstitutionInSuperClass() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/bridges/substitutionInSuperClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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/builtinStubMethods")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class BuiltinStubMethods extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("abstractMember.kt")
public void testAbstractMember() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/abstractMember.kt");
}
public void testAllFilesPresentInBuiltinStubMethods() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builtinStubMethods"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("Collection.kt")
public void testCollection() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/Collection.kt");
}
@TestMetadata("customReadOnlyIterator.kt")
public void testCustomReadOnlyIterator() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/customReadOnlyIterator.kt");
}
@TestMetadata("delegationToArrayList.kt")
public void testDelegationToArrayList() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/delegationToArrayList.kt");
}
@TestMetadata("immutableRemove.kt")
public void testImmutableRemove() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/immutableRemove.kt");
}
@TestMetadata("implementationInTrait.kt")
public void testImplementationInTrait() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/implementationInTrait.kt");
}
@TestMetadata("inheritedImplementations.kt")
public void testInheritedImplementations() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/inheritedImplementations.kt");
}
@TestMetadata("int2IntMap.kt")
public void testInt2IntMap() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/int2IntMap.kt");
}
@TestMetadata("Iterator.kt")
public void testIterator() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/Iterator.kt");
}
@TestMetadata("IteratorWithRemove.kt")
public void testIteratorWithRemove() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/IteratorWithRemove.kt");
}
@TestMetadata("List.kt")
public void testList() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/List.kt");
}
@TestMetadata("ListIterator.kt")
public void testListIterator() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/ListIterator.kt");
}
@TestMetadata("ListWithAllImplementations.kt")
public void testListWithAllImplementations() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/ListWithAllImplementations.kt");
}
@TestMetadata("ListWithAllInheritedImplementations.kt")
public void testListWithAllInheritedImplementations() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/ListWithAllInheritedImplementations.kt");
}
@TestMetadata("manyTypeParametersWithUpperBounds.kt")
public void testManyTypeParametersWithUpperBounds() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/manyTypeParametersWithUpperBounds.kt");
}
@TestMetadata("Map.kt")
public void testMap() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/Map.kt");
}
@TestMetadata("MapEntry.kt")
public void testMapEntry() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/MapEntry.kt");
}
@TestMetadata("MapEntryWithSetValue.kt")
public void testMapEntryWithSetValue() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/MapEntryWithSetValue.kt");
}
@TestMetadata("MapWithAllImplementations.kt")
public void testMapWithAllImplementations() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/MapWithAllImplementations.kt");
}
@TestMetadata("nonTrivialSubstitution.kt")
public void testNonTrivialSubstitution() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/nonTrivialSubstitution.kt");
}
@TestMetadata("nonTrivialUpperBound.kt")
public void testNonTrivialUpperBound() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/nonTrivialUpperBound.kt");
}
@TestMetadata("substitutedIterable.kt")
public void testSubstitutedIterable() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/substitutedIterable.kt");
}
@TestMetadata("SubstitutedList.kt")
public void testSubstitutedList() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/SubstitutedList.kt");
}
@TestMetadata("substitutedListWithExtraSuperInterface.kt")
public void testSubstitutedListWithExtraSuperInterface() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/substitutedListWithExtraSuperInterface.kt");
}
@TestMetadata("compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ExtendJavaCollections extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("abstractList.kt")
public void testAbstractList() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractList.kt");
}
@TestMetadata("abstractMap.kt")
public void testAbstractMap() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractMap.kt");
}
@TestMetadata("abstractSet.kt")
public void testAbstractSet() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractSet.kt");
}
public void testAllFilesPresentInExtendJavaCollections() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("mapEntry.kt")
public void testMapEntry() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/mapEntry.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/builtinStubMethods/mapGetOrDefault")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class MapGetOrDefault extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInMapGetOrDefault() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builtinStubMethods/mapGetOrDefault"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("noTypeSafeBridge.kt")
public void testNoTypeSafeBridge() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/mapGetOrDefault/noTypeSafeBridge.kt");
}
@TestMetadata("typeSafeBridge.kt")
public void testTypeSafeBridge() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/mapGetOrDefault/typeSafeBridge.kt");
}
@TestMetadata("typeSafeBridgeNotNullAny.kt")
public void testTypeSafeBridgeNotNullAny() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/mapGetOrDefault/typeSafeBridgeNotNullAny.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/builtinStubMethods/mapRemove")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class MapRemove extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInMapRemove() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builtinStubMethods/mapRemove"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("noDefaultImpls.kt")
public void testNoDefaultImpls() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/mapRemove/noDefaultImpls.kt");
}
@TestMetadata("readOnlyMap.kt")
public void testReadOnlyMap() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/mapRemove/readOnlyMap.kt");
}
@TestMetadata("typeSafeBridge.kt")
public void testTypeSafeBridge() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/mapRemove/typeSafeBridge.kt");
}
@TestMetadata("typeSafeBridgeNotNullAny.kt")
public void testTypeSafeBridgeNotNullAny() throws Exception {
runTest("compiler/testData/codegen/box/builtinStubMethods/mapRemove/typeSafeBridgeNotNullAny.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/callableReference")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class CallableReference extends AbstractLightAnalysisModeTest {
@TestMetadata("kt16752.kt")
public void ignoreKt16752() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/kt16752.kt");
}
@TestMetadata("kt21014.kt")
public void ignoreKt21014() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/kt21014.kt");
}
@TestMetadata("kt21092a.kt")
public void ignoreKt21092a() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/kt21092a.kt");
}
@TestMetadata("kt21092b.kt")
public void ignoreKt21092b() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/kt21092b.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInCallableReference() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("arrayConstructor.kt")
public void testArrayConstructor() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/arrayConstructor.kt");
}
@TestMetadata("arrayConstructorArgument.kt")
public void testArrayConstructorArgument() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/arrayConstructorArgument.kt");
}
@TestMetadata("arrayOf.kt")
public void testArrayOf() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/arrayOf.kt");
}
@TestMetadata("builtinFunctionReferenceOwner.kt")
public void testBuiltinFunctionReferenceOwner() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/builtinFunctionReferenceOwner.kt");
}
@TestMetadata("charArrayOf.kt")
public void testCharArrayOf() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/charArrayOf.kt");
}
@TestMetadata("classesAreSynthetic.kt")
public void testClassesAreSynthetic() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/classesAreSynthetic.kt");
}
@TestMetadata("constructor.kt")
public void testConstructor() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/constructor.kt");
}
@TestMetadata("genericConstructorReference.kt")
public void testGenericConstructorReference() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/genericConstructorReference.kt");
}
@TestMetadata("genericLocalClassConstructorReference.kt")
public void testGenericLocalClassConstructorReference() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/genericLocalClassConstructorReference.kt");
}
@TestMetadata("inlineArrayConstructors.kt")
public void testInlineArrayConstructors() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/inlineArrayConstructors.kt");
}
@TestMetadata("javaField.kt")
public void testJavaField() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/javaField.kt");
}
@TestMetadata("kt16412.kt")
public void testKt16412() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/kt16412.kt");
}
@TestMetadata("kt37604.kt")
public void testKt37604() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/kt37604.kt");
}
@TestMetadata("kt44483.kt")
public void testKt44483() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/kt44483.kt");
}
@TestMetadata("kt46902.kt")
public void testKt46902() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/kt46902.kt");
}
@TestMetadata("kt47988.kt")
public void testKt47988() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/kt47988.kt");
}
@TestMetadata("nested.kt")
public void testNested() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/nested.kt");
}
@TestMetadata("optimizedSuperclasses_after.kt")
public void testOptimizedSuperclasses_after() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/optimizedSuperclasses_after.kt");
}
@TestMetadata("optimizedSuperclasses_before.kt")
public void testOptimizedSuperclasses_before() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/optimizedSuperclasses_before.kt");
}
@TestMetadata("publicFinalField.kt")
public void testPublicFinalField() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/publicFinalField.kt");
}
@TestMetadata("publicMutableField.kt")
public void testPublicMutableField() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/publicMutableField.kt");
}
@TestMetadata("staticMethod.kt")
public void testStaticMethod() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/staticMethod.kt");
}
@TestMetadata("compiler/testData/codegen/box/callableReference/adaptedReferences")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class AdaptedReferences extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("adaptedVarargFunImportedFromObject.kt")
public void testAdaptedVarargFunImportedFromObject() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/adaptedVarargFunImportedFromObject.kt");
}
public void testAllFilesPresentInAdaptedReferences() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/adaptedReferences"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("jvmStatic.kt")
public void testJvmStatic() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/jvmStatic.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("noAdaptedReferencesIfNoOptimizedReferencesEnabled.kt")
public void testNoAdaptedReferencesIfNoOptimizedReferencesEnabled() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/noAdaptedReferencesIfNoOptimizedReferencesEnabled.kt");
}
@TestMetadata("noNameClashForReferencesToSameFunction.kt")
public void testNoNameClashForReferencesToSameFunction() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/noNameClashForReferencesToSameFunction.kt");
}
@TestMetadata("noReflectionForAdaptedCallableReferences.kt")
public void testNoReflectionForAdaptedCallableReferences() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/noReflectionForAdaptedCallableReferences.kt");
}
@TestMetadata("noReflectionForAdaptedCallableReferencesWithSuspendConversion.kt")
public void testNoReflectionForAdaptedCallableReferencesWithSuspendConversion() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/noReflectionForAdaptedCallableReferencesWithSuspendConversion.kt");
}
@TestMetadata("referenceToVarargWithDefaults.kt")
public void testReferenceToVarargWithDefaults() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/referenceToVarargWithDefaults.kt");
}
@TestMetadata("reflectionForVarargAsArray.kt")
public void testReflectionForVarargAsArray() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/reflectionForVarargAsArray.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("toStringNoReflect.kt")
public void testToStringNoReflect() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/toStringNoReflect.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("withReceiver.kt")
public void testWithReceiver() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/withReceiver.kt");
}
@TestMetadata("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class SuspendConversion extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, 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 {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("bound.kt")
public void testBound() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/bound.kt");
}
@TestMetadata("boundExtension.kt")
public void testBoundExtension() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/boundExtension.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("isAs.kt")
public void testIsAs() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/isAs.kt");
}
@TestMetadata("nullableParameter.kt")
public void testNullableParameter() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendConversion/nullableParameter.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("adapted.kt")
public void testAdapted() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/bound/adapted.kt");
}
public void testAllFilesPresentInBound() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/bound"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("array.kt")
public void testArray() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/bound/array.kt");
}
@TestMetadata("arrayConstructorArgument.kt")
public void testArrayConstructorArgument() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/bound/arrayConstructorArgument.kt");
}
@TestMetadata("arrayGetIntrinsic.kt")
public void testArrayGetIntrinsic() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/bound/arrayGetIntrinsic.kt");
}
@TestMetadata("boundJvmFieldInInterfaceCompanion.kt")
public void testBoundJvmFieldInInterfaceCompanion() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/bound/boundJvmFieldInInterfaceCompanion.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("genericBoundPropertyAsCrossinline.kt")
public void testGenericBoundPropertyAsCrossinline() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/bound/genericBoundPropertyAsCrossinline.kt");
}
@TestMetadata("genericValOnLHS.kt")
public void testGenericValOnLHS() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/bound/genericValOnLHS.kt");
}
@TestMetadata("javaField.kt")
public void testJavaField() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/bound/javaField.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("localUnitFunction.kt")
public void testLocalUnitFunction() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/bound/localUnitFunction.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("referenceToGetSetMethodsFromVararg.kt")
public void testReferenceToGetSetMethodsFromVararg() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/bound/referenceToGetSetMethodsFromVararg.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("syntheticExtensionOnLHS.kt")
public void testSyntheticExtensionOnLHS() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/bound/syntheticExtensionOnLHS.kt");
}
@TestMetadata("compiler/testData/codegen/box/callableReference/bound/equals")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Equals extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInEquals() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/bound/equals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("nullableReceiverInEquals.kt")
public void testNullableReceiverInEquals() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/bound/equals/nullableReceiverInEquals.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInEquality() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/equality"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("abstractClassMember.kt")
public void testAbstractClassMember() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/function/abstractClassMember.kt");
}
public void testAllFilesPresentInFunction() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("argumentTypes.kt")
public void testArgumentTypes() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/function/argumentTypes.kt");
}
@TestMetadata("argumentTypesNoinline.kt")
public void testArgumentTypesNoinline() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/function/argumentTypesNoinline.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("classMemberFromCompanionObject.kt")
public void testClassMemberFromCompanionObject() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/function/classMemberFromCompanionObject.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("dispatchReceiverType.kt")
public void testDispatchReceiverType() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/function/dispatchReceiverType.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("extensionProperty.kt")
public void testExtensionProperty() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/function/extensionProperty.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("javaCollectionsStaticMethod.kt")
public void testJavaCollectionsStaticMethod() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/function/javaCollectionsStaticMethod.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("kt47741.kt")
public void testKt47741() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/function/kt47741.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("referenceToCompanionMember.kt")
public void testReferenceToCompanionMember() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/function/referenceToCompanionMember.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("staticFunctionReference.kt")
public void testStaticFunctionReference() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/function/staticFunctionReference.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInLocal() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/function/local"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("accessViaSubclass.kt")
public void testAccessViaSubclass() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/property/accessViaSubclass.kt");
}
@TestMetadata("accessorForPropertyWithPrivateSetter.kt")
public void testAccessorForPropertyWithPrivateSetter() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/property/accessorForPropertyWithPrivateSetter.kt");
}
public void testAllFilesPresentInProperty() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/property"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("inReceiverOfAnother.kt")
public void testInReceiverOfAnother() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/property/inReceiverOfAnother.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("adaptedReferences.kt")
public void testAdaptedReferences() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/serializability/adaptedReferences.kt");
}
public void testAllFilesPresentInSerializability() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/serializability"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("boundWithNotSerializableReceiver.kt")
public void testBoundWithNotSerializableReceiver() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/serializability/boundWithNotSerializableReceiver.kt");
}
@TestMetadata("boundWithSerializableReceiver.kt")
public void testBoundWithSerializableReceiver() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/serializability/boundWithSerializableReceiver.kt");
}
@TestMetadata("noReflect.kt")
public void testNoReflect() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/serializability/noReflect.kt");
}
@TestMetadata("reflectedIsNotSerialized.kt")
public void testReflectedIsNotSerialized() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/serializability/reflectedIsNotSerialized.kt");
}
@TestMetadata("withReflect.kt")
public void testWithReflect() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/serializability/withReflect.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/casts")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Casts extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInCasts() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("asThrowsNpe_1_4.kt")
public void testAsThrowsNpe_1_4() throws Exception {
runTest("compiler/testData/codegen/box/casts/asThrowsNpe_1_4.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("dontCreateInconsistentTypeDuringStarProjectionSubstitution.kt")
public void testDontCreateInconsistentTypeDuringStarProjectionSubstitution() throws Exception {
runTest("compiler/testData/codegen/box/casts/dontCreateInconsistentTypeDuringStarProjectionSubstitution.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("objectToPrimitiveWithAssertion.kt")
public void testObjectToPrimitiveWithAssertion() throws Exception {
runTest("compiler/testData/codegen/box/casts/objectToPrimitiveWithAssertion.kt");
}
@TestMetadata("unitAsAny.kt")
public void testUnitAsAny() throws Exception {
runTest("compiler/testData/codegen/box/casts/unitAsAny.kt");
}
@TestMetadata("unitAsInt.kt")
public void testUnitAsInt() throws Exception {
runTest("compiler/testData/codegen/box/casts/unitAsInt.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInFunctions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts/functions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("javaTypeIsFunK.kt")
public void testJavaTypeIsFunK() throws Exception {
runTest("compiler/testData/codegen/box/casts/functions/javaTypeIsFunK.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/javaInterop")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class JavaInterop extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInJavaInterop() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts/javaInterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("castWithWrongType.kt")
public void testCastWithWrongType() throws Exception {
runTest("compiler/testData/codegen/box/casts/javaInterop/castWithWrongType.kt");
}
@TestMetadata("implicitNotNullWithWrongType.kt")
public void testImplicitNotNullWithWrongType() throws Exception {
runTest("compiler/testData/codegen/box/casts/javaInterop/implicitNotNullWithWrongType.kt");
}
@TestMetadata("instanceOfWithWrongType.kt")
public void testInstanceOfWithWrongType() throws Exception {
runTest("compiler/testData/codegen/box/casts/javaInterop/instanceOfWithWrongType.kt");
}
@TestMetadata("noNullCheckOnCollectionContains.kt")
public void testNoNullCheckOnCollectionContains() throws Exception {
runTest("compiler/testData/codegen/box/casts/javaInterop/noNullCheckOnCollectionContains.kt");
}
@TestMetadata("noNullCheckOnCollectionRemove.kt")
public void testNoNullCheckOnCollectionRemove() throws Exception {
runTest("compiler/testData/codegen/box/casts/javaInterop/noNullCheckOnCollectionRemove.kt");
}
@TestMetadata("noNullCheckOnListIndexOf.kt")
public void testNoNullCheckOnListIndexOf() throws Exception {
runTest("compiler/testData/codegen/box/casts/javaInterop/noNullCheckOnListIndexOf.kt");
}
@TestMetadata("noNullCheckOnListLastIndexOf.kt")
public void testNoNullCheckOnListLastIndexOf() throws Exception {
runTest("compiler/testData/codegen/box/casts/javaInterop/noNullCheckOnListLastIndexOf.kt");
}
@TestMetadata("noNullCheckOnMapContainsKey.kt")
public void testNoNullCheckOnMapContainsKey() throws Exception {
runTest("compiler/testData/codegen/box/casts/javaInterop/noNullCheckOnMapContainsKey.kt");
}
@TestMetadata("noNullCheckOnMapContainsValue.kt")
public void testNoNullCheckOnMapContainsValue() throws Exception {
runTest("compiler/testData/codegen/box/casts/javaInterop/noNullCheckOnMapContainsValue.kt");
}
@TestMetadata("noNullCheckOnMapGet.kt")
public void testNoNullCheckOnMapGet() throws Exception {
runTest("compiler/testData/codegen/box/casts/javaInterop/noNullCheckOnMapGet.kt");
}
@TestMetadata("noNullCheckOnMapRemove.kt")
public void testNoNullCheckOnMapRemove() throws Exception {
runTest("compiler/testData/codegen/box/casts/javaInterop/noNullCheckOnMapRemove.kt");
}
@TestMetadata("nullCheckOnMapGetOrDefault.kt")
public void testNullCheckOnMapGetOrDefault() throws Exception {
runTest("compiler/testData/codegen/box/casts/javaInterop/nullCheckOnMapGetOrDefault.kt");
}
@TestMetadata("nullCheckOnMapRemove2.kt")
public void testNullCheckOnMapRemove2() throws Exception {
runTest("compiler/testData/codegen/box/casts/javaInterop/nullCheckOnMapRemove2.kt");
}
@TestMetadata("safeCastWithWrongType.kt")
public void testSafeCastWithWrongType() throws Exception {
runTest("compiler/testData/codegen/box/casts/javaInterop/safeCastWithWrongType.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class LiteralExpressionAsGenericArgument extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInLiteralExpressionAsGenericArgument() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("binaryExpressionCast.kt")
public void testBinaryExpressionCast() throws Exception {
runTest("compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument/binaryExpressionCast.kt");
}
@TestMetadata("javaBox.kt")
public void testJavaBox() throws Exception {
runTest("compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument/javaBox.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInMutableCollections() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts/mutableCollections"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("mutabilityMarkerInterfaces.kt")
public void testMutabilityMarkerInterfaces() throws Exception {
runTest("compiler/testData/codegen/box/casts/mutableCollections/mutabilityMarkerInterfaces.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInCheckcastOptimization() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/checkcastOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInClassLiteral() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("bareArray.kt")
public void testBareArray() throws Exception {
runTest("compiler/testData/codegen/box/classLiteral/bareArray.kt");
}
@TestMetadata("primitiveKClassEquality.kt")
public void testPrimitiveKClassEquality() throws Exception {
runTest("compiler/testData/codegen/box/classLiteral/primitiveKClassEquality.kt");
}
@TestMetadata("compiler/testData/codegen/box/classLiteral/bound")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Bound extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInBound() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral/bound"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("javaIntrinsicWithSideEffect.kt")
public void testJavaIntrinsicWithSideEffect() throws Exception {
runTest("compiler/testData/codegen/box/classLiteral/bound/javaIntrinsicWithSideEffect.kt");
}
@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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInJava() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral/java"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("java.kt")
public void testJava() throws Exception {
runTest("compiler/testData/codegen/box/classLiteral/java/java.kt");
}
@TestMetadata("javaObjectType.kt")
public void testJavaObjectType() throws Exception {
runTest("compiler/testData/codegen/box/classLiteral/java/javaObjectType.kt");
}
@TestMetadata("javaObjectTypeReified.kt")
public void testJavaObjectTypeReified() throws Exception {
runTest("compiler/testData/codegen/box/classLiteral/java/javaObjectTypeReified.kt");
}
@TestMetadata("javaPrimitiveType.kt")
public void testJavaPrimitiveType() throws Exception {
runTest("compiler/testData/codegen/box/classLiteral/java/javaPrimitiveType.kt");
}
@TestMetadata("javaPrimitiveTypeReified.kt")
public void testJavaPrimitiveTypeReified() throws Exception {
runTest("compiler/testData/codegen/box/classLiteral/java/javaPrimitiveTypeReified.kt");
}
@TestMetadata("javaReified.kt")
public void testJavaReified() throws Exception {
runTest("compiler/testData/codegen/box/classLiteral/java/javaReified.kt");
}
@TestMetadata("kt11943.kt")
public void testKt11943() throws Exception {
runTest("compiler/testData/codegen/box/classLiteral/java/kt11943.kt");
}
@TestMetadata("objectSuperConstructorCall.kt")
public void testObjectSuperConstructorCall() throws Exception {
runTest("compiler/testData/codegen/box/classLiteral/java/objectSuperConstructorCall.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/classes")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Classes extends AbstractLightAnalysisModeTest {
@TestMetadata("kt40332.kt")
public void ignoreKt40332() throws Exception {
runTest("compiler/testData/codegen/box/classes/kt40332.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInClasses() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("boxPrimitiveTypeInClinitOfClassObject.kt")
public void testBoxPrimitiveTypeInClinitOfClassObject() throws Exception {
runTest("compiler/testData/codegen/box/classes/boxPrimitiveTypeInClinitOfClassObject.kt");
}
@TestMetadata("classCompanionInitializationWithJava.kt")
public void testClassCompanionInitializationWithJava() throws Exception {
runTest("compiler/testData/codegen/box/classes/classCompanionInitializationWithJava.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("classObjectToString.kt")
public void testClassObjectToString() throws Exception {
runTest("compiler/testData/codegen/box/classes/classObjectToString.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("extensionFunWithDefaultParam.kt")
public void testExtensionFunWithDefaultParam() throws Exception {
runTest("compiler/testData/codegen/box/classes/extensionFunWithDefaultParam.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("interfaceCompanionInitializationWithJava.kt")
public void testInterfaceCompanionInitializationWithJava() throws Exception {
runTest("compiler/testData/codegen/box/classes/interfaceCompanionInitializationWithJava.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("kt1134.kt")
public void testKt1134() throws Exception {
runTest("compiler/testData/codegen/box/classes/kt1134.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("kt2288.kt")
public void testKt2288() throws Exception {
runTest("compiler/testData/codegen/box/classes/kt2288.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("kt2395.kt")
public void testKt2395() throws Exception {
runTest("compiler/testData/codegen/box/classes/kt2395.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("kt903.kt")
public void testKt903() throws Exception {
runTest("compiler/testData/codegen/box/classes/kt903.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("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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInInner() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classes/inner"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
@TestMetadata("kt23881.kt")
public void ignoreKt23881() throws Exception {
runTest("compiler/testData/codegen/box/closures/kt23881.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInClosures() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/closures"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("kt47120.kt")
public void testKt47120() throws Exception {
runTest("compiler/testData/codegen/box/closures/kt47120.kt");
}
@TestMetadata("kt47120a.kt")
public void testKt47120a() throws Exception {
runTest("compiler/testData/codegen/box/closures/kt47120a.kt");
}
@TestMetadata("kt47840.kt")
public void testKt47840() throws Exception {
runTest("compiler/testData/codegen/box/closures/kt47840.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("localFunctionInInitBlock.kt")
public void testLocalFunctionInInitBlock() throws Exception {
runTest("compiler/testData/codegen/box/closures/localFunctionInInitBlock.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("noRefToOuter.kt")
public void testNoRefToOuter() throws Exception {
runTest("compiler/testData/codegen/box/closures/noRefToOuter.kt");
}
@TestMetadata("recursiveClosure.kt")
public void testRecursiveClosure() throws Exception {
runTest("compiler/testData/codegen/box/closures/recursiveClosure.kt");
}
@TestMetadata("refsAreSerializable.kt")
public void testRefsAreSerializable() throws Exception {
runTest("compiler/testData/codegen/box/closures/refsAreSerializable.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("staticLambda.kt")
public void testStaticLambda() throws Exception {
runTest("compiler/testData/codegen/box/closures/staticLambda.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInCaptureInSuperConstructorCall() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/closures/captureInSuperConstructorCall"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInCaptureOuterProperty() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/closures/captureOuterProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInCapturedVarsOptimization() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/closures/capturedVarsOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("kt44347.kt")
public void testKt44347() throws Exception {
runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/kt44347.kt");
}
@TestMetadata("kt45446.kt")
public void testKt45446() throws Exception {
runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/kt45446.kt");
}
@TestMetadata("sharedSlotsWithCapturedVars.kt")
public void testSharedSlotsWithCapturedVars() throws Exception {
runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/sharedSlotsWithCapturedVars.kt");
}
@TestMetadata("withCoroutines.kt")
public void testWithCoroutines() throws Exception {
runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/withCoroutines.kt");
}
@TestMetadata("withCoroutinesNoStdLib.kt")
public void testWithCoroutinesNoStdLib() throws Exception {
runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/withCoroutinesNoStdLib.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/closures/closureInsideClosure")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ClosureInsideClosure extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInClosureInsideClosure() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/closures/closureInsideClosure"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInCollectionLiterals() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/collectionLiterals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("collectionLiteralsInArgumentPosition.kt")
public void testCollectionLiteralsInArgumentPosition() throws Exception {
runTest("compiler/testData/codegen/box/collectionLiterals/collectionLiteralsInArgumentPosition.kt");
}
@TestMetadata("collectionLiteralsWithConstants.kt")
public void testCollectionLiteralsWithConstants() throws Exception {
runTest("compiler/testData/codegen/box/collectionLiterals/collectionLiteralsWithConstants.kt");
}
@TestMetadata("collectionLiteralsWithVarargs.kt")
public void testCollectionLiteralsWithVarargs() throws Exception {
runTest("compiler/testData/codegen/box/collectionLiterals/collectionLiteralsWithVarargs.kt");
}
@TestMetadata("defaultAnnotationParameterValues.kt")
public void testDefaultAnnotationParameterValues() throws Exception {
runTest("compiler/testData/codegen/box/collectionLiterals/defaultAnnotationParameterValues.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/collections")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Collections extends AbstractLightAnalysisModeTest {
@TestMetadata("internalRemoveFromJava.kt")
public void ignoreInternalRemoveFromJava() throws Exception {
runTest("compiler/testData/codegen/box/collections/internalRemoveFromJava.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("addCollectionStubWithCovariantOverride.kt")
public void testAddCollectionStubWithCovariantOverride() throws Exception {
runTest("compiler/testData/codegen/box/collections/addCollectionStubWithCovariantOverride.kt");
}
public void testAllFilesPresentInCollections() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/collections"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("charSequence.kt")
public void testCharSequence() throws Exception {
runTest("compiler/testData/codegen/box/collections/charSequence.kt");
}
@TestMetadata("implementCollectionThroughKotlin.kt")
public void testImplementCollectionThroughKotlin() throws Exception {
runTest("compiler/testData/codegen/box/collections/implementCollectionThroughKotlin.kt");
}
@TestMetadata("inSetWithSmartCast.kt")
public void testInSetWithSmartCast() throws Exception {
runTest("compiler/testData/codegen/box/collections/inSetWithSmartCast.kt");
}
@TestMetadata("inheritFromAbstractMutableListInt.kt")
public void testInheritFromAbstractMutableListInt() throws Exception {
runTest("compiler/testData/codegen/box/collections/inheritFromAbstractMutableListInt.kt");
}
@TestMetadata("inheritFromHashtable.kt")
public void testInheritFromHashtable() throws Exception {
runTest("compiler/testData/codegen/box/collections/inheritFromHashtable.kt");
}
@TestMetadata("internalRemove.kt")
public void testInternalRemove() throws Exception {
runTest("compiler/testData/codegen/box/collections/internalRemove.kt");
}
@TestMetadata("irrelevantImplCharSequence.kt")
public void testIrrelevantImplCharSequence() throws Exception {
runTest("compiler/testData/codegen/box/collections/irrelevantImplCharSequence.kt");
}
@TestMetadata("irrelevantImplCharSequenceKotlin.kt")
public void testIrrelevantImplCharSequenceKotlin() throws Exception {
runTest("compiler/testData/codegen/box/collections/irrelevantImplCharSequenceKotlin.kt");
}
@TestMetadata("irrelevantImplMutableList.kt")
public void testIrrelevantImplMutableList() throws Exception {
runTest("compiler/testData/codegen/box/collections/irrelevantImplMutableList.kt");
}
@TestMetadata("irrelevantImplMutableListKotlin.kt")
public void testIrrelevantImplMutableListKotlin() throws Exception {
runTest("compiler/testData/codegen/box/collections/irrelevantImplMutableListKotlin.kt");
}
@TestMetadata("irrelevantImplMutableListSubstitution.kt")
public void testIrrelevantImplMutableListSubstitution() throws Exception {
runTest("compiler/testData/codegen/box/collections/irrelevantImplMutableListSubstitution.kt");
}
@TestMetadata("irrelevantRemoveAtOverrideInJava.kt")
public void testIrrelevantRemoveAtOverrideInJava() throws Exception {
runTest("compiler/testData/codegen/box/collections/irrelevantRemoveAtOverrideInJava.kt");
}
@TestMetadata("irrelevantSizeOverrideInJava.kt")
public void testIrrelevantSizeOverrideInJava() throws Exception {
runTest("compiler/testData/codegen/box/collections/irrelevantSizeOverrideInJava.kt");
}
@TestMetadata("javaCollectionWithRemovePrimitiveInt.kt")
public void testJavaCollectionWithRemovePrimitiveInt() throws Exception {
runTest("compiler/testData/codegen/box/collections/javaCollectionWithRemovePrimitiveInt.kt");
}
@TestMetadata("kt40305.kt")
public void testKt40305() throws Exception {
runTest("compiler/testData/codegen/box/collections/kt40305.kt");
}
@TestMetadata("kt41123.kt")
public void testKt41123() throws Exception {
runTest("compiler/testData/codegen/box/collections/kt41123.kt");
}
@TestMetadata("kt44233.kt")
public void testKt44233() throws Exception {
runTest("compiler/testData/codegen/box/collections/kt44233.kt");
}
@TestMetadata("mutableList.kt")
public void testMutableList() throws Exception {
runTest("compiler/testData/codegen/box/collections/mutableList.kt");
}
@TestMetadata("noStubsInJavaSuperClass.kt")
public void testNoStubsInJavaSuperClass() throws Exception {
runTest("compiler/testData/codegen/box/collections/noStubsInJavaSuperClass.kt");
}
@TestMetadata("platformValueContains.kt")
public void testPlatformValueContains() throws Exception {
runTest("compiler/testData/codegen/box/collections/platformValueContains.kt");
}
@TestMetadata("readOnlyList.kt")
public void testReadOnlyList() throws Exception {
runTest("compiler/testData/codegen/box/collections/readOnlyList.kt");
}
@TestMetadata("readOnlyMap.kt")
public void testReadOnlyMap() throws Exception {
runTest("compiler/testData/codegen/box/collections/readOnlyMap.kt");
}
@TestMetadata("removeAtBridgeClashWithJava.kt")
public void testRemoveAtBridgeClashWithJava() throws Exception {
runTest("compiler/testData/codegen/box/collections/removeAtBridgeClashWithJava.kt");
}
@TestMetadata("removeAtInt.kt")
public void testRemoveAtInt() throws Exception {
runTest("compiler/testData/codegen/box/collections/removeAtInt.kt");
}
@TestMetadata("removeClash.kt")
public void testRemoveClash() throws Exception {
runTest("compiler/testData/codegen/box/collections/removeClash.kt");
}
@TestMetadata("removeClashJava.kt")
public void testRemoveClashJava() throws Exception {
runTest("compiler/testData/codegen/box/collections/removeClashJava.kt");
}
@TestMetadata("removeClashKotlin.kt")
public void testRemoveClashKotlin() throws Exception {
runTest("compiler/testData/codegen/box/collections/removeClashKotlin.kt");
}
@TestMetadata("removeClashWithGenerics.kt")
public void testRemoveClashWithGenerics() throws Exception {
runTest("compiler/testData/codegen/box/collections/removeClashWithGenerics.kt");
}
@TestMetadata("removeNullFromList.kt")
public void testRemoveNullFromList() throws Exception {
runTest("compiler/testData/codegen/box/collections/removeNullFromList.kt");
}
@TestMetadata("removeOverriddenInJava.kt")
public void testRemoveOverriddenInJava() throws Exception {
runTest("compiler/testData/codegen/box/collections/removeOverriddenInJava.kt");
}
@TestMetadata("removeOverriddenInJava_Map.kt")
public void testRemoveOverriddenInJava_Map() throws Exception {
runTest("compiler/testData/codegen/box/collections/removeOverriddenInJava_Map.kt");
}
@TestMetadata("strList.kt")
public void testStrList() throws Exception {
runTest("compiler/testData/codegen/box/collections/strList.kt");
}
@TestMetadata("toArrayInJavaClass.kt")
public void testToArrayInJavaClass() throws Exception {
runTest("compiler/testData/codegen/box/collections/toArrayInJavaClass.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/companion")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Companion extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInCompanion() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/companion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("delegatedPropertyOnCompanion.kt")
public void testDelegatedPropertyOnCompanion() throws Exception {
runTest("compiler/testData/codegen/box/companion/delegatedPropertyOnCompanion.kt");
}
@TestMetadata("inlineFunctionCompanionPropertyAccess.kt")
public void testInlineFunctionCompanionPropertyAccess() throws Exception {
runTest("compiler/testData/codegen/box/companion/inlineFunctionCompanionPropertyAccess.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/compatibility")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Compatibility extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInCompatibility() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInConstants() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/constants"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("constValFromAnotherModuleInConsVal.kt")
public void testConstValFromAnotherModuleInConsVal() throws Exception {
runTest("compiler/testData/codegen/box/constants/constValFromAnotherModuleInConsVal.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("foldingBinaryOpsUnsigned.kt")
public void testFoldingBinaryOpsUnsigned() throws Exception {
runTest("compiler/testData/codegen/box/constants/foldingBinaryOpsUnsigned.kt");
}
@TestMetadata("foldingBinaryOpsUnsignedConst.kt")
public void testFoldingBinaryOpsUnsignedConst() throws Exception {
runTest("compiler/testData/codegen/box/constants/foldingBinaryOpsUnsignedConst.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/constructor")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Constructor extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInConstructor() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/constructor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("genericConstructor.kt")
public void testGenericConstructor() throws Exception {
runTest("compiler/testData/codegen/box/constructor/genericConstructor.kt");
}
@TestMetadata("secondaryConstructor.kt")
public void testSecondaryConstructor() throws Exception {
runTest("compiler/testData/codegen/box/constructor/secondaryConstructor.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/constructorCall")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ConstructorCall extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInConstructorCall() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/constructorCall"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("breakInConstructorArguments.kt")
public void testBreakInConstructorArguments() throws Exception {
runTest("compiler/testData/codegen/box/constructorCall/breakInConstructorArguments.kt");
}
@TestMetadata("continueInConstructorArguments.kt")
public void testContinueInConstructorArguments() throws Exception {
runTest("compiler/testData/codegen/box/constructorCall/continueInConstructorArguments.kt");
}
@TestMetadata("earlyReturnInConstructorArguments.kt")
public void testEarlyReturnInConstructorArguments() throws Exception {
runTest("compiler/testData/codegen/box/constructorCall/earlyReturnInConstructorArguments.kt");
}
@TestMetadata("inlineFunInConstructorCallEvaluationOrder.kt")
public void testInlineFunInConstructorCallEvaluationOrder() throws Exception {
runTest("compiler/testData/codegen/box/constructorCall/inlineFunInConstructorCallEvaluationOrder.kt");
}
@TestMetadata("inlineFunInConstructorCallWithDisabledNormalization.kt")
public void testInlineFunInConstructorCallWithDisabledNormalization() throws Exception {
runTest("compiler/testData/codegen/box/constructorCall/inlineFunInConstructorCallWithDisabledNormalization.kt");
}
@TestMetadata("inlineFunInConstructorCallWithEnabledNormalization.kt")
public void testInlineFunInConstructorCallWithEnabledNormalization() throws Exception {
runTest("compiler/testData/codegen/box/constructorCall/inlineFunInConstructorCallWithEnabledNormalization.kt");
}
@TestMetadata("inlineFunInConstructorCallWithStrictNormalization.kt")
public void testInlineFunInConstructorCallWithStrictNormalization() throws Exception {
runTest("compiler/testData/codegen/box/constructorCall/inlineFunInConstructorCallWithStrictNormalization.kt");
}
@TestMetadata("inlineFunInInnerClassConstructorCall.kt")
public void testInlineFunInInnerClassConstructorCall() throws Exception {
runTest("compiler/testData/codegen/box/constructorCall/inlineFunInInnerClassConstructorCall.kt");
}
@TestMetadata("inlineFunInLocalClassConstructorCall.kt")
public void testInlineFunInLocalClassConstructorCall() throws Exception {
runTest("compiler/testData/codegen/box/constructorCall/inlineFunInLocalClassConstructorCall.kt");
}
@TestMetadata("loopInInlineFunInSuperConstructorCallWithEnabledNormalization.kt")
public void testLoopInInlineFunInSuperConstructorCallWithEnabledNormalization() throws Exception {
runTest("compiler/testData/codegen/box/constructorCall/loopInInlineFunInSuperConstructorCallWithEnabledNormalization.kt");
}
@TestMetadata("loopInInlineFunInSuperConstructorCallWithEnabledNormalizationSince13.kt")
public void testLoopInInlineFunInSuperConstructorCallWithEnabledNormalizationSince13() throws Exception {
runTest("compiler/testData/codegen/box/constructorCall/loopInInlineFunInSuperConstructorCallWithEnabledNormalizationSince13.kt");
}
@TestMetadata("loopInInlineFunWithEnabledNormalization.kt")
public void testLoopInInlineFunWithEnabledNormalization() throws Exception {
runTest("compiler/testData/codegen/box/constructorCall/loopInInlineFunWithEnabledNormalization.kt");
}
@TestMetadata("nestedConstructorCallWithJumpOutInConstructorArguments.kt")
public void testNestedConstructorCallWithJumpOutInConstructorArguments() throws Exception {
runTest("compiler/testData/codegen/box/constructorCall/nestedConstructorCallWithJumpOutInConstructorArguments.kt");
}
@TestMetadata("nonLocalReturnInConstructorArguments.kt")
public void testNonLocalReturnInConstructorArguments() throws Exception {
runTest("compiler/testData/codegen/box/constructorCall/nonLocalReturnInConstructorArguments.kt");
}
@TestMetadata("possiblyPoppedUnitializedValueInArguments.kt")
public void testPossiblyPoppedUnitializedValueInArguments() throws Exception {
runTest("compiler/testData/codegen/box/constructorCall/possiblyPoppedUnitializedValueInArguments.kt");
}
@TestMetadata("regularConstructorCallEvaluationOrder.kt")
public void testRegularConstructorCallEvaluationOrder() throws Exception {
runTest("compiler/testData/codegen/box/constructorCall/regularConstructorCallEvaluationOrder.kt");
}
@TestMetadata("tryCatchInConstructorCallEvaluationOrder.kt")
public void testTryCatchInConstructorCallEvaluationOrder() throws Exception {
runTest("compiler/testData/codegen/box/constructorCall/tryCatchInConstructorCallEvaluationOrder.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/contracts")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Contracts extends AbstractLightAnalysisModeTest {
@TestMetadata("nestedLambdaInNonInlineCallExactlyOnce.kt")
public void ignoreNestedLambdaInNonInlineCallExactlyOnce() throws Exception {
runTest("compiler/testData/codegen/box/contracts/nestedLambdaInNonInlineCallExactlyOnce.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInContracts() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/contracts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("constructorArgument.kt")
public void testConstructorArgument() throws Exception {
runTest("compiler/testData/codegen/box/contracts/constructorArgument.kt");
}
@TestMetadata("destructuredVariable.kt")
public void testDestructuredVariable() throws Exception {
runTest("compiler/testData/codegen/box/contracts/destructuredVariable.kt");
}
@TestMetadata("exactlyOnceNotInline.kt")
public void testExactlyOnceNotInline() throws Exception {
runTest("compiler/testData/codegen/box/contracts/exactlyOnceNotInline.kt");
}
@TestMetadata("exception.kt")
public void testException() throws Exception {
runTest("compiler/testData/codegen/box/contracts/exception.kt");
}
@TestMetadata("fieldInConstructorParens.kt")
public void testFieldInConstructorParens() throws Exception {
runTest("compiler/testData/codegen/box/contracts/fieldInConstructorParens.kt");
}
@TestMetadata("fieldReadInConstructor.kt")
public void testFieldReadInConstructor() throws Exception {
runTest("compiler/testData/codegen/box/contracts/fieldReadInConstructor.kt");
}
@TestMetadata("forLoop.kt")
public void testForLoop() throws Exception {
runTest("compiler/testData/codegen/box/contracts/forLoop.kt");
}
@TestMetadata("functionParameter.kt")
public void testFunctionParameter() throws Exception {
runTest("compiler/testData/codegen/box/contracts/functionParameter.kt");
}
@TestMetadata("kt39374.kt")
public void testKt39374() throws Exception {
runTest("compiler/testData/codegen/box/contracts/kt39374.kt");
}
@TestMetadata("kt45236.kt")
public void testKt45236() throws Exception {
runTest("compiler/testData/codegen/box/contracts/kt45236.kt");
}
@TestMetadata("kt47168.kt")
public void testKt47168() throws Exception {
runTest("compiler/testData/codegen/box/contracts/kt47168.kt");
}
@TestMetadata("kt47300.kt")
public void testKt47300() throws Exception {
runTest("compiler/testData/codegen/box/contracts/kt47300.kt");
}
@TestMetadata("lambdaParameter.kt")
public void testLambdaParameter() throws Exception {
runTest("compiler/testData/codegen/box/contracts/lambdaParameter.kt");
}
@TestMetadata("listAppend.kt")
public void testListAppend() throws Exception {
runTest("compiler/testData/codegen/box/contracts/listAppend.kt");
}
@TestMetadata("valInWhen.kt")
public void testValInWhen() throws Exception {
runTest("compiler/testData/codegen/box/contracts/valInWhen.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/controlStructures")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ControlStructures extends AbstractLightAnalysisModeTest {
@TestMetadata("kt47245.kt")
public void ignoreKt47245() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/kt47245.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInControlStructures() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("kt2423.kt")
public void testKt2423() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/kt2423.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("kt3574.kt")
public void testKt3574() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/kt3574.kt");
}
@TestMetadata("kt416.kt")
public void testKt416() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/kt416.kt");
}
@TestMetadata("kt42455.kt")
public void testKt42455() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/kt42455.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("slowHtmlLikeDsl.kt")
public void testSlowHtmlLikeDsl() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/slowHtmlLikeDsl.kt");
}
@TestMetadata("tcbInEliminatedCondition.kt")
public void testTcbInEliminatedCondition() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/tcbInEliminatedCondition.kt");
}
@TestMetadata("tryCatchExpression.kt")
public void testTryCatchExpression() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/tryCatchExpression.kt");
}
@TestMetadata("tryCatchFinally.kt")
public void testTryCatchFinally() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/tryCatchFinally.kt");
}
@TestMetadata("tryCatchFinallyChain.kt")
public void testTryCatchFinallyChain() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/tryCatchFinallyChain.kt");
}
@TestMetadata("tryFinally.kt")
public void testTryFinally() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/tryFinally.kt");
}
@TestMetadata("tryFinallyGeneric.kt")
public void testTryFinallyGeneric() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/tryFinallyGeneric.kt");
}
@TestMetadata("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class BreakContinueInExpressions extends AbstractLightAnalysisModeTest {
@TestMetadata("breakInLoopConditions.kt")
public void ignoreBreakInLoopConditions() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/breakInLoopConditions.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInBreakContinueInExpressions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInForInArray() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/forInArray"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInForInArrayWithIndex() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInForInCharSequenceWithIndex() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInForInIterableWithIndex() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("forInListWithIndexThrowsCME.kt")
public void testForInListWithIndexThrowsCME() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInListWithIndexThrowsCME.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInForInSequenceWithIndex() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("forInSequenceWithIndexThrowsCME.kt")
public void testForInSequenceWithIndexThrowsCME() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInSequenceWithIndexThrowsCME.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInReturnsNothing() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/returnsNothing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInTryCatchInExpressions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("nonLocalReturnInTryFinally.kt")
public void testNonLocalReturnInTryFinally() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/nonLocalReturnInTryFinally.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 AbstractLightAnalysisModeTest {
@TestMetadata("kt21080.kt")
public void ignoreKt21080() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/kt21080.kt");
}
@TestMetadata("kt24135.kt")
public void ignoreKt24135() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/kt24135.kt");
}
@TestMetadata("kt38099.kt")
public void ignoreKt38099() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/kt38099.kt");
}
@TestMetadata("suspendFunctionAsSupertype.kt")
public void ignoreSuspendFunctionAsSupertype() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsSupertype.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("32defaultParametersInSuspend.kt")
public void test32defaultParametersInSuspend() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/32defaultParametersInSuspend.kt");
}
@TestMetadata("accessorForSuspend.kt")
public void testAccessorForSuspend() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/accessorForSuspend.kt");
}
public void testAllFilesPresentInCoroutines() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("async.kt")
public void testAsync() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/async.kt");
}
@TestMetadata("asyncException.kt")
public void testAsyncException() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/asyncException.kt");
}
@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() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/await.kt");
}
@TestMetadata("beginWithException.kt")
public void testBeginWithException() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/beginWithException.kt");
}
@TestMetadata("beginWithExceptionNoHandleException.kt")
public void testBeginWithExceptionNoHandleException() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/beginWithExceptionNoHandleException.kt");
}
@TestMetadata("builderInferenceAndGenericArrayAcessCall.kt")
public void testBuilderInferenceAndGenericArrayAcessCall() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/builderInferenceAndGenericArrayAcessCall.kt");
}
@TestMetadata("captureInfixFun.kt")
public void testCaptureInfixFun() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/captureInfixFun.kt");
}
@TestMetadata("captureMutableLocalVariableInsideCoroutineBlock.kt")
public void testCaptureMutableLocalVariableInsideCoroutineBlock() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/captureMutableLocalVariableInsideCoroutineBlock.kt");
}
@TestMetadata("captureUnaryOperator.kt")
public void testCaptureUnaryOperator() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/captureUnaryOperator.kt");
}
@TestMetadata("capturedVarInSuspendLambda.kt")
public void testCapturedVarInSuspendLambda() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/capturedVarInSuspendLambda.kt");
}
@TestMetadata("castWithSuspend.kt")
public void testCastWithSuspend() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/castWithSuspend.kt");
}
@TestMetadata("catchWithInlineInsideSuspend.kt")
public void testCatchWithInlineInsideSuspend() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/catchWithInlineInsideSuspend.kt");
}
@TestMetadata("coercionToUnit.kt")
public void testCoercionToUnit() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/coercionToUnit.kt");
}
@TestMetadata("controllerAccessFromInnerLambda.kt")
public void testControllerAccessFromInnerLambda() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt");
}
@TestMetadata("coroutineContextInInlinedLambda.kt")
public void testCoroutineContextInInlinedLambda() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/coroutineContextInInlinedLambda.kt");
}
@TestMetadata("coroutineToString.kt")
public void testCoroutineToString() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/coroutineToString.kt");
}
@TestMetadata("createCoroutineSafe.kt")
public void testCreateCoroutineSafe() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/createCoroutineSafe.kt");
}
@TestMetadata("createCoroutinesOnManualInstances.kt")
public void testCreateCoroutinesOnManualInstances() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/createCoroutinesOnManualInstances.kt");
}
@TestMetadata("crossInlineWithCapturedOuterReceiver.kt")
public void testCrossInlineWithCapturedOuterReceiver() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/crossInlineWithCapturedOuterReceiver.kt");
}
@TestMetadata("defaultParametersInSuspend.kt")
public void testDefaultParametersInSuspend() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspend.kt");
}
@TestMetadata("defaultParametersInSuspendWithJvmOverloads.kt")
public void testDefaultParametersInSuspendWithJvmOverloads() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspendWithJvmOverloads.kt");
}
@TestMetadata("delegatedSuspendMember.kt")
public void testDelegatedSuspendMember() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/delegatedSuspendMember.kt");
}
@TestMetadata("dispatchResume.kt")
public void testDispatchResume() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/dispatchResume.kt");
}
@TestMetadata("doubleColonExpressionsGenerationInBuilderInference.kt")
public void testDoubleColonExpressionsGenerationInBuilderInference() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/doubleColonExpressionsGenerationInBuilderInference.kt");
}
@TestMetadata("emptyClosure.kt")
public void testEmptyClosure() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/emptyClosure.kt");
}
@TestMetadata("emptyCommonConstraintSystemForCoroutineInferenceCall.kt")
public void testEmptyCommonConstraintSystemForCoroutineInferenceCall() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/emptyCommonConstraintSystemForCoroutineInferenceCall.kt");
}
@TestMetadata("epam.kt")
public void testEpam() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/epam.kt");
}
@TestMetadata("falseUnitCoercion.kt")
public void testFalseUnitCoercion() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt");
}
@TestMetadata("generate.kt")
public void testGenerate() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/generate.kt");
}
@TestMetadata("handleException.kt")
public void testHandleException() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/handleException.kt");
}
@TestMetadata("handleResultCallEmptyBody.kt")
public void testHandleResultCallEmptyBody() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/handleResultCallEmptyBody.kt");
}
@TestMetadata("handleResultNonUnitExpression.kt")
public void testHandleResultNonUnitExpression() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/handleResultNonUnitExpression.kt");
}
@TestMetadata("handleResultSuspended.kt")
public void testHandleResultSuspended() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/handleResultSuspended.kt");
}
@TestMetadata("illegalState.kt")
public void testIllegalState() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/illegalState.kt");
}
@TestMetadata("indirectInlineUsedAsNonInline.kt")
public void testIndirectInlineUsedAsNonInline() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/indirectInlineUsedAsNonInline.kt");
}
@TestMetadata("inlineFunInGenericClass.kt")
public void testInlineFunInGenericClass() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineFunInGenericClass.kt");
}
@TestMetadata("inlineFunctionInMultifileClass.kt")
public void testInlineFunctionInMultifileClass() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineFunctionInMultifileClass.kt");
}
@TestMetadata("inlineFunctionInMultifileClassUnoptimized.kt")
public void testInlineFunctionInMultifileClassUnoptimized() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineFunctionInMultifileClassUnoptimized.kt");
}
@TestMetadata("inlineGenericFunCalledFromSubclass.kt")
public void testInlineGenericFunCalledFromSubclass() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineGenericFunCalledFromSubclass.kt");
}
@TestMetadata("inlineSuspendFunction.kt")
public void testInlineSuspendFunction() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineSuspendFunction.kt");
}
@TestMetadata("inlineSuspendLambdaNonLocalReturn.kt")
public void testInlineSuspendLambdaNonLocalReturn() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineSuspendLambdaNonLocalReturn.kt");
}
@TestMetadata("inlinedTryCatchFinally.kt")
public void testInlinedTryCatchFinally() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlinedTryCatchFinally.kt");
}
@TestMetadata("innerSuspensionCalls.kt")
public void testInnerSuspensionCalls() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/innerSuspensionCalls.kt");
}
@TestMetadata("instanceOfContinuation.kt")
public void testInstanceOfContinuation() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/instanceOfContinuation.kt");
}
@TestMetadata("iterateOverArray.kt")
public void testIterateOverArray() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/iterateOverArray.kt");
}
@TestMetadata("jvmStaticAndJvmInline.kt")
public void testJvmStaticAndJvmInline() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/jvmStaticAndJvmInline.kt");
}
@TestMetadata("kt12958.kt")
public void testKt12958() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/kt12958.kt");
}
@TestMetadata("kt15016.kt")
public void testKt15016() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/kt15016.kt");
}
@TestMetadata("kt15017.kt")
public void testKt15017() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/kt15017.kt");
}
@TestMetadata("kt15930.kt")
public void testKt15930() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/kt15930.kt");
}
@TestMetadata("kt21605.kt")
public void testKt21605() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/kt21605.kt");
}
@TestMetadata("kt25912.kt")
public void testKt25912() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/kt25912.kt");
}
@TestMetadata("kt28844.kt")
public void testKt28844() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/kt28844.kt");
}
@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("kt42028.kt")
public void testKt42028() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/kt42028.kt");
}
@TestMetadata("kt42554.kt")
public void testKt42554() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/kt42554.kt");
}
@TestMetadata("kt44221.kt")
public void testKt44221() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/kt44221.kt");
}
@TestMetadata("kt44710.kt")
public void testKt44710() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/kt44710.kt");
}
@TestMetadata("kt44781.kt")
public void testKt44781() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/kt44781.kt");
}
@TestMetadata("kt45377.kt")
public void testKt45377() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/kt45377.kt");
}
@TestMetadata("kt46813.kt")
public void testKt46813() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/kt46813.kt");
}
@TestMetadata("lastExpressionIsLoop.kt")
public void testLastExpressionIsLoop() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/lastExpressionIsLoop.kt");
}
@TestMetadata("lastStatementInc.kt")
public void testLastStatementInc() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/lastStatementInc.kt");
}
@TestMetadata("lastStementAssignment.kt")
public void testLastStementAssignment() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/lastStementAssignment.kt");
}
@TestMetadata("lastUnitExpression.kt")
public void testLastUnitExpression() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/lastUnitExpression.kt");
}
@TestMetadata("localCallableRef.kt")
public void testLocalCallableRef() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/localCallableRef.kt");
}
@TestMetadata("localDelegate.kt")
public void testLocalDelegate() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/localDelegate.kt");
}
@TestMetadata("longRangeInSuspendCall.kt")
public void testLongRangeInSuspendCall() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/longRangeInSuspendCall.kt");
}
@TestMetadata("longRangeInSuspendFun.kt")
public void testLongRangeInSuspendFun() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/longRangeInSuspendFun.kt");
}
@TestMetadata("mergeNullAndString.kt")
public void testMergeNullAndString() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/mergeNullAndString.kt");
}
@TestMetadata("multipleInvokeCalls.kt")
public void testMultipleInvokeCalls() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/multipleInvokeCalls.kt");
}
@TestMetadata("multipleInvokeCallsInsideInlineLambda1.kt")
public void testMultipleInvokeCallsInsideInlineLambda1() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda1.kt");
}
@TestMetadata("multipleInvokeCallsInsideInlineLambda2.kt")
public void testMultipleInvokeCallsInsideInlineLambda2() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda2.kt");
}
@TestMetadata("multipleInvokeCallsInsideInlineLambda3.kt")
public void testMultipleInvokeCallsInsideInlineLambda3() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda3.kt");
}
@TestMetadata("nestedTryCatch.kt")
public void testNestedTryCatch() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/nestedTryCatch.kt");
}
@TestMetadata("noSuspensionPoints.kt")
public void testNoSuspensionPoints() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/noSuspensionPoints.kt");
}
@TestMetadata("nonLocalReturn.kt")
public void testNonLocalReturn() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/nonLocalReturn.kt");
}
@TestMetadata("nonLocalReturnFromInlineLambda.kt")
public void testNonLocalReturnFromInlineLambda() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/nonLocalReturnFromInlineLambda.kt");
}
@TestMetadata("nonLocalReturnFromInlineLambdaDeep.kt")
public void testNonLocalReturnFromInlineLambdaDeep() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/nonLocalReturnFromInlineLambdaDeep.kt");
}
@TestMetadata("nullableSuspendFunctionType.kt")
public void testNullableSuspendFunctionType() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/nullableSuspendFunctionType.kt");
}
@TestMetadata("overrideDefaultArgument.kt")
public void testOverrideDefaultArgument() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/overrideDefaultArgument.kt");
}
@TestMetadata("recursiveSuspend.kt")
public void testRecursiveSuspend() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/recursiveSuspend.kt");
}
@TestMetadata("restrictedSuspendLambda.kt")
public void testRestrictedSuspendLambda() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/restrictedSuspendLambda.kt");
}
@TestMetadata("returnByLabel.kt")
public void testReturnByLabel() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/returnByLabel.kt");
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/simple.kt");
}
@TestMetadata("simpleException.kt")
public void testSimpleException() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/simpleException.kt");
}
@TestMetadata("simpleSuspendCallableReference.kt")
public void testSimpleSuspendCallableReference() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/simpleSuspendCallableReference.kt");
}
@TestMetadata("simpleWithHandleResult.kt")
public void testSimpleWithHandleResult() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/simpleWithHandleResult.kt");
}
@TestMetadata("statementLikeLastExpression.kt")
public void testStatementLikeLastExpression() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/statementLikeLastExpression.kt");
}
@TestMetadata("stopAfter.kt")
public void testStopAfter() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/stopAfter.kt");
}
@TestMetadata("suspendCallsInArguments.kt")
public void testSuspendCallsInArguments() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendCallsInArguments.kt");
}
@TestMetadata("suspendCoroutineFromStateMachine.kt")
public void testSuspendCoroutineFromStateMachine() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendCoroutineFromStateMachine.kt");
}
@TestMetadata("suspendCovariantJavaOverrides.kt")
public void testSuspendCovariantJavaOverrides() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendCovariantJavaOverrides.kt");
}
@TestMetadata("suspendDefaultImpl.kt")
public void testSuspendDefaultImpl() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendDefaultImpl.kt");
}
@TestMetadata("suspendDelegation.kt")
public void testSuspendDelegation() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendDelegation.kt");
}
@TestMetadata("suspendFromInlineLambda.kt")
public void testSuspendFromInlineLambda() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendFromInlineLambda.kt");
}
@TestMetadata("suspendFunImportedFromObject.kt")
public void testSuspendFunImportedFromObject() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendFunImportedFromObject.kt");
}
@TestMetadata("suspendFunctionMethodReference.kt")
public void testSuspendFunctionMethodReference() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionMethodReference.kt");
}
@TestMetadata("suspendImplBridge.kt")
public void testSuspendImplBridge() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendImplBridge.kt");
}
@TestMetadata("suspendInCycle.kt")
public void testSuspendInCycle() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendInCycle.kt");
}
@TestMetadata("suspendInTheMiddleOfObjectConstruction.kt")
public void testSuspendInTheMiddleOfObjectConstruction() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstruction.kt");
}
@TestMetadata("suspendInTheMiddleOfObjectConstructionEvaluationOrder.kt")
public void testSuspendInTheMiddleOfObjectConstructionEvaluationOrder() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstructionEvaluationOrder.kt");
}
@TestMetadata("suspendInTheMiddleOfObjectConstructionWithJumpOut.kt")
public void testSuspendInTheMiddleOfObjectConstructionWithJumpOut() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstructionWithJumpOut.kt");
}
@TestMetadata("suspendJavaOverrides.kt")
public void testSuspendJavaOverrides() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendJavaOverrides.kt");
}
@TestMetadata("suspendLambdaInInterface.kt")
public void testSuspendLambdaInInterface() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendLambdaInInterface.kt");
}
@TestMetadata("suspendLambdaWithArgumentRearrangement.kt")
public void testSuspendLambdaWithArgumentRearrangement() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendLambdaWithArgumentRearrangement.kt");
}
@TestMetadata("suspendReturningPlatformType.kt")
public void testSuspendReturningPlatformType() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendReturningPlatformType.kt");
}
@TestMetadata("suspensionInsideSafeCall.kt")
public void testSuspensionInsideSafeCall() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspensionInsideSafeCall.kt");
}
@TestMetadata("suspensionInsideSafeCallWithElvis.kt")
public void testSuspensionInsideSafeCallWithElvis() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspensionInsideSafeCallWithElvis.kt");
}
@TestMetadata("tailCallToNothing.kt")
public void testTailCallToNothing() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallToNothing.kt");
}
@TestMetadata("tryCatchFinallyWithHandleResult.kt")
public void testTryCatchFinallyWithHandleResult() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tryCatchFinallyWithHandleResult.kt");
}
@TestMetadata("tryCatchWithHandleResult.kt")
public void testTryCatchWithHandleResult() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tryCatchWithHandleResult.kt");
}
@TestMetadata("tryFinallyInsideInlineLambda.kt")
public void testTryFinallyInsideInlineLambda() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tryFinallyInsideInlineLambda.kt");
}
@TestMetadata("tryFinallyWithHandleResult.kt")
public void testTryFinallyWithHandleResult() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tryFinallyWithHandleResult.kt");
}
@TestMetadata("varCaptuedInCoroutineIntrinsic.kt")
public void testVarCaptuedInCoroutineIntrinsic() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/varCaptuedInCoroutineIntrinsic.kt");
}
@TestMetadata("varValueConflictsWithTable.kt")
public void testVarValueConflictsWithTable() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/varValueConflictsWithTable.kt");
}
@TestMetadata("varValueConflictsWithTableSameSort.kt")
public void testVarValueConflictsWithTableSameSort() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/varValueConflictsWithTableSameSort.kt");
}
@TestMetadata("compiler/testData/codegen/box/coroutines/bridges")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Bridges extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInBridges() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/bridges"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("interfaceGenericDefault.kt")
public void testInterfaceGenericDefault() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/bridges/interfaceGenericDefault.kt");
}
@TestMetadata("interfaceSpecialization.kt")
public void testInterfaceSpecialization() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/bridges/interfaceSpecialization.kt");
}
@TestMetadata("lambdaWithLongReceiver.kt")
public void testLambdaWithLongReceiver() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/bridges/lambdaWithLongReceiver.kt");
}
@TestMetadata("lambdaWithMultipleParameters.kt")
public void testLambdaWithMultipleParameters() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/bridges/lambdaWithMultipleParameters.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/coroutines/controlFlow")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ControlFlow extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInControlFlow() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/controlFlow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("breakFinally.kt")
public void testBreakFinally() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/controlFlow/breakFinally.kt");
}
@TestMetadata("breakStatement.kt")
public void testBreakStatement() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/controlFlow/breakStatement.kt");
}
@TestMetadata("complexChainSuspend.kt")
public void testComplexChainSuspend() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/controlFlow/complexChainSuspend.kt");
}
@TestMetadata("doWhileStatement.kt")
public void testDoWhileStatement() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/controlFlow/doWhileStatement.kt");
}
@TestMetadata("doWhileWithInline.kt")
public void testDoWhileWithInline() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/controlFlow/doWhileWithInline.kt");
}
@TestMetadata("doubleBreak.kt")
public void testDoubleBreak() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/controlFlow/doubleBreak.kt");
}
@TestMetadata("finallyCatch.kt")
public void testFinallyCatch() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/controlFlow/finallyCatch.kt");
}
@TestMetadata("forContinue.kt")
public void testForContinue() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/controlFlow/forContinue.kt");
}
@TestMetadata("forStatement.kt")
public void testForStatement() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/controlFlow/forStatement.kt");
}
@TestMetadata("forWithStep.kt")
public void testForWithStep() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/controlFlow/forWithStep.kt");
}
@TestMetadata("ifStatement.kt")
public void testIfStatement() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/controlFlow/ifStatement.kt");
}
@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() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/controlFlow/labeledWhile.kt");
}
@TestMetadata("multipleCatchBlocksSuspend.kt")
public void testMultipleCatchBlocksSuspend() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/controlFlow/multipleCatchBlocksSuspend.kt");
}
@TestMetadata("returnFromFinally.kt")
public void testReturnFromFinally() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/controlFlow/returnFromFinally.kt");
}
@TestMetadata("returnWithFinally.kt")
public void testReturnWithFinally() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/controlFlow/returnWithFinally.kt");
}
@TestMetadata("suspendInStringTemplate.kt")
public void testSuspendInStringTemplate() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/controlFlow/suspendInStringTemplate.kt");
}
@TestMetadata("switchLikeWhen.kt")
public void testSwitchLikeWhen() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/controlFlow/switchLikeWhen.kt");
}
@TestMetadata("throwFromCatch.kt")
public void testThrowFromCatch() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/controlFlow/throwFromCatch.kt");
}
@TestMetadata("throwFromFinally.kt")
public void testThrowFromFinally() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/controlFlow/throwFromFinally.kt");
}
@TestMetadata("throwInTryWithHandleResult.kt")
public void testThrowInTryWithHandleResult() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/controlFlow/throwInTryWithHandleResult.kt");
}
@TestMetadata("whenWithSuspensions.kt")
public void testWhenWithSuspensions() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/controlFlow/whenWithSuspensions.kt");
}
@TestMetadata("whileStatement.kt")
public void testWhileStatement() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/controlFlow/whileStatement.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/coroutines/debug")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Debug extends AbstractLightAnalysisModeTest {
@TestMetadata("debuggerMetadata_ir.kt")
public void ignoreDebuggerMetadata_ir() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/debug/debuggerMetadata_ir.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInDebug() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/debug"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("debuggerMetadata.kt")
public void testDebuggerMetadata() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/debug/debuggerMetadata.kt");
}
@TestMetadata("elvisLineNumber.kt")
public void testElvisLineNumber() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/debug/elvisLineNumber.kt");
}
@TestMetadata("firstSuspensionPoint.kt")
public void testFirstSuspensionPoint() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/debug/firstSuspensionPoint.kt");
}
@TestMetadata("fqName.kt")
public void testFqName() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/debug/fqName.kt");
}
@TestMetadata("multipleSuspendCallsOnSameLine.kt")
public void testMultipleSuspendCallsOnSameLine() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/debug/multipleSuspendCallsOnSameLine.kt");
}
@TestMetadata("runtimeDebugMetadata.kt")
public void testRuntimeDebugMetadata() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/debug/runtimeDebugMetadata.kt");
}
@TestMetadata("throwsOnSameLine.kt")
public void testThrowsOnSameLine() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/debug/throwsOnSameLine.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/coroutines/featureIntersection")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class FeatureIntersection extends AbstractLightAnalysisModeTest {
@TestMetadata("funInterface.kt")
public void ignoreFunInterface() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/funInterface.kt");
}
@TestMetadata("suspendFunctionAsSupertypeIsCheck.kt")
public void ignoreSuspendFunctionAsSupertypeIsCheck() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/suspendFunctionAsSupertypeIsCheck.kt");
}
@TestMetadata("suspendFunctionAsSupertypeIsCheckWithArity.kt")
public void ignoreSuspendFunctionAsSupertypeIsCheckWithArity() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/suspendFunctionAsSupertypeIsCheckWithArity.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInFeatureIntersection() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("breakWithNonEmptyStack.kt")
public void testBreakWithNonEmptyStack() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/breakWithNonEmptyStack.kt");
}
@TestMetadata("defaultExpect.kt")
public void testDefaultExpect() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/defaultExpect.kt");
}
@TestMetadata("delegate.kt")
public void testDelegate() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/delegate.kt");
}
@TestMetadata("destructuringInLambdas.kt")
public void testDestructuringInLambdas() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/destructuringInLambdas.kt");
}
@TestMetadata("inlineSuspendFinally.kt")
public void testInlineSuspendFinally() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/inlineSuspendFinally.kt");
}
@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("overrideInInnerClass.kt")
public void testOverrideInInnerClass() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/overrideInInnerClass.kt");
}
@TestMetadata("safeCallOnTwoReceivers.kt")
public void testSafeCallOnTwoReceivers() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/safeCallOnTwoReceivers.kt");
}
@TestMetadata("safeCallOnTwoReceiversLong.kt")
public void testSafeCallOnTwoReceiversLong() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/safeCallOnTwoReceiversLong.kt");
}
@TestMetadata("suspendDestructuringInLambdas.kt")
public void testSuspendDestructuringInLambdas() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/suspendDestructuringInLambdas.kt");
}
@TestMetadata("suspendFunctionIsAs.kt")
public void testSuspendFunctionIsAs() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/suspendFunctionIsAs.kt");
}
@TestMetadata("suspendInlineSuspendFinally.kt")
public void testSuspendInlineSuspendFinally() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/suspendInlineSuspendFinally.kt");
}
@TestMetadata("suspendOperatorPlus.kt")
public void testSuspendOperatorPlus() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/suspendOperatorPlus.kt");
}
@TestMetadata("suspendOperatorPlusAssign.kt")
public void testSuspendOperatorPlusAssign() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/suspendOperatorPlusAssign.kt");
}
@TestMetadata("suspendOperatorPlusCallFromLambda.kt")
public void testSuspendOperatorPlusCallFromLambda() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/suspendOperatorPlusCallFromLambda.kt");
}
@TestMetadata("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class CallableReference extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInCallableReference() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("bigArity.kt")
public void testBigArity() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/bigArity.kt");
}
@TestMetadata("fromJava.kt")
public void testFromJava() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/fromJava.kt");
}
@TestMetadata("lambdaParameterUsed.kt")
public void testLambdaParameterUsed() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/lambdaParameterUsed.kt");
}
@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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInBound() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/bound"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
@TestMetadata("adapted.kt")
public void ignoreAdapted() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/adapted.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInFunction() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("genericCallableReferenceArguments.kt")
public void testGenericCallableReferenceArguments() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/genericCallableReferenceArguments.kt");
}
@TestMetadata("genericCallableReferencesWithNullableTypes.kt")
public void testGenericCallableReferencesWithNullableTypes() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/genericCallableReferencesWithNullableTypes.kt");
}
@TestMetadata("getArityViaFunctionImpl.kt")
public void testGetArityViaFunctionImpl() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/getArityViaFunctionImpl.kt");
}
@TestMetadata("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/local")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Local extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInLocal() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/local"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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/jvmDefault")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class JvmDefault extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("all.kt")
public void testAll() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/jvmDefault/all.kt");
}
public void testAllFilesPresentInJvmDefault() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/jvmDefault"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("compiler/testData/codegen/box/coroutines/featureIntersection/jvmDefault/kt46007")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Kt46007 extends AbstractLightAnalysisModeTest {
@TestMetadata("all-compatibility.kt")
public void ignoreAll_compatibility() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/jvmDefault/kt46007/all-compatibility.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("all.kt")
public void testAll() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/jvmDefault/kt46007/all.kt");
}
public void testAllFilesPresentInKt46007() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/jvmDefault/kt46007"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("disable.kt")
public void testDisable() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/jvmDefault/kt46007/disable.kt");
}
@TestMetadata("enable.kt")
public void testEnable() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/jvmDefault/kt46007/enable.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Tailrec extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInTailrec() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("controlFlowIf.kt")
public void testControlFlowIf() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/controlFlowIf.kt");
}
@TestMetadata("controlFlowWhen.kt")
public void testControlFlowWhen() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/controlFlowWhen.kt");
}
@TestMetadata("extention.kt")
public void testExtention() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/extention.kt");
}
@TestMetadata("infixCall.kt")
public void testInfixCall() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/infixCall.kt");
}
@TestMetadata("infixRecursiveCall.kt")
public void testInfixRecursiveCall() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/infixRecursiveCall.kt");
}
@TestMetadata("realIteratorFoldl.kt")
public void testRealIteratorFoldl() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/realIteratorFoldl.kt");
}
@TestMetadata("realStringEscape.kt")
public void testRealStringEscape() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/realStringEscape.kt");
}
@TestMetadata("realStringRepeat.kt")
public void testRealStringRepeat() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/realStringRepeat.kt");
}
@TestMetadata("returnInParentheses.kt")
public void testReturnInParentheses() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/returnInParentheses.kt");
}
@TestMetadata("sum.kt")
public void testSum() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/sum.kt");
}
@TestMetadata("tailCallInBlockInParentheses.kt")
public void testTailCallInBlockInParentheses() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/tailCallInBlockInParentheses.kt");
}
@TestMetadata("tailCallInParentheses.kt")
public void testTailCallInParentheses() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/tailCallInParentheses.kt");
}
@TestMetadata("whenWithIs.kt")
public void testWhenWithIs() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/whenWithIs.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/coroutines/inlineClasses")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class InlineClasses extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInInlineClasses() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("genericParameterResult.kt")
public void testGenericParameterResult() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/genericParameterResult.kt");
}
@TestMetadata("kt47129.kt")
public void testKt47129() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/kt47129.kt");
}
@TestMetadata("nonLocalReturn.kt")
public void testNonLocalReturn() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/nonLocalReturn.kt");
}
@TestMetadata("compiler/testData/codegen/box/coroutines/inlineClasses/direct")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Direct extends AbstractLightAnalysisModeTest {
@TestMetadata("boxTypeParameterOfSuperType.kt")
public void ignoreBoxTypeParameterOfSuperType() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxTypeParameterOfSuperType.kt");
}
@TestMetadata("boxTypeParameterOfSuperTypeResult.kt")
public void ignoreBoxTypeParameterOfSuperTypeResult() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxTypeParameterOfSuperTypeResult.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInDirect() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/inlineClasses/direct"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("boxReturnValueOfSuspendFunctionReference.kt")
public void testBoxReturnValueOfSuspendFunctionReference() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxReturnValueOfSuspendFunctionReference.kt");
}
@TestMetadata("boxReturnValueOfSuspendLambda.kt")
public void testBoxReturnValueOfSuspendLambda() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxReturnValueOfSuspendLambda.kt");
}
@TestMetadata("boxUnboxInsideCoroutine.kt")
public void testBoxUnboxInsideCoroutine() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxUnboxInsideCoroutine.kt");
}
@TestMetadata("boxUnboxInsideCoroutine_Any.kt")
public void testBoxUnboxInsideCoroutine_Any() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxUnboxInsideCoroutine_Any.kt");
}
@TestMetadata("boxUnboxInsideCoroutine_InlineAny.kt")
public void testBoxUnboxInsideCoroutine_InlineAny() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxUnboxInsideCoroutine_InlineAny.kt");
}
@TestMetadata("boxUnboxInsideCoroutine_InlineInt.kt")
public void testBoxUnboxInsideCoroutine_InlineInt() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxUnboxInsideCoroutine_InlineInt.kt");
}
@TestMetadata("boxUnboxInsideCoroutine_Int.kt")
public void testBoxUnboxInsideCoroutine_Int() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxUnboxInsideCoroutine_Int.kt");
}
@TestMetadata("boxUnboxInsideCoroutine_Long.kt")
public void testBoxUnboxInsideCoroutine_Long() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxUnboxInsideCoroutine_Long.kt");
}
@TestMetadata("boxUnboxInsideCoroutine_NAny.kt")
public void testBoxUnboxInsideCoroutine_NAny() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxUnboxInsideCoroutine_NAny.kt");
}
@TestMetadata("boxUnboxInsideCoroutine_nonLocalReturn.kt")
public void testBoxUnboxInsideCoroutine_nonLocalReturn() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxUnboxInsideCoroutine_nonLocalReturn.kt");
}
@TestMetadata("boxUnboxInsideCoroutine_suspendFunType.kt")
public void testBoxUnboxInsideCoroutine_suspendFunType() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxUnboxInsideCoroutine_suspendFunType.kt");
}
@TestMetadata("bridgeGenerationCrossinline.kt")
public void testBridgeGenerationCrossinline() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/bridgeGenerationCrossinline.kt");
}
@TestMetadata("bridgeGenerationNonInline.kt")
public void testBridgeGenerationNonInline() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/bridgeGenerationNonInline.kt");
}
@TestMetadata("covariantOverrideSuspendFun.kt")
public void testCovariantOverrideSuspendFun() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/covariantOverrideSuspendFun.kt");
}
@TestMetadata("covariantOverrideSuspendFunSameJvmType.kt")
public void testCovariantOverrideSuspendFunSameJvmType() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/covariantOverrideSuspendFunSameJvmType.kt");
}
@TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass.kt")
public void testCovariantOverrideSuspendFunWithNullableInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/covariantOverrideSuspendFunWithNullableInlineClass.kt");
}
@TestMetadata("covariantOverrideSuspendFunWithNullableInlineClassSameJvmType.kt")
public void testCovariantOverrideSuspendFunWithNullableInlineClassSameJvmType() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/covariantOverrideSuspendFunWithNullableInlineClassSameJvmType.kt");
}
@TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_Any.kt")
public void testCovariantOverrideSuspendFunWithNullableInlineClass_Any() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/covariantOverrideSuspendFunWithNullableInlineClass_Any.kt");
}
@TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_Int.kt")
public void testCovariantOverrideSuspendFunWithNullableInlineClass_Int() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/covariantOverrideSuspendFunWithNullableInlineClass_Int.kt");
}
@TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_NullableAny.kt")
public void testCovariantOverrideSuspendFunWithNullableInlineClass_NullableAny() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/covariantOverrideSuspendFunWithNullableInlineClass_NullableAny.kt");
}
@TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_NullableAny_null.kt")
public void testCovariantOverrideSuspendFunWithNullableInlineClass_NullableAny_null() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/covariantOverrideSuspendFunWithNullableInlineClass_NullableAny_null.kt");
}
@TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_NullableInt.kt")
public void testCovariantOverrideSuspendFunWithNullableInlineClass_NullableInt() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/covariantOverrideSuspendFunWithNullableInlineClass_NullableInt.kt");
}
@TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_NullableInt_null.kt")
public void testCovariantOverrideSuspendFunWithNullableInlineClass_NullableInt_null() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/covariantOverrideSuspendFunWithNullableInlineClass_NullableInt_null.kt");
}
@TestMetadata("covariantOverrideSuspendFun_Any.kt")
public void testCovariantOverrideSuspendFun_Any() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/covariantOverrideSuspendFun_Any.kt");
}
@TestMetadata("covariantOverrideSuspendFun_Int.kt")
public void testCovariantOverrideSuspendFun_Int() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/covariantOverrideSuspendFun_Int.kt");
}
@TestMetadata("createMangling.kt")
public void testCreateMangling() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/createMangling.kt");
}
@TestMetadata("createOverride.kt")
public void testCreateOverride() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/createOverride.kt");
}
@TestMetadata("defaultStub.kt")
public void testDefaultStub() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/defaultStub.kt");
}
@TestMetadata("genericOverrideSuspendFun.kt")
public void testGenericOverrideSuspendFun() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/genericOverrideSuspendFun.kt");
}
@TestMetadata("genericOverrideSuspendFun_Any.kt")
public void testGenericOverrideSuspendFun_Any() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/genericOverrideSuspendFun_Any.kt");
}
@TestMetadata("genericOverrideSuspendFun_Any_NullableInlineClassUpperBound.kt")
public void testGenericOverrideSuspendFun_Any_NullableInlineClassUpperBound() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/genericOverrideSuspendFun_Any_NullableInlineClassUpperBound.kt");
}
@TestMetadata("genericOverrideSuspendFun_Int.kt")
public void testGenericOverrideSuspendFun_Int() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/genericOverrideSuspendFun_Int.kt");
}
@TestMetadata("genericOverrideSuspendFun_NullableAny.kt")
public void testGenericOverrideSuspendFun_NullableAny() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/genericOverrideSuspendFun_NullableAny.kt");
}
@TestMetadata("genericOverrideSuspendFun_NullableAny_null.kt")
public void testGenericOverrideSuspendFun_NullableAny_null() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/genericOverrideSuspendFun_NullableAny_null.kt");
}
@TestMetadata("genericOverrideSuspendFun_NullableInt.kt")
public void testGenericOverrideSuspendFun_NullableInt() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/genericOverrideSuspendFun_NullableInt.kt");
}
@TestMetadata("genericOverrideSuspendFun_NullableInt_null.kt")
public void testGenericOverrideSuspendFun_NullableInt_null() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/genericOverrideSuspendFun_NullableInt_null.kt");
}
@TestMetadata("interfaceDelegateWithInlineClass.kt")
public void testInterfaceDelegateWithInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/interfaceDelegateWithInlineClass.kt");
}
@TestMetadata("invokeOperator.kt")
public void testInvokeOperator() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/invokeOperator.kt");
}
@TestMetadata("multifileBridge.kt")
public void testMultifileBridge() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/multifileBridge.kt");
}
@TestMetadata("overrideSuspendFun.kt")
public void testOverrideSuspendFun() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/overrideSuspendFun.kt");
}
@TestMetadata("overrideSuspendFun_Any.kt")
public void testOverrideSuspendFun_Any() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/overrideSuspendFun_Any.kt");
}
@TestMetadata("overrideSuspendFun_Any_itf.kt")
public void testOverrideSuspendFun_Any_itf() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/overrideSuspendFun_Any_itf.kt");
}
@TestMetadata("overrideSuspendFun_Any_this.kt")
public void testOverrideSuspendFun_Any_this() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/overrideSuspendFun_Any_this.kt");
}
@TestMetadata("overrideSuspendFun_Int.kt")
public void testOverrideSuspendFun_Int() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/overrideSuspendFun_Int.kt");
}
@TestMetadata("returnResult.kt")
public void testReturnResult() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/returnResult.kt");
}
@TestMetadata("syntheticAccessor.kt")
public void testSyntheticAccessor() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/syntheticAccessor.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/coroutines/inlineClasses/resume")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Resume extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInResume() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/inlineClasses/resume"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("boxReturnValueOfSuspendFunctionReference.kt")
public void testBoxReturnValueOfSuspendFunctionReference() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxReturnValueOfSuspendFunctionReference.kt");
}
@TestMetadata("boxReturnValueOfSuspendLambda.kt")
public void testBoxReturnValueOfSuspendLambda() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxReturnValueOfSuspendLambda.kt");
}
@TestMetadata("boxTypeParameterOfSuperType.kt")
public void testBoxTypeParameterOfSuperType() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxTypeParameterOfSuperType.kt");
}
@TestMetadata("boxTypeParameterOfSuperTypeResult.kt")
public void testBoxTypeParameterOfSuperTypeResult() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxTypeParameterOfSuperTypeResult.kt");
}
@TestMetadata("boxUnboxInsideCoroutine.kt")
public void testBoxUnboxInsideCoroutine() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxUnboxInsideCoroutine.kt");
}
@TestMetadata("boxUnboxInsideCoroutine_Any.kt")
public void testBoxUnboxInsideCoroutine_Any() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxUnboxInsideCoroutine_Any.kt");
}
@TestMetadata("boxUnboxInsideCoroutine_InlineAny.kt")
public void testBoxUnboxInsideCoroutine_InlineAny() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxUnboxInsideCoroutine_InlineAny.kt");
}
@TestMetadata("boxUnboxInsideCoroutine_InlineInt.kt")
public void testBoxUnboxInsideCoroutine_InlineInt() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxUnboxInsideCoroutine_InlineInt.kt");
}
@TestMetadata("boxUnboxInsideCoroutine_Int.kt")
public void testBoxUnboxInsideCoroutine_Int() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxUnboxInsideCoroutine_Int.kt");
}
@TestMetadata("boxUnboxInsideCoroutine_Long.kt")
public void testBoxUnboxInsideCoroutine_Long() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxUnboxInsideCoroutine_Long.kt");
}
@TestMetadata("boxUnboxInsideCoroutine_NAny.kt")
public void testBoxUnboxInsideCoroutine_NAny() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxUnboxInsideCoroutine_NAny.kt");
}
@TestMetadata("boxUnboxInsideCoroutine_nonLocalReturn.kt")
public void testBoxUnboxInsideCoroutine_nonLocalReturn() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxUnboxInsideCoroutine_nonLocalReturn.kt");
}
@TestMetadata("boxUnboxInsideCoroutine_suspendFunType.kt")
public void testBoxUnboxInsideCoroutine_suspendFunType() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxUnboxInsideCoroutine_suspendFunType.kt");
}
@TestMetadata("bridgeGenerationCrossinline.kt")
public void testBridgeGenerationCrossinline() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/bridgeGenerationCrossinline.kt");
}
@TestMetadata("bridgeGenerationNonInline.kt")
public void testBridgeGenerationNonInline() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/bridgeGenerationNonInline.kt");
}
@TestMetadata("covariantOverrideSuspendFun.kt")
public void testCovariantOverrideSuspendFun() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/covariantOverrideSuspendFun.kt");
}
@TestMetadata("covariantOverrideSuspendFunSameJvmType.kt")
public void testCovariantOverrideSuspendFunSameJvmType() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/covariantOverrideSuspendFunSameJvmType.kt");
}
@TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass.kt")
public void testCovariantOverrideSuspendFunWithNullableInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/covariantOverrideSuspendFunWithNullableInlineClass.kt");
}
@TestMetadata("covariantOverrideSuspendFunWithNullableInlineClassSameJvmType.kt")
public void testCovariantOverrideSuspendFunWithNullableInlineClassSameJvmType() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/covariantOverrideSuspendFunWithNullableInlineClassSameJvmType.kt");
}
@TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_Any.kt")
public void testCovariantOverrideSuspendFunWithNullableInlineClass_Any() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/covariantOverrideSuspendFunWithNullableInlineClass_Any.kt");
}
@TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_Int.kt")
public void testCovariantOverrideSuspendFunWithNullableInlineClass_Int() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/covariantOverrideSuspendFunWithNullableInlineClass_Int.kt");
}
@TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_NullableAny.kt")
public void testCovariantOverrideSuspendFunWithNullableInlineClass_NullableAny() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/covariantOverrideSuspendFunWithNullableInlineClass_NullableAny.kt");
}
@TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_NullableAny_null.kt")
public void testCovariantOverrideSuspendFunWithNullableInlineClass_NullableAny_null() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/covariantOverrideSuspendFunWithNullableInlineClass_NullableAny_null.kt");
}
@TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_NullableInt.kt")
public void testCovariantOverrideSuspendFunWithNullableInlineClass_NullableInt() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/covariantOverrideSuspendFunWithNullableInlineClass_NullableInt.kt");
}
@TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_NullableInt_null.kt")
public void testCovariantOverrideSuspendFunWithNullableInlineClass_NullableInt_null() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/covariantOverrideSuspendFunWithNullableInlineClass_NullableInt_null.kt");
}
@TestMetadata("covariantOverrideSuspendFun_Any.kt")
public void testCovariantOverrideSuspendFun_Any() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/covariantOverrideSuspendFun_Any.kt");
}
@TestMetadata("covariantOverrideSuspendFun_Int.kt")
public void testCovariantOverrideSuspendFun_Int() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/covariantOverrideSuspendFun_Int.kt");
}
@TestMetadata("createMangling.kt")
public void testCreateMangling() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/createMangling.kt");
}
@TestMetadata("createOverride.kt")
public void testCreateOverride() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/createOverride.kt");
}
@TestMetadata("defaultStub.kt")
public void testDefaultStub() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/defaultStub.kt");
}
@TestMetadata("genericOverrideSuspendFun.kt")
public void testGenericOverrideSuspendFun() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/genericOverrideSuspendFun.kt");
}
@TestMetadata("genericOverrideSuspendFun_Any.kt")
public void testGenericOverrideSuspendFun_Any() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/genericOverrideSuspendFun_Any.kt");
}
@TestMetadata("genericOverrideSuspendFun_Any_NullableInlineClassUpperBound.kt")
public void testGenericOverrideSuspendFun_Any_NullableInlineClassUpperBound() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/genericOverrideSuspendFun_Any_NullableInlineClassUpperBound.kt");
}
@TestMetadata("genericOverrideSuspendFun_Int.kt")
public void testGenericOverrideSuspendFun_Int() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/genericOverrideSuspendFun_Int.kt");
}
@TestMetadata("genericOverrideSuspendFun_NullableAny.kt")
public void testGenericOverrideSuspendFun_NullableAny() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/genericOverrideSuspendFun_NullableAny.kt");
}
@TestMetadata("genericOverrideSuspendFun_NullableAny_null.kt")
public void testGenericOverrideSuspendFun_NullableAny_null() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/genericOverrideSuspendFun_NullableAny_null.kt");
}
@TestMetadata("genericOverrideSuspendFun_NullableInt.kt")
public void testGenericOverrideSuspendFun_NullableInt() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/genericOverrideSuspendFun_NullableInt.kt");
}
@TestMetadata("genericOverrideSuspendFun_NullableInt_null.kt")
public void testGenericOverrideSuspendFun_NullableInt_null() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/genericOverrideSuspendFun_NullableInt_null.kt");
}
@TestMetadata("interfaceDelegateWithInlineClass.kt")
public void testInterfaceDelegateWithInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/interfaceDelegateWithInlineClass.kt");
}
@TestMetadata("invokeOperator.kt")
public void testInvokeOperator() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/invokeOperator.kt");
}
@TestMetadata("multifileBridge.kt")
public void testMultifileBridge() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/multifileBridge.kt");
}
@TestMetadata("overrideSuspendFun.kt")
public void testOverrideSuspendFun() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/overrideSuspendFun.kt");
}
@TestMetadata("overrideSuspendFun_Any.kt")
public void testOverrideSuspendFun_Any() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/overrideSuspendFun_Any.kt");
}
@TestMetadata("overrideSuspendFun_Any_itf.kt")
public void testOverrideSuspendFun_Any_itf() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/overrideSuspendFun_Any_itf.kt");
}
@TestMetadata("overrideSuspendFun_Any_this.kt")
public void testOverrideSuspendFun_Any_this() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/overrideSuspendFun_Any_this.kt");
}
@TestMetadata("overrideSuspendFun_Int.kt")
public void testOverrideSuspendFun_Int() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/overrideSuspendFun_Int.kt");
}
@TestMetadata("returnResult.kt")
public void testReturnResult() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/returnResult.kt");
}
@TestMetadata("syntheticAccessor.kt")
public void testSyntheticAccessor() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/syntheticAccessor.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ResumeWithException extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInResumeWithException() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("boxReturnValueOfSuspendFunctionReference.kt")
public void testBoxReturnValueOfSuspendFunctionReference() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxReturnValueOfSuspendFunctionReference.kt");
}
@TestMetadata("boxReturnValueOfSuspendLambda.kt")
public void testBoxReturnValueOfSuspendLambda() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxReturnValueOfSuspendLambda.kt");
}
@TestMetadata("boxTypeParameterOfSuperType.kt")
public void testBoxTypeParameterOfSuperType() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxTypeParameterOfSuperType.kt");
}
@TestMetadata("boxTypeParameterOfSuperTypeResult.kt")
public void testBoxTypeParameterOfSuperTypeResult() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxTypeParameterOfSuperTypeResult.kt");
}
@TestMetadata("boxUnboxInsideCoroutine.kt")
public void testBoxUnboxInsideCoroutine() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxUnboxInsideCoroutine.kt");
}
@TestMetadata("boxUnboxInsideCoroutine_Any.kt")
public void testBoxUnboxInsideCoroutine_Any() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxUnboxInsideCoroutine_Any.kt");
}
@TestMetadata("boxUnboxInsideCoroutine_InlineAny.kt")
public void testBoxUnboxInsideCoroutine_InlineAny() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxUnboxInsideCoroutine_InlineAny.kt");
}
@TestMetadata("boxUnboxInsideCoroutine_InlineInt.kt")
public void testBoxUnboxInsideCoroutine_InlineInt() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxUnboxInsideCoroutine_InlineInt.kt");
}
@TestMetadata("boxUnboxInsideCoroutine_Int.kt")
public void testBoxUnboxInsideCoroutine_Int() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxUnboxInsideCoroutine_Int.kt");
}
@TestMetadata("boxUnboxInsideCoroutine_Long.kt")
public void testBoxUnboxInsideCoroutine_Long() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxUnboxInsideCoroutine_Long.kt");
}
@TestMetadata("boxUnboxInsideCoroutine_NAny.kt")
public void testBoxUnboxInsideCoroutine_NAny() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxUnboxInsideCoroutine_NAny.kt");
}
@TestMetadata("boxUnboxInsideCoroutine_nonLocalReturn.kt")
public void testBoxUnboxInsideCoroutine_nonLocalReturn() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxUnboxInsideCoroutine_nonLocalReturn.kt");
}
@TestMetadata("boxUnboxInsideCoroutine_suspendFunType.kt")
public void testBoxUnboxInsideCoroutine_suspendFunType() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxUnboxInsideCoroutine_suspendFunType.kt");
}
@TestMetadata("bridgeGenerationCrossinline.kt")
public void testBridgeGenerationCrossinline() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/bridgeGenerationCrossinline.kt");
}
@TestMetadata("bridgeGenerationNonInline.kt")
public void testBridgeGenerationNonInline() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/bridgeGenerationNonInline.kt");
}
@TestMetadata("covariantOverrideSuspendFun.kt")
public void testCovariantOverrideSuspendFun() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/covariantOverrideSuspendFun.kt");
}
@TestMetadata("covariantOverrideSuspendFunSameJvmType.kt")
public void testCovariantOverrideSuspendFunSameJvmType() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/covariantOverrideSuspendFunSameJvmType.kt");
}
@TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass.kt")
public void testCovariantOverrideSuspendFunWithNullableInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/covariantOverrideSuspendFunWithNullableInlineClass.kt");
}
@TestMetadata("covariantOverrideSuspendFunWithNullableInlineClassSameJvmType.kt")
public void testCovariantOverrideSuspendFunWithNullableInlineClassSameJvmType() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/covariantOverrideSuspendFunWithNullableInlineClassSameJvmType.kt");
}
@TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_Any.kt")
public void testCovariantOverrideSuspendFunWithNullableInlineClass_Any() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/covariantOverrideSuspendFunWithNullableInlineClass_Any.kt");
}
@TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_Int.kt")
public void testCovariantOverrideSuspendFunWithNullableInlineClass_Int() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/covariantOverrideSuspendFunWithNullableInlineClass_Int.kt");
}
@TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_NullableAny.kt")
public void testCovariantOverrideSuspendFunWithNullableInlineClass_NullableAny() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/covariantOverrideSuspendFunWithNullableInlineClass_NullableAny.kt");
}
@TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_NullableAny_null.kt")
public void testCovariantOverrideSuspendFunWithNullableInlineClass_NullableAny_null() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/covariantOverrideSuspendFunWithNullableInlineClass_NullableAny_null.kt");
}
@TestMetadata("covariantOverrideSuspendFunWithNullableInlineClass_NullableInt.kt")
public void testCovariantOverrideSuspendFunWithNullableInlineClass_NullableInt() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/covariantOverrideSuspendFunWithNullableInlineClass_NullableInt.kt");
}
@TestMetadata("covariantOverrideSuspendFun_Any.kt")
public void testCovariantOverrideSuspendFun_Any() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/covariantOverrideSuspendFun_Any.kt");
}
@TestMetadata("covariantOverrideSuspendFun_Int.kt")
public void testCovariantOverrideSuspendFun_Int() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/covariantOverrideSuspendFun_Int.kt");
}
@TestMetadata("createMangling.kt")
public void testCreateMangling() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/createMangling.kt");
}
@TestMetadata("createOverride.kt")
public void testCreateOverride() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/createOverride.kt");
}
@TestMetadata("genericOverrideSuspendFun.kt")
public void testGenericOverrideSuspendFun() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/genericOverrideSuspendFun.kt");
}
@TestMetadata("genericOverrideSuspendFun_Any.kt")
public void testGenericOverrideSuspendFun_Any() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/genericOverrideSuspendFun_Any.kt");
}
@TestMetadata("genericOverrideSuspendFun_Any_NullableInlineClassUpperBound.kt")
public void testGenericOverrideSuspendFun_Any_NullableInlineClassUpperBound() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/genericOverrideSuspendFun_Any_NullableInlineClassUpperBound.kt");
}
@TestMetadata("genericOverrideSuspendFun_Int.kt")
public void testGenericOverrideSuspendFun_Int() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/genericOverrideSuspendFun_Int.kt");
}
@TestMetadata("genericOverrideSuspendFun_NullableAny.kt")
public void testGenericOverrideSuspendFun_NullableAny() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/genericOverrideSuspendFun_NullableAny.kt");
}
@TestMetadata("genericOverrideSuspendFun_NullableInt.kt")
public void testGenericOverrideSuspendFun_NullableInt() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/genericOverrideSuspendFun_NullableInt.kt");
}
@TestMetadata("interfaceDelegateWithInlineClass.kt")
public void testInterfaceDelegateWithInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/interfaceDelegateWithInlineClass.kt");
}
@TestMetadata("invokeOperator.kt")
public void testInvokeOperator() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/invokeOperator.kt");
}
@TestMetadata("overrideSuspendFun.kt")
public void testOverrideSuspendFun() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/overrideSuspendFun.kt");
}
@TestMetadata("overrideSuspendFun_Any.kt")
public void testOverrideSuspendFun_Any() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/overrideSuspendFun_Any.kt");
}
@TestMetadata("overrideSuspendFun_Any_itf.kt")
public void testOverrideSuspendFun_Any_itf() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/overrideSuspendFun_Any_itf.kt");
}
@TestMetadata("overrideSuspendFun_Any_this.kt")
public void testOverrideSuspendFun_Any_this() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/overrideSuspendFun_Any_this.kt");
}
@TestMetadata("overrideSuspendFun_Int.kt")
public void testOverrideSuspendFun_Int() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/overrideSuspendFun_Int.kt");
}
@TestMetadata("returnResult.kt")
public void testReturnResult() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/returnResult.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class IntLikeVarSpilling extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInIntLikeVarSpilling() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/intLikeVarSpilling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("complicatedMerge.kt")
public void testComplicatedMerge() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/complicatedMerge.kt");
}
@TestMetadata("i2bResult.kt")
public void testI2bResult() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/i2bResult.kt");
}
@TestMetadata("listThrowablePairInOneSlot.kt")
public void testListThrowablePairInOneSlot() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/listThrowablePairInOneSlot.kt");
}
@TestMetadata("loadFromBooleanArray.kt")
public void testLoadFromBooleanArray() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/loadFromBooleanArray.kt");
}
@TestMetadata("loadFromByteArray.kt")
public void testLoadFromByteArray() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/loadFromByteArray.kt");
}
@TestMetadata("noVariableInTable.kt")
public void testNoVariableInTable() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/noVariableInTable.kt");
}
@TestMetadata("sameIconst1ManyVars.kt")
public void testSameIconst1ManyVars() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/sameIconst1ManyVars.kt");
}
@TestMetadata("unusedCatchVar.kt")
public void testUnusedCatchVar() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/unusedCatchVar.kt");
}
@TestMetadata("usedInArrayStore.kt")
public void testUsedInArrayStore() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInArrayStore.kt");
}
@TestMetadata("usedInMethodCall.kt")
public void testUsedInMethodCall() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInMethodCall.kt");
}
@TestMetadata("usedInPutfield.kt")
public void testUsedInPutfield() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInPutfield.kt");
}
@TestMetadata("usedInVarStore.kt")
public void testUsedInVarStore() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInVarStore.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/coroutines/intrinsicSemantics")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class IntrinsicSemantics extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInIntrinsicSemantics() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/intrinsicSemantics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("coroutineContext.kt")
public void testCoroutineContext() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/intrinsicSemantics/coroutineContext.kt");
}
@TestMetadata("coroutineContextReceiver.kt")
public void testCoroutineContextReceiver() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/intrinsicSemantics/coroutineContextReceiver.kt");
}
@TestMetadata("coroutineContextReceiverNotIntrinsic.kt")
public void testCoroutineContextReceiverNotIntrinsic() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/intrinsicSemantics/coroutineContextReceiverNotIntrinsic.kt");
}
@TestMetadata("intercepted.kt")
public void testIntercepted() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/intrinsicSemantics/intercepted.kt");
}
@TestMetadata("resultExceptionOrNullInLambda.kt")
public void testResultExceptionOrNullInLambda() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/intrinsicSemantics/resultExceptionOrNullInLambda.kt");
}
@TestMetadata("startCoroutine.kt")
public void testStartCoroutine() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/intrinsicSemantics/startCoroutine.kt");
}
@TestMetadata("startCoroutineUninterceptedOrReturn.kt")
public void testStartCoroutineUninterceptedOrReturn() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/intrinsicSemantics/startCoroutineUninterceptedOrReturn.kt");
}
@TestMetadata("startCoroutineUninterceptedOrReturnInterception.kt")
public void testStartCoroutineUninterceptedOrReturnInterception() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/intrinsicSemantics/startCoroutineUninterceptedOrReturnInterception.kt");
}
@TestMetadata("suspendCoroutineUninterceptedOrReturn.kt")
public void testSuspendCoroutineUninterceptedOrReturn() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/intrinsicSemantics/suspendCoroutineUninterceptedOrReturn.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/coroutines/javaInterop")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class JavaInterop extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInJavaInterop() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/javaInterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("objectWithSeveralSuspends.kt")
public void testObjectWithSeveralSuspends() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/javaInterop/objectWithSeveralSuspends.kt");
}
@TestMetadata("returnLambda.kt")
public void testReturnLambda() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/javaInterop/returnLambda.kt");
}
@TestMetadata("returnObject.kt")
public void testReturnObject() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/javaInterop/returnObject.kt");
}
@TestMetadata("severalCaptures.kt")
public void testSeveralCaptures() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/javaInterop/severalCaptures.kt");
}
@TestMetadata("suspendInlineWithCrossinline.kt")
public void testSuspendInlineWithCrossinline() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/javaInterop/suspendInlineWithCrossinline.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class LocalFunctions extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInLocalFunctions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Anonymous extends AbstractLightAnalysisModeTest {
@TestMetadata("simple.kt")
public void ignoreSimple() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInAnonymous() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
}
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Named extends AbstractLightAnalysisModeTest {
@TestMetadata("callTopLevelFromLocal.kt")
public void ignoreCallTopLevelFromLocal() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/callTopLevelFromLocal.kt");
}
@TestMetadata("defaultArgument.kt")
public void ignoreDefaultArgument() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/defaultArgument.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInNamed() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/named"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("capturedParameters.kt")
public void testCapturedParameters() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/capturedParameters.kt");
}
@TestMetadata("capturedVariables.kt")
public void testCapturedVariables() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/capturedVariables.kt");
}
@TestMetadata("extension.kt")
public void testExtension() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/extension.kt");
}
@TestMetadata("infix.kt")
public void testInfix() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/infix.kt");
}
@TestMetadata("insideLambda.kt")
public void testInsideLambda() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/insideLambda.kt");
}
@TestMetadata("nestedLocals.kt")
public void testNestedLocals() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/nestedLocals.kt");
}
@TestMetadata("rec.kt")
public void testRec() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/rec.kt");
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/simple.kt");
}
@TestMetadata("simpleSuspensionPoint.kt")
public void testSimpleSuspensionPoint() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/simpleSuspensionPoint.kt");
}
@TestMetadata("stateMachine.kt")
public void testStateMachine() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/stateMachine.kt");
}
@TestMetadata("withArguments.kt")
public void testWithArguments() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/withArguments.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/coroutines/multiModule")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class MultiModule extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInMultiModule() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/multiModule"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("inlineCrossModule.kt")
public void testInlineCrossModule() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/multiModule/inlineCrossModule.kt");
}
@TestMetadata("inlineFunctionWithOptionalParam.kt")
public void testInlineFunctionWithOptionalParam() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/multiModule/inlineFunctionWithOptionalParam.kt");
}
@TestMetadata("inlineMultiModule.kt")
public void testInlineMultiModule() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/multiModule/inlineMultiModule.kt");
}
@TestMetadata("inlineMultiModuleOverride.kt")
public void testInlineMultiModuleOverride() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/multiModule/inlineMultiModuleOverride.kt");
}
@TestMetadata("inlineMultiModuleWithController.kt")
public void testInlineMultiModuleWithController() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/multiModule/inlineMultiModuleWithController.kt");
}
@TestMetadata("inlineMultiModuleWithInnerInlining.kt")
public void testInlineMultiModuleWithInnerInlining() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/multiModule/inlineMultiModuleWithInnerInlining.kt");
}
@TestMetadata("inlineTailCall.kt")
public void testInlineTailCall() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/multiModule/inlineTailCall.kt");
}
@TestMetadata("inlineWithJava.kt")
public void testInlineWithJava() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/multiModule/inlineWithJava.kt");
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/multiModule/simple.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/coroutines/redundantLocalsElimination")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class RedundantLocalsElimination extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInRedundantLocalsElimination() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/redundantLocalsElimination"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("ktor_receivedMessage.kt")
public void testKtor_receivedMessage() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/redundantLocalsElimination/ktor_receivedMessage.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/coroutines/reflect")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Reflect extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInReflect() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/reflect"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("bigArity.kt")
public void testBigArity() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/reflect/bigArity.kt");
}
@TestMetadata("callSuspend.kt")
public void testCallSuspend() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/reflect/callSuspend.kt");
}
@TestMetadata("callSuspendBy.kt")
public void testCallSuspendBy() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/reflect/callSuspendBy.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/coroutines/stackUnwinding")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class StackUnwinding extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInStackUnwinding() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/stackUnwinding"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("exception.kt")
public void testException() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/stackUnwinding/exception.kt");
}
@TestMetadata("inlineSuspendFunction.kt")
public void testInlineSuspendFunction() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/stackUnwinding/inlineSuspendFunction.kt");
}
@TestMetadata("rethrowInFinally.kt")
public void testRethrowInFinally() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/stackUnwinding/rethrowInFinally.kt");
}
@TestMetadata("rethrowInFinallyWithSuspension.kt")
public void testRethrowInFinallyWithSuspension() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/stackUnwinding/rethrowInFinallyWithSuspension.kt");
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/stackUnwinding/simple.kt");
}
@TestMetadata("suspendInCycle.kt")
public void testSuspendInCycle() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/stackUnwinding/suspendInCycle.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/coroutines/suspendConversion")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class SuspendConversion extends AbstractLightAnalysisModeTest {
@TestMetadata("intersectionTypeToSubtypeConversion.kt")
public void ignoreIntersectionTypeToSubtypeConversion() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendConversion/intersectionTypeToSubtypeConversion.kt");
}
@TestMetadata("onArgument.kt")
public void ignoreOnArgument() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendConversion/onArgument.kt");
}
@TestMetadata("onInlineArgument.kt")
public void ignoreOnInlineArgument() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendConversion/onInlineArgument.kt");
}
@TestMetadata("subtypeOfFunctionalTypeToSuspendConversion.kt")
public void ignoreSubtypeOfFunctionalTypeToSuspendConversion() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendConversion/subtypeOfFunctionalTypeToSuspendConversion.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInSuspendConversion() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/suspendConversion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
}
@TestMetadata("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class SuspendFunctionAsCoroutine extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInSuspendFunctionAsCoroutine() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("dispatchResume.kt")
public void testDispatchResume() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/dispatchResume.kt");
}
@TestMetadata("handleException.kt")
public void testHandleException() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/handleException.kt");
}
@TestMetadata("ifExpressionInsideCoroutine_1_3.kt")
public void testIfExpressionInsideCoroutine_1_3() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/ifExpressionInsideCoroutine_1_3.kt");
}
@TestMetadata("inline.kt")
public void testInline() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/inline.kt");
}
@TestMetadata("inlineTwoReceivers.kt")
public void testInlineTwoReceivers() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/inlineTwoReceivers.kt");
}
@TestMetadata("member.kt")
public void testMember() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/member.kt");
}
@TestMetadata("noinlineTwoReceivers.kt")
public void testNoinlineTwoReceivers() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/noinlineTwoReceivers.kt");
}
@TestMetadata("openFunWithJava.kt")
public void testOpenFunWithJava() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/openFunWithJava.kt");
}
@TestMetadata("operators.kt")
public void testOperators() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/operators.kt");
}
@TestMetadata("privateFunctions.kt")
public void testPrivateFunctions() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/privateFunctions.kt");
}
@TestMetadata("privateInFile.kt")
public void testPrivateInFile() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/privateInFile.kt");
}
@TestMetadata("returnNoSuspend.kt")
public void testReturnNoSuspend() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/returnNoSuspend.kt");
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/simple.kt");
}
@TestMetadata("superCall.kt")
public void testSuperCall() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/superCall.kt");
}
@TestMetadata("superCallAbstractClass.kt")
public void testSuperCallAbstractClass() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/superCallAbstractClass.kt");
}
@TestMetadata("superCallInterface.kt")
public void testSuperCallInterface() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/superCallInterface.kt");
}
@TestMetadata("superCallOverload.kt")
public void testSuperCallOverload() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/superCallOverload.kt");
}
@TestMetadata("withVariables.kt")
public void testWithVariables() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/withVariables.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class SuspendFunctionTypeCall extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInSuspendFunctionTypeCall() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("localVal.kt")
public void testLocalVal() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall/localVal.kt");
}
@TestMetadata("manyParameters.kt")
public void testManyParameters() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall/manyParameters.kt");
}
@TestMetadata("manyParametersNoCapture.kt")
public void testManyParametersNoCapture() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall/manyParametersNoCapture.kt");
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall/simple.kt");
}
@TestMetadata("suspendModifier.kt")
public void testSuspendModifier() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall/suspendModifier.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/coroutines/tailCallOptimizations")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class TailCallOptimizations extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInTailCallOptimizations() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/tailCallOptimizations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("also.kt")
public void testAlso() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/also.kt");
}
@TestMetadata("crossinline.kt")
public void testCrossinline() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/crossinline.kt");
}
@TestMetadata("inlineWithStateMachine.kt")
public void testInlineWithStateMachine() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/inlineWithStateMachine.kt");
}
@TestMetadata("inlineWithoutStateMachine.kt")
public void testInlineWithoutStateMachine() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/inlineWithoutStateMachine.kt");
}
@TestMetadata("innerObjectRetransformation.kt")
public void testInnerObjectRetransformation() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/innerObjectRetransformation.kt");
}
@TestMetadata("interfaceDelegation.kt")
public void testInterfaceDelegation() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/interfaceDelegation.kt");
}
@TestMetadata("returnInlineClass.kt")
public void testReturnInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/returnInlineClass.kt");
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/simple.kt");
}
@TestMetadata("tailCallIfReturnUnit.kt")
public void testTailCallIfReturnUnit() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailCallIfReturnUnit.kt");
}
@TestMetadata("tailCallIntrinsics.kt")
public void testTailCallIntrinsics() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailCallIntrinsics.kt");
}
@TestMetadata("tailSuspendUnitFun.kt")
public void testTailSuspendUnitFun() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/tailSuspendUnitFun.kt");
}
@TestMetadata("tryCatch.kt")
public void testTryCatch() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/tryCatch.kt");
}
@TestMetadata("tryCatchTailCall.kt")
public void testTryCatchTailCall() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/tryCatchTailCall.kt");
}
@TestMetadata("unreachable.kt")
public void testUnreachable() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unreachable.kt");
}
@TestMetadata("whenUnit.kt")
public void testWhenUnit() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/whenUnit.kt");
}
@TestMetadata("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Unit extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInUnit() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("functionReference.kt")
public void testFunctionReference() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/functionReference.kt");
}
@TestMetadata("override.kt")
public void testOverride() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override.kt");
}
@TestMetadata("override2.kt")
public void testOverride2() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override2.kt");
}
@TestMetadata("override3.kt")
public void testOverride3() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override3.kt");
}
@TestMetadata("override4.kt")
public void testOverride4() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override4.kt");
}
@TestMetadata("override5.kt")
public void testOverride5() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override5.kt");
}
@TestMetadata("override6.kt")
public void testOverride6() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override6.kt");
}
@TestMetadata("overrideCrossinline.kt")
public void testOverrideCrossinline() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/overrideCrossinline.kt");
}
@TestMetadata("overrideOverriden.kt")
public void testOverrideOverriden() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/overrideOverriden.kt");
}
@TestMetadata("reflection.kt")
public void testReflection() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/reflection.kt");
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/simple.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/coroutines/tailOperations")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class TailOperations extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInTailOperations() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/tailOperations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("suspendWithIf.kt")
public void testSuspendWithIf() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailOperations/suspendWithIf.kt");
}
@TestMetadata("suspendWithTryCatch.kt")
public void testSuspendWithTryCatch() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailOperations/suspendWithTryCatch.kt");
}
@TestMetadata("suspendWithWhen.kt")
public void testSuspendWithWhen() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailOperations/suspendWithWhen.kt");
}
@TestMetadata("tailInlining.kt")
public void testTailInlining() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailOperations/tailInlining.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/coroutines/unitTypeReturn")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class UnitTypeReturn extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInUnitTypeReturn() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/unitTypeReturn"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("coroutineNonLocalReturn.kt")
public void testCoroutineNonLocalReturn() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/unitTypeReturn/coroutineNonLocalReturn.kt");
}
@TestMetadata("coroutineReturn.kt")
public void testCoroutineReturn() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/unitTypeReturn/coroutineReturn.kt");
}
@TestMetadata("inlineUnitFunction.kt")
public void testInlineUnitFunction() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/unitTypeReturn/inlineUnitFunction.kt");
}
@TestMetadata("interfaceDelegation.kt")
public void testInterfaceDelegation() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/unitTypeReturn/interfaceDelegation.kt");
}
@TestMetadata("suspendNonLocalReturn.kt")
public void testSuspendNonLocalReturn() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/unitTypeReturn/suspendNonLocalReturn.kt");
}
@TestMetadata("suspendReturn.kt")
public void testSuspendReturn() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/unitTypeReturn/suspendReturn.kt");
}
@TestMetadata("unitSafeCall.kt")
public void testUnitSafeCall() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/unitTypeReturn/unitSafeCall.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/coroutines/varSpilling")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class VarSpilling extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInVarSpilling() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/varSpilling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("fakeInlinerVariables.kt")
public void testFakeInlinerVariables() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/varSpilling/fakeInlinerVariables.kt");
}
@TestMetadata("kt19475.kt")
public void testKt19475() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/varSpilling/kt19475.kt");
}
@TestMetadata("kt38925.kt")
public void testKt38925() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/varSpilling/kt38925.kt");
}
@TestMetadata("nullSpilling.kt")
public void testNullSpilling() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/varSpilling/nullSpilling.kt");
}
@TestMetadata("refinedIntTypesAnalysis.kt")
public void testRefinedIntTypesAnalysis() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/varSpilling/refinedIntTypesAnalysis.kt");
}
@TestMetadata("safeCallElvis.kt")
public void testSafeCallElvis() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/varSpilling/safeCallElvis.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/dataClasses")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class DataClasses extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInDataClasses() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("dataClassWithManyFields.kt")
public void testDataClassWithManyFields() throws Exception {
runTest("compiler/testData/codegen/box/dataClasses/dataClassWithManyFields.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("kt5002.kt")
public void testKt5002() throws Exception {
runTest("compiler/testData/codegen/box/dataClasses/kt5002.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("typeParameterWithNonTrivialBound.kt")
public void testTypeParameterWithNonTrivialBound() throws Exception {
runTest("compiler/testData/codegen/box/dataClasses/typeParameterWithNonTrivialBound.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInCopy() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataClasses/copy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInEquals() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataClasses/equals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("alreadyDeclared.kt")
public void testAlreadyDeclared() throws Exception {
runTest("compiler/testData/codegen/box/dataClasses/equals/alreadyDeclared.kt");
}
@TestMetadata("alreadyDeclaredWrongSignature.kt")
public void testAlreadyDeclaredWrongSignature() throws Exception {
runTest("compiler/testData/codegen/box/dataClasses/equals/alreadyDeclaredWrongSignature.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInHashCode() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataClasses/hashCode"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("alreadyDeclared.kt")
public void testAlreadyDeclared() throws Exception {
runTest("compiler/testData/codegen/box/dataClasses/hashCode/alreadyDeclared.kt");
}
@TestMetadata("alreadyDeclaredWrongSignature.kt")
public void testAlreadyDeclaredWrongSignature() throws Exception {
runTest("compiler/testData/codegen/box/dataClasses/hashCode/alreadyDeclaredWrongSignature.kt");
}
@TestMetadata("array.kt")
public void testArray() throws Exception {
runTest("compiler/testData/codegen/box/dataClasses/hashCode/array.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInToString() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataClasses/toString"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("alreadyDeclared.kt")
public void testAlreadyDeclared() throws Exception {
runTest("compiler/testData/codegen/box/dataClasses/toString/alreadyDeclared.kt");
}
@TestMetadata("alreadyDeclaredWrongSignature.kt")
public void testAlreadyDeclaredWrongSignature() throws Exception {
runTest("compiler/testData/codegen/box/dataClasses/toString/alreadyDeclaredWrongSignature.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInDeadCodeElimination() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/deadCodeElimination"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInDefaultArguments() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("kt36853.kt")
public void testKt36853() throws Exception {
runTest("compiler/testData/codegen/box/defaultArguments/kt36853.kt");
}
@TestMetadata("kt36853_fibonacci.kt")
public void testKt36853_fibonacci() throws Exception {
runTest("compiler/testData/codegen/box/defaultArguments/kt36853_fibonacci.kt");
}
@TestMetadata("kt36853_nestedObject.kt")
public void testKt36853_nestedObject() throws Exception {
runTest("compiler/testData/codegen/box/defaultArguments/kt36853_nestedObject.kt");
}
@TestMetadata("kt36853a.kt")
public void testKt36853a() throws Exception {
runTest("compiler/testData/codegen/box/defaultArguments/kt36853a.kt");
}
@TestMetadata("kt36972_companion.kt")
public void testKt36972_companion() throws Exception {
runTest("compiler/testData/codegen/box/defaultArguments/kt36972_companion.kt");
}
@TestMetadata("kt36972_object.kt")
public void testKt36972_object() throws Exception {
runTest("compiler/testData/codegen/box/defaultArguments/kt36972_object.kt");
}
@TestMetadata("kt46189.kt")
public void testKt46189() throws Exception {
runTest("compiler/testData/codegen/box/defaultArguments/kt46189.kt");
}
@TestMetadata("kt47073.kt")
public void testKt47073() throws Exception {
runTest("compiler/testData/codegen/box/defaultArguments/kt47073.kt");
}
@TestMetadata("kt47073_nested.kt")
public void testKt47073_nested() throws Exception {
runTest("compiler/testData/codegen/box/defaultArguments/kt47073_nested.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("recursiveDefaultArguments.kt")
public void testRecursiveDefaultArguments() throws Exception {
runTest("compiler/testData/codegen/box/defaultArguments/recursiveDefaultArguments.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("superCallCheck.kt")
public void testSuperCallCheck() throws Exception {
runTest("compiler/testData/codegen/box/defaultArguments/superCallCheck.kt");
}
@TestMetadata("superCallHandlerOrder.kt")
public void testSuperCallHandlerOrder() throws Exception {
runTest("compiler/testData/codegen/box/defaultArguments/superCallHandlerOrder.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInConstructor() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/defaultArguments/constructor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("checkIfConstructorIsSynthetic.kt")
public void testCheckIfConstructorIsSynthetic() throws Exception {
runTest("compiler/testData/codegen/box/defaultArguments/constructor/checkIfConstructorIsSynthetic.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("manyArgs.kt")
public void testManyArgs() throws Exception {
runTest("compiler/testData/codegen/box/defaultArguments/constructor/manyArgs.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInConvention() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/defaultArguments/convention"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("kt16520_old.kt")
public void testKt16520_old() throws Exception {
runTest("compiler/testData/codegen/box/defaultArguments/convention/kt16520_old.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("abstractClass.kt")
public void testAbstractClass() throws Exception {
runTest("compiler/testData/codegen/box/defaultArguments/function/abstractClass.kt");
}
public void testAllFilesPresentInFunction() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/defaultArguments/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("defaultLambdaInline.kt")
public void testDefaultLambdaInline() throws Exception {
runTest("compiler/testData/codegen/box/defaultArguments/function/defaultLambdaInline.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInPrivate() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/defaultArguments/private"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInSignature() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/defaultArguments/signature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
@TestMetadata("delegatedPropertyInEnum.kt")
public void ignoreDelegatedPropertyInEnum() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/delegatedPropertyInEnum.kt");
}
@TestMetadata("genericDelegateUncheckedCast2.kt")
public void ignoreGenericDelegateUncheckedCast2() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/genericDelegateUncheckedCast2.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("accessTopLevelDelegatedPropertyInClinit.kt")
public void testAccessTopLevelDelegatedPropertyInClinit() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/accessTopLevelDelegatedPropertyInClinit.kt");
}
public void testAllFilesPresentInDelegatedProperty() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("delegateToAnother.kt")
public void testDelegateToAnother() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnother.kt");
}
@TestMetadata("delegateToAnotherCustom.kt")
public void testDelegateToAnotherCustom() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnotherCustom.kt");
}
@TestMetadata("delegateToAnotherMutable.kt")
public void testDelegateToAnotherMutable() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnotherMutable.kt");
}
@TestMetadata("delegateToAnotherReflection.kt")
public void testDelegateToAnotherReflection() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnotherReflection.kt");
}
@TestMetadata("delegateToAnotherWithSideEffects.kt")
public void testDelegateToAnotherWithSideEffects() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnotherWithSideEffects.kt");
}
@TestMetadata("delegateToConstructorParameter.kt")
public void testDelegateToConstructorParameter() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToConstructorParameter.kt");
}
@TestMetadata("delegateToGenericJavaProperty.kt")
public void testDelegateToGenericJavaProperty() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToGenericJavaProperty.kt");
}
@TestMetadata("delegateToOpenProperty.kt")
public void testDelegateToOpenProperty() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToOpenProperty.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("functionRefDelefate.kt")
public void testFunctionRefDelefate() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/functionRefDelefate.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("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("javaDelegateTopLevel.kt")
public void testJavaDelegateTopLevel() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/javaDelegateTopLevel.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("kt45431.kt")
public void testKt45431() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/kt45431.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("privateInSubClass.kt")
public void testPrivateInSubClass() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/privateInSubClass.kt");
}
@TestMetadata("privateSetterKPropertyIsNotMutable.kt")
public void testPrivateSetterKPropertyIsNotMutable() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/privateSetterKPropertyIsNotMutable.kt");
}
@TestMetadata("privateVar.kt")
public void testPrivateVar() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/privateVar.kt");
}
@TestMetadata("propertyMetadataShouldBeCached.kt")
public void testPropertyMetadataShouldBeCached() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/propertyMetadataShouldBeCached.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("stackOverflowOnCallFromGetValue.kt")
public void testStackOverflowOnCallFromGetValue() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/stackOverflowOnCallFromGetValue.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInLocal() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/local"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("useReflectionForLocalVarInLambda.kt")
public void testUseReflectionForLocalVarInLambda() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/local/useReflectionForLocalVarInLambda.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class OptimizedDelegatedProperties extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInOptimizedDelegatedProperties() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("kt40815.kt")
public void testKt40815() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties/kt40815.kt");
}
@TestMetadata("kt40815_2.kt")
public void testKt40815_2() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties/kt40815_2.kt");
}
@TestMetadata("kt40815_3.kt")
public void testKt40815_3() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties/kt40815_3.kt");
}
@TestMetadata("kt42253.kt")
public void testKt42253() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties/kt42253.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInProvideDelegate() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("genericDelegateWithNoAdditionalInfo.kt")
public void testGenericDelegateWithNoAdditionalInfo() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/genericDelegateWithNoAdditionalInfo.kt");
}
@TestMetadata("genericProvideDelegateOnNumberLiteral.kt")
public void testGenericProvideDelegateOnNumberLiteral() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/genericProvideDelegateOnNumberLiteral.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("jvmStaticInObject.kt")
public void testJvmStaticInObject() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/jvmStaticInObject.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("kt39588.kt")
public void testKt39588() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/kt39588.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("provideDelegateByExtensionFunction.kt")
public void testProvideDelegateByExtensionFunction() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/provideDelegateByExtensionFunction.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/delegation")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Delegation extends AbstractLightAnalysisModeTest {
@TestMetadata("kt30102_comparable.kt")
public void ignoreKt30102_comparable() throws Exception {
runTest("compiler/testData/codegen/box/delegation/kt30102_comparable.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInDelegation() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("byMiddleInterface.kt")
public void testByMiddleInterface() throws Exception {
runTest("compiler/testData/codegen/box/delegation/byMiddleInterface.kt");
}
@TestMetadata("defaultOverride.kt")
public void testDefaultOverride() throws Exception {
runTest("compiler/testData/codegen/box/delegation/defaultOverride.kt");
}
@TestMetadata("delegationAndInheritanceFromJava.kt")
public void testDelegationAndInheritanceFromJava() throws Exception {
runTest("compiler/testData/codegen/box/delegation/delegationAndInheritanceFromJava.kt");
}
@TestMetadata("delegationDifferentModule.kt")
public void testDelegationDifferentModule() throws Exception {
runTest("compiler/testData/codegen/box/delegation/delegationDifferentModule.kt");
}
@TestMetadata("delegationToMap.kt")
public void testDelegationToMap() throws Exception {
runTest("compiler/testData/codegen/box/delegation/delegationToMap.kt");
}
@TestMetadata("delegationToVal.kt")
public void testDelegationToVal() throws Exception {
runTest("compiler/testData/codegen/box/delegation/delegationToVal.kt");
}
@TestMetadata("delegationWithPrivateConstructor.kt")
public void testDelegationWithPrivateConstructor() throws Exception {
runTest("compiler/testData/codegen/box/delegation/delegationWithPrivateConstructor.kt");
}
@TestMetadata("diamond.kt")
public void testDiamond() throws Exception {
runTest("compiler/testData/codegen/box/delegation/diamond.kt");
}
@TestMetadata("diamond2.kt")
public void testDiamond2() throws Exception {
runTest("compiler/testData/codegen/box/delegation/diamond2.kt");
}
@TestMetadata("differentModules.kt")
public void testDifferentModules() throws Exception {
runTest("compiler/testData/codegen/box/delegation/differentModules.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("inClassDeclaration.kt")
public void testInClassDeclaration() throws Exception {
runTest("compiler/testData/codegen/box/delegation/inClassDeclaration.kt");
}
@TestMetadata("inDataClass.kt")
public void testInDataClass() throws Exception {
runTest("compiler/testData/codegen/box/delegation/inDataClass.kt");
}
@TestMetadata("kt8154.kt")
public void testKt8154() throws Exception {
runTest("compiler/testData/codegen/box/delegation/kt8154.kt");
}
@TestMetadata("mixed.kt")
public void testMixed() throws Exception {
runTest("compiler/testData/codegen/box/delegation/mixed.kt");
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("compiler/testData/codegen/box/delegation/simple.kt");
}
@TestMetadata("simple1.0.kt")
public void testSimple1_0() throws Exception {
runTest("compiler/testData/codegen/box/delegation/simple1.0.kt");
}
@TestMetadata("viaTypeAlias.kt")
public void testViaTypeAlias() throws Exception {
runTest("compiler/testData/codegen/box/delegation/viaTypeAlias.kt");
}
@TestMetadata("withDefaultParameters.kt")
public void testWithDefaultParameters() throws Exception {
runTest("compiler/testData/codegen/box/delegation/withDefaultParameters.kt");
}
@TestMetadata("withDefaultsMultipleFilesOrder.kt")
public void testWithDefaultsMultipleFilesOrder() throws Exception {
runTest("compiler/testData/codegen/box/delegation/withDefaultsMultipleFilesOrder.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/deprecated")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Deprecated extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInDeprecated() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/deprecated"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("deprecatedSinceKotlin.kt")
public void testDeprecatedSinceKotlin() throws Exception {
runTest("compiler/testData/codegen/box/deprecated/deprecatedSinceKotlin.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/destructuringDeclInLambdaParam")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class DestructuringDeclInLambdaParam extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInDestructuringDeclInLambdaParam() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/destructuringDeclInLambdaParam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInDiagnostics() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/diagnostics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("compiler/testData/codegen/box/diagnostics/functions")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Functions extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInFunctions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/diagnostics/functions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("compiler/testData/codegen/box/diagnostics/functions/inference")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Inference extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInInference() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/diagnostics/functions/inference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInInvoke() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/diagnostics/functions/invoke"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class OnObjects extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInOnObjects() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
@TestMetadata("recursiveCallInInlineLambda.kt")
public void ignoreRecursiveCallInInlineLambda() throws Exception {
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambda.kt");
}
@TestMetadata("recursiveCallInInlineLambdaWithCapture.kt")
public void ignoreRecursiveCallInInlineLambdaWithCapture() throws Exception {
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambdaWithCapture.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInTailRecursion() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/diagnostics/functions/tailRecursion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("defaultArgsWithSideEffectsOld.kt")
public void testDefaultArgsWithSideEffectsOld() throws Exception {
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/defaultArgsWithSideEffectsOld.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInVararg() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/diagnostics/vararg"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("kt4172.kt")
public void testKt4172() throws Exception {
runTest("compiler/testData/codegen/box/diagnostics/vararg/kt4172.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/directInvokeOptimization")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class DirectInvokeOptimization extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInDirectInvokeOptimization() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/directInvokeOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("boundInnerContructorRef.kt")
public void testBoundInnerContructorRef() throws Exception {
runTest("compiler/testData/codegen/box/directInvokeOptimization/boundInnerContructorRef.kt");
}
@TestMetadata("boundMemberRef.kt")
public void testBoundMemberRef() throws Exception {
runTest("compiler/testData/codegen/box/directInvokeOptimization/boundMemberRef.kt");
}
@TestMetadata("capturingLambda.kt")
public void testCapturingLambda() throws Exception {
runTest("compiler/testData/codegen/box/directInvokeOptimization/capturingLambda.kt");
}
@TestMetadata("contructorRef.kt")
public void testContructorRef() throws Exception {
runTest("compiler/testData/codegen/box/directInvokeOptimization/contructorRef.kt");
}
@TestMetadata("nestedLambdas.kt")
public void testNestedLambdas() throws Exception {
runTest("compiler/testData/codegen/box/directInvokeOptimization/nestedLambdas.kt");
}
@TestMetadata("simpleAnonymousFun.kt")
public void testSimpleAnonymousFun() throws Exception {
runTest("compiler/testData/codegen/box/directInvokeOptimization/simpleAnonymousFun.kt");
}
@TestMetadata("simpleFunRef.kt")
public void testSimpleFunRef() throws Exception {
runTest("compiler/testData/codegen/box/directInvokeOptimization/simpleFunRef.kt");
}
@TestMetadata("simpleLambda.kt")
public void testSimpleLambda() throws Exception {
runTest("compiler/testData/codegen/box/directInvokeOptimization/simpleLambda.kt");
}
@TestMetadata("unboundInnerContructorRef.kt")
public void testUnboundInnerContructorRef() throws Exception {
runTest("compiler/testData/codegen/box/directInvokeOptimization/unboundInnerContructorRef.kt");
}
@TestMetadata("unboundMemberRef.kt")
public void testUnboundMemberRef() throws Exception {
runTest("compiler/testData/codegen/box/directInvokeOptimization/unboundMemberRef.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/elvis")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Elvis extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInElvis() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/elvis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("ofNonNullableResultType.kt")
public void testOfNonNullableResultType() throws Exception {
runTest("compiler/testData/codegen/box/elvis/ofNonNullableResultType.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 AbstractLightAnalysisModeTest {
@TestMetadata("bigEnum.kt")
public void ignoreBigEnum() throws Exception {
runTest("compiler/testData/codegen/box/enum/bigEnum.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, 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 {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/enum"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("annotatedParameter.kt")
public void testAnnotatedParameter() throws Exception {
runTest("compiler/testData/codegen/box/enum/annotatedParameter.kt");
}
@TestMetadata("annotatedParameter2.kt")
public void testAnnotatedParameter2() throws Exception {
runTest("compiler/testData/codegen/box/enum/annotatedParameter2.kt");
}
@TestMetadata("asReturnExpression.kt")
public void testAsReturnExpression() throws Exception {
runTest("compiler/testData/codegen/box/enum/asReturnExpression.kt");
}
@TestMetadata("classForEnumEntry.kt")
public void testClassForEnumEntry() throws Exception {
runTest("compiler/testData/codegen/box/enum/classForEnumEntry.kt");
}
@TestMetadata("companionAccessingEnumValue.kt")
public void testCompanionAccessingEnumValue() throws Exception {
runTest("compiler/testData/codegen/box/enum/companionAccessingEnumValue.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("declaringClassOnEnumObject.kt")
public void testDeclaringClassOnEnumObject() throws Exception {
runTest("compiler/testData/codegen/box/enum/declaringClassOnEnumObject.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("enumConstructorParameterClashWithDefaults.kt")
public void testEnumConstructorParameterClashWithDefaults() throws Exception {
runTest("compiler/testData/codegen/box/enum/enumConstructorParameterClashWithDefaults.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("enumValueOf.kt")
public void testEnumValueOf() throws Exception {
runTest("compiler/testData/codegen/box/enum/enumValueOf.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("initEntriesInCompanionObject.kt")
public void testInitEntriesInCompanionObject() throws Exception {
runTest("compiler/testData/codegen/box/enum/initEntriesInCompanionObject.kt");
}
@TestMetadata("initEntriesInCompanionObject2.kt")
public void testInitEntriesInCompanionObject2() throws Exception {
runTest("compiler/testData/codegen/box/enum/initEntriesInCompanionObject2.kt");
}
@TestMetadata("initEntriesInValueOf.kt")
public void testInitEntriesInValueOf() throws Exception {
runTest("compiler/testData/codegen/box/enum/initEntriesInValueOf.kt");
}
@TestMetadata("initEnumAfterObjectAccess.kt")
public void testInitEnumAfterObjectAccess() throws Exception {
runTest("compiler/testData/codegen/box/enum/initEnumAfterObjectAccess.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("javaClassWithNestedEnum.kt")
public void testJavaClassWithNestedEnum() throws Exception {
runTest("compiler/testData/codegen/box/enum/javaClassWithNestedEnum.kt");
}
@TestMetadata("javaEnumValues.kt")
public void testJavaEnumValues() throws Exception {
runTest("compiler/testData/codegen/box/enum/javaEnumValues.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("kt38996.kt")
public void testKt38996() throws Exception {
runTest("compiler/testData/codegen/box/enum/kt38996.kt");
}
@TestMetadata("kt44744.kt")
public void testKt44744() throws Exception {
runTest("compiler/testData/codegen/box/enum/kt44744.kt");
}
@TestMetadata("kt44744_innerClass.kt")
public void testKt44744_innerClass() throws Exception {
runTest("compiler/testData/codegen/box/enum/kt44744_innerClass.kt");
}
@TestMetadata("kt46605.kt")
public void testKt46605() throws Exception {
runTest("compiler/testData/codegen/box/enum/kt46605.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("modifierFlags.kt")
public void testModifierFlags() throws Exception {
runTest("compiler/testData/codegen/box/enum/modifierFlags.kt");
}
@TestMetadata("nameClashWithCompanion.kt")
public void testNameClashWithCompanion() throws Exception {
runTest("compiler/testData/codegen/box/enum/nameClashWithCompanion.kt");
}
@TestMetadata("nameConflict.kt")
public void testNameConflict() throws Exception {
runTest("compiler/testData/codegen/box/enum/nameConflict.kt");
}
@TestMetadata("noClassForSimpleEnum.kt")
public void testNoClassForSimpleEnum() throws Exception {
runTest("compiler/testData/codegen/box/enum/noClassForSimpleEnum.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("overloadedEnumValues.kt")
public void testOverloadedEnumValues() throws Exception {
runTest("compiler/testData/codegen/box/enum/overloadedEnumValues.kt");
}
@TestMetadata("overloadedEnumValuesStatic.kt")
public void testOverloadedEnumValuesStatic() throws Exception {
runTest("compiler/testData/codegen/box/enum/overloadedEnumValuesStatic.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("simpleJavaEnum.kt")
public void testSimpleJavaEnum() throws Exception {
runTest("compiler/testData/codegen/box/enum/simpleJavaEnum.kt");
}
@TestMetadata("simpleJavaEnumWithFunction.kt")
public void testSimpleJavaEnumWithFunction() throws Exception {
runTest("compiler/testData/codegen/box/enum/simpleJavaEnumWithFunction.kt");
}
@TestMetadata("simpleJavaEnumWithStaticImport.kt")
public void testSimpleJavaEnumWithStaticImport() throws Exception {
runTest("compiler/testData/codegen/box/enum/simpleJavaEnumWithStaticImport.kt");
}
@TestMetadata("simpleJavaInnerEnum.kt")
public void testSimpleJavaInnerEnum() throws Exception {
runTest("compiler/testData/codegen/box/enum/simpleJavaInnerEnum.kt");
}
@TestMetadata("sortEnumEntries.kt")
public void testSortEnumEntries() throws Exception {
runTest("compiler/testData/codegen/box/enum/sortEnumEntries.kt");
}
@TestMetadata("staticField.kt")
public void testStaticField() throws Exception {
runTest("compiler/testData/codegen/box/enum/staticField.kt");
}
@TestMetadata("staticMethod.kt")
public void testStaticMethod() throws Exception {
runTest("compiler/testData/codegen/box/enum/staticMethod.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInDefaultCtor() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/enum/defaultCtor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInEvaluate() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/evaluate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("char.kt")
public void testChar() throws Exception {
runTest("compiler/testData/codegen/box/evaluate/char.kt");
}
@TestMetadata("divide.kt")
public void testDivide() throws Exception {
runTest("compiler/testData/codegen/box/evaluate/divide.kt");
}
@TestMetadata("floorDiv.kt")
public void testFloorDiv() throws Exception {
runTest("compiler/testData/codegen/box/evaluate/floorDiv.kt");
}
@TestMetadata("intrinsics.kt")
public void testIntrinsics() throws Exception {
runTest("compiler/testData/codegen/box/evaluate/intrinsics.kt");
}
@TestMetadata("kt9443.kt")
public void testKt9443() throws Exception {
runTest("compiler/testData/codegen/box/evaluate/kt9443.kt");
}
@TestMetadata("maxValue.kt")
public void testMaxValue() throws Exception {
runTest("compiler/testData/codegen/box/evaluate/maxValue.kt");
}
@TestMetadata("maxValueByte.kt")
public void testMaxValueByte() throws Exception {
runTest("compiler/testData/codegen/box/evaluate/maxValueByte.kt");
}
@TestMetadata("maxValueInt.kt")
public void testMaxValueInt() throws Exception {
runTest("compiler/testData/codegen/box/evaluate/maxValueInt.kt");
}
@TestMetadata("minus.kt")
public void testMinus() throws Exception {
runTest("compiler/testData/codegen/box/evaluate/minus.kt");
}
@TestMetadata("mod.kt")
public void testMod() throws Exception {
runTest("compiler/testData/codegen/box/evaluate/mod.kt");
}
@TestMetadata("multiply.kt")
public void testMultiply() throws Exception {
runTest("compiler/testData/codegen/box/evaluate/multiply.kt");
}
@TestMetadata("parenthesized.kt")
public void testParenthesized() throws Exception {
runTest("compiler/testData/codegen/box/evaluate/parenthesized.kt");
}
@TestMetadata("plus.kt")
public void testPlus() throws Exception {
runTest("compiler/testData/codegen/box/evaluate/plus.kt");
}
@TestMetadata("rem.kt")
public void testRem() throws Exception {
runTest("compiler/testData/codegen/box/evaluate/rem.kt");
}
@TestMetadata("simpleCallBinary.kt")
public void testSimpleCallBinary() throws Exception {
runTest("compiler/testData/codegen/box/evaluate/simpleCallBinary.kt");
}
@TestMetadata("unaryMinus.kt")
public void testUnaryMinus() throws Exception {
runTest("compiler/testData/codegen/box/evaluate/unaryMinus.kt");
}
@TestMetadata("unaryPlus.kt")
public void testUnaryPlus() throws Exception {
runTest("compiler/testData/codegen/box/evaluate/unaryPlus.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/exclExcl")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ExclExcl extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInExclExcl() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/exclExcl"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInExtensionFunctions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/extensionFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("classMethodCallExtensionSuper.kt")
public void testClassMethodCallExtensionSuper() throws Exception {
runTest("compiler/testData/codegen/box/extensionFunctions/classMethodCallExtensionSuper.kt");
}
@TestMetadata("defaultMethodInterfaceCallExtensionSuper.kt")
public void testDefaultMethodInterfaceCallExtensionSuper() throws Exception {
runTest("compiler/testData/codegen/box/extensionFunctions/defaultMethodInterfaceCallExtensionSuper.kt");
}
@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("memberExtensionEqualsHashCodeToStringInInterface.kt")
public void testMemberExtensionEqualsHashCodeToStringInInterface() throws Exception {
runTest("compiler/testData/codegen/box/extensionFunctions/memberExtensionEqualsHashCodeToStringInInterface.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("accessorForPrivateSetter.kt")
public void testAccessorForPrivateSetter() throws Exception {
runTest("compiler/testData/codegen/box/extensionProperties/accessorForPrivateSetter.kt");
}
public void testAllFilesPresentInExtensionProperties() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/extensionProperties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("genericValForPrimitiveType.kt")
public void testGenericValForPrimitiveType() throws Exception {
runTest("compiler/testData/codegen/box/extensionProperties/genericValForPrimitiveType.kt");
}
@TestMetadata("genericValMultipleUpperBounds.kt")
public void testGenericValMultipleUpperBounds() throws Exception {
runTest("compiler/testData/codegen/box/extensionProperties/genericValMultipleUpperBounds.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("kt46952.kt")
public void testKt46952() throws Exception {
runTest("compiler/testData/codegen/box/extensionProperties/kt46952.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInExternal() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/external"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("jvmStaticExternal.kt")
public void testJvmStaticExternal() throws Exception {
runTest("compiler/testData/codegen/box/external/jvmStaticExternal.kt");
}
@TestMetadata("jvmStaticExternalPrivate.kt")
public void testJvmStaticExternalPrivate() throws Exception {
runTest("compiler/testData/codegen/box/external/jvmStaticExternalPrivate.kt");
}
@TestMetadata("withDefaultArg.kt")
public void testWithDefaultArg() throws Exception {
runTest("compiler/testData/codegen/box/external/withDefaultArg.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/fakeOverride")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class FakeOverride extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInFakeOverride() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fakeOverride"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("privateFakeOverrides0.kt")
public void testPrivateFakeOverrides0() throws Exception {
runTest("compiler/testData/codegen/box/fakeOverride/privateFakeOverrides0.kt");
}
@TestMetadata("privateFakeOverrides1.kt")
public void testPrivateFakeOverrides1() throws Exception {
runTest("compiler/testData/codegen/box/fakeOverride/privateFakeOverrides1.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("varianceOverload.kt")
public void testVarianceOverload() throws Exception {
runTest("compiler/testData/codegen/box/fakeOverride/varianceOverload.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/fieldRename")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class FieldRename extends AbstractLightAnalysisModeTest {
@TestMetadata("jvmFieldNoClash1.kt")
public void ignoreJvmFieldNoClash1() throws Exception {
runTest("compiler/testData/codegen/box/fieldRename/jvmFieldNoClash1.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInFieldRename() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fieldRename"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("jvmFieldNoClash2.kt")
public void testJvmFieldNoClash2() throws Exception {
runTest("compiler/testData/codegen/box/fieldRename/jvmFieldNoClash2.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/finally")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Finally extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInFinally() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/finally"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("kt31923_wrong.kt")
public void testKt31923_wrong() throws Exception {
runTest("compiler/testData/codegen/box/finally/kt31923_wrong.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/fir")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Fir extends AbstractLightAnalysisModeTest {
@TestMetadata("SuspendExtension.kt")
public void ignoreSuspendExtension() throws Exception {
runTest("compiler/testData/codegen/box/fir/SuspendExtension.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInFir() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("ClassBuilder.kt")
public void testClassBuilder() throws Exception {
runTest("compiler/testData/codegen/box/fir/ClassBuilder.kt");
}
@TestMetadata("classCanNotBeCastedToVoid.kt")
public void testClassCanNotBeCastedToVoid() throws Exception {
runTest("compiler/testData/codegen/box/fir/classCanNotBeCastedToVoid.kt");
}
@TestMetadata("ConstValAccess.kt")
public void testConstValAccess() throws Exception {
runTest("compiler/testData/codegen/box/fir/ConstValAccess.kt");
}
@TestMetadata("ExtensionAlias.kt")
public void testExtensionAlias() throws Exception {
runTest("compiler/testData/codegen/box/fir/ExtensionAlias.kt");
}
@TestMetadata("FakeOverrideBuilder.kt")
public void testFakeOverrideBuilder() throws Exception {
runTest("compiler/testData/codegen/box/fir/FakeOverrideBuilder.kt");
}
@TestMetadata("falsePositiveBoundSmartcast.kt")
public void testFalsePositiveBoundSmartcast() throws Exception {
runTest("compiler/testData/codegen/box/fir/falsePositiveBoundSmartcast.kt");
}
@TestMetadata("Fir2IrClassifierStorage.kt")
public void testFir2IrClassifierStorage() throws Exception {
runTest("compiler/testData/codegen/box/fir/Fir2IrClassifierStorage.kt");
}
@TestMetadata("incorrectBytecodeWithEnhancedNullability.kt")
public void testIncorrectBytecodeWithEnhancedNullability() throws Exception {
runTest("compiler/testData/codegen/box/fir/incorrectBytecodeWithEnhancedNullability.kt");
}
@TestMetadata("IrBuiltIns.kt")
public void testIrBuiltIns() throws Exception {
runTest("compiler/testData/codegen/box/fir/IrBuiltIns.kt");
}
@TestMetadata("KotlinDocumentationProvider.kt")
public void testKotlinDocumentationProvider() throws Exception {
runTest("compiler/testData/codegen/box/fir/KotlinDocumentationProvider.kt");
}
@TestMetadata("LookupTags.kt")
public void testLookupTags() throws Exception {
runTest("compiler/testData/codegen/box/fir/LookupTags.kt");
}
@TestMetadata("NameHighlighter.kt")
public void testNameHighlighter() throws Exception {
runTest("compiler/testData/codegen/box/fir/NameHighlighter.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/fullJdk")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class FullJdk extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInFullJdk() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fullJdk"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("charBuffer.kt")
public void testCharBuffer() throws Exception {
runTest("compiler/testData/codegen/box/fullJdk/charBuffer.kt");
}
@TestMetadata("ifInWhile.kt")
public void testIfInWhile() throws Exception {
runTest("compiler/testData/codegen/box/fullJdk/ifInWhile.kt");
}
@TestMetadata("intCountDownLatchExtension.kt")
public void testIntCountDownLatchExtension() throws Exception {
runTest("compiler/testData/codegen/box/fullJdk/intCountDownLatchExtension.kt");
}
@TestMetadata("kt31757.kt")
public void testKt31757() throws Exception {
runTest("compiler/testData/codegen/box/fullJdk/kt31757.kt");
}
@TestMetadata("kt434.kt")
public void testKt434() throws Exception {
runTest("compiler/testData/codegen/box/fullJdk/kt434.kt");
}
@TestMetadata("kt46540.kt")
public void testKt46540() throws Exception {
runTest("compiler/testData/codegen/box/fullJdk/kt46540.kt");
}
@TestMetadata("platformTypeAssertionStackTrace.kt")
public void testPlatformTypeAssertionStackTrace() throws Exception {
runTest("compiler/testData/codegen/box/fullJdk/platformTypeAssertionStackTrace.kt");
}
@TestMetadata("compiler/testData/codegen/box/fullJdk/native")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Native extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInNative() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fullJdk/native"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("nativePropertyAccessors.kt")
public void testNativePropertyAccessors() throws Exception {
runTest("compiler/testData/codegen/box/fullJdk/native/nativePropertyAccessors.kt");
}
@TestMetadata("simpleNative.kt")
public void testSimpleNative() throws Exception {
runTest("compiler/testData/codegen/box/fullJdk/native/simpleNative.kt");
}
@TestMetadata("topLevel.kt")
public void testTopLevel() throws Exception {
runTest("compiler/testData/codegen/box/fullJdk/native/topLevel.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/fullJdk/regressions")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Regressions extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInRegressions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fullJdk/regressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("kt15112.kt")
public void testKt15112() throws Exception {
runTest("compiler/testData/codegen/box/fullJdk/regressions/kt15112.kt");
}
@TestMetadata("kt1770.kt")
public void testKt1770() throws Exception {
runTest("compiler/testData/codegen/box/fullJdk/regressions/kt1770.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/funInterface")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class FunInterface extends AbstractLightAnalysisModeTest {
@TestMetadata("kt45444_privateFunInterface.kt")
public void ignoreKt45444_privateFunInterface() throws Exception {
runTest("compiler/testData/codegen/box/funInterface/kt45444_privateFunInterface.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInFunInterface() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/funInterface"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("basicFunInterfaceConversionClash.kt")
public void testBasicFunInterfaceConversionClash() throws Exception {
runTest("compiler/testData/codegen/box/funInterface/basicFunInterfaceConversionClash.kt");
}
@TestMetadata("castFromAny.kt")
public void testCastFromAny() throws Exception {
runTest("compiler/testData/codegen/box/funInterface/castFromAny.kt");
}
@TestMetadata("contravariantIntersectionType.kt")
public void testContravariantIntersectionType() throws Exception {
runTest("compiler/testData/codegen/box/funInterface/contravariantIntersectionType.kt");
}
@TestMetadata("contravariantIntersectionTypeWithNonTrivialCommonSupertype.kt")
public void testContravariantIntersectionTypeWithNonTrivialCommonSupertype() throws Exception {
runTest("compiler/testData/codegen/box/funInterface/contravariantIntersectionTypeWithNonTrivialCommonSupertype.kt");
}
@TestMetadata("contravariantIntersectionTypeWithNonTrivialCommonSupertype2.kt")
public void testContravariantIntersectionTypeWithNonTrivialCommonSupertype2() throws Exception {
runTest("compiler/testData/codegen/box/funInterface/contravariantIntersectionTypeWithNonTrivialCommonSupertype2.kt");
}
@TestMetadata("funConversionInVararg.kt")
public void testFunConversionInVararg() throws Exception {
runTest("compiler/testData/codegen/box/funInterface/funConversionInVararg.kt");
}
@TestMetadata("funInterfaceCallInLambda.kt")
public void testFunInterfaceCallInLambda() throws Exception {
runTest("compiler/testData/codegen/box/funInterface/funInterfaceCallInLambda.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("irrelevantPrivateDeclarations.kt")
public void testIrrelevantPrivateDeclarations() throws Exception {
runTest("compiler/testData/codegen/box/funInterface/irrelevantPrivateDeclarations.kt");
}
@TestMetadata("kt44827_funInterface.kt")
public void testKt44827_funInterface() throws Exception {
runTest("compiler/testData/codegen/box/funInterface/kt44827_funInterface.kt");
}
@TestMetadata("kt46512_indyFunInterfaceOverCallableReference.kt")
public void testKt46512_indyFunInterfaceOverCallableReference() throws Exception {
runTest("compiler/testData/codegen/box/funInterface/kt46512_indyFunInterfaceOverCallableReference.kt");
}
@TestMetadata("multimodule.kt")
public void testMultimodule() throws Exception {
runTest("compiler/testData/codegen/box/funInterface/multimodule.kt");
}
@TestMetadata("noOptimizedCallableReferences.kt")
public void testNoOptimizedCallableReferences() throws Exception {
runTest("compiler/testData/codegen/box/funInterface/noOptimizedCallableReferences.kt");
}
@TestMetadata("nonAbstractMethod.kt")
public void testNonAbstractMethod() throws Exception {
runTest("compiler/testData/codegen/box/funInterface/nonAbstractMethod.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("samConversionToGenericInterfaceInGenericFun.kt")
public void testSamConversionToGenericInterfaceInGenericFun() throws Exception {
runTest("compiler/testData/codegen/box/funInterface/samConversionToGenericInterfaceInGenericFun.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInEquality() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/funInterface/equality"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInFunctions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/functions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("constructor.kt")
public void testConstructor() throws Exception {
runTest("compiler/testData/codegen/box/functions/constructor.kt");
}
@TestMetadata("dataLocalVariable.kt")
public void testDataLocalVariable() throws Exception {
runTest("compiler/testData/codegen/box/functions/dataLocalVariable.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("kt47449.kt")
public void testKt47449() throws Exception {
runTest("compiler/testData/codegen/box/functions/kt47449.kt");
}
@TestMetadata("kt47527.kt")
public void testKt47527() throws Exception {
runTest("compiler/testData/codegen/box/functions/kt47527.kt");
}
@TestMetadata("kt48058.kt")
public void testKt48058() throws Exception {
runTest("compiler/testData/codegen/box/functions/kt48058.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("max.kt")
public void testMax() throws Exception {
runTest("compiler/testData/codegen/box/functions/max.kt");
}
@TestMetadata("mutualInline.kt")
public void testMutualInline() throws Exception {
runTest("compiler/testData/codegen/box/functions/mutualInline.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("referencesStaticInnerClassMethod.kt")
public void testReferencesStaticInnerClassMethod() throws Exception {
runTest("compiler/testData/codegen/box/functions/referencesStaticInnerClassMethod.kt");
}
@TestMetadata("referencesStaticInnerClassMethodL2.kt")
public void testReferencesStaticInnerClassMethodL2() throws Exception {
runTest("compiler/testData/codegen/box/functions/referencesStaticInnerClassMethodL2.kt");
}
@TestMetadata("typeParameterAsUpperBound.kt")
public void testTypeParameterAsUpperBound() throws Exception {
runTest("compiler/testData/codegen/box/functions/typeParameterAsUpperBound.kt");
}
@TestMetadata("typeParametersInLocalFunction.kt")
public void testTypeParametersInLocalFunction() throws Exception {
runTest("compiler/testData/codegen/box/functions/typeParametersInLocalFunction.kt");
}
@TestMetadata("unrelatedUpperBounds.kt")
public void testUnrelatedUpperBounds() throws Exception {
runTest("compiler/testData/codegen/box/functions/unrelatedUpperBounds.kt");
}
@TestMetadata("compiler/testData/codegen/box/functions/bigArity")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class BigArity extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInBigArity() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/functions/bigArity"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("callFromJava.kt")
public void testCallFromJava() throws Exception {
runTest("compiler/testData/codegen/box/functions/bigArity/callFromJava.kt");
}
@TestMetadata("callFunViaVararg.kt")
public void testCallFunViaVararg() throws Exception {
runTest("compiler/testData/codegen/box/functions/bigArity/callFunViaVararg.kt");
}
@TestMetadata("callWithIncorrectNumberOfArguments.kt")
public void testCallWithIncorrectNumberOfArguments() throws Exception {
runTest("compiler/testData/codegen/box/functions/bigArity/callWithIncorrectNumberOfArguments.kt");
}
@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("javaLambda.kt")
public void testJavaLambda() throws Exception {
runTest("compiler/testData/codegen/box/functions/bigArity/javaLambda.kt");
}
@TestMetadata("nestedBigArityFunCalls.kt")
public void testNestedBigArityFunCalls() throws Exception {
runTest("compiler/testData/codegen/box/functions/bigArity/nestedBigArityFunCalls.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInFunctionExpression() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/functions/functionExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInInvoke() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/functions/invoke"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("invokeOnSyntheticProperty.kt")
public void testInvokeOnSyntheticProperty() throws Exception {
runTest("compiler/testData/codegen/box/functions/invoke/invokeOnSyntheticProperty.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInLocalFunctions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/functions/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("boundTypeParameterInSupertype.kt")
public void testBoundTypeParameterInSupertype() throws Exception {
runTest("compiler/testData/codegen/box/functions/localFunctions/boundTypeParameterInSupertype.kt");
}
@TestMetadata("boundTypeParameterInVararg.kt")
public void testBoundTypeParameterInVararg() throws Exception {
runTest("compiler/testData/codegen/box/functions/localFunctions/boundTypeParameterInVararg.kt");
}
@TestMetadata("callBetweenLocalFunctions.kt")
public void testCallBetweenLocalFunctions() throws Exception {
runTest("compiler/testData/codegen/box/functions/localFunctions/callBetweenLocalFunctions.kt");
}
@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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInHashPMap() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/hashPMap"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("empty.kt")
public void testEmpty() throws Exception {
runTest("compiler/testData/codegen/box/hashPMap/empty.kt");
}
@TestMetadata("manyNumbers.kt")
public void testManyNumbers() throws Exception {
runTest("compiler/testData/codegen/box/hashPMap/manyNumbers.kt");
}
@TestMetadata("rewriteWithDifferent.kt")
public void testRewriteWithDifferent() throws Exception {
runTest("compiler/testData/codegen/box/hashPMap/rewriteWithDifferent.kt");
}
@TestMetadata("rewriteWithEqual.kt")
public void testRewriteWithEqual() throws Exception {
runTest("compiler/testData/codegen/box/hashPMap/rewriteWithEqual.kt");
}
@TestMetadata("simplePlusGet.kt")
public void testSimplePlusGet() throws Exception {
runTest("compiler/testData/codegen/box/hashPMap/simplePlusGet.kt");
}
@TestMetadata("simplePlusMinus.kt")
public void testSimplePlusMinus() throws Exception {
runTest("compiler/testData/codegen/box/hashPMap/simplePlusMinus.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/ieee754")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Ieee754 extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInIeee754() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ieee754"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("anyToReal.kt")
public void testAnyToReal() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/anyToReal.kt");
}
@TestMetadata("anyToReal_AgainstCompiled.kt")
public void testAnyToReal_AgainstCompiled() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/anyToReal_AgainstCompiled.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("comparableTypeCast_AgainstCompiled.kt")
public void testComparableTypeCast_AgainstCompiled() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/comparableTypeCast_AgainstCompiled.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("double.kt")
public void testDouble() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/double.kt");
}
@TestMetadata("equalsDouble.kt")
public void testEqualsDouble() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/equalsDouble.kt");
}
@TestMetadata("equalsDouble_properIeeeComparisons.kt")
public void testEqualsDouble_properIeeeComparisons() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/equalsDouble_properIeeeComparisons.kt");
}
@TestMetadata("equalsFloat.kt")
public void testEqualsFloat() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/equalsFloat.kt");
}
@TestMetadata("equalsFloat_properIeeeComparisons.kt")
public void testEqualsFloat_properIeeeComparisons() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/equalsFloat_properIeeeComparisons.kt");
}
@TestMetadata("equalsNaN.kt")
public void testEqualsNaN() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/equalsNaN.kt");
}
@TestMetadata("equalsNaN_properIeeeComparisons.kt")
public void testEqualsNaN_properIeeeComparisons() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/equalsNaN_properIeeeComparisons.kt");
}
@TestMetadata("equalsNullableDouble.kt")
public void testEqualsNullableDouble() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/equalsNullableDouble.kt");
}
@TestMetadata("equalsNullableDouble_properIeeeComparisons.kt")
public void testEqualsNullableDouble_properIeeeComparisons() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/equalsNullableDouble_properIeeeComparisons.kt");
}
@TestMetadata("equalsNullableFloat.kt")
public void testEqualsNullableFloat() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/equalsNullableFloat.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("explicitCompareCall_AgainstCompiled.kt")
public void testExplicitCompareCall_AgainstCompiled() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/explicitCompareCall_AgainstCompiled.kt");
}
@TestMetadata("explicitEqualsCall.kt")
public void testExplicitEqualsCall() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/explicitEqualsCall.kt");
}
@TestMetadata("explicitEqualsCall_AgainstCompiled.kt")
public void testExplicitEqualsCall_AgainstCompiled() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/explicitEqualsCall_AgainstCompiled.kt");
}
@TestMetadata("float.kt")
public void testFloat() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/float.kt");
}
@TestMetadata("generic.kt")
public void testGeneric() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/generic.kt");
}
@TestMetadata("generic_AgainstCompiled.kt")
public void testGeneric_AgainstCompiled() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/generic_AgainstCompiled.kt");
}
@TestMetadata("greaterDouble.kt")
public void testGreaterDouble() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/greaterDouble.kt");
}
@TestMetadata("greaterDouble_properIeeeComparisons.kt")
public void testGreaterDouble_properIeeeComparisons() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/greaterDouble_properIeeeComparisons.kt");
}
@TestMetadata("greaterFloat.kt")
public void testGreaterFloat() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/greaterFloat.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.kt")
public void testLessDouble() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/lessDouble.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.kt")
public void testLessFloat() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/lessFloat.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("nullableAnyToReal_AgainstCompiled.kt")
public void testNullableAnyToReal_AgainstCompiled() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/nullableAnyToReal_AgainstCompiled.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("smartCastToDifferentTypes.kt")
public void testSmartCastToDifferentTypes() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/smartCastToDifferentTypes.kt");
}
@TestMetadata("smartCastToDifferentTypesWithNumericPromotion.kt")
public void testSmartCastToDifferentTypesWithNumericPromotion() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/smartCastToDifferentTypesWithNumericPromotion.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("smartCastToInt.kt")
public void testSmartCastToInt() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/smartCastToInt.kt");
}
@TestMetadata("when.kt")
public void testWhen() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/when.kt");
}
@TestMetadata("whenNoSubject.kt")
public void testWhenNoSubject() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/whenNoSubject.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInIncrement() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/increment"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("argumentWithSideEffects.kt")
public void testArgumentWithSideEffects() throws Exception {
runTest("compiler/testData/codegen/box/increment/argumentWithSideEffects.kt");
}
@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("classVarargGetSet.kt")
public void testClassVarargGetSet() throws Exception {
runTest("compiler/testData/codegen/box/increment/classVarargGetSet.kt");
}
@TestMetadata("classVarargGetSetEvaluationOrder.kt")
public void testClassVarargGetSetEvaluationOrder() throws Exception {
runTest("compiler/testData/codegen/box/increment/classVarargGetSetEvaluationOrder.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInInference() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("approximateNonTopLevelCapturedTypes.kt")
public void testApproximateNonTopLevelCapturedTypes() throws Exception {
runTest("compiler/testData/codegen/box/inference/approximateNonTopLevelCapturedTypes.kt");
}
@TestMetadata("builderInference.kt")
public void testBuilderInference() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference.kt");
}
@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("capturedTypesSubstitutionIntoAbbreviation.kt")
public void testCapturedTypesSubstitutionIntoAbbreviation() throws Exception {
runTest("compiler/testData/codegen/box/inference/capturedTypesSubstitutionIntoAbbreviation.kt");
}
@TestMetadata("coercionToUnitForLambdaReturnTypeWithFlexibleConstraint.kt")
public void testCoercionToUnitForLambdaReturnTypeWithFlexibleConstraint() throws Exception {
runTest("compiler/testData/codegen/box/inference/coercionToUnitForLambdaReturnTypeWithFlexibleConstraint.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("inferenceWithTypeVariableInsideCapturedType.kt")
public void testInferenceWithTypeVariableInsideCapturedType() throws Exception {
runTest("compiler/testData/codegen/box/inference/inferenceWithTypeVariableInsideCapturedType.kt");
}
@TestMetadata("integerLiteralTypeInLamdaReturnType.kt")
public void testIntegerLiteralTypeInLamdaReturnType() throws Exception {
runTest("compiler/testData/codegen/box/inference/integerLiteralTypeInLamdaReturnType.kt");
}
@TestMetadata("intersectionTypeInArguments.kt")
public void testIntersectionTypeInArguments() throws Exception {
runTest("compiler/testData/codegen/box/inference/intersectionTypeInArguments.kt");
}
@TestMetadata("kt10822.kt")
public void testKt10822() throws Exception {
runTest("compiler/testData/codegen/box/inference/kt10822.kt");
}
@TestMetadata("kt26345.kt")
public void testKt26345() throws Exception {
runTest("compiler/testData/codegen/box/inference/kt26345.kt");
}
@TestMetadata("kt32429.kt")
public void testKt32429() throws Exception {
runTest("compiler/testData/codegen/box/inference/kt32429.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("kt38664.kt")
public void testKt38664() throws Exception {
runTest("compiler/testData/codegen/box/inference/kt38664.kt");
}
@TestMetadata("kt39824.kt")
public void testKt39824() throws Exception {
runTest("compiler/testData/codegen/box/inference/kt39824.kt");
}
@TestMetadata("kt42042.kt")
public void testKt42042() throws Exception {
runTest("compiler/testData/codegen/box/inference/kt42042.kt");
}
@TestMetadata("kt42130.kt")
public void testKt42130() throws Exception {
runTest("compiler/testData/codegen/box/inference/kt42130.kt");
}
@TestMetadata("kt47316.kt")
public void testKt47316() throws Exception {
runTest("compiler/testData/codegen/box/inference/kt47316.kt");
}
@TestMetadata("lambdaWithStarReturn.kt")
public void testLambdaWithStarReturn() throws Exception {
runTest("compiler/testData/codegen/box/inference/lambdaWithStarReturn.kt");
}
@TestMetadata("lambdasWithExtensionFunctionType.kt")
public void testLambdasWithExtensionFunctionType() throws Exception {
runTest("compiler/testData/codegen/box/inference/lambdasWithExtensionFunctionType.kt");
}
@TestMetadata("lastExpressionOfLambdaWithNothingConstraint.kt")
public void testLastExpressionOfLambdaWithNothingConstraint() throws Exception {
runTest("compiler/testData/codegen/box/inference/lastExpressionOfLambdaWithNothingConstraint.kt");
}
@TestMetadata("manyConstraintsDueToFlexibleRawTypes.kt")
public void testManyConstraintsDueToFlexibleRawTypes() throws Exception {
runTest("compiler/testData/codegen/box/inference/manyConstraintsDueToFlexibleRawTypes.kt");
}
@TestMetadata("manyFlexibleTypeParametersFromJavaAndConversions.kt")
public void testManyFlexibleTypeParametersFromJavaAndConversions() throws Exception {
runTest("compiler/testData/codegen/box/inference/manyFlexibleTypeParametersFromJavaAndConversions.kt");
}
@TestMetadata("mapCollectChainWithNullResult.kt")
public void testMapCollectChainWithNullResult() throws Exception {
runTest("compiler/testData/codegen/box/inference/mapCollectChainWithNullResult.kt");
}
@TestMetadata("noCoercionToUniForNullableLambdaReturnType.kt")
public void testNoCoercionToUniForNullableLambdaReturnType() throws Exception {
runTest("compiler/testData/codegen/box/inference/noCoercionToUniForNullableLambdaReturnType.kt");
}
@TestMetadata("noCoercionToUnitWithEqualityConstraintForNullableReturnType.kt")
public void testNoCoercionToUnitWithEqualityConstraintForNullableReturnType() throws Exception {
runTest("compiler/testData/codegen/box/inference/noCoercionToUnitWithEqualityConstraintForNullableReturnType.kt");
}
@TestMetadata("noNothingValueInsideSpecialCall.kt")
public void testNoNothingValueInsideSpecialCall() throws Exception {
runTest("compiler/testData/codegen/box/inference/noNothingValueInsideSpecialCall.kt");
}
@TestMetadata("plusAssignInsideLambda.kt")
public void testPlusAssignInsideLambda() throws Exception {
runTest("compiler/testData/codegen/box/inference/plusAssignInsideLambda.kt");
}
@TestMetadata("recursiveConstraintInsideTypeArgumentWithStarProjection.kt")
public void testRecursiveConstraintInsideTypeArgumentWithStarProjection() throws Exception {
runTest("compiler/testData/codegen/box/inference/recursiveConstraintInsideTypeArgumentWithStarProjection.kt");
}
@TestMetadata("referenceToCatchParameterFromLambdaExpression.kt")
public void testReferenceToCatchParameterFromLambdaExpression() throws Exception {
runTest("compiler/testData/codegen/box/inference/referenceToCatchParameterFromLambdaExpression.kt");
}
@TestMetadata("specialCallsWithCallableReferences.kt")
public void testSpecialCallsWithCallableReferences() throws Exception {
runTest("compiler/testData/codegen/box/inference/specialCallsWithCallableReferences.kt");
}
@TestMetadata("substituteIntersectionTypeInsideCapType.kt")
public void testSubstituteIntersectionTypeInsideCapType() throws Exception {
runTest("compiler/testData/codegen/box/inference/substituteIntersectionTypeInsideCapType.kt");
}
@TestMetadata("subtypingOfIntersectionIltInsideFlexible.kt")
public void testSubtypingOfIntersectionIltInsideFlexible() throws Exception {
runTest("compiler/testData/codegen/box/inference/subtypingOfIntersectionIltInsideFlexible.kt");
}
@TestMetadata("sumOfOverloads.kt")
public void testSumOfOverloads() throws Exception {
runTest("compiler/testData/codegen/box/inference/sumOfOverloads.kt");
}
@TestMetadata("suspendExtensionRecevierFromConstraint.kt")
public void testSuspendExtensionRecevierFromConstraint() throws Exception {
runTest("compiler/testData/codegen/box/inference/suspendExtensionRecevierFromConstraint.kt");
}
@TestMetadata("unsafeVarianceCodegen.kt")
public void testUnsafeVarianceCodegen() throws Exception {
runTest("compiler/testData/codegen/box/inference/unsafeVarianceCodegen.kt");
}
@TestMetadata("violatingUpperBoundForSelfType.kt")
public void testViolatingUpperBoundForSelfType() throws Exception {
runTest("compiler/testData/codegen/box/inference/violatingUpperBoundForSelfType.kt");
}
@TestMetadata("compiler/testData/codegen/box/inference/builderInference")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class BuilderInference extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInBuilderInference() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inference/builderInference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("builderCallAsReturnTypeInLocalClass.kt")
public void testBuilderCallAsReturnTypeInLocalClass() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/builderCallAsReturnTypeInLocalClass.kt");
}
@TestMetadata("callableReferenceAndCoercionToUnit.kt")
public void testCallableReferenceAndCoercionToUnit() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/callableReferenceAndCoercionToUnit.kt");
}
@TestMetadata("callableReferencesProperCompletion.kt")
public void testCallableReferencesProperCompletion() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/callableReferencesProperCompletion.kt");
}
@TestMetadata("capturedTypes.kt")
public void testCapturedTypes() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/capturedTypes.kt");
}
@TestMetadata("changingResolveIfDontUseBuilderInferenceDisabledFeature.kt")
public void testChangingResolveIfDontUseBuilderInferenceDisabledFeature() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/changingResolveIfDontUseBuilderInferenceDisabledFeature.kt");
}
@TestMetadata("commonSuperType.kt")
public void testCommonSuperType() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/commonSuperType.kt");
}
@TestMetadata("commonSuperTypeContravariant.kt")
public void testCommonSuperTypeContravariant() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/commonSuperTypeContravariant.kt");
}
@TestMetadata("commonSuperTypeCovariant.kt")
public void testCommonSuperTypeCovariant() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/commonSuperTypeCovariant.kt");
}
@TestMetadata("commonSuperTypeInvariant.kt")
public void testCommonSuperTypeInvariant() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/commonSuperTypeInvariant.kt");
}
@TestMetadata("commonSuperTypeNullable.kt")
public void testCommonSuperTypeNullable() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/commonSuperTypeNullable.kt");
}
@TestMetadata("constraintsBetweenTwoStubVariables.kt")
public void testConstraintsBetweenTwoStubVariables() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/constraintsBetweenTwoStubVariables.kt");
}
@TestMetadata("cstBasedOnTwoBuilderInferenceLambda.kt")
public void testCstBasedOnTwoBuilderInferenceLambda() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/cstBasedOnTwoBuilderInferenceLambda.kt");
}
@TestMetadata("intersect.kt")
public void testIntersect() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/intersect.kt");
}
@TestMetadata("kt41164.kt")
public void testKt41164() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/kt41164.kt");
}
@TestMetadata("kt42139.kt")
public void testKt42139() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/kt42139.kt");
}
@TestMetadata("kt44241.kt")
public void testKt44241() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/kt44241.kt");
}
@TestMetadata("kt45083.kt")
public void testKt45083() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/kt45083.kt");
}
@TestMetadata("kt47052.kt")
public void testKt47052() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/kt47052.kt");
}
@TestMetadata("kt47744.kt")
public void testKt47744() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/kt47744.kt");
}
@TestMetadata("labaledCall.kt")
public void testLabaledCall() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/labaledCall.kt");
}
@TestMetadata("lackOfNullCheckOnNullableInsideBuild.kt")
public void testLackOfNullCheckOnNullableInsideBuild() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/lackOfNullCheckOnNullableInsideBuild.kt");
}
@TestMetadata("memberScope.kt")
public void testMemberScope() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/memberScope.kt");
}
@TestMetadata("nullability.kt")
public void testNullability() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/nullability.kt");
}
@TestMetadata("propagateInferenceSessionIntoDeclarationAnalyzers.kt")
public void testPropagateInferenceSessionIntoDeclarationAnalyzers() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/propagateInferenceSessionIntoDeclarationAnalyzers.kt");
}
@TestMetadata("specialCallsWithCallableReferences.kt")
public void testSpecialCallsWithCallableReferences() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/specialCallsWithCallableReferences.kt");
}
@TestMetadata("specialCallsWithCallableReferencesDontRewriteAtSlice.kt")
public void testSpecialCallsWithCallableReferencesDontRewriteAtSlice() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/specialCallsWithCallableReferencesDontRewriteAtSlice.kt");
}
@TestMetadata("specialCallsWithCallableReferencesErrorType.kt")
public void testSpecialCallsWithCallableReferencesErrorType() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/specialCallsWithCallableReferencesErrorType.kt");
}
@TestMetadata("specialCallsWithCallableReferencesNonStrictOnlyInputTypes.kt")
public void testSpecialCallsWithCallableReferencesNonStrictOnlyInputTypes() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/specialCallsWithCallableReferencesNonStrictOnlyInputTypes.kt");
}
@TestMetadata("specialCallsWithLambdas.kt")
public void testSpecialCallsWithLambdas() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/specialCallsWithLambdas.kt");
}
@TestMetadata("substituteStubTypeIntoCR.kt")
public void testSubstituteStubTypeIntoCR() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/substituteStubTypeIntoCR.kt");
}
@TestMetadata("substituteStubTypeIntolambdaParameterDescriptor.kt")
public void testSubstituteStubTypeIntolambdaParameterDescriptor() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/substituteStubTypeIntolambdaParameterDescriptor.kt");
}
@TestMetadata("substituteTypeVariableIntolambdaParameterDescriptor.kt")
public void testSubstituteTypeVariableIntolambdaParameterDescriptor() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/substituteTypeVariableIntolambdaParameterDescriptor.kt");
}
@TestMetadata("substitutelambdaExtensionReceiverType.kt")
public void testSubstitutelambdaExtensionReceiverType() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/substitutelambdaExtensionReceiverType.kt");
}
@TestMetadata("topDownCompletionBreakedByNonBuilderInferenceSession.kt")
public void testTopDownCompletionBreakedByNonBuilderInferenceSession() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/topDownCompletionBreakedByNonBuilderInferenceSession.kt");
}
@TestMetadata("topDownCompletionWithThreeBuilderInferenceCalls.kt")
public void testTopDownCompletionWithThreeBuilderInferenceCalls() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/topDownCompletionWithThreeBuilderInferenceCalls.kt");
}
@TestMetadata("topDownCompletionWithThreeBuilderInferenceCallsSameLevel.kt")
public void testTopDownCompletionWithThreeBuilderInferenceCallsSameLevel() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/topDownCompletionWithThreeBuilderInferenceCallsSameLevel.kt");
}
@TestMetadata("topDownCompletionWithTwoBuilderInferenceCalls.kt")
public void testTopDownCompletionWithTwoBuilderInferenceCalls() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/topDownCompletionWithTwoBuilderInferenceCalls.kt");
}
@TestMetadata("withExpectedType.kt")
public void testWithExpectedType() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/withExpectedType.kt");
}
@TestMetadata("withoutAnnotation.kt")
public void testWithoutAnnotation() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/withoutAnnotation.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/inlineArgsInPlace")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class InlineArgsInPlace extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInInlineArgsInPlace() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineArgsInPlace"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("arrayDequeRemoveAll.kt")
public void testArrayDequeRemoveAll() throws Exception {
runTest("compiler/testData/codegen/box/inlineArgsInPlace/arrayDequeRemoveAll.kt");
}
@TestMetadata("breakInArgumentExpression.kt")
public void testBreakInArgumentExpression() throws Exception {
runTest("compiler/testData/codegen/box/inlineArgsInPlace/breakInArgumentExpression.kt");
}
@TestMetadata("continueInArgumentExpression.kt")
public void testContinueInArgumentExpression() throws Exception {
runTest("compiler/testData/codegen/box/inlineArgsInPlace/continueInArgumentExpression.kt");
}
@TestMetadata("inlineCircularDedepency.kt")
public void testInlineCircularDedepency() throws Exception {
runTest("compiler/testData/codegen/box/inlineArgsInPlace/inlineCircularDedepency.kt");
}
@TestMetadata("mapSet.kt")
public void testMapSet() throws Exception {
runTest("compiler/testData/codegen/box/inlineArgsInPlace/mapSet.kt");
}
@TestMetadata("mutableCollectionPlusAssign.kt")
public void testMutableCollectionPlusAssign() throws Exception {
runTest("compiler/testData/codegen/box/inlineArgsInPlace/mutableCollectionPlusAssign.kt");
}
@TestMetadata("noinlineParameter.kt")
public void testNoinlineParameter() throws Exception {
runTest("compiler/testData/codegen/box/inlineArgsInPlace/noinlineParameter.kt");
}
@TestMetadata("suspensionPointInsideArgument.kt")
public void testSuspensionPointInsideArgument() throws Exception {
runTest("compiler/testData/codegen/box/inlineArgsInPlace/suspensionPointInsideArgument.kt");
}
@TestMetadata("withLogFile.kt")
public void testWithLogFile() throws Exception {
runTest("compiler/testData/codegen/box/inlineArgsInPlace/withLogFile.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/inlineClasses")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class InlineClasses extends AbstractLightAnalysisModeTest {
@TestMetadata("anySuperCall.kt")
public void ignoreAnySuperCall() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/anySuperCall.kt");
}
@TestMetadata("customIterator.kt")
public void ignoreCustomIterator() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/customIterator.kt");
}
@TestMetadata("inlineClassWithCustomEquals.kt")
public void ignoreInlineClassWithCustomEquals() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEquals.kt");
}
@TestMetadata("kt31994.kt")
public void ignoreKt31994() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt31994.kt");
}
@TestMetadata("kt32793.kt")
public void ignoreKt32793() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt32793.kt");
}
@TestMetadata("kt44701_jvmOverloads.kt")
public void ignoreKt44701_jvmOverloads() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloads.kt");
}
@TestMetadata("kt44867.kt")
public void ignoreKt44867() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt44867.kt");
}
@TestMetadata("kt44978.kt")
public void ignoreKt44978() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt44978.kt");
}
@TestMetadata("kt45991.kt")
public void ignoreKt45991() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt45991.kt");
}
@TestMetadata("safeAsOfTypeParameterWithInlineClassBound.kt")
public void ignoreSafeAsOfTypeParameterWithInlineClassBound() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/safeAsOfTypeParameterWithInlineClassBound.kt");
}
@TestMetadata("simpleSecondaryConstructor.kt")
public void ignoreSimpleSecondaryConstructor() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/simpleSecondaryConstructor.kt");
}
@TestMetadata("toStringOfUnboxedNullable.kt")
public void ignoreToStringOfUnboxedNullable() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullable.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInInlineClasses() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("annotatedMemberExtensionProperty.kt")
public void testAnnotatedMemberExtensionProperty() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/annotatedMemberExtensionProperty.kt");
}
@TestMetadata("boundCallableReferencePassedToInlineFunction.kt")
public void testBoundCallableReferencePassedToInlineFunction() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunction.kt");
}
@TestMetadata("boxImplDoesNotExecuteInSecondaryConstructor.kt")
public void testBoxImplDoesNotExecuteInSecondaryConstructor() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInSecondaryConstructor.kt");
}
@TestMetadata("boxImplDoesNotExecuteInitBlock.kt")
public void testBoxImplDoesNotExecuteInitBlock() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInitBlock.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("callSpecializedEqualsViaReflection.kt")
public void testCallSpecializedEqualsViaReflection() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/callSpecializedEqualsViaReflection.kt");
}
@TestMetadata("callSpeciallyOverriddenPropertyOfInlineClass.kt")
public void testCallSpeciallyOverriddenPropertyOfInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/callSpeciallyOverriddenPropertyOfInlineClass.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("classInInlineClassInit.kt")
public void testClassInInlineClassInit() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/classInInlineClassInit.kt");
}
@TestMetadata("classLiteralOnInlineClass.kt")
public void testClassLiteralOnInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/classLiteralOnInlineClass.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("constructorCallableReference.kt")
public void testConstructorCallableReference() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/constructorCallableReference.kt");
}
@TestMetadata("constructorImplVisibility.kt")
public void testConstructorImplVisibility() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/constructorImplVisibility.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("defaultInterfaceMethodsInInlineClass.kt")
public void testDefaultInterfaceMethodsInInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/defaultInterfaceMethodsInInlineClass.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("functionExpression.kt")
public void testFunctionExpression() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/functionExpression.kt");
}
@TestMetadata("genericInlineClassSynthMembers.kt")
public void testGenericInlineClassSynthMembers() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/genericInlineClassSynthMembers.kt");
}
@TestMetadata("genericVararg2ndConstructor.kt")
public void testGenericVararg2ndConstructor() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/genericVararg2ndConstructor.kt");
}
@TestMetadata("initBlock.kt")
public void testInitBlock() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/initBlock.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("inlineClassFieldHandling.kt")
public void testInlineClassFieldHandling() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFieldHandling.kt");
}
@TestMetadata("inlineClassFunctionInvoke.kt")
public void testInlineClassFunctionInvoke() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFunctionInvoke.kt");
}
@TestMetadata("inlineClassImplementsCollection.kt")
public void testInlineClassImplementsCollection() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassImplementsCollection.kt");
}
@TestMetadata("inlineClassInInitBlock.kt")
public void testInlineClassInInitBlock() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInInitBlock.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("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("javaClassIntrinsicOnInlineClasses.kt")
public void testJavaClassIntrinsicOnInlineClasses() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/javaClassIntrinsicOnInlineClasses.kt");
}
@TestMetadata("javaPrimitiveTypeIC.kt")
public void testJavaPrimitiveTypeIC() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/javaPrimitiveTypeIC.kt");
}
@TestMetadata("jvmFieldInInlineClassCompanion.kt")
public void testJvmFieldInInlineClassCompanion() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/jvmFieldInInlineClassCompanion.kt");
}
@TestMetadata("jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt")
public void testJvmOverloadsOnTopLevelFunctionReturningInlineClassValue() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt");
}
@TestMetadata("jvmStaticFunInInlineClassCompanion.kt")
public void testJvmStaticFunInInlineClassCompanion() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticFunInInlineClassCompanion.kt");
}
@TestMetadata("jvmStaticPropertyAccessorInInlineClassCompanion.kt")
public void testJvmStaticPropertyAccessorInInlineClassCompanion() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticPropertyAccessorInInlineClassCompanion.kt");
}
@TestMetadata("jvmStaticVarInInlineClassCompanion.kt")
public void testJvmStaticVarInInlineClassCompanion() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticVarInInlineClassCompanion.kt");
}
@TestMetadata("kclassInAnnotation.kt")
public void testKclassInAnnotation() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kclassInAnnotation.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("kt28879.kt")
public void testKt28879() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt28879.kt");
}
@TestMetadata("kt28920_javaObjectType.kt")
public void testKt28920_javaObjectType() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt28920_javaObjectType.kt");
}
@TestMetadata("kt28920_javaPrimitiveType.kt")
public void testKt28920_javaPrimitiveType() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt28920_javaPrimitiveType.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("kt34902.kt")
public void testKt34902() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt34902.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("kt44141.kt")
public void testKt44141() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt44141.kt");
}
@TestMetadata("kt45084.kt")
public void testKt45084() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt45084.kt");
}
@TestMetadata("kt46554.kt")
public void testKt46554() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt46554.kt");
}
@TestMetadata("kt47609.kt")
public void testKt47609() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt47609.kt");
}
@TestMetadata("kt47762.kt")
public void testKt47762() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt47762.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("mapInlineClassesWithSuppressWildcardsMode.kt")
public void testMapInlineClassesWithSuppressWildcardsMode() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/mapInlineClassesWithSuppressWildcardsMode.kt");
}
@TestMetadata("mappingOfBoxedFlexibleInlineClassType.kt")
public void testMappingOfBoxedFlexibleInlineClassType() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/mappingOfBoxedFlexibleInlineClassType.kt");
}
@TestMetadata("multifileClass.kt")
public void testMultifileClass() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/multifileClass.kt");
}
@TestMetadata("nestedInlineClass.kt")
public void testNestedInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/nestedInlineClass.kt");
}
@TestMetadata("noAssertionsOnInlineClassBasedOnNullableType.kt")
public void testNoAssertionsOnInlineClassBasedOnNullableType() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/noAssertionsOnInlineClassBasedOnNullableType.kt");
}
@TestMetadata("noReturnTypeMangling.kt")
public void testNoReturnTypeMangling() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeMangling.kt");
}
@TestMetadata("noReturnTypeManglingJvmName.kt")
public void testNoReturnTypeManglingJvmName() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingJvmName.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("removeInInlineCollectionOfInlineClassAsInt.kt")
public void testRemoveInInlineCollectionOfInlineClassAsInt() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/removeInInlineCollectionOfInlineClassAsInt.kt");
}
@TestMetadata("result.kt")
public void testResult() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/result.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("smartCastOnThisOfInlineClassType.kt")
public void testSmartCastOnThisOfInlineClassType() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/smartCastOnThisOfInlineClassType.kt");
}
@TestMetadata("stringPlus.kt")
public void testStringPlus() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/stringPlus.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("UIntSafeAsInt.kt")
public void testUIntSafeAsInt() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/UIntSafeAsInt.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("unboxResultParameterWhenCapturingToCrossinlineLambda.kt")
public void testUnboxResultParameterWhenCapturingToCrossinlineLambda() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/unboxResultParameterWhenCapturingToCrossinlineLambda.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("useOfInlineClassWithGenericMethodFromJava.kt")
public void testUseOfInlineClassWithGenericMethodFromJava() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/useOfInlineClassWithGenericMethodFromJava.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInBoxReturnValueInLambda() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
@TestMetadata("boxReturnValueInDefaultMethod.kt")
public void ignoreBoxReturnValueInDefaultMethod() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/boxReturnValueInDefaultMethod.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInBoxReturnValueOnOverride() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("overrideGenericWithInlineClass.kt")
public void testOverrideGenericWithInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithInlineClass.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInCallableReferences() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/callableReferences"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("equalsHashCodeToString.kt")
public void testEqualsHashCodeToString() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/equalsHashCodeToString.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/callableReferences/let")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Let extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInLet() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/callableReferences/let"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("any.kt")
public void testAny() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/any.kt");
}
@TestMetadata("anyN.kt")
public void testAnyN() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyN.kt");
}
@TestMetadata("int.kt")
public void testInt() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/int.kt");
}
@TestMetadata("intN.kt")
public void testIntN() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intN.kt");
}
@TestMetadata("null.kt")
public void testNull() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/null.kt");
}
@TestMetadata("result.kt")
public void testResult() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/result.kt");
}
@TestMetadata("string.kt")
public void testString() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/string.kt");
}
@TestMetadata("stringN.kt")
public void testStringN() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringN.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ContextsAndAccessors extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, 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");
}
@TestMetadata("accessPrivateStaticInlineClassCompanionMethod.kt")
public void testAccessPrivateStaticInlineClassCompanionMethod() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateStaticInlineClassCompanionMethod.kt");
}
public void testAllFilesPresentInContextsAndAccessors() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInDefaultParameterValues() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/defaultParameterValues"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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/defaultParameterValues/overrideFunctionWithDefaultParameter")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class OverrideFunctionWithDefaultParameter extends AbstractLightAnalysisModeTest {
@TestMetadata("all.kt")
public void ignoreAll() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/all.kt");
}
@TestMetadata("all-compatibility.kt")
public void ignoreAll_compatibility() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/all-compatibility.kt");
}
@TestMetadata("compatibility.kt")
public void ignoreCompatibility() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/compatibility.kt");
}
@TestMetadata("default.kt")
public void ignoreDefault() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/default.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInOverrideFunctionWithDefaultParameter() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
}
}
@TestMetadata("compiler/testData/codegen/box/inlineClasses/funInterface")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class FunInterface extends AbstractLightAnalysisModeTest {
@TestMetadata("argumentResult.kt")
public void ignoreArgumentResult() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/funInterface/argumentResult.kt");
}
@TestMetadata("mangledSamWrappers.kt")
public void ignoreMangledSamWrappers() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/funInterface/mangledSamWrappers.kt");
}
@TestMetadata("returnIC.kt")
public void ignoreReturnIC() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/funInterface/returnIC.kt");
}
@TestMetadata("returnResult.kt")
public void ignoreReturnResult() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/funInterface/returnResult.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInFunInterface() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/funInterface"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("argumentIC.kt")
public void testArgumentIC() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/funInterface/argumentIC.kt");
}
@TestMetadata("javaSam.kt")
public void testJavaSam() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/funInterface/javaSam.kt");
}
@TestMetadata("javaSamReturnResult.kt")
public void testJavaSamReturnResult() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/funInterface/javaSamReturnResult.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/inlineClasses/functionNameMangling")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class FunctionNameMangling extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInFunctionNameMangling() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/functionNameMangling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("genericSignatureOfFunctionWithMangledName.kt")
public void testGenericSignatureOfFunctionWithMangledName() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericSignatureOfFunctionWithMangledName.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("reflectionForLocalClassInFunctionWithMangledName.kt")
public void testReflectionForLocalClassInFunctionWithMangledName() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForLocalClassInFunctionWithMangledName.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInHiddenConstructor() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/hiddenConstructor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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/inlineClassCollection")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class InlineClassCollection extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInInlineClassCollection() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/inlineClassCollection"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("inlineCollectionOfInlineClass.kt")
public void testInlineCollectionOfInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineCollectionOfInlineClass.kt");
}
@TestMetadata("inlineListOfInlineClass.kt")
public void testInlineListOfInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineListOfInlineClass.kt");
}
@TestMetadata("inlineMapOfInlineClass.kt")
public void testInlineMapOfInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClass.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/inlineClasses/interfaceDelegation")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class InterfaceDelegation extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInInterfaceDelegation() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/interfaceDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInInterfaceMethodCalls() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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/javaInterop")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class JavaInterop extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInJavaInterop() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/javaInterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("inlineClasInSignature.kt")
public void testInlineClasInSignature() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/javaInterop/inlineClasInSignature.kt");
}
@TestMetadata("inlineClasInSignatureNonNull.kt")
public void testInlineClasInSignatureNonNull() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/javaInterop/inlineClasInSignatureNonNull.kt");
}
@TestMetadata("inlineClasInSignatureNullable.kt")
public void testInlineClasInSignatureNullable() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/javaInterop/inlineClasInSignatureNullable.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Jvm8DefaultInterfaceMethods extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInJvm8DefaultInterfaceMethods() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("javaDefaultMethod.kt")
public void testJavaDefaultMethod() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethod.kt");
}
@TestMetadata("javaDefaultMethodOverriddenByKotlin.kt")
public void testJavaDefaultMethodOverriddenByKotlin() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethodOverriddenByKotlin.kt");
}
@TestMetadata("jvmDefaultAll.kt")
public void testJvmDefaultAll() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAll.kt");
}
@TestMetadata("jvmDefaultAllPrimaryProperty.kt")
public void testJvmDefaultAllPrimaryProperty() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllPrimaryProperty.kt");
}
@TestMetadata("jvmDefaultAllProperty.kt")
public void testJvmDefaultAllProperty() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllProperty.kt");
}
@TestMetadata("jvmDefaultEnable.kt")
public void testJvmDefaultEnable() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnable.kt");
}
@TestMetadata("jvmDefaultEnablePrimaryProperty.kt")
public void testJvmDefaultEnablePrimaryProperty() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnablePrimaryProperty.kt");
}
@TestMetadata("jvmDefaultEnableProperty.kt")
public void testJvmDefaultEnableProperty() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultEnableProperty.kt");
}
@TestMetadata("jvmDefaultGeneric.kt")
public void testJvmDefaultGeneric() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultGeneric.kt");
}
@TestMetadata("jvmDefaultSafeCall.kt")
public void testJvmDefaultSafeCall() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSafeCall.kt");
}
@TestMetadata("jvmDefaultSmartCast.kt")
public void testJvmDefaultSmartCast() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSmartCast.kt");
}
@TestMetadata("jvmDefaultSuspend.kt")
public void testJvmDefaultSuspend() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSuspend.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/inlineClasses/propertyDelegation")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class PropertyDelegation extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInPropertyDelegation() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/propertyDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("delegateJvmStaticCompanionVarToInlineClass.kt")
public void testDelegateJvmStaticCompanionVarToInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateJvmStaticCompanionVarToInlineClass.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("kt42933.kt")
public void testKt42933() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/inlineClasses/result")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Result extends AbstractLightAnalysisModeTest {
@TestMetadata("directCall1.kt")
public void ignoreDirectCall1() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/result/directCall1.kt");
}
@TestMetadata("directCall2.kt")
public void ignoreDirectCall2() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/result/directCall2.kt");
}
@TestMetadata("doubleOverride.kt")
public void ignoreDoubleOverride() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/result/doubleOverride.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInResult() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/result"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("extensionOverride.kt")
public void testExtensionOverride() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/result/extensionOverride.kt");
}
@TestMetadata("inlineMethodOnResult.kt")
public void testInlineMethodOnResult() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/result/inlineMethodOnResult.kt");
}
@TestMetadata("lambdaTakesResultThroughBridge.kt")
public void testLambdaTakesResultThroughBridge() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/result/lambdaTakesResultThroughBridge.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/inlineClasses/returnResult")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ReturnResult extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInReturnResult() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/returnResult"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("class.kt")
public void testClass() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/returnResult/class.kt");
}
@TestMetadata("classAnyOverride.kt")
public void testClassAnyOverride() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/returnResult/classAnyOverride.kt");
}
@TestMetadata("classGenericOverride.kt")
public void testClassGenericOverride() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/returnResult/classGenericOverride.kt");
}
@TestMetadata("classResultOverride.kt")
public void testClassResultOverride() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/returnResult/classResultOverride.kt");
}
@TestMetadata("interface.kt")
public void testInterface() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/returnResult/interface.kt");
}
@TestMetadata("topLevel.kt")
public void testTopLevel() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/returnResult/topLevel.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class UnboxGenericParameter extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInUnboxGenericParameter() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class FunInterface extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInFunInterface() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("any.kt")
public void testAny() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/any.kt");
}
@TestMetadata("anyN.kt")
public void testAnyN() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyN.kt");
}
@TestMetadata("iface.kt")
public void testIface() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/iface.kt");
}
@TestMetadata("ifaceChild.kt")
public void testIfaceChild() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceChild.kt");
}
@TestMetadata("nullableResult.kt")
public void testNullableResult() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/nullableResult.kt");
}
@TestMetadata("primitive.kt")
public void testPrimitive() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/primitive.kt");
}
@TestMetadata("result.kt")
public void testResult() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/result.kt");
}
@TestMetadata("resultAny.kt")
public void testResultAny() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/resultAny.kt");
}
@TestMetadata("string.kt")
public void testString() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/string.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Lambda extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInLambda() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("any.kt")
public void testAny() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/any.kt");
}
@TestMetadata("anyN.kt")
public void testAnyN() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyN.kt");
}
@TestMetadata("iface.kt")
public void testIface() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/iface.kt");
}
@TestMetadata("ifaceChild.kt")
public void testIfaceChild() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceChild.kt");
}
@TestMetadata("nullableResult.kt")
public void testNullableResult() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/nullableResult.kt");
}
@TestMetadata("primitive.kt")
public void testPrimitive() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/primitive.kt");
}
@TestMetadata("result.kt")
public void testResult() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/result.kt");
}
@TestMetadata("resultAny.kt")
public void testResultAny() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/resultAny.kt");
}
@TestMetadata("string.kt")
public void testString() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/string.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ObjectLiteral extends AbstractLightAnalysisModeTest {
@TestMetadata("nullableResult.kt")
public void ignoreNullableResult() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/nullableResult.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInObjectLiteral() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("any.kt")
public void testAny() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/any.kt");
}
@TestMetadata("anyN.kt")
public void testAnyN() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyN.kt");
}
@TestMetadata("iface.kt")
public void testIface() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/iface.kt");
}
@TestMetadata("ifaceChild.kt")
public void testIfaceChild() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChild.kt");
}
@TestMetadata("primitive.kt")
public void testPrimitive() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/primitive.kt");
}
@TestMetadata("result.kt")
public void testResult() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/result.kt");
}
@TestMetadata("resultAny.kt")
public void testResultAny() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/resultAny.kt");
}
@TestMetadata("string.kt")
public void testString() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/string.kt");
}
}
}
}
@TestMetadata("compiler/testData/codegen/box/innerNested")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class InnerNested extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInInnerNested() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerNested"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("extenderNestedClass.kt")
public void testExtenderNestedClass() throws Exception {
runTest("compiler/testData/codegen/box/innerNested/extenderNestedClass.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("innerGenericClassFromJava.kt")
public void testInnerGenericClassFromJava() throws Exception {
runTest("compiler/testData/codegen/box/innerNested/innerGenericClassFromJava.kt");
}
@TestMetadata("innerImplicitParameter.kt")
public void testInnerImplicitParameter() throws Exception {
runTest("compiler/testData/codegen/box/innerNested/innerImplicitParameter.kt");
}
@TestMetadata("innerJavaClass.kt")
public void testInnerJavaClass() throws Exception {
runTest("compiler/testData/codegen/box/innerNested/innerJavaClass.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("innerWithDefaultArgument.kt")
public void testInnerWithDefaultArgument() throws Exception {
runTest("compiler/testData/codegen/box/innerNested/innerWithDefaultArgument.kt");
}
@TestMetadata("innerWithDefaultInner.kt")
public void testInnerWithDefaultInner() throws Exception {
runTest("compiler/testData/codegen/box/innerNested/innerWithDefaultInner.kt");
}
@TestMetadata("kt3132.kt")
public void testKt3132() throws Exception {
runTest("compiler/testData/codegen/box/innerNested/kt3132.kt");
}
@TestMetadata("kt3532.kt")
public void testKt3532() throws Exception {
runTest("compiler/testData/codegen/box/innerNested/kt3532.kt");
}
@TestMetadata("kt3812.kt")
public void testKt3812() throws Exception {
runTest("compiler/testData/codegen/box/innerNested/kt3812.kt");
}
@TestMetadata("kt3927.kt")
public void testKt3927() throws Exception {
runTest("compiler/testData/codegen/box/innerNested/kt3927.kt");
}
@TestMetadata("kt4036.kt")
public void testKt4036() throws Exception {
runTest("compiler/testData/codegen/box/innerNested/kt4036.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("nestedInnerClass.kt")
public void testNestedInnerClass() throws Exception {
runTest("compiler/testData/codegen/box/innerNested/nestedInnerClass.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("protectedNestedClassFromJava.kt")
public void testProtectedNestedClassFromJava() throws Exception {
runTest("compiler/testData/codegen/box/innerNested/protectedNestedClassFromJava.kt");
}
@TestMetadata("compiler/testData/codegen/box/innerNested/superConstructorCall")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class SuperConstructorCall extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInSuperConstructorCall() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerNested/superConstructorCall"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("innerExtendsOuter.kt")
public void testInnerExtendsOuter() throws Exception {
runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/innerExtendsOuter.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInInstructions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/instructions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("compiler/testData/codegen/box/instructions/swap")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Swap extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInSwap() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/instructions/swap"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInIntrinsics() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/intrinsics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("charToInt.kt")
public void testCharToInt() throws Exception {
runTest("compiler/testData/codegen/box/intrinsics/charToInt.kt");
}
@TestMetadata("defaultObjectMapping.kt")
public void testDefaultObjectMapping() throws Exception {
runTest("compiler/testData/codegen/box/intrinsics/defaultObjectMapping.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("javaObjectType.kt")
public void testJavaObjectType() throws Exception {
runTest("compiler/testData/codegen/box/intrinsics/javaObjectType.kt");
}
@TestMetadata("javaPrimitiveType.kt")
public void testJavaPrimitiveType() throws Exception {
runTest("compiler/testData/codegen/box/intrinsics/javaPrimitiveType.kt");
}
@TestMetadata("javaPrimitiveType_UnitAndNothing.kt")
public void testJavaPrimitiveType_UnitAndNothing() throws Exception {
runTest("compiler/testData/codegen/box/intrinsics/javaPrimitiveType_UnitAndNothing.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("kt5937.kt")
public void testKt5937() throws Exception {
runTest("compiler/testData/codegen/box/intrinsics/kt5937.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("monitorEnterMonitorExit.kt")
public void testMonitorEnterMonitorExit() throws Exception {
runTest("compiler/testData/codegen/box/intrinsics/monitorEnterMonitorExit.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("trimMarginWithBlankString.kt")
public void testTrimMarginWithBlankString() throws Exception {
runTest("compiler/testData/codegen/box/intrinsics/trimMarginWithBlankString.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/invokedynamic")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Invokedynamic extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInInvokedynamic() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("compiler/testData/codegen/box/invokedynamic/lambdas")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Lambdas extends AbstractLightAnalysisModeTest {
@TestMetadata("bigArityExtLambda.kt")
public void ignoreBigArityExtLambda() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/bigArityExtLambda.kt");
}
@TestMetadata("genericLambdaSignature.kt")
public void ignoreGenericLambdaSignature() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/genericLambdaSignature.kt");
}
@TestMetadata("lambdaSerializable.kt")
public void ignoreLambdaSerializable() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/lambdaSerializable.kt");
}
@TestMetadata("lambdaToSting.kt")
public void ignoreLambdaToSting() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/lambdaToSting.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInLambdas() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic/lambdas"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("bigArityLambda.kt")
public void testBigArityLambda() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/bigArityLambda.kt");
}
@TestMetadata("capturedDispatchReceiver.kt")
public void testCapturedDispatchReceiver() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/capturedDispatchReceiver.kt");
}
@TestMetadata("capturedExtensionReceiver.kt")
public void testCapturedExtensionReceiver() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/capturedExtensionReceiver.kt");
}
@TestMetadata("capturingValue.kt")
public void testCapturingValue() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/capturingValue.kt");
}
@TestMetadata("capturingVar.kt")
public void testCapturingVar() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/capturingVar.kt");
}
@TestMetadata("extensionLambda.kt")
public void testExtensionLambda() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/extensionLambda.kt");
}
@TestMetadata("nestedIndyLambdas.kt")
public void testNestedIndyLambdas() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/nestedIndyLambdas.kt");
}
@TestMetadata("nullabilityAssertions.kt")
public void testNullabilityAssertions() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/nullabilityAssertions.kt");
}
@TestMetadata("primitiveValueParameters.kt")
public void testPrimitiveValueParameters() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/primitiveValueParameters.kt");
}
@TestMetadata("simpleIndyLambda.kt")
public void testSimpleIndyLambda() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/simpleIndyLambda.kt");
}
@TestMetadata("suspendLambda.kt")
public void testSuspendLambda() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/suspendLambda.kt");
}
@TestMetadata("voidReturnType.kt")
public void testVoidReturnType() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/voidReturnType.kt");
}
@TestMetadata("compiler/testData/codegen/box/invokedynamic/lambdas/inlineClassInSignature")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class InlineClassInSignature extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInInlineClassInSignature() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic/lambdas/inlineClassInSignature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("lambdaWithInlineAny.kt")
public void testLambdaWithInlineAny() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/inlineClassInSignature/lambdaWithInlineAny.kt");
}
@TestMetadata("lambdaWithInlineInt.kt")
public void testLambdaWithInlineInt() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/inlineClassInSignature/lambdaWithInlineInt.kt");
}
@TestMetadata("lambdaWithInlineNAny.kt")
public void testLambdaWithInlineNAny() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/inlineClassInSignature/lambdaWithInlineNAny.kt");
}
@TestMetadata("lambdaWithInlineNInt.kt")
public void testLambdaWithInlineNInt() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/inlineClassInSignature/lambdaWithInlineNInt.kt");
}
@TestMetadata("lambdaWithInlineNString.kt")
public void testLambdaWithInlineNString() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/inlineClassInSignature/lambdaWithInlineNString.kt");
}
@TestMetadata("lambdaWithInlineString.kt")
public void testLambdaWithInlineString() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/inlineClassInSignature/lambdaWithInlineString.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/invokedynamic/sam")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Sam extends AbstractLightAnalysisModeTest {
@TestMetadata("genericLambdaSignature.kt")
public void ignoreGenericLambdaSignature() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/genericLambdaSignature.kt");
}
@TestMetadata("suspendFunInterface.kt")
public void ignoreSuspendFunInterface() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/suspendFunInterface.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInSam() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("boundFunctionReferenceEquality.kt")
public void testBoundFunctionReferenceEquality() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/boundFunctionReferenceEquality.kt");
}
@TestMetadata("boundReference.kt")
public void testBoundReference() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/boundReference.kt");
}
@TestMetadata("builtinMemberReference.kt")
public void testBuiltinMemberReference() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/builtinMemberReference.kt");
}
@TestMetadata("capturedDispatchReceiver.kt")
public void testCapturedDispatchReceiver() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/capturedDispatchReceiver.kt");
}
@TestMetadata("capturedExtensionReceiver.kt")
public void testCapturedExtensionReceiver() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/capturedExtensionReceiver.kt");
}
@TestMetadata("capturingIndyFunInterface.kt")
public void testCapturingIndyFunInterface() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/capturingIndyFunInterface.kt");
}
@TestMetadata("capturingIndySam.kt")
public void testCapturingIndySam() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/capturingIndySam.kt");
}
@TestMetadata("capturingVar.kt")
public void testCapturingVar() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/capturingVar.kt");
}
@TestMetadata("constructorReference.kt")
public void testConstructorReference() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/constructorReference.kt");
}
@TestMetadata("covariantOverrideWithPrimitive.kt")
public void testCovariantOverrideWithPrimitive() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/covariantOverrideWithPrimitive.kt");
}
@TestMetadata("enhancedNullabilityMix.kt")
public void testEnhancedNullabilityMix() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/enhancedNullabilityMix.kt");
}
@TestMetadata("genericFunInterface.kt")
public void testGenericFunInterface() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/genericFunInterface.kt");
}
@TestMetadata("genericFunInterfaceWithPrimitive.kt")
public void testGenericFunInterfaceWithPrimitive() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/genericFunInterfaceWithPrimitive.kt");
}
@TestMetadata("inlineOnly.kt")
public void testInlineOnly() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineOnly.kt");
}
@TestMetadata("insideInitBlock.kt")
public void testInsideInitBlock() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/insideInitBlock.kt");
}
@TestMetadata("intReturnTypeAsNumber.kt")
public void testIntReturnTypeAsNumber() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/intReturnTypeAsNumber.kt");
}
@TestMetadata("kt45779.kt")
public void testKt45779() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/kt45779.kt");
}
@TestMetadata("kt47510.kt")
public void testKt47510() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/kt47510.kt");
}
@TestMetadata("nullabilityAssertions.kt")
public void testNullabilityAssertions() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/nullabilityAssertions.kt");
}
@TestMetadata("possibleOverrideClash.kt")
public void testPossibleOverrideClash() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/possibleOverrideClash.kt");
}
@TestMetadata("primitiveVsWrapperInSam.kt")
public void testPrimitiveVsWrapperInSam() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/primitiveVsWrapperInSam.kt");
}
@TestMetadata("samConversionInsideSamConvertedLambda.kt")
public void testSamConversionInsideSamConvertedLambda() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/samConversionInsideSamConvertedLambda.kt");
}
@TestMetadata("samConversionOnFunctionReference.kt")
public void testSamConversionOnFunctionReference() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/samConversionOnFunctionReference.kt");
}
@TestMetadata("samExtFunWithCapturingLambda.kt")
public void testSamExtFunWithCapturingLambda() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/samExtFunWithCapturingLambda.kt");
}
@TestMetadata("serializableSam1.kt")
public void testSerializableSam1() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/serializableSam1.kt");
}
@TestMetadata("serializableSam2.kt")
public void testSerializableSam2() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/serializableSam2.kt");
}
@TestMetadata("simpleFunInterfaceConstructor.kt")
public void testSimpleFunInterfaceConstructor() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/simpleFunInterfaceConstructor.kt");
}
@TestMetadata("simpleIndyFunInterface.kt")
public void testSimpleIndyFunInterface() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/simpleIndyFunInterface.kt");
}
@TestMetadata("simpleIndySam.kt")
public void testSimpleIndySam() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/simpleIndySam.kt");
}
@TestMetadata("streamApi1.kt")
public void testStreamApi1() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/streamApi1.kt");
}
@TestMetadata("streamApi2.kt")
public void testStreamApi2() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/streamApi2.kt");
}
@TestMetadata("unboundFunctionReferenceEquality.kt")
public void testUnboundFunctionReferenceEquality() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/unboundFunctionReferenceEquality.kt");
}
@TestMetadata("compiler/testData/codegen/box/invokedynamic/sam/functionExprToJavaInterface")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class FunctionExprToJavaInterface extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInFunctionExprToJavaInterface() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic/sam/functionExprToJavaInterface"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("capturedSamArgument.kt")
public void testCapturedSamArgument() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionExprToJavaInterface/capturedSamArgument.kt");
}
@TestMetadata("capturingLambda.kt")
public void testCapturingLambda() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionExprToJavaInterface/capturingLambda.kt");
}
@TestMetadata("extensionLambda1.kt")
public void testExtensionLambda1() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionExprToJavaInterface/extensionLambda1.kt");
}
@TestMetadata("extensionLambda2.kt")
public void testExtensionLambda2() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionExprToJavaInterface/extensionLambda2.kt");
}
@TestMetadata("genericSam1.kt")
public void testGenericSam1() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionExprToJavaInterface/genericSam1.kt");
}
@TestMetadata("genericSam2.kt")
public void testGenericSam2() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionExprToJavaInterface/genericSam2.kt");
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionExprToJavaInterface/simple.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class FunctionRefToJavaInterface extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("adaptedFunRefWithCoercionToUnit.kt")
public void testAdaptedFunRefWithCoercionToUnit() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/adaptedFunRefWithCoercionToUnit.kt");
}
@TestMetadata("adaptedFunRefWithDefaultParameters.kt")
public void testAdaptedFunRefWithDefaultParameters() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/adaptedFunRefWithDefaultParameters.kt");
}
@TestMetadata("adaptedFunRefWithVararg.kt")
public void testAdaptedFunRefWithVararg() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/adaptedFunRefWithVararg.kt");
}
public void testAllFilesPresentInFunctionRefToJavaInterface() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("boundExtFun.kt")
public void testBoundExtFun() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/boundExtFun.kt");
}
@TestMetadata("boundInnerConstructorRef.kt")
public void testBoundInnerConstructorRef() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/boundInnerConstructorRef.kt");
}
@TestMetadata("boundLocalExtFun.kt")
public void testBoundLocalExtFun() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/boundLocalExtFun.kt");
}
@TestMetadata("boundMemberRef.kt")
public void testBoundMemberRef() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/boundMemberRef.kt");
}
@TestMetadata("boundRefToSuperClassMethod.kt")
public void testBoundRefToSuperClassMethod() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/boundRefToSuperClassMethod.kt");
}
@TestMetadata("boundRefToSuperInterfaceMethod.kt")
public void testBoundRefToSuperInterfaceMethod() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/boundRefToSuperInterfaceMethod.kt");
}
@TestMetadata("constructorRef.kt")
public void testConstructorRef() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/constructorRef.kt");
}
@TestMetadata("enhancedNullability.kt")
public void testEnhancedNullability() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/enhancedNullability.kt");
}
@TestMetadata("innerConstructorRef.kt")
public void testInnerConstructorRef() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/innerConstructorRef.kt");
}
@TestMetadata("intReturnTypeAsNumber.kt")
public void testIntReturnTypeAsNumber() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/intReturnTypeAsNumber.kt");
}
@TestMetadata("interfaceMemberRef.kt")
public void testInterfaceMemberRef() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/interfaceMemberRef.kt");
}
@TestMetadata("kt45581.kt")
public void testKt45581() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/kt45581.kt");
}
@TestMetadata("kt46408.kt")
public void testKt46408() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/kt46408.kt");
}
@TestMetadata("localFunction1.kt")
public void testLocalFunction1() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/localFunction1.kt");
}
@TestMetadata("localFunction2.kt")
public void testLocalFunction2() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/localFunction2.kt");
}
@TestMetadata("memberRef.kt")
public void testMemberRef() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/memberRef.kt");
}
@TestMetadata("multifileClassMemberFromStdlib.kt")
public void testMultifileClassMemberFromStdlib() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/multifileClassMemberFromStdlib.kt");
}
@TestMetadata("nonTrivialReceiver.kt")
public void testNonTrivialReceiver() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/nonTrivialReceiver.kt");
}
@TestMetadata("nothingReturnTypeAsObject.kt")
public void testNothingReturnTypeAsObject() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/nothingReturnTypeAsObject.kt");
}
@TestMetadata("nothingReturnTypeAsString.kt")
public void testNothingReturnTypeAsString() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/nothingReturnTypeAsString.kt");
}
@TestMetadata("nullableNothingReturnTypeAsObject.kt")
public void testNullableNothingReturnTypeAsObject() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/nullableNothingReturnTypeAsObject.kt");
}
@TestMetadata("nullableNothingReturnTypeAsString.kt")
public void testNullableNothingReturnTypeAsString() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/nullableNothingReturnTypeAsString.kt");
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/simple.kt");
}
@TestMetadata("voidReturnTypeAsObject.kt")
public void testVoidReturnTypeAsObject() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/voidReturnTypeAsObject.kt");
}
@TestMetadata("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/specialFunctions")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class SpecialFunctions extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInSpecialFunctions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/specialFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("anyNToString.kt")
public void testAnyNToString() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/specialFunctions/anyNToString.kt");
}
@TestMetadata("arrayConstructor.kt")
public void testArrayConstructor() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/specialFunctions/arrayConstructor.kt");
}
@TestMetadata("arrayOf.kt")
public void testArrayOf() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/specialFunctions/arrayOf.kt");
}
@TestMetadata("charArrayOf.kt")
public void testCharArrayOf() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/specialFunctions/charArrayOf.kt");
}
@TestMetadata("enumValueOf.kt")
public void testEnumValueOf() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/specialFunctions/enumValueOf.kt");
}
@TestMetadata("enumValues.kt")
public void testEnumValues() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/specialFunctions/enumValues.kt");
}
@TestMetadata("intPlus.kt")
public void testIntPlus() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/specialFunctions/intPlus.kt");
}
@TestMetadata("stringNPlus.kt")
public void testStringNPlus() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/specialFunctions/stringNPlus.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/withAccessor")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class WithAccessor extends AbstractLightAnalysisModeTest {
@TestMetadata("protectedCompanionObjectStaticMember.kt")
public void ignoreProtectedCompanionObjectStaticMember() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/withAccessor/protectedCompanionObjectStaticMember.kt");
}
@TestMetadata("protectedMember.kt")
public void ignoreProtectedMember() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/withAccessor/protectedMember.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInWithAccessor() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/withAccessor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("privateBoundOuterClassMemberFun.kt")
public void testPrivateBoundOuterClassMemberFun() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/withAccessor/privateBoundOuterClassMemberFun.kt");
}
@TestMetadata("privateCompanionObjectMember.kt")
public void testPrivateCompanionObjectMember() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/withAccessor/privateCompanionObjectMember.kt");
}
@TestMetadata("privateOuterClassConstructor.kt")
public void testPrivateOuterClassConstructor() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/withAccessor/privateOuterClassConstructor.kt");
}
@TestMetadata("privateOuterClassMemberFun.kt")
public void testPrivateOuterClassMemberFun() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/withAccessor/privateOuterClassMemberFun.kt");
}
@TestMetadata("privateTopLevelExtFun.kt")
public void testPrivateTopLevelExtFun() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/withAccessor/privateTopLevelExtFun.kt");
}
@TestMetadata("privateTopLevelFun.kt")
public void testPrivateTopLevelFun() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/withAccessor/privateTopLevelFun.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class InlineClassInSignature extends AbstractLightAnalysisModeTest {
@TestMetadata("funInterfaceWithInlineAny.kt")
public void ignoreFunInterfaceWithInlineAny() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/funInterfaceWithInlineAny.kt");
}
@TestMetadata("funInterfaceWithInlineInt.kt")
public void ignoreFunInterfaceWithInlineInt() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/funInterfaceWithInlineInt.kt");
}
@TestMetadata("funInterfaceWithInlineNAny.kt")
public void ignoreFunInterfaceWithInlineNAny() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/funInterfaceWithInlineNAny.kt");
}
@TestMetadata("funInterfaceWithInlineNInt.kt")
public void ignoreFunInterfaceWithInlineNInt() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/funInterfaceWithInlineNInt.kt");
}
@TestMetadata("funInterfaceWithInlineNString.kt")
public void ignoreFunInterfaceWithInlineNString() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/funInterfaceWithInlineNString.kt");
}
@TestMetadata("funInterfaceWithInlineString.kt")
public void ignoreFunInterfaceWithInlineString() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/funInterfaceWithInlineString.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInInlineClassInSignature() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("genericFunInterfaceWithInlineAny.kt")
public void testGenericFunInterfaceWithInlineAny() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/genericFunInterfaceWithInlineAny.kt");
}
@TestMetadata("genericFunInterfaceWithInlineInt.kt")
public void testGenericFunInterfaceWithInlineInt() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/genericFunInterfaceWithInlineInt.kt");
}
@TestMetadata("genericFunInterfaceWithInlineNAny.kt")
public void testGenericFunInterfaceWithInlineNAny() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/genericFunInterfaceWithInlineNAny.kt");
}
@TestMetadata("genericFunInterfaceWithInlineNInt.kt")
public void testGenericFunInterfaceWithInlineNInt() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/genericFunInterfaceWithInlineNInt.kt");
}
@TestMetadata("genericFunInterfaceWithInlineNString.kt")
public void testGenericFunInterfaceWithInlineNString() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/genericFunInterfaceWithInlineNString.kt");
}
@TestMetadata("genericFunInterfaceWithInlineString.kt")
public void testGenericFunInterfaceWithInlineString() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/genericFunInterfaceWithInlineString.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class SpecializedGenerics extends AbstractLightAnalysisModeTest {
@TestMetadata("mixPrimitiveAndBoxed.kt")
public void ignoreMixPrimitiveAndBoxed() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/mixPrimitiveAndBoxed.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInSpecializedGenerics() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("covariantOverride.kt")
public void testCovariantOverride() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/covariantOverride.kt");
}
@TestMetadata("covariantOverrideWithNNothing.kt")
public void testCovariantOverrideWithNNothing() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/covariantOverrideWithNNothing.kt");
}
@TestMetadata("genericWithInProjection.kt")
public void testGenericWithInProjection() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/genericWithInProjection.kt");
}
@TestMetadata("genericWithStarProjection.kt")
public void testGenericWithStarProjection() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/genericWithStarProjection.kt");
}
@TestMetadata("inheritedWithChar.kt")
public void testInheritedWithChar() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/inheritedWithChar.kt");
}
@TestMetadata("inheritedWithCharDiamond.kt")
public void testInheritedWithCharDiamond() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/inheritedWithCharDiamond.kt");
}
@TestMetadata("inheritedWithCharExplicitlyOverridden.kt")
public void testInheritedWithCharExplicitlyOverridden() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/inheritedWithCharExplicitlyOverridden.kt");
}
@TestMetadata("inheritedWithInt.kt")
public void testInheritedWithInt() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/inheritedWithInt.kt");
}
@TestMetadata("inheritedWithString.kt")
public void testInheritedWithString() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/inheritedWithString.kt");
}
@TestMetadata("inheritedWithUnit.kt")
public void testInheritedWithUnit() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/inheritedWithUnit.kt");
}
@TestMetadata("mixGenericAndIntArray.kt")
public void testMixGenericAndIntArray() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/mixGenericAndIntArray.kt");
}
@TestMetadata("mixGenericAndString.kt")
public void testMixGenericAndString() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/mixGenericAndString.kt");
}
@TestMetadata("mixGenericArrayAndArrayOfString.kt")
public void testMixGenericArrayAndArrayOfString() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/mixGenericArrayAndArrayOfString.kt");
}
@TestMetadata("nothingReturnTypeAsGeneric.kt")
public void testNothingReturnTypeAsGeneric() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/nothingReturnTypeAsGeneric.kt");
}
@TestMetadata("nothingReturnTypeAsString.kt")
public void testNothingReturnTypeAsString() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/nothingReturnTypeAsString.kt");
}
@TestMetadata("specializedWithChar.kt")
public void testSpecializedWithChar() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/specializedWithChar.kt");
}
@TestMetadata("specializedWithCharClass.kt")
public void testSpecializedWithCharClass() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/specializedWithCharClass.kt");
}
@TestMetadata("voidReturnTypeAsGeneric.kt")
public void testVoidReturnTypeAsGeneric() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/voidReturnTypeAsGeneric.kt");
}
}
}
}
@TestMetadata("compiler/testData/codegen/box/ir")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Ir extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInIr() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("anonymousClassLeak.kt")
public void testAnonymousClassLeak() throws Exception {
runTest("compiler/testData/codegen/box/ir/anonymousClassLeak.kt");
}
@TestMetadata("anonymousObjectInForLoopIteratorAndBody.kt")
public void testAnonymousObjectInForLoopIteratorAndBody() throws Exception {
runTest("compiler/testData/codegen/box/ir/anonymousObjectInForLoopIteratorAndBody.kt");
}
@TestMetadata("anonymousObjectInGenericFun.kt")
public void testAnonymousObjectInGenericFun() throws Exception {
runTest("compiler/testData/codegen/box/ir/anonymousObjectInGenericFun.kt");
}
@TestMetadata("anonymousObjectInsideElvis.kt")
public void testAnonymousObjectInsideElvis() throws Exception {
runTest("compiler/testData/codegen/box/ir/anonymousObjectInsideElvis.kt");
}
@TestMetadata("clashingFakeOverrideSignatures.kt")
public void testClashingFakeOverrideSignatures() throws Exception {
runTest("compiler/testData/codegen/box/ir/clashingFakeOverrideSignatures.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("hashCodeOnGenericSubstitutedWithPrimitive.kt")
public void testHashCodeOnGenericSubstitutedWithPrimitive() throws Exception {
runTest("compiler/testData/codegen/box/ir/hashCodeOnGenericSubstitutedWithPrimitive.kt");
}
@TestMetadata("kt25405.kt")
public void testKt25405() throws Exception {
runTest("compiler/testData/codegen/box/ir/kt25405.kt");
}
@TestMetadata("kt29833.kt")
public void testKt29833() throws Exception {
runTest("compiler/testData/codegen/box/ir/kt29833.kt");
}
@TestMetadata("kt40083.kt")
public void testKt40083() throws Exception {
runTest("compiler/testData/codegen/box/ir/kt40083.kt");
}
@TestMetadata("kt41765.kt")
public void testKt41765() throws Exception {
runTest("compiler/testData/codegen/box/ir/kt41765.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("suppressConflictingSignatureErrors.kt")
public void testSuppressConflictingSignatureErrors() throws Exception {
runTest("compiler/testData/codegen/box/ir/suppressConflictingSignatureErrors.kt");
}
@TestMetadata("compiler/testData/codegen/box/ir/closureConversion")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ClosureConversion extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInClosureConversion() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ir/closureConversion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInPrimitiveNumberComparisons() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ir/primitiveNumberComparisons"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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/privateSignatures")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class PrivateSignatures extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInPrivateSignatures() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ir/privateSignatures"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("enumEntryArguments.kt")
public void testEnumEntryArguments() throws Exception {
runTest("compiler/testData/codegen/box/ir/privateSignatures/enumEntryArguments.kt");
}
@TestMetadata("privateLeakThroughInline.kt")
public void testPrivateLeakThroughInline() throws Exception {
runTest("compiler/testData/codegen/box/ir/privateSignatures/privateLeakThroughInline.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/ir/serializationRegressions")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class SerializationRegressions extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInSerializationRegressions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ir/serializationRegressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
@TestMetadata("conflictingOverloadsForThrowableInheritors.kt")
public void ignoreConflictingOverloadsForThrowableInheritors() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/conflictingOverloadsForThrowableInheritors.kt");
}
@TestMetadata("conflictingOverloadsForThrowableInheritors2.kt")
public void ignoreConflictingOverloadsForThrowableInheritors2() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/conflictingOverloadsForThrowableInheritors2.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInJavaInterop() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaInterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("ambiguousJavaVararg.kt")
public void testAmbiguousJavaVararg() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/ambiguousJavaVararg.kt");
}
@TestMetadata("genericSamProjectedOut.kt")
public void testGenericSamProjectedOut() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/genericSamProjectedOut.kt");
}
@TestMetadata("genericSamProjectedOutWithNewInference.kt")
public void testGenericSamProjectedOutWithNewInference() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/genericSamProjectedOutWithNewInference.kt");
}
@TestMetadata("genericSamSmartcast.kt")
public void testGenericSamSmartcast() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/genericSamSmartcast.kt");
}
@TestMetadata("kt43217.kt")
public void testKt43217() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/kt43217.kt");
}
@TestMetadata("lambdaInstanceOf.kt")
public void testLambdaInstanceOf() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/lambdaInstanceOf.kt");
}
@TestMetadata("notFoundClasses.kt")
public void testNotFoundClasses() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notFoundClasses.kt");
}
@TestMetadata("protectedField.kt")
public void testProtectedField() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/protectedField.kt");
}
@TestMetadata("samTypeParameter.kt")
public void testSamTypeParameter() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/samTypeParameter.kt");
}
@TestMetadata("samUnboundTypeParameter.kt")
public void testSamUnboundTypeParameter() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/samUnboundTypeParameter.kt");
}
@TestMetadata("superCallOfPrintStackTrace.kt")
public void testSuperCallOfPrintStackTrace() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/superCallOfPrintStackTrace.kt");
}
@TestMetadata("compiler/testData/codegen/box/javaInterop/generics")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Generics extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInGenerics() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaInterop/generics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("allWildcardsOnClass.kt")
public void testAllWildcardsOnClass() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/generics/allWildcardsOnClass.kt");
}
@TestMetadata("covariantOverrideWithDeclarationSiteProjection.kt")
public void testCovariantOverrideWithDeclarationSiteProjection() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/generics/covariantOverrideWithDeclarationSiteProjection.kt");
}
@TestMetadata("invariantArgumentsNoWildcard.kt")
public void testInvariantArgumentsNoWildcard() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/generics/invariantArgumentsNoWildcard.kt");
}
@TestMetadata("javaNestedSamInterface.kt")
public void testJavaNestedSamInterface() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/generics/javaNestedSamInterface.kt");
}
@TestMetadata("kt42824.kt")
public void testKt42824() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/generics/kt42824.kt");
}
@TestMetadata("kt42825.kt")
public void testKt42825() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/generics/kt42825.kt");
}
@TestMetadata("propertyVarianceConflict.kt")
public void testPropertyVarianceConflict() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/generics/propertyVarianceConflict.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/javaInterop/notNullAssertions")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class NotNullAssertions extends AbstractLightAnalysisModeTest {
@TestMetadata("kt24258.kt")
public void ignoreKt24258() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/kt24258.kt");
}
@TestMetadata("typeParameterWithMixedNullableAndNotNullableBounds.kt")
public void ignoreTypeParameterWithMixedNullableAndNotNullableBounds() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/typeParameterWithMixedNullableAndNotNullableBounds.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInNotNullAssertions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaInterop/notNullAssertions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("destructuringAssignmentWithNullabilityAssertionOnExtensionReceiver_lv12.kt")
public void testDestructuringAssignmentWithNullabilityAssertionOnExtensionReceiver_lv12() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/destructuringAssignmentWithNullabilityAssertionOnExtensionReceiver_lv12.kt");
}
@TestMetadata("errorMessage.kt")
public void testErrorMessage() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/errorMessage.kt");
}
@TestMetadata("extensionReceiverParameter.kt")
public void testExtensionReceiverParameter() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/extensionReceiverParameter.kt");
}
@TestMetadata("functionAssertion.kt")
public void testFunctionAssertion() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/functionAssertion.kt");
}
@TestMetadata("functionWithBigArity.kt")
public void testFunctionWithBigArity() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/functionWithBigArity.kt");
}
@TestMetadata("incWithNullabilityAssertionOnExtensionReceiver.kt")
public void testIncWithNullabilityAssertionOnExtensionReceiver() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/incWithNullabilityAssertionOnExtensionReceiver.kt");
}
@TestMetadata("incWithNullabilityAssertionOnExtensionReceiverInPrivateOperator.kt")
public void testIncWithNullabilityAssertionOnExtensionReceiverInPrivateOperator() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/incWithNullabilityAssertionOnExtensionReceiverInPrivateOperator.kt");
}
@TestMetadata("kt18911.kt")
public void testKt18911() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/kt18911.kt");
}
@TestMetadata("kt24258nn.kt")
public void testKt24258nn() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/kt24258nn.kt");
}
@TestMetadata("localEntities.kt")
public void testLocalEntities() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/localEntities.kt");
}
@TestMetadata("mapPut.kt")
public void testMapPut() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/mapPut.kt");
}
@TestMetadata("nonNullableTypeParameter.kt")
public void testNonNullableTypeParameter() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nonNullableTypeParameter.kt");
}
@TestMetadata("nullabilityAssertionOnExtensionReceiver.kt")
public void testNullabilityAssertionOnExtensionReceiver() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullabilityAssertionOnExtensionReceiver.kt");
}
@TestMetadata("nullabilityAssertionOnInlineFunExtensionReceiver.kt")
public void testNullabilityAssertionOnInlineFunExtensionReceiver() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullabilityAssertionOnInlineFunExtensionReceiver.kt");
}
@TestMetadata("nullabilityAssertionOnMemberExtensionReceiver.kt")
public void testNullabilityAssertionOnMemberExtensionReceiver() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullabilityAssertionOnMemberExtensionReceiver.kt");
}
@TestMetadata("nullabilityAssertionOnPrivateMemberExtensionReceiver.kt")
public void testNullabilityAssertionOnPrivateMemberExtensionReceiver() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullabilityAssertionOnPrivateMemberExtensionReceiver.kt");
}
@TestMetadata("nullableTypeParameter.kt")
public void testNullableTypeParameter() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullableTypeParameter.kt");
}
@TestMetadata("paramAssertionMessage.kt")
public void testParamAssertionMessage() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/paramAssertionMessage.kt");
}
@TestMetadata("privateOperatorParameterAssertions.kt")
public void testPrivateOperatorParameterAssertions() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/privateOperatorParameterAssertions.kt");
}
@TestMetadata("staticCallErrorMessage.kt")
public void testStaticCallErrorMessage() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/staticCallErrorMessage.kt");
}
@TestMetadata("typeParameterWithMultipleNotNullableBounds.kt")
public void testTypeParameterWithMultipleNotNullableBounds() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/typeParameterWithMultipleNotNullableBounds.kt");
}
@TestMetadata("typeParameterWithMultipleNullableBounds.kt")
public void testTypeParameterWithMultipleNullableBounds() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/typeParameterWithMultipleNullableBounds.kt");
}
@TestMetadata("compiler/testData/codegen/box/javaInterop/notNullAssertions/enhancedNullability")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class EnhancedNullability extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInEnhancedNullability() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaInterop/notNullAssertions/enhancedNullability"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("inFunctionWithExpressionBody.kt")
public void testInFunctionWithExpressionBody() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/enhancedNullability/inFunctionWithExpressionBody.kt");
}
@TestMetadata("inFunctionWithExpressionBodyWithJavaGeneric.kt")
public void testInFunctionWithExpressionBodyWithJavaGeneric() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/enhancedNullability/inFunctionWithExpressionBodyWithJavaGeneric.kt");
}
@TestMetadata("inLambdaReturnWithExpectedType.kt")
public void testInLambdaReturnWithExpectedType() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/enhancedNullability/inLambdaReturnWithExpectedType.kt");
}
@TestMetadata("inLocalFunctionWithExpressionBody.kt")
public void testInLocalFunctionWithExpressionBody() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/enhancedNullability/inLocalFunctionWithExpressionBody.kt");
}
@TestMetadata("inLocalVariableInitializer.kt")
public void testInLocalVariableInitializer() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/enhancedNullability/inLocalVariableInitializer.kt");
}
@TestMetadata("inMemberPropertyInitializer.kt")
public void testInMemberPropertyInitializer() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/enhancedNullability/inMemberPropertyInitializer.kt");
}
@TestMetadata("inPropertyGetterWithExpressionBody.kt")
public void testInPropertyGetterWithExpressionBody() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/enhancedNullability/inPropertyGetterWithExpressionBody.kt");
}
@TestMetadata("inTopLevelPropertyInitializer.kt")
public void testInTopLevelPropertyInitializer() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/enhancedNullability/inTopLevelPropertyInitializer.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullCheckOnLambdaReturnValue")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class NullCheckOnLambdaReturnValue extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInNullCheckOnLambdaReturnValue() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullCheckOnLambdaReturnValue"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("nnStringVsT.kt")
public void testNnStringVsT() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullCheckOnLambdaReturnValue/nnStringVsT.kt");
}
@TestMetadata("nnStringVsTAny.kt")
public void testNnStringVsTAny() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullCheckOnLambdaReturnValue/nnStringVsTAny.kt");
}
@TestMetadata("nnStringVsTConstrained.kt")
public void testNnStringVsTConstrained() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullCheckOnLambdaReturnValue/nnStringVsTConstrained.kt");
}
@TestMetadata("nnStringVsTXArray.kt")
public void testNnStringVsTXArray() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullCheckOnLambdaReturnValue/nnStringVsTXArray.kt");
}
@TestMetadata("nnStringVsTXString.kt")
public void testNnStringVsTXString() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullCheckOnLambdaReturnValue/nnStringVsTXString.kt");
}
@TestMetadata("stringVsT.kt")
public void testStringVsT() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullCheckOnLambdaReturnValue/stringVsT.kt");
}
@TestMetadata("stringVsTAny.kt")
public void testStringVsTAny() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullCheckOnLambdaReturnValue/stringVsTAny.kt");
}
@TestMetadata("stringVsTConstrained.kt")
public void testStringVsTConstrained() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullCheckOnLambdaReturnValue/stringVsTConstrained.kt");
}
@TestMetadata("stringVsTXArray.kt")
public void testStringVsTXArray() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullCheckOnLambdaReturnValue/stringVsTXArray.kt");
}
@TestMetadata("stringVsTXString.kt")
public void testStringVsTXString() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/nullCheckOnLambdaReturnValue/stringVsTXString.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/javaInterop/objectMethods")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ObjectMethods extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInObjectMethods() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaInterop/objectMethods"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("cloneHashSet.kt")
public void testCloneHashSet() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/objectMethods/cloneHashSet.kt");
}
@TestMetadata("cloneHierarchy.kt")
public void testCloneHierarchy() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/objectMethods/cloneHierarchy.kt");
}
@TestMetadata("cloneableClassWithoutClone.kt")
public void testCloneableClassWithoutClone() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/objectMethods/cloneableClassWithoutClone.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/javaVisibility")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class JavaVisibility extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInJavaVisibility() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaVisibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("compiler/testData/codegen/box/javaVisibility/package")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Package extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInPackage() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaVisibility/package"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("kt2781.kt")
public void testKt2781() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/package/kt2781.kt");
}
@TestMetadata("packageClass.kt")
public void testPackageClass() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/package/packageClass.kt");
}
@TestMetadata("packageFun.kt")
public void testPackageFun() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/package/packageFun.kt");
}
@TestMetadata("packageProperty.kt")
public void testPackageProperty() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/package/packageProperty.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/javaVisibility/protectedAndPackage")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ProtectedAndPackage extends AbstractLightAnalysisModeTest {
@TestMetadata("kt42012.kt")
public void ignoreKt42012() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedAndPackage/kt42012.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInProtectedAndPackage() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaVisibility/protectedAndPackage"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("overrideProtectedFunInPackage.kt")
public void testOverrideProtectedFunInPackage() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedAndPackage/overrideProtectedFunInPackage.kt");
}
@TestMetadata("protectedAccessor.kt")
public void testProtectedAccessor() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedAndPackage/protectedAccessor.kt");
}
@TestMetadata("protectedFunInPackage.kt")
public void testProtectedFunInPackage() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedAndPackage/protectedFunInPackage.kt");
}
@TestMetadata("protectedPropertyInPackage.kt")
public void testProtectedPropertyInPackage() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedAndPackage/protectedPropertyInPackage.kt");
}
@TestMetadata("protectedPropertyInPackageFromCrossinline.kt")
public void testProtectedPropertyInPackageFromCrossinline() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedAndPackage/protectedPropertyInPackageFromCrossinline.kt");
}
@TestMetadata("protectedStaticClass.kt")
public void testProtectedStaticClass() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedAndPackage/protectedStaticClass.kt");
}
@TestMetadata("protectedSuperField.kt")
public void testProtectedSuperField() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedAndPackage/protectedSuperField.kt");
}
@TestMetadata("protectedSuperMethod.kt")
public void testProtectedSuperMethod() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedAndPackage/protectedSuperMethod.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/javaVisibility/protectedStatic")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ProtectedStatic extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInProtectedStatic() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaVisibility/protectedStatic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("funCallInConstructor.kt")
public void testFunCallInConstructor() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/funCallInConstructor.kt");
}
@TestMetadata("funClassObject.kt")
public void testFunClassObject() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/funClassObject.kt");
}
@TestMetadata("funGenericClass.kt")
public void testFunGenericClass() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/funGenericClass.kt");
}
@TestMetadata("funNestedStaticClass.kt")
public void testFunNestedStaticClass() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/funNestedStaticClass.kt");
}
@TestMetadata("funNestedStaticClass2.kt")
public void testFunNestedStaticClass2() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/funNestedStaticClass2.kt");
}
@TestMetadata("funNestedStaticGenericClass.kt")
public void testFunNestedStaticGenericClass() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/funNestedStaticGenericClass.kt");
}
@TestMetadata("funNotDirectSuperClass.kt")
public void testFunNotDirectSuperClass() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/funNotDirectSuperClass.kt");
}
@TestMetadata("funObject.kt")
public void testFunObject() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/funObject.kt");
}
@TestMetadata("simpleClass.kt")
public void testSimpleClass() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/simpleClass.kt");
}
@TestMetadata("simpleClass2.kt")
public void testSimpleClass2() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/simpleClass2.kt");
}
@TestMetadata("simpleFun.kt")
public void testSimpleFun() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/simpleFun.kt");
}
@TestMetadata("simpleProperty.kt")
public void testSimpleProperty() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/simpleProperty.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/jdk")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Jdk extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInJdk() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jdk"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("removeIf.kt")
public void testRemoveIf() throws Exception {
runTest("compiler/testData/codegen/box/jdk/removeIf.kt");
}
@TestMetadata("stream.kt")
public void testStream() throws Exception {
runTest("compiler/testData/codegen/box/jdk/stream.kt");
}
@TestMetadata("streamBackwardCompatibility.kt")
public void testStreamBackwardCompatibility() throws Exception {
runTest("compiler/testData/codegen/box/jdk/streamBackwardCompatibility.kt");
}
@TestMetadata("useStream.kt")
public void testUseStream() throws Exception {
runTest("compiler/testData/codegen/box/jdk/useStream.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/jvm8")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Jvm8 extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInJvm8() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("bridgeInClass.kt")
public void testBridgeInClass() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/bridgeInClass.kt");
}
@TestMetadata("bridgeInInterface.kt")
public void testBridgeInInterface() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/bridgeInInterface.kt");
}
@TestMetadata("capturedSuperCall.kt")
public void testCapturedSuperCall() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/capturedSuperCall.kt");
}
@TestMetadata("defaultArgs.kt")
public void testDefaultArgs() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaultArgs.kt");
}
@TestMetadata("inlineFromAnotherFile.kt")
public void testInlineFromAnotherFile() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/inlineFromAnotherFile.kt");
}
@TestMetadata("inlineFromStdlib.kt")
public void testInlineFromStdlib() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/inlineFromStdlib.kt");
}
@TestMetadata("kt11969.kt")
public void testKt11969() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/kt11969.kt");
}
@TestMetadata("kt14243.kt")
public void testKt14243() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/kt14243.kt");
}
@TestMetadata("kt14243_2.kt")
public void testKt14243_2() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/kt14243_2.kt");
}
@TestMetadata("kt14243_prop.kt")
public void testKt14243_prop() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/kt14243_prop.kt");
}
@TestMetadata("kt16581.kt")
public void testKt16581() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/kt16581.kt");
}
@TestMetadata("kt16581_2.kt")
public void testKt16581_2() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/kt16581_2.kt");
}
@TestMetadata("kt16588.kt")
public void testKt16588() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/kt16588.kt");
}
@TestMetadata("kt29242.kt")
public void testKt29242() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/kt29242.kt");
}
@TestMetadata("kt33054.kt")
public void testKt33054() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/kt33054.kt");
}
@TestMetadata("kt6301.kt")
public void testKt6301() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/kt6301.kt");
}
@TestMetadata("kt6301_2.kt")
public void testKt6301_2() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/kt6301_2.kt");
}
@TestMetadata("oneImplementation.kt")
public void testOneImplementation() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/oneImplementation.kt");
}
@TestMetadata("oneImplementation2.kt")
public void testOneImplementation2() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/oneImplementation2.kt");
}
@TestMetadata("simpleCall.kt")
public void testSimpleCall() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/simpleCall.kt");
}
@TestMetadata("simpleProperty.kt")
public void testSimpleProperty() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/simpleProperty.kt");
}
@TestMetadata("treeMapBridge.kt")
public void testTreeMapBridge() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/treeMapBridge.kt");
}
@TestMetadata("compiler/testData/codegen/box/jvm8/defaults")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Defaults extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("26360.kt")
public void test26360() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/26360.kt");
}
@TestMetadata("accessor.kt")
public void testAccessor() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/accessor.kt");
}
@TestMetadata("accessorFromCompanion.kt")
public void testAccessorFromCompanion() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/accessorFromCompanion.kt");
}
@TestMetadata("accessorsFromDefaultImpls.kt")
public void testAccessorsFromDefaultImpls() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/accessorsFromDefaultImpls.kt");
}
public void testAllFilesPresentInDefaults() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("bridgeInClass.kt")
public void testBridgeInClass() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/bridgeInClass.kt");
}
@TestMetadata("bridgeInInterface.kt")
public void testBridgeInInterface() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/bridgeInInterface.kt");
}
@TestMetadata("bridgeInInterface2.kt")
public void testBridgeInInterface2() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/bridgeInInterface2.kt");
}
@TestMetadata("bridgeInInterfaceWithProperties.kt")
public void testBridgeInInterfaceWithProperties() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/bridgeInInterfaceWithProperties.kt");
}
@TestMetadata("bridgeInInterfaceWithProperties2.kt")
public void testBridgeInInterfaceWithProperties2() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/bridgeInInterfaceWithProperties2.kt");
}
@TestMetadata("bridgeWithJava.kt")
public void testBridgeWithJava() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/bridgeWithJava.kt");
}
@TestMetadata("builtInsInherited.kt")
public void testBuiltInsInherited() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/builtInsInherited.kt");
}
@TestMetadata("callableReference.kt")
public void testCallableReference() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/callableReference.kt");
}
@TestMetadata("capturedSuperCall.kt")
public void testCapturedSuperCall() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/capturedSuperCall.kt");
}
@TestMetadata("defaultArgs.kt")
public void testDefaultArgs() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/defaultArgs.kt");
}
@TestMetadata("defaultArgsViaAnonymousObject.kt")
public void testDefaultArgsViaAnonymousObject() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/defaultArgsViaAnonymousObject.kt");
}
@TestMetadata("diamond.kt")
public void testDiamond() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/diamond.kt");
}
@TestMetadata("inheritedFunctionWithDefaultParameters.kt")
public void testInheritedFunctionWithDefaultParameters() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/inheritedFunctionWithDefaultParameters.kt");
}
@TestMetadata("inline.kt")
public void testInline() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/inline.kt");
}
@TestMetadata("inlineProperty.kt")
public void testInlineProperty() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/inlineProperty.kt");
}
@TestMetadata("kt11969.kt")
public void testKt11969() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/kt11969.kt");
}
@TestMetadata("kt14243.kt")
public void testKt14243() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/kt14243.kt");
}
@TestMetadata("kt14243_2.kt")
public void testKt14243_2() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/kt14243_2.kt");
}
@TestMetadata("kt14243_prop.kt")
public void testKt14243_prop() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/kt14243_prop.kt");
}
@TestMetadata("kt40920.kt")
public void testKt40920() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/kt40920.kt");
}
@TestMetadata("kt42674.kt")
public void testKt42674() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/kt42674.kt");
}
@TestMetadata("oneImplementation.kt")
public void testOneImplementation() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/oneImplementation.kt");
}
@TestMetadata("oneImplementation2.kt")
public void testOneImplementation2() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/oneImplementation2.kt");
}
@TestMetadata("privateDefaultFromDefaultImpl.kt")
public void testPrivateDefaultFromDefaultImpl() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/privateDefaultFromDefaultImpl.kt");
}
@TestMetadata("privateInDefaultImpls.kt")
public void testPrivateInDefaultImpls() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/privateInDefaultImpls.kt");
}
@TestMetadata("simpleCall.kt")
public void testSimpleCall() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/simpleCall.kt");
}
@TestMetadata("simpleProperty.kt")
public void testSimpleProperty() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/simpleProperty.kt");
}
@TestMetadata("superCall.kt")
public void testSuperCall() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/superCall.kt");
}
@TestMetadata("suspendFunction.kt")
public void testSuspendFunction() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/suspendFunction.kt");
}
@TestMetadata("compiler/testData/codegen/box/jvm8/defaults/allCompatibility")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class AllCompatibility extends AbstractLightAnalysisModeTest {
@TestMetadata("privateSuspend.kt")
public void ignorePrivateSuspend() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/privateSuspend.kt");
}
@TestMetadata("suspendFunction.kt")
public void ignoreSuspendFunction() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/suspendFunction.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("accessor.kt")
public void testAccessor() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/accessor.kt");
}
@TestMetadata("accessorFromCompanion.kt")
public void testAccessorFromCompanion() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/accessorFromCompanion.kt");
}
public void testAllFilesPresentInAllCompatibility() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults/allCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("bridge.kt")
public void testBridge() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/bridge.kt");
}
@TestMetadata("bridge2.kt")
public void testBridge2() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/bridge2.kt");
}
@TestMetadata("bridge3.kt")
public void testBridge3() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/bridge3.kt");
}
@TestMetadata("bridgeInClass.kt")
public void testBridgeInClass() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/bridgeInClass.kt");
}
@TestMetadata("bridgeInInterface.kt")
public void testBridgeInInterface() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/bridgeInInterface.kt");
}
@TestMetadata("bridgeInInterface2.kt")
public void testBridgeInInterface2() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/bridgeInInterface2.kt");
}
@TestMetadata("bridgeInInterfaceWithProperties.kt")
public void testBridgeInInterfaceWithProperties() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/bridgeInInterfaceWithProperties.kt");
}
@TestMetadata("bridgeInInterfaceWithProperties2.kt")
public void testBridgeInInterfaceWithProperties2() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/bridgeInInterfaceWithProperties2.kt");
}
@TestMetadata("bridgeWithJava.kt")
public void testBridgeWithJava() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/bridgeWithJava.kt");
}
@TestMetadata("bridgeWithProperties.kt")
public void testBridgeWithProperties() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/bridgeWithProperties.kt");
}
@TestMetadata("bridgeWithProperties2.kt")
public void testBridgeWithProperties2() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/bridgeWithProperties2.kt");
}
@TestMetadata("bridgeWithProperties3.kt")
public void testBridgeWithProperties3() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/bridgeWithProperties3.kt");
}
@TestMetadata("callStackTrace.kt")
public void testCallStackTrace() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/callStackTrace.kt");
}
@TestMetadata("defaultArgs.kt")
public void testDefaultArgs() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/defaultArgs.kt");
}
@TestMetadata("defaultArgsViaAnonymousObject.kt")
public void testDefaultArgsViaAnonymousObject() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/defaultArgsViaAnonymousObject.kt");
}
@TestMetadata("deprecatedDefaultMethod.kt")
public void testDeprecatedDefaultMethod() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/deprecatedDefaultMethod.kt");
}
@TestMetadata("funInterface.kt")
public void testFunInterface() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/funInterface.kt");
}
@TestMetadata("inheritedFunctionWithDefaultParameters.kt")
public void testInheritedFunctionWithDefaultParameters() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/inheritedFunctionWithDefaultParameters.kt");
}
@TestMetadata("inheritedJvmDefault.kt")
public void testInheritedJvmDefault() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/inheritedJvmDefault.kt");
}
@TestMetadata("interfaceExtension.kt")
public void testInterfaceExtension() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/interfaceExtension.kt");
}
@TestMetadata("kt14243.kt")
public void testKt14243() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/kt14243.kt");
}
@TestMetadata("kt14243_2.kt")
public void testKt14243_2() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/kt14243_2.kt");
}
@TestMetadata("kt42674.kt")
public void testKt42674() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/kt42674.kt");
}
@TestMetadata("localDelegatedProperties.kt")
public void testLocalDelegatedProperties() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/localDelegatedProperties.kt");
}
@TestMetadata("privateFunInInterface.kt")
public void testPrivateFunInInterface() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/privateFunInInterface.kt");
}
@TestMetadata("privateFunWithDefaultArg.kt")
public void testPrivateFunWithDefaultArg() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/privateFunWithDefaultArg.kt");
}
@TestMetadata("privateFunWithDefaultArg2.kt")
public void testPrivateFunWithDefaultArg2() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/privateFunWithDefaultArg2.kt");
}
@TestMetadata("propertyAnnotation.kt")
public void testPropertyAnnotation() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/propertyAnnotation.kt");
}
@TestMetadata("simpleFunction.kt")
public void testSimpleFunction() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/simpleFunction.kt");
}
@TestMetadata("superCall.kt")
public void testSuperCall() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/superCall.kt");
}
@TestMetadata("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/delegationBy")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class DelegationBy extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInDelegationBy() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/delegationBy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/delegationBy/simple.kt");
}
@TestMetadata("simpleProperty.kt")
public void testSimpleProperty() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/jvm8/defaults/compatibility")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Compatibility extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInCompatibility() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults/compatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("bridge.kt")
public void testBridge() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/compatibility/bridge.kt");
}
@TestMetadata("bridge2.kt")
public void testBridge2() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/compatibility/bridge2.kt");
}
@TestMetadata("bridge3.kt")
public void testBridge3() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/compatibility/bridge3.kt");
}
@TestMetadata("bridgeWithProperties.kt")
public void testBridgeWithProperties() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/compatibility/bridgeWithProperties.kt");
}
@TestMetadata("bridgeWithProperties2.kt")
public void testBridgeWithProperties2() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/compatibility/bridgeWithProperties2.kt");
}
@TestMetadata("bridgeWithProperties3.kt")
public void testBridgeWithProperties3() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/compatibility/bridgeWithProperties3.kt");
}
@TestMetadata("defaultArgs.kt")
public void testDefaultArgs() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/compatibility/defaultArgs.kt");
}
@TestMetadata("defaultArgsViaAnonymousObject.kt")
public void testDefaultArgsViaAnonymousObject() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/compatibility/defaultArgsViaAnonymousObject.kt");
}
@TestMetadata("deprecatedAnnotation.kt")
public void testDeprecatedAnnotation() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/compatibility/deprecatedAnnotation.kt");
}
@TestMetadata("deprecatedDefaultMethod.kt")
public void testDeprecatedDefaultMethod() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/compatibility/deprecatedDefaultMethod.kt");
}
@TestMetadata("inheritedFunctionWithDefaultParameters.kt")
public void testInheritedFunctionWithDefaultParameters() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/compatibility/inheritedFunctionWithDefaultParameters.kt");
}
@TestMetadata("inheritedJvmDefault.kt")
public void testInheritedJvmDefault() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/compatibility/inheritedJvmDefault.kt");
}
@TestMetadata("interfaceExtension.kt")
public void testInterfaceExtension() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/compatibility/interfaceExtension.kt");
}
@TestMetadata("kt42674.kt")
public void testKt42674() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/compatibility/kt42674.kt");
}
@TestMetadata("propertyAnnotation.kt")
public void testPropertyAnnotation() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/compatibility/propertyAnnotation.kt");
}
@TestMetadata("simpleFunction.kt")
public void testSimpleFunction() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/compatibility/simpleFunction.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/jvm8/defaults/delegationBy")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class DelegationBy extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInDelegationBy() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults/delegationBy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/delegationBy/simple.kt");
}
@TestMetadata("simpleProperty.kt")
public void testSimpleProperty() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/delegationBy/simpleProperty.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class NoDefaultImpls extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("accessor.kt")
public void testAccessor() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/accessor.kt");
}
@TestMetadata("accessorFromCompanion.kt")
public void testAccessorFromCompanion() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/accessorFromCompanion.kt");
}
public void testAllFilesPresentInNoDefaultImpls() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("bridge.kt")
public void testBridge() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/bridge.kt");
}
@TestMetadata("bridge2.kt")
public void testBridge2() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/bridge2.kt");
}
@TestMetadata("bridge3.kt")
public void testBridge3() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/bridge3.kt");
}
@TestMetadata("bridgeInClass.kt")
public void testBridgeInClass() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/bridgeInClass.kt");
}
@TestMetadata("bridgeInInterface.kt")
public void testBridgeInInterface() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/bridgeInInterface.kt");
}
@TestMetadata("bridgeInInterface2.kt")
public void testBridgeInInterface2() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/bridgeInInterface2.kt");
}
@TestMetadata("bridgeInInterfaceWithProperties.kt")
public void testBridgeInInterfaceWithProperties() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/bridgeInInterfaceWithProperties.kt");
}
@TestMetadata("bridgeInInterfaceWithProperties2.kt")
public void testBridgeInInterfaceWithProperties2() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/bridgeInInterfaceWithProperties2.kt");
}
@TestMetadata("bridgeWithJava.kt")
public void testBridgeWithJava() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/bridgeWithJava.kt");
}
@TestMetadata("bridgeWithProperties.kt")
public void testBridgeWithProperties() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/bridgeWithProperties.kt");
}
@TestMetadata("bridgeWithProperties2.kt")
public void testBridgeWithProperties2() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/bridgeWithProperties2.kt");
}
@TestMetadata("bridgeWithProperties3.kt")
public void testBridgeWithProperties3() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/bridgeWithProperties3.kt");
}
@TestMetadata("defaultArgs.kt")
public void testDefaultArgs() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/defaultArgs.kt");
}
@TestMetadata("defaultArgsViaAnonymousObject.kt")
public void testDefaultArgsViaAnonymousObject() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/defaultArgsViaAnonymousObject.kt");
}
@TestMetadata("funInterface.kt")
public void testFunInterface() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/funInterface.kt");
}
@TestMetadata("inheritedFunctionWithDefaultParameters.kt")
public void testInheritedFunctionWithDefaultParameters() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/inheritedFunctionWithDefaultParameters.kt");
}
@TestMetadata("inheritedJvmDefault.kt")
public void testInheritedJvmDefault() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/inheritedJvmDefault.kt");
}
@TestMetadata("interfaceExtension.kt")
public void testInterfaceExtension() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/interfaceExtension.kt");
}
@TestMetadata("kt14243.kt")
public void testKt14243() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/kt14243.kt");
}
@TestMetadata("kt14243_2.kt")
public void testKt14243_2() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/kt14243_2.kt");
}
@TestMetadata("kt40920.kt")
public void testKt40920() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/kt40920.kt");
}
@TestMetadata("kt42674.kt")
public void testKt42674() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/kt42674.kt");
}
@TestMetadata("localDelegatedProperties.kt")
public void testLocalDelegatedProperties() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/localDelegatedProperties.kt");
}
@TestMetadata("localDelegatedProperties2.kt")
public void testLocalDelegatedProperties2() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/localDelegatedProperties2.kt");
}
@TestMetadata("privateFunInInterface.kt")
public void testPrivateFunInInterface() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/privateFunInInterface.kt");
}
@TestMetadata("privateFunWithDefaultArg.kt")
public void testPrivateFunWithDefaultArg() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/privateFunWithDefaultArg.kt");
}
@TestMetadata("privateSuspend.kt")
public void testPrivateSuspend() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/privateSuspend.kt");
}
@TestMetadata("propertyAnnotation.kt")
public void testPropertyAnnotation() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/propertyAnnotation.kt");
}
@TestMetadata("simpleFunction.kt")
public void testSimpleFunction() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/simpleFunction.kt");
}
@TestMetadata("suspendFunction.kt")
public void testSuspendFunction() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/suspendFunction.kt");
}
@TestMetadata("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/delegationBy")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class DelegationBy extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInDelegationBy() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/delegationBy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/delegationBy/simple.kt");
}
@TestMetadata("simpleProperty.kt")
public void testSimpleProperty() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/delegationBy/simpleProperty.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/specialization")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Specialization extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInSpecialization() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/specialization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("basic.kt")
public void testBasic() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/specialization/basic.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/jvm8/defaults/noDelegation")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class NoDelegation extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInNoDelegation() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults/noDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("noDelegationToDefaultMethodInClass.kt")
public void testNoDelegationToDefaultMethodInClass() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDelegation/noDelegationToDefaultMethodInClass.kt");
}
@TestMetadata("noDelegationToDefaultMethodInInterface.kt")
public void testNoDelegationToDefaultMethodInInterface() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDelegation/noDelegationToDefaultMethodInInterface.kt");
}
@TestMetadata("noDelegationToDefaultMethodInInterface2.kt")
public void testNoDelegationToDefaultMethodInInterface2() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/noDelegation/noDelegationToDefaultMethodInInterface2.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/jvm8/defaults/reflection")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Reflection extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInReflection() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults/reflection"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("propertyAnnotations.kt")
public void testPropertyAnnotations() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/defaults/reflection/propertyAnnotations.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/jvm8/interfaceFlag")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class InterfaceFlag extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInInterfaceFlag() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/interfaceFlag"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("superCall.kt")
public void testSuperCall() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/interfaceFlag/superCall.kt");
}
@TestMetadata("superCallIndirect.kt")
public void testSuperCallIndirect() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/interfaceFlag/superCallIndirect.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/jvm8/javaDefaults")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class JavaDefaults extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInJavaDefaults() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/javaDefaults"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("capturedSuperCall.kt")
public void testCapturedSuperCall() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/javaDefaults/capturedSuperCall.kt");
}
@TestMetadata("defaultMethodCallFromInterface.kt")
public void testDefaultMethodCallFromInterface() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/javaDefaults/defaultMethodCallFromInterface.kt");
}
@TestMetadata("defaultMethodCallViaClass.kt")
public void testDefaultMethodCallViaClass() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/javaDefaults/defaultMethodCallViaClass.kt");
}
@TestMetadata("defaultMethodCallViaInterface.kt")
public void testDefaultMethodCallViaInterface() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/javaDefaults/defaultMethodCallViaInterface.kt");
}
@TestMetadata("defaultMethodOverride.kt")
public void testDefaultMethodOverride() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/javaDefaults/defaultMethodOverride.kt");
}
@TestMetadata("dontDelegateToDefaultMethods.kt")
public void testDontDelegateToDefaultMethods() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/javaDefaults/dontDelegateToDefaultMethods.kt");
}
@TestMetadata("inheritKotlin.kt")
public void testInheritKotlin() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/javaDefaults/inheritKotlin.kt");
}
@TestMetadata("invokeDefaultViaSuper.kt")
public void testInvokeDefaultViaSuper() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/javaDefaults/invokeDefaultViaSuper.kt");
}
@TestMetadata("kt40920.kt")
public void testKt40920() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/javaDefaults/kt40920.kt");
}
@TestMetadata("kt40920_java.kt")
public void testKt40920_java() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/javaDefaults/kt40920_java.kt");
}
@TestMetadata("kt40920_java2.kt")
public void testKt40920_java2() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/javaDefaults/kt40920_java2.kt");
}
@TestMetadata("kt40920_map.kt")
public void testKt40920_map() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/javaDefaults/kt40920_map.kt");
}
@TestMetadata("longChainOfKotlinExtendsFromJavaWithDefault.kt")
public void testLongChainOfKotlinExtendsFromJavaWithDefault() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/javaDefaults/longChainOfKotlinExtendsFromJavaWithDefault.kt");
}
@TestMetadata("samOnInterfaceWithDefaultMethod.kt")
public void testSamOnInterfaceWithDefaultMethod() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/javaDefaults/samOnInterfaceWithDefaultMethod.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/jvmField")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class JvmField extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInJvmField() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("annotationCompanion.kt")
public void testAnnotationCompanion() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/annotationCompanion.kt");
}
@TestMetadata("annotationCompanionWithJava.kt")
public void testAnnotationCompanionWithJava() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/annotationCompanionWithJava.kt");
}
@TestMetadata("captureClassFields.kt")
public void testCaptureClassFields() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/captureClassFields.kt");
}
@TestMetadata("capturePackageFields.kt")
public void testCapturePackageFields() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/capturePackageFields.kt");
}
@TestMetadata("checkNoAccessors.kt")
public void testCheckNoAccessors() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/checkNoAccessors.kt");
}
@TestMetadata("clashWithJavaSuperClassField.kt")
public void testClashWithJavaSuperClassField() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/clashWithJavaSuperClassField.kt");
}
@TestMetadata("classFieldReference.kt")
public void testClassFieldReference() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/classFieldReference.kt");
}
@TestMetadata("classFieldReflection.kt")
public void testClassFieldReflection() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/classFieldReflection.kt");
}
@TestMetadata("compoundAccess.kt")
public void testCompoundAccess() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/compoundAccess.kt");
}
@TestMetadata("constructorProperty.kt")
public void testConstructorProperty() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/constructorProperty.kt");
}
@TestMetadata("diamond.kt")
public void testDiamond() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/diamond.kt");
}
@TestMetadata("fileOrder.kt")
public void testFileOrder() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/fileOrder.kt");
}
@TestMetadata("fileOrderWithCopying.kt")
public void testFileOrderWithCopying() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/fileOrderWithCopying.kt");
}
@TestMetadata("initializersOrder.kt")
public void testInitializersOrder() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/initializersOrder.kt");
}
@TestMetadata("interfaceCompanion.kt")
public void testInterfaceCompanion() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/interfaceCompanion.kt");
}
@TestMetadata("interfaceCompanionWithJava.kt")
public void testInterfaceCompanionWithJava() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/interfaceCompanionWithJava.kt");
}
@TestMetadata("kt47328.kt")
public void testKt47328() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/kt47328.kt");
}
@TestMetadata("kt47328_inherited.kt")
public void testKt47328_inherited() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/kt47328_inherited.kt");
}
@TestMetadata("kt47328_super.kt")
public void testKt47328_super() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/kt47328_super.kt");
}
@TestMetadata("kt47328_var.kt")
public void testKt47328_var() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/kt47328_var.kt");
}
@TestMetadata("kt47739.kt")
public void testKt47739() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/kt47739.kt");
}
@TestMetadata("publicField.kt")
public void testPublicField() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/publicField.kt");
}
@TestMetadata("publicFieldJava.kt")
public void testPublicFieldJava() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/publicFieldJava.kt");
}
@TestMetadata("simpleMemberProperty.kt")
public void testSimpleMemberProperty() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/simpleMemberProperty.kt");
}
@TestMetadata("superCall.kt")
public void testSuperCall() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/superCall.kt");
}
@TestMetadata("superCall2.kt")
public void testSuperCall2() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/superCall2.kt");
}
@TestMetadata("topLevelFieldReference.kt")
public void testTopLevelFieldReference() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/topLevelFieldReference.kt");
}
@TestMetadata("topLevelFieldReflection.kt")
public void testTopLevelFieldReflection() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/topLevelFieldReflection.kt");
}
@TestMetadata("visibility.kt")
public void testVisibility() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/visibility.kt");
}
@TestMetadata("writeFieldReference.kt")
public void testWriteFieldReference() throws Exception {
runTest("compiler/testData/codegen/box/jvmField/writeFieldReference.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/jvmName")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class JvmName extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInJvmName() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmName"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("annotationProperties.kt")
public void testAnnotationProperties() throws Exception {
runTest("compiler/testData/codegen/box/jvmName/annotationProperties.kt");
}
@TestMetadata("callableReference.kt")
public void testCallableReference() throws Exception {
runTest("compiler/testData/codegen/box/jvmName/callableReference.kt");
}
@TestMetadata("clashingErasure.kt")
public void testClashingErasure() throws Exception {
runTest("compiler/testData/codegen/box/jvmName/clashingErasure.kt");
}
@TestMetadata("classMembers.kt")
public void testClassMembers() throws Exception {
runTest("compiler/testData/codegen/box/jvmName/classMembers.kt");
}
@TestMetadata("fakeJvmNameInJava.kt")
public void testFakeJvmNameInJava() throws Exception {
runTest("compiler/testData/codegen/box/jvmName/fakeJvmNameInJava.kt");
}
@TestMetadata("functionName.kt")
public void testFunctionName() throws Exception {
runTest("compiler/testData/codegen/box/jvmName/functionName.kt");
}
@TestMetadata("functionWithDefault.kt")
public void testFunctionWithDefault() throws Exception {
runTest("compiler/testData/codegen/box/jvmName/functionWithDefault.kt");
}
@TestMetadata("kt23974.kt")
public void testKt23974() throws Exception {
runTest("compiler/testData/codegen/box/jvmName/kt23974.kt");
}
@TestMetadata("loadJvmName.kt")
public void testLoadJvmName() throws Exception {
runTest("compiler/testData/codegen/box/jvmName/loadJvmName.kt");
}
@TestMetadata("multifileClass.kt")
public void testMultifileClass() throws Exception {
runTest("compiler/testData/codegen/box/jvmName/multifileClass.kt");
}
@TestMetadata("multifileClassWithLocalClass.kt")
public void testMultifileClassWithLocalClass() throws Exception {
runTest("compiler/testData/codegen/box/jvmName/multifileClassWithLocalClass.kt");
}
@TestMetadata("multifileClassWithLocalGeneric.kt")
public void testMultifileClassWithLocalGeneric() throws Exception {
runTest("compiler/testData/codegen/box/jvmName/multifileClassWithLocalGeneric.kt");
}
@TestMetadata("propertyAccessorsUseSite.kt")
public void testPropertyAccessorsUseSite() throws Exception {
runTest("compiler/testData/codegen/box/jvmName/propertyAccessorsUseSite.kt");
}
@TestMetadata("propertyName.kt")
public void testPropertyName() throws Exception {
runTest("compiler/testData/codegen/box/jvmName/propertyName.kt");
}
@TestMetadata("propertySyntheticMethod.kt")
public void testPropertySyntheticMethod() throws Exception {
runTest("compiler/testData/codegen/box/jvmName/propertySyntheticMethod.kt");
}
@TestMetadata("renamedFileClass.kt")
public void testRenamedFileClass() throws Exception {
runTest("compiler/testData/codegen/box/jvmName/renamedFileClass.kt");
}
@TestMetadata("compiler/testData/codegen/box/jvmName/fileFacades")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class FileFacades extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInFileFacades() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmName/fileFacades"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("differentFiles.kt")
public void testDifferentFiles() throws Exception {
runTest("compiler/testData/codegen/box/jvmName/fileFacades/differentFiles.kt");
}
@TestMetadata("javaAnnotationOnFileFacade.kt")
public void testJavaAnnotationOnFileFacade() throws Exception {
runTest("compiler/testData/codegen/box/jvmName/fileFacades/javaAnnotationOnFileFacade.kt");
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("compiler/testData/codegen/box/jvmName/fileFacades/simple.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/jvmOverloads")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class JvmOverloads extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInJvmOverloads() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmOverloads"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("companionObject.kt")
public void testCompanionObject() throws Exception {
runTest("compiler/testData/codegen/box/jvmOverloads/companionObject.kt");
}
@TestMetadata("constructorWithTypeParams.kt")
public void testConstructorWithTypeParams() throws Exception {
runTest("compiler/testData/codegen/box/jvmOverloads/constructorWithTypeParams.kt");
}
@TestMetadata("defaultsNotAtEnd.kt")
public void testDefaultsNotAtEnd() throws Exception {
runTest("compiler/testData/codegen/box/jvmOverloads/defaultsNotAtEnd.kt");
}
@TestMetadata("doubleParameters.kt")
public void testDoubleParameters() throws Exception {
runTest("compiler/testData/codegen/box/jvmOverloads/doubleParameters.kt");
}
@TestMetadata("extensionMethod.kt")
public void testExtensionMethod() throws Exception {
runTest("compiler/testData/codegen/box/jvmOverloads/extensionMethod.kt");
}
@TestMetadata("generics.kt")
public void testGenerics() throws Exception {
runTest("compiler/testData/codegen/box/jvmOverloads/generics.kt");
}
@TestMetadata("innerClass.kt")
public void testInnerClass() throws Exception {
runTest("compiler/testData/codegen/box/jvmOverloads/innerClass.kt");
}
@TestMetadata("manyParameters.kt")
public void testManyParameters() throws Exception {
runTest("compiler/testData/codegen/box/jvmOverloads/manyParameters.kt");
}
@TestMetadata("multifileClass.kt")
public void testMultifileClass() throws Exception {
runTest("compiler/testData/codegen/box/jvmOverloads/multifileClass.kt");
}
@TestMetadata("multipleDefaultParameters.kt")
public void testMultipleDefaultParameters() throws Exception {
runTest("compiler/testData/codegen/box/jvmOverloads/multipleDefaultParameters.kt");
}
@TestMetadata("noRedundantVarargs.kt")
public void testNoRedundantVarargs() throws Exception {
runTest("compiler/testData/codegen/box/jvmOverloads/noRedundantVarargs.kt");
}
@TestMetadata("nonDefaultParameter.kt")
public void testNonDefaultParameter() throws Exception {
runTest("compiler/testData/codegen/box/jvmOverloads/nonDefaultParameter.kt");
}
@TestMetadata("primaryConstructor.kt")
public void testPrimaryConstructor() throws Exception {
runTest("compiler/testData/codegen/box/jvmOverloads/primaryConstructor.kt");
}
@TestMetadata("primaryConstructorWithAllDefaults.kt")
public void testPrimaryConstructorWithAllDefaults() throws Exception {
runTest("compiler/testData/codegen/box/jvmOverloads/primaryConstructorWithAllDefaults.kt");
}
@TestMetadata("privateClass.kt")
public void testPrivateClass() throws Exception {
runTest("compiler/testData/codegen/box/jvmOverloads/privateClass.kt");
}
@TestMetadata("secondaryConstructor.kt")
public void testSecondaryConstructor() throws Exception {
runTest("compiler/testData/codegen/box/jvmOverloads/secondaryConstructor.kt");
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("compiler/testData/codegen/box/jvmOverloads/simple.kt");
}
@TestMetadata("simpleJavaCall.kt")
public void testSimpleJavaCall() throws Exception {
runTest("compiler/testData/codegen/box/jvmOverloads/simpleJavaCall.kt");
}
@TestMetadata("subClass.kt")
public void testSubClass() throws Exception {
runTest("compiler/testData/codegen/box/jvmOverloads/subClass.kt");
}
@TestMetadata("typeParameters.kt")
public void testTypeParameters() throws Exception {
runTest("compiler/testData/codegen/box/jvmOverloads/typeParameters.kt");
}
@TestMetadata("varargs.kt")
public void testVarargs() throws Exception {
runTest("compiler/testData/codegen/box/jvmOverloads/varargs.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/jvmPackageName")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class JvmPackageName extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInJvmPackageName() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmPackageName"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("anonymousObject.kt")
public void testAnonymousObject() throws Exception {
runTest("compiler/testData/codegen/box/jvmPackageName/anonymousObject.kt");
}
@TestMetadata("anonymousObjectInInheritedMultifilePart.kt")
public void testAnonymousObjectInInheritedMultifilePart() throws Exception {
runTest("compiler/testData/codegen/box/jvmPackageName/anonymousObjectInInheritedMultifilePart.kt");
}
@TestMetadata("anonymousObjectInMultifilePart.kt")
public void testAnonymousObjectInMultifilePart() throws Exception {
runTest("compiler/testData/codegen/box/jvmPackageName/anonymousObjectInMultifilePart.kt");
}
@TestMetadata("localClass.kt")
public void testLocalClass() throws Exception {
runTest("compiler/testData/codegen/box/jvmPackageName/localClass.kt");
}
@TestMetadata("metadataField.kt")
public void testMetadataField() throws Exception {
runTest("compiler/testData/codegen/box/jvmPackageName/metadataField.kt");
}
@TestMetadata("multifileClass.kt")
public void testMultifileClass() throws Exception {
runTest("compiler/testData/codegen/box/jvmPackageName/multifileClass.kt");
}
@TestMetadata("rootPackage.kt")
public void testRootPackage() throws Exception {
runTest("compiler/testData/codegen/box/jvmPackageName/rootPackage.kt");
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("compiler/testData/codegen/box/jvmPackageName/simple.kt");
}
@TestMetadata("withJvmName.kt")
public void testWithJvmName() throws Exception {
runTest("compiler/testData/codegen/box/jvmPackageName/withJvmName.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/jvmStatic")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class JvmStatic extends AbstractLightAnalysisModeTest {
@TestMetadata("extensionPropertyGetter.kt")
public void ignoreExtensionPropertyGetter() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/extensionPropertyGetter.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInJvmStatic() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmStatic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("annotations.kt")
public void testAnnotations() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/annotations.kt");
}
@TestMetadata("closure.kt")
public void testClosure() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/closure.kt");
}
@TestMetadata("companionObject.kt")
public void testCompanionObject() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/companionObject.kt");
}
@TestMetadata("convention.kt")
public void testConvention() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/convention.kt");
}
@TestMetadata("default.kt")
public void testDefault() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/default.kt");
}
@TestMetadata("defaultCrossFile.kt")
public void testDefaultCrossFile() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/defaultCrossFile.kt");
}
@TestMetadata("enumCompanion.kt")
public void testEnumCompanion() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/enumCompanion.kt");
}
@TestMetadata("explicitObject.kt")
public void testExplicitObject() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/explicitObject.kt");
}
@TestMetadata("funAccess.kt")
public void testFunAccess() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/funAccess.kt");
}
@TestMetadata("functionReference.kt")
public void testFunctionReference() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/functionReference.kt");
}
@TestMetadata("importStaticMemberFromObject.kt")
public void testImportStaticMemberFromObject() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/importStaticMemberFromObject.kt");
}
@TestMetadata("inline.kt")
public void testInline() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/inline.kt");
}
@TestMetadata("inlinePropertyAccessors.kt")
public void testInlinePropertyAccessors() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/inlinePropertyAccessors.kt");
}
@TestMetadata("interfaceCompanion.kt")
public void testInterfaceCompanion() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/interfaceCompanion.kt");
}
@TestMetadata("jvmNameForAccessor.kt")
public void testJvmNameForAccessor() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/jvmNameForAccessor.kt");
}
@TestMetadata("kt21246.kt")
public void testKt21246() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/kt21246.kt");
}
@TestMetadata("kt21246a.kt")
public void testKt21246a() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/kt21246a.kt");
}
@TestMetadata("kt31389.kt")
public void testKt31389() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/kt31389.kt");
}
@TestMetadata("kt35716.kt")
public void testKt35716() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/kt35716.kt");
}
@TestMetadata("kt45408.kt")
public void testKt45408() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/kt45408.kt");
}
@TestMetadata("kt46568.kt")
public void testKt46568() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/kt46568.kt");
}
@TestMetadata("kt9897_static.kt")
public void testKt9897_static() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/kt9897_static.kt");
}
@TestMetadata("object.kt")
public void testObject() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/object.kt");
}
@TestMetadata("postfixInc.kt")
public void testPostfixInc() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/postfixInc.kt");
}
@TestMetadata("prefixInc.kt")
public void testPrefixInc() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/prefixInc.kt");
}
@TestMetadata("privateMethod.kt")
public void testPrivateMethod() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/privateMethod.kt");
}
@TestMetadata("privateSetter.kt")
public void testPrivateSetter() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/privateSetter.kt");
}
@TestMetadata("propertyAccess.kt")
public void testPropertyAccess() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/propertyAccess.kt");
}
@TestMetadata("propertyAccessorsCompanion.kt")
public void testPropertyAccessorsCompanion() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/propertyAccessorsCompanion.kt");
}
@TestMetadata("propertyAccessorsObject.kt")
public void testPropertyAccessorsObject() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/propertyAccessorsObject.kt");
}
@TestMetadata("propertyAsDefault.kt")
public void testPropertyAsDefault() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/propertyAsDefault.kt");
}
@TestMetadata("propertyGetterDelegatesToAnother.kt")
public void testPropertyGetterDelegatesToAnother() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/propertyGetterDelegatesToAnother.kt");
}
@TestMetadata("propertyReference.kt")
public void testPropertyReference() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/propertyReference.kt");
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/simple.kt");
}
@TestMetadata("syntheticAccessor.kt")
public void testSyntheticAccessor() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/syntheticAccessor.kt");
}
@TestMetadata("compiler/testData/codegen/box/jvmStatic/protectedInSuperClass")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ProtectedInSuperClass extends AbstractLightAnalysisModeTest {
@TestMetadata("simpleFunction.kt")
public void ignoreSimpleFunction() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/protectedInSuperClass/simpleFunction.kt");
}
@TestMetadata("simpleProperty.kt")
public void ignoreSimpleProperty() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/protectedInSuperClass/simpleProperty.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInProtectedInSuperClass() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmStatic/protectedInSuperClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("defaultArguments.kt")
public void testDefaultArguments() throws Exception {
runTest("compiler/testData/codegen/box/jvmStatic/protectedInSuperClass/defaultArguments.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/labels")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Labels extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInLabels() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/labels"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInLazyCodegen() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lazyCodegen"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInOptimizations() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lazyCodegen/optimizations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
@TestMetadata("capturingInDefaultConstructorParameter.kt")
public void ignoreCapturingInDefaultConstructorParameter() throws Exception {
runTest("compiler/testData/codegen/box/localClasses/capturingInDefaultConstructorParameter.kt");
}
@TestMetadata("closureOfInnerLocalClass.kt")
public void ignoreClosureOfInnerLocalClass() throws Exception {
runTest("compiler/testData/codegen/box/localClasses/closureOfInnerLocalClass.kt");
}
@TestMetadata("closureWithSelfInstantiation.kt")
public void ignoreClosureWithSelfInstantiation() throws Exception {
runTest("compiler/testData/codegen/box/localClasses/closureWithSelfInstantiation.kt");
}
@TestMetadata("defaultParameterInConstructor.kt")
public void ignoreDefaultParameterInConstructor() throws Exception {
runTest("compiler/testData/codegen/box/localClasses/defaultParameterInConstructor.kt");
}
@TestMetadata("kt10835.kt")
public void ignoreKt10835() throws Exception {
runTest("compiler/testData/codegen/box/localClasses/kt10835.kt");
}
@TestMetadata("kt10835a.kt")
public void ignoreKt10835a() throws Exception {
runTest("compiler/testData/codegen/box/localClasses/kt10835a.kt");
}
@TestMetadata("kt45383.kt")
public void ignoreKt45383() throws Exception {
runTest("compiler/testData/codegen/box/localClasses/kt45383.kt");
}
@TestMetadata("subclassingExtensionReceiverClass.kt")
public void ignoreSubclassingExtensionReceiverClass() throws Exception {
runTest("compiler/testData/codegen/box/localClasses/subclassingExtensionReceiverClass.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInLocalClasses() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("closureOfLambdaInLocalClass.kt")
public void testClosureOfLambdaInLocalClass() throws Exception {
runTest("compiler/testData/codegen/box/localClasses/closureOfLambdaInLocalClass.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("localGenericWithTypeParameters.kt")
public void testLocalGenericWithTypeParameters() throws Exception {
runTest("compiler/testData/codegen/box/localClasses/localGenericWithTypeParameters.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("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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInMangling() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/mangling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("field.kt")
public void testField() throws Exception {
runTest("compiler/testData/codegen/box/mangling/field.kt");
}
@TestMetadata("fun.kt")
public void testFun() throws Exception {
runTest("compiler/testData/codegen/box/mangling/fun.kt");
}
@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("noOverrideWithJava.kt")
public void testNoOverrideWithJava() throws Exception {
runTest("compiler/testData/codegen/box/mangling/noOverrideWithJava.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInMixedNamedPosition() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/mixedNamedPosition"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("varargsEvaluationOrder.kt")
public void testVarargsEvaluationOrder() throws Exception {
runTest("compiler/testData/codegen/box/mixedNamedPosition/varargsEvaluationOrder.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/multiDecl")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class MultiDecl extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInMultiDecl() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInForIterator() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forIterator"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInLongIterator() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forIterator/longIterator"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInForRange() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forRange"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInExplicitRangeTo() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInInt() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/int"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInLong() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo/long"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInExplicitRangeToWithDot() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInInt() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/int"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInLong() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeToWithDot/long"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInInt() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forRange/int"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInLong() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forRange/long"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInMultifileClasses() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multifileClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("callMultifileClassMemberFromOtherPackage.kt")
public void testCallMultifileClassMemberFromOtherPackage() throws Exception {
runTest("compiler/testData/codegen/box/multifileClasses/callMultifileClassMemberFromOtherPackage.kt");
}
@TestMetadata("callsToMultifileClassFromOtherPackage.kt")
public void testCallsToMultifileClassFromOtherPackage() throws Exception {
runTest("compiler/testData/codegen/box/multifileClasses/callsToMultifileClassFromOtherPackage.kt");
}
@TestMetadata("constPropertyReferenceFromMultifileClass.kt")
public void testConstPropertyReferenceFromMultifileClass() throws Exception {
runTest("compiler/testData/codegen/box/multifileClasses/constPropertyReferenceFromMultifileClass.kt");
}
@TestMetadata("genericProperty.kt")
public void testGenericProperty() throws Exception {
runTest("compiler/testData/codegen/box/multifileClasses/genericProperty.kt");
}
@TestMetadata("inlineMultifileClassMemberFromOtherPackage.kt")
public void testInlineMultifileClassMemberFromOtherPackage() throws Exception {
runTest("compiler/testData/codegen/box/multifileClasses/inlineMultifileClassMemberFromOtherPackage.kt");
}
@TestMetadata("kt16077.kt")
public void testKt16077() throws Exception {
runTest("compiler/testData/codegen/box/multifileClasses/kt16077.kt");
}
@TestMetadata("metadataFlag.kt")
public void testMetadataFlag() throws Exception {
runTest("compiler/testData/codegen/box/multifileClasses/metadataFlag.kt");
}
@TestMetadata("multifileClassPartsInitialization.kt")
public void testMultifileClassPartsInitialization() throws Exception {
runTest("compiler/testData/codegen/box/multifileClasses/multifileClassPartsInitialization.kt");
}
@TestMetadata("multifileClassWith2Files.kt")
public void testMultifileClassWith2Files() throws Exception {
runTest("compiler/testData/codegen/box/multifileClasses/multifileClassWith2Files.kt");
}
@TestMetadata("multifileClassWithCrossCall.kt")
public void testMultifileClassWithCrossCall() throws Exception {
runTest("compiler/testData/codegen/box/multifileClasses/multifileClassWithCrossCall.kt");
}
@TestMetadata("multifileClassWithPrivate.kt")
public void testMultifileClassWithPrivate() throws Exception {
runTest("compiler/testData/codegen/box/multifileClasses/multifileClassWithPrivate.kt");
}
@TestMetadata("namesInMetadataAreSorted.kt")
public void testNamesInMetadataAreSorted() throws Exception {
runTest("compiler/testData/codegen/box/multifileClasses/namesInMetadataAreSorted.kt");
}
@TestMetadata("privateConstVal.kt")
public void testPrivateConstVal() throws Exception {
runTest("compiler/testData/codegen/box/multifileClasses/privateConstVal.kt");
}
@TestMetadata("samePartNameDifferentFacades.kt")
public void testSamePartNameDifferentFacades() throws Exception {
runTest("compiler/testData/codegen/box/multifileClasses/samePartNameDifferentFacades.kt");
}
@TestMetadata("sealedClassHierarchy.kt")
public void testSealedClassHierarchy() throws Exception {
runTest("compiler/testData/codegen/box/multifileClasses/sealedClassHierarchy.kt");
}
@TestMetadata("compiler/testData/codegen/box/multifileClasses/optimized")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Optimized extends AbstractLightAnalysisModeTest {
@TestMetadata("callableReferencesToSamePropertiesFromDifferentPackages.kt")
public void ignoreCallableReferencesToSamePropertiesFromDifferentPackages() throws Exception {
runTest("compiler/testData/codegen/box/multifileClasses/optimized/callableReferencesToSamePropertiesFromDifferentPackages.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInOptimized() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multifileClasses/optimized"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("callInInlineLambda.kt")
public void testCallInInlineLambda() throws Exception {
runTest("compiler/testData/codegen/box/multifileClasses/optimized/callInInlineLambda.kt");
}
@TestMetadata("callableRefToConstVal.kt")
public void testCallableRefToConstVal() throws Exception {
runTest("compiler/testData/codegen/box/multifileClasses/optimized/callableRefToConstVal.kt");
}
@TestMetadata("callableRefToFun.kt")
public void testCallableRefToFun() throws Exception {
runTest("compiler/testData/codegen/box/multifileClasses/optimized/callableRefToFun.kt");
}
@TestMetadata("callableRefToInternalConstValInline.kt")
public void testCallableRefToInternalConstValInline() throws Exception {
runTest("compiler/testData/codegen/box/multifileClasses/optimized/callableRefToInternalConstValInline.kt");
}
@TestMetadata("callableRefToPrivateConstVal.kt")
public void testCallableRefToPrivateConstVal() throws Exception {
runTest("compiler/testData/codegen/box/multifileClasses/optimized/callableRefToPrivateConstVal.kt");
}
@TestMetadata("callableReferencesToSameFunctionsFromDifferentPackages.kt")
public void testCallableReferencesToSameFunctionsFromDifferentPackages() throws Exception {
runTest("compiler/testData/codegen/box/multifileClasses/optimized/callableReferencesToSameFunctionsFromDifferentPackages.kt");
}
@TestMetadata("calls.kt")
public void testCalls() throws Exception {
runTest("compiler/testData/codegen/box/multifileClasses/optimized/calls.kt");
}
@TestMetadata("internalFunction.kt")
public void testInternalFunction() throws Exception {
runTest("compiler/testData/codegen/box/multifileClasses/optimized/internalFunction.kt");
}
@TestMetadata("namesInMetadataAreSorted.kt")
public void testNamesInMetadataAreSorted() throws Exception {
runTest("compiler/testData/codegen/box/multifileClasses/optimized/namesInMetadataAreSorted.kt");
}
@TestMetadata("overlappingFuns.kt")
public void testOverlappingFuns() throws Exception {
runTest("compiler/testData/codegen/box/multifileClasses/optimized/overlappingFuns.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/multiplatform")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Multiplatform extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInMultiplatform() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("annotationsViaActualTypeAliasFromBinary.kt")
public void testAnnotationsViaActualTypeAliasFromBinary() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/annotationsViaActualTypeAliasFromBinary.kt");
}
@TestMetadata("expectClassInJvmMultifileFacade.kt")
public void testExpectClassInJvmMultifileFacade() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/expectClassInJvmMultifileFacade.kt");
}
@TestMetadata("expectProperty.kt")
public void testExpectProperty() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/expectProperty.kt");
}
@TestMetadata("noArgActualConstructor.kt")
public void testNoArgActualConstructor() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/noArgActualConstructor.kt");
}
@TestMetadata("optionalExpectation.kt")
public void testOptionalExpectation() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/optionalExpectation.kt");
}
@TestMetadata("optionalExpectationJvm.kt")
public void testOptionalExpectationJvm() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/optionalExpectationJvm.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 AbstractLightAnalysisModeTest {
@TestMetadata("superCall.kt")
public void ignoreSuperCall() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/superCall.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInDefaultArguments() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("annotations.kt")
public void testAnnotations() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/annotations.kt");
}
@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("jvmOverloads.kt")
public void testJvmOverloads() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/jvmOverloads.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("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("withTypeParameter.kt")
public void testWithTypeParameter() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/withTypeParameter.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/multiplatform/exhaustiveness")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Exhaustiveness extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInExhaustiveness() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/exhaustiveness"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("commonEnum.kt")
public void testCommonEnum() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/exhaustiveness/commonEnum.kt");
}
@TestMetadata("commonSealedClass.kt")
public void testCommonSealedClass() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/exhaustiveness/commonSealedClass.kt");
}
@TestMetadata("commonSealedInterface.kt")
public void testCommonSealedInterface() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/exhaustiveness/commonSealedInterface.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/multiplatform/hmpp")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Hmpp extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInHmpp() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/hmpp"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/hmpp/simple.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/multiplatform/multiModule")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class MultiModule extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInMultiModule() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/multiModule"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
}
}
@TestMetadata("compiler/testData/codegen/box/nonLocalReturns")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class NonLocalReturns extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInNonLocalReturns() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/nonLocalReturns"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("kt6895.kt")
public void testKt6895() throws Exception {
runTest("compiler/testData/codegen/box/nonLocalReturns/kt6895.kt");
}
@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("use.kt")
public void testUse() throws Exception {
runTest("compiler/testData/codegen/box/nonLocalReturns/use.kt");
}
@TestMetadata("useWithException.kt")
public void testUseWithException() throws Exception {
runTest("compiler/testData/codegen/box/nonLocalReturns/useWithException.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/notNullAssertions")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class NotNullAssertions extends AbstractLightAnalysisModeTest {
@TestMetadata("inFunctionWithExpressionBodyWithJavaGeneric.kt")
public void ignoreInFunctionWithExpressionBodyWithJavaGeneric() throws Exception {
runTest("compiler/testData/codegen/box/notNullAssertions/inFunctionWithExpressionBodyWithJavaGeneric.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInNotNullAssertions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/notNullAssertions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("callAssertions.kt")
public void testCallAssertions() throws Exception {
runTest("compiler/testData/codegen/box/notNullAssertions/callAssertions.kt");
}
@TestMetadata("definitelyNotNullTypes.kt")
public void testDefinitelyNotNullTypes() throws Exception {
runTest("compiler/testData/codegen/box/notNullAssertions/definitelyNotNullTypes.kt");
}
@TestMetadata("delegation.kt")
public void testDelegation() throws Exception {
runTest("compiler/testData/codegen/box/notNullAssertions/delegation.kt");
}
@TestMetadata("doGenerateParamAssertions.kt")
public void testDoGenerateParamAssertions() throws Exception {
runTest("compiler/testData/codegen/box/notNullAssertions/doGenerateParamAssertions.kt");
}
@TestMetadata("messageLength.kt")
public void testMessageLength() throws Exception {
runTest("compiler/testData/codegen/box/notNullAssertions/messageLength.kt");
}
@TestMetadata("noCallAssertions.kt")
public void testNoCallAssertions() throws Exception {
runTest("compiler/testData/codegen/box/notNullAssertions/noCallAssertions.kt");
}
@TestMetadata("rightElvisOperand.kt")
public void testRightElvisOperand() throws Exception {
runTest("compiler/testData/codegen/box/notNullAssertions/rightElvisOperand.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/nothingValue")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class NothingValue extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInNothingValue() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/nothingValue"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInNullCheckOptimization() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/nullCheckOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("exclExclThrowsKnpe_1_3.kt")
public void testExclExclThrowsKnpe_1_3() throws Exception {
runTest("compiler/testData/codegen/box/nullCheckOptimization/exclExclThrowsKnpe_1_3.kt");
}
@TestMetadata("exclExclThrowsNpe.kt")
public void testExclExclThrowsNpe() throws Exception {
runTest("compiler/testData/codegen/box/nullCheckOptimization/exclExclThrowsNpe.kt");
}
@TestMetadata("isNullable.kt")
public void testIsNullable() throws Exception {
runTest("compiler/testData/codegen/box/nullCheckOptimization/isNullable.kt");
}
@TestMetadata("javaNullCheckThrowsIse_1_3.kt")
public void testJavaNullCheckThrowsIse_1_3() throws Exception {
runTest("compiler/testData/codegen/box/nullCheckOptimization/javaNullCheckThrowsIse_1_3.kt");
}
@TestMetadata("javaNullCheckThrowsNpe.kt")
public void testJavaNullCheckThrowsNpe() throws Exception {
runTest("compiler/testData/codegen/box/nullCheckOptimization/javaNullCheckThrowsNpe.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("parameterNullCheckThrowsIae_1_3.kt")
public void testParameterNullCheckThrowsIae_1_3() throws Exception {
runTest("compiler/testData/codegen/box/nullCheckOptimization/parameterNullCheckThrowsIae_1_3.kt");
}
@TestMetadata("parameterNullCheckThrowsNpe.kt")
public void testParameterNullCheckThrowsNpe() throws Exception {
runTest("compiler/testData/codegen/box/nullCheckOptimization/parameterNullCheckThrowsNpe.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("varModifiedAfterCheck.kt")
public void testVarModifiedAfterCheck() throws Exception {
runTest("compiler/testData/codegen/box/nullCheckOptimization/varModifiedAfterCheck.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/objectIntrinsics")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ObjectIntrinsics extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInObjectIntrinsics() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objectIntrinsics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
@TestMetadata("kt32351.kt")
public void ignoreKt32351() throws Exception {
runTest("compiler/testData/codegen/box/objects/kt32351.kt");
}
@TestMetadata("kt32749.kt")
public void ignoreKt32749() throws Exception {
runTest("compiler/testData/codegen/box/objects/kt32749.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInObjects() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objects"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("kt1136.kt")
public void testKt1136() throws Exception {
runTest("compiler/testData/codegen/box/objects/kt1136.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("kt42758.kt")
public void testKt42758() throws Exception {
runTest("compiler/testData/codegen/box/objects/kt42758.kt");
}
@TestMetadata("kt45170.kt")
public void testKt45170() throws Exception {
runTest("compiler/testData/codegen/box/objects/kt45170.kt");
}
@TestMetadata("kt535.kt")
public void testKt535() throws Exception {
runTest("compiler/testData/codegen/box/objects/kt535.kt");
}
@TestMetadata("kt560.kt")
public void testKt560() throws Exception {
runTest("compiler/testData/codegen/box/objects/kt560.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("substitutionFunctionFromSuper.kt")
public void testSubstitutionFunctionFromSuper() throws Exception {
runTest("compiler/testData/codegen/box/objects/substitutionFunctionFromSuper.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("useAnonymousObjectFunction.kt")
public void testUseAnonymousObjectFunction() throws Exception {
runTest("compiler/testData/codegen/box/objects/useAnonymousObjectFunction.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInCompanionObjectAccess() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objects/companionObjectAccess"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("accessFromInlineLambda.kt")
public void testAccessFromInlineLambda() throws Exception {
runTest("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors/accessFromInlineLambda.kt");
}
public void testAllFilesPresentInMultipleCompanionsWithAccessors() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objects/companionObjectAccess/multipleCompanionsWithAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInPrimitiveCompanion() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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/operatorConventions")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class OperatorConventions extends AbstractLightAnalysisModeTest {
@TestMetadata("kt44647.kt")
public void ignoreKt44647() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt44647.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInOperatorConventions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/operatorConventions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("kt39880.kt")
public void testKt39880() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt39880.kt");
}
@TestMetadata("kt4152.kt")
public void testKt4152() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt4152.kt");
}
@TestMetadata("kt42722.kt")
public void testKt42722() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt42722.kt");
}
@TestMetadata("kt45022.kt")
public void testKt45022() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt45022.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInCompareTo() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/operatorConventions/compareTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("customCompareTo.kt")
public void testCustomCompareTo() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/compareTo/customCompareTo.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInOptimizations() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/optimizations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("hashCode.kt")
public void testHashCode() throws Exception {
runTest("compiler/testData/codegen/box/optimizations/hashCode.kt");
}
@TestMetadata("kt20844.kt")
public void testKt20844() throws Exception {
runTest("compiler/testData/codegen/box/optimizations/kt20844.kt");
}
@TestMetadata("kt46921.kt")
public void testKt46921() throws Exception {
runTest("compiler/testData/codegen/box/optimizations/kt46921.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/package")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Package extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInPackage() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/package"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("mainInFiles.kt")
public void testMainInFiles() throws Exception {
runTest("compiler/testData/codegen/box/package/mainInFiles.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInParametersMetadata() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/parametersMetadata"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("defaultImpls.kt")
public void testDefaultImpls() throws Exception {
runTest("compiler/testData/codegen/box/parametersMetadata/defaultImpls.kt");
}
@TestMetadata("delegation.kt")
public void testDelegation() throws Exception {
runTest("compiler/testData/codegen/box/parametersMetadata/delegation.kt");
}
@TestMetadata("enum.kt")
public void testEnum() throws Exception {
runTest("compiler/testData/codegen/box/parametersMetadata/enum.kt");
}
@TestMetadata("extensionFunction.kt")
public void testExtensionFunction() throws Exception {
runTest("compiler/testData/codegen/box/parametersMetadata/extensionFunction.kt");
}
@TestMetadata("function.kt")
public void testFunction() throws Exception {
runTest("compiler/testData/codegen/box/parametersMetadata/function.kt");
}
@TestMetadata("inlineClassMethodParameterModifiers.kt")
public void testInlineClassMethodParameterModifiers() throws Exception {
runTest("compiler/testData/codegen/box/parametersMetadata/inlineClassMethodParameterModifiers.kt");
}
@TestMetadata("inlineClassMethodParameterNames.kt")
public void testInlineClassMethodParameterNames() throws Exception {
runTest("compiler/testData/codegen/box/parametersMetadata/inlineClassMethodParameterNames.kt");
}
@TestMetadata("innerClass.kt")
public void testInnerClass() throws Exception {
runTest("compiler/testData/codegen/box/parametersMetadata/innerClass.kt");
}
@TestMetadata("superParams.kt")
public void testSuperParams() throws Exception {
runTest("compiler/testData/codegen/box/parametersMetadata/superParams.kt");
}
@TestMetadata("suspendFunction.kt")
public void testSuspendFunction() throws Exception {
runTest("compiler/testData/codegen/box/parametersMetadata/suspendFunction.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/platformTypes")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class PlatformTypes extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInPlatformTypes() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/platformTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("genericUnit.kt")
public void testGenericUnit() throws Exception {
runTest("compiler/testData/codegen/box/platformTypes/genericUnit.kt");
}
@TestMetadata("inferenceFlexibleTToNullable.kt")
public void testInferenceFlexibleTToNullable() throws Exception {
runTest("compiler/testData/codegen/box/platformTypes/inferenceFlexibleTToNullable.kt");
}
@TestMetadata("kt14989.kt")
public void testKt14989() throws Exception {
runTest("compiler/testData/codegen/box/platformTypes/kt14989.kt");
}
@TestMetadata("kt47785.kt")
public void testKt47785() throws Exception {
runTest("compiler/testData/codegen/box/platformTypes/kt47785.kt");
}
@TestMetadata("rawTypeWithNestedClass.kt")
public void testRawTypeWithNestedClass() throws Exception {
runTest("compiler/testData/codegen/box/platformTypes/rawTypeWithNestedClass.kt");
}
@TestMetadata("specializedMapFull.kt")
public void testSpecializedMapFull() throws Exception {
runTest("compiler/testData/codegen/box/platformTypes/specializedMapFull.kt");
}
@TestMetadata("specializedMapPut.kt")
public void testSpecializedMapPut() throws Exception {
runTest("compiler/testData/codegen/box/platformTypes/specializedMapPut.kt");
}
@TestMetadata("stopComputingOnInterdependentTypeParameters.kt")
public void testStopComputingOnInterdependentTypeParameters() throws Exception {
runTest("compiler/testData/codegen/box/platformTypes/stopComputingOnInterdependentTypeParameters.kt");
}
@TestMetadata("unsafeNullCheck.kt")
public void testUnsafeNullCheck() throws Exception {
runTest("compiler/testData/codegen/box/platformTypes/unsafeNullCheck.kt");
}
@TestMetadata("unsafeNullCheckWithPrimitive.kt")
public void testUnsafeNullCheckWithPrimitive() throws Exception {
runTest("compiler/testData/codegen/box/platformTypes/unsafeNullCheckWithPrimitive.kt");
}
@TestMetadata("compiler/testData/codegen/box/platformTypes/primitives")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Primitives extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInPrimitives() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/platformTypes/primitives"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("equalsNull.kt")
public void testEqualsNull() throws Exception {
runTest("compiler/testData/codegen/box/platformTypes/primitives/equalsNull.kt");
}
@TestMetadata("hashCode.kt")
public void testHashCode() throws Exception {
runTest("compiler/testData/codegen/box/platformTypes/primitives/hashCode.kt");
}
@TestMetadata("identityEquals.kt")
public void testIdentityEquals() throws Exception {
runTest("compiler/testData/codegen/box/platformTypes/primitives/identityEquals.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInPolymorphicSignature() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/polymorphicSignature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("anonymousSubclass.kt")
public void testAnonymousSubclass() throws Exception {
runTest("compiler/testData/codegen/box/polymorphicSignature/anonymousSubclass.kt");
}
@TestMetadata("invoke.kt")
public void testInvoke() throws Exception {
runTest("compiler/testData/codegen/box/polymorphicSignature/invoke.kt");
}
@TestMetadata("invokeExact.kt")
public void testInvokeExact() throws Exception {
runTest("compiler/testData/codegen/box/polymorphicSignature/invokeExact.kt");
}
@TestMetadata("invokeExactWithInlineClass.kt")
public void testInvokeExactWithInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/polymorphicSignature/invokeExactWithInlineClass.kt");
}
@TestMetadata("nullArgument.kt")
public void testNullArgument() throws Exception {
runTest("compiler/testData/codegen/box/polymorphicSignature/nullArgument.kt");
}
@TestMetadata("varargOfObjects_after.kt")
public void testVarargOfObjects_after() throws Exception {
runTest("compiler/testData/codegen/box/polymorphicSignature/varargOfObjects_after.kt");
}
@TestMetadata("varargOfObjects_before.kt")
public void testVarargOfObjects_before() throws Exception {
runTest("compiler/testData/codegen/box/polymorphicSignature/varargOfObjects_before.kt");
}
@TestMetadata("voidReturnType.kt")
public void testVoidReturnType() throws Exception {
runTest("compiler/testData/codegen/box/polymorphicSignature/voidReturnType.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/primitiveTypes")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class PrimitiveTypes extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInPrimitiveTypes() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/primitiveTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("comparisonWithNaN.kt")
public void testComparisonWithNaN() throws Exception {
runTest("compiler/testData/codegen/box/primitiveTypes/comparisonWithNaN.kt");
}
@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("kt243.kt")
public void testKt243() throws Exception {
runTest("compiler/testData/codegen/box/primitiveTypes/kt243.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("kt46864_double.kt")
public void testKt46864_double() throws Exception {
runTest("compiler/testData/codegen/box/primitiveTypes/kt46864_double.kt");
}
@TestMetadata("kt46864_long.kt")
public void testKt46864_long() throws Exception {
runTest("compiler/testData/codegen/box/primitiveTypes/kt46864_long.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("number.kt")
public void testNumber() throws Exception {
runTest("compiler/testData/codegen/box/primitiveTypes/number.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInEqualityWithObject() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/primitiveTypes/equalityWithObject"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("kt42281.kt")
public void testKt42281() throws Exception {
runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/kt42281.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInGenerated() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInPrivate() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/private"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInPrivateConstructors() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/privateConstructors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("synthetic.kt")
public void testSynthetic() throws Exception {
runTest("compiler/testData/codegen/box/privateConstructors/synthetic.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 AbstractLightAnalysisModeTest {
@TestMetadata("augmentedAssignmentsAndIncrements.kt")
public void ignoreAugmentedAssignmentsAndIncrements() throws Exception {
runTest("compiler/testData/codegen/box/properties/augmentedAssignmentsAndIncrements.kt");
}
@TestMetadata("genericWithSameName.kt")
public void ignoreGenericWithSameName() throws Exception {
runTest("compiler/testData/codegen/box/properties/genericWithSameName.kt");
}
@TestMetadata("sideEffectInTopLevelInitializerMultiModule.kt")
public void ignoreSideEffectInTopLevelInitializerMultiModule() throws Exception {
runTest("compiler/testData/codegen/box/properties/sideEffectInTopLevelInitializerMultiModule.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, 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");
}
@TestMetadata("accessorForProtectedPropertyWithPrivateSetter.kt")
public void testAccessorForProtectedPropertyWithPrivateSetter() throws Exception {
runTest("compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetter.kt");
}
@TestMetadata("accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt")
public void testAccessorForProtectedPropertyWithPrivateSetterInObjectLiteral() throws Exception {
runTest("compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt");
}
@TestMetadata("accessorForProtectedPropertyWithPrivateSetterViaSuper.kt")
public void testAccessorForProtectedPropertyWithPrivateSetterViaSuper() throws Exception {
runTest("compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterViaSuper.kt");
}
@TestMetadata("accessorForProtectedPropertyWithPrivateSetterWithIntermediateClass.kt")
public void testAccessorForProtectedPropertyWithPrivateSetterWithIntermediateClass() throws Exception {
runTest("compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterWithIntermediateClass.kt");
}
public void testAllFilesPresentInProperties() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@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("collectionSize.kt")
public void testCollectionSize() throws Exception {
runTest("compiler/testData/codegen/box/properties/collectionSize.kt");
}
@TestMetadata("commonPropertiesKJK.kt")
public void testCommonPropertiesKJK() throws Exception {
runTest("compiler/testData/codegen/box/properties/commonPropertiesKJK.kt");
}
@TestMetadata("companionFieldInsideLambda.kt")
public void testCompanionFieldInsideLambda() throws Exception {
runTest("compiler/testData/codegen/box/properties/companionFieldInsideLambda.kt");
}
@TestMetadata("companionObjectAccessor.kt")
public void testCompanionObjectAccessor() throws Exception {
runTest("compiler/testData/codegen/box/properties/companionObjectAccessor.kt");
}
@TestMetadata("companionObjectPropertiesFromJava.kt")
public void testCompanionObjectPropertiesFromJava() throws Exception {
runTest("compiler/testData/codegen/box/properties/companionObjectPropertiesFromJava.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("fieldAccessFromExtensionInTraitImpl.kt")
public void testFieldAccessFromExtensionInTraitImpl() throws Exception {
runTest("compiler/testData/codegen/box/properties/fieldAccessFromExtensionInTraitImpl.kt");
}
@TestMetadata("fieldAccessViaSubclass.kt")
public void testFieldAccessViaSubclass() throws Exception {
runTest("compiler/testData/codegen/box/properties/fieldAccessViaSubclass.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("initOrderMultiModule.kt")
public void testInitOrderMultiModule() throws Exception {
runTest("compiler/testData/codegen/box/properties/initOrderMultiModule.kt");
}
@TestMetadata("javaGenericSynthProperty.kt")
public void testJavaGenericSynthProperty() throws Exception {
runTest("compiler/testData/codegen/box/properties/javaGenericSynthProperty.kt");
}
@TestMetadata("javaPropertyBoxedGetter.kt")
public void testJavaPropertyBoxedGetter() throws Exception {
runTest("compiler/testData/codegen/box/properties/javaPropertyBoxedGetter.kt");
}
@TestMetadata("javaPropertyBoxedSetter.kt")
public void testJavaPropertyBoxedSetter() throws Exception {
runTest("compiler/testData/codegen/box/properties/javaPropertyBoxedSetter.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("kt12200.kt")
public void testKt12200() throws Exception {
runTest("compiler/testData/codegen/box/properties/kt12200.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("kt1482_2279.kt")
public void testKt1482_2279() throws Exception {
runTest("compiler/testData/codegen/box/properties/kt1482_2279.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("lazyInitialization.kt")
public void testLazyInitialization() throws Exception {
runTest("compiler/testData/codegen/box/properties/lazyInitialization.kt");
}
@TestMetadata("lazyInitializationCyclicImports.kt")
public void testLazyInitializationCyclicImports() throws Exception {
runTest("compiler/testData/codegen/box/properties/lazyInitializationCyclicImports.kt");
}
@TestMetadata("lazyInitializationMultiModule.kt")
public void testLazyInitializationMultiModule() throws Exception {
runTest("compiler/testData/codegen/box/properties/lazyInitializationMultiModule.kt");
}
@TestMetadata("lazyInitializationOrder.kt")
public void testLazyInitializationOrder() throws Exception {
runTest("compiler/testData/codegen/box/properties/lazyInitializationOrder.kt");
}
@TestMetadata("lazyInitializationSplitPerModule.kt")
public void testLazyInitializationSplitPerModule() throws Exception {
runTest("compiler/testData/codegen/box/properties/lazyInitializationSplitPerModule.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("protectedJavaFieldInInline.kt")
public void testProtectedJavaFieldInInline() throws Exception {
runTest("compiler/testData/codegen/box/properties/protectedJavaFieldInInline.kt");
}
@TestMetadata("protectedJavaProperty.kt")
public void testProtectedJavaProperty() throws Exception {
runTest("compiler/testData/codegen/box/properties/protectedJavaProperty.kt");
}
@TestMetadata("protectedJavaPropertyInCompanion.kt")
public void testProtectedJavaPropertyInCompanion() throws Exception {
runTest("compiler/testData/codegen/box/properties/protectedJavaPropertyInCompanion.kt");
}
@TestMetadata("referenceToJavaFieldViaBridge.kt")
public void testReferenceToJavaFieldViaBridge() throws Exception {
runTest("compiler/testData/codegen/box/properties/referenceToJavaFieldViaBridge.kt");
}
@TestMetadata("substituteJavaSuperField.kt")
public void testSubstituteJavaSuperField() throws Exception {
runTest("compiler/testData/codegen/box/properties/substituteJavaSuperField.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("unreachableUninitializedProperty.kt")
public void testUnreachableUninitializedProperty() throws Exception {
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
}
@TestMetadata("compiler/testData/codegen/box/properties/const")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Const extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInConst() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/const"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("anotherFile.kt")
public void testAnotherFile() throws Exception {
runTest("compiler/testData/codegen/box/properties/const/anotherFile.kt");
}
@TestMetadata("constFlags.kt")
public void testConstFlags() throws Exception {
runTest("compiler/testData/codegen/box/properties/const/constFlags.kt");
}
@TestMetadata("constInObjectWithInit.kt")
public void testConstInObjectWithInit() throws Exception {
runTest("compiler/testData/codegen/box/properties/const/constInObjectWithInit.kt");
}
@TestMetadata("constPropertyAccessor.kt")
public void testConstPropertyAccessor() throws Exception {
runTest("compiler/testData/codegen/box/properties/const/constPropertyAccessor.kt");
}
@TestMetadata("constValInAnnotationDefault.kt")
public void testConstValInAnnotationDefault() throws Exception {
runTest("compiler/testData/codegen/box/properties/const/constValInAnnotationDefault.kt");
}
@TestMetadata("fpNonConstValProperlyInitialized.kt")
public void testFpNonConstValProperlyInitialized() throws Exception {
runTest("compiler/testData/codegen/box/properties/const/fpNonConstValProperlyInitialized.kt");
}
@TestMetadata("interfaceCompanion.kt")
public void testInterfaceCompanion() throws Exception {
runTest("compiler/testData/codegen/box/properties/const/interfaceCompanion.kt");
}
@TestMetadata("nonConstValsAreProperlyInitialized.kt")
public void testNonConstValsAreProperlyInitialized() throws Exception {
runTest("compiler/testData/codegen/box/properties/const/nonConstValsAreProperlyInitialized.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/properties/lateinit")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Lateinit extends AbstractLightAnalysisModeTest {
@TestMetadata("kt30548.kt")
public void ignoreKt30548() throws Exception {
runTest("compiler/testData/codegen/box/properties/lateinit/kt30548.kt");
}
@TestMetadata("privateVarInCompanion.kt")
public void ignorePrivateVarInCompanion() throws Exception {
runTest("compiler/testData/codegen/box/properties/lateinit/privateVarInCompanion.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, 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 {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/lateinit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("kt46267.kt")
public void testKt46267() throws Exception {
runTest("compiler/testData/codegen/box/properties/lateinit/kt46267.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("visibility.kt")
public void testVisibility() throws Exception {
runTest("compiler/testData/codegen/box/properties/lateinit/visibility.kt");
}
@TestMetadata("compiler/testData/codegen/box/properties/lateinit/isInitializedAndDeinitialize")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class IsInitializedAndDeinitialize extends AbstractLightAnalysisModeTest {
@TestMetadata("isInitializedMultiFile.kt")
public void ignoreIsInitializedMultiFile() throws Exception {
runTest("compiler/testData/codegen/box/properties/lateinit/isInitializedAndDeinitialize/isInitializedMultiFile.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInIsInitializedAndDeinitialize() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/lateinit/isInitializedAndDeinitialize"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("jvmStatic.kt")
public void testJvmStatic() throws Exception {
runTest("compiler/testData/codegen/box/properties/lateinit/isInitializedAndDeinitialize/jvmStatic.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("simpleIsInitialized.kt")
public void testSimpleIsInitialized() throws Exception {
runTest("compiler/testData/codegen/box/properties/lateinit/isInitializedAndDeinitialize/simpleIsInitialized.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInLocal() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/lateinit/local"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, 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 {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/lateinit/topLevel"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInPublishedApi() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/publishedApi"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("noMangling.kt")
public void testNoMangling() throws Exception {
runTest("compiler/testData/codegen/box/publishedApi/noMangling.kt");
}
@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 AbstractLightAnalysisModeTest {
@TestMetadata("forInDoubleRangeWithCustomIterator.kt")
public void ignoreForInDoubleRangeWithCustomIterator() throws Exception {
runTest("compiler/testData/codegen/box/ranges/forInDoubleRangeWithCustomIterator.kt");
}
@TestMetadata("forInFloatRangeWithCustomIterator.kt")
public void ignoreForInFloatRangeWithCustomIterator() throws Exception {
runTest("compiler/testData/codegen/box/ranges/forInFloatRangeWithCustomIterator.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInRanges() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true, "stepped");
}
@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("forInStringWithCustomIterator.kt")
public void testForInStringWithCustomIterator() throws Exception {
runTest("compiler/testData/codegen/box/ranges/forInStringWithCustomIterator.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("kt47492.kt")
public void testKt47492() throws Exception {
runTest("compiler/testData/codegen/box/ranges/kt47492.kt");
}
@TestMetadata("kt47492a.kt")
public void testKt47492a() throws Exception {
runTest("compiler/testData/codegen/box/ranges/kt47492a.kt");
}
@TestMetadata("kt47492b.kt")
public void testKt47492b() throws Exception {
runTest("compiler/testData/codegen/box/ranges/kt47492b.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 AbstractLightAnalysisModeTest {
@TestMetadata("smartCastOnBothEnds.kt")
public void ignoreSmartCastOnBothEnds() throws Exception {
runTest("compiler/testData/codegen/box/ranges/contains/smartCastOnBothEnds.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInContains() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/contains"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("evaluationOrderForDownToReversed.kt")
public void testEvaluationOrderForDownToReversed() throws Exception {
runTest("compiler/testData/codegen/box/ranges/contains/evaluationOrderForDownToReversed.kt");
}
@TestMetadata("evaluationOrderForNullableArgument.kt")
public void testEvaluationOrderForNullableArgument() throws Exception {
runTest("compiler/testData/codegen/box/ranges/contains/evaluationOrderForNullableArgument.kt");
}
@TestMetadata("evaluationOrderForRangeLiteral.kt")
public void testEvaluationOrderForRangeLiteral() throws Exception {
runTest("compiler/testData/codegen/box/ranges/contains/evaluationOrderForRangeLiteral.kt");
}
@TestMetadata("evaluationOrderForRangeLiteralReversed.kt")
public void testEvaluationOrderForRangeLiteralReversed() throws Exception {
runTest("compiler/testData/codegen/box/ranges/contains/evaluationOrderForRangeLiteralReversed.kt");
}
@TestMetadata("evaluationOrderForUntil.kt")
public void testEvaluationOrderForUntil() throws Exception {
runTest("compiler/testData/codegen/box/ranges/contains/evaluationOrderForUntil.kt");
}
@TestMetadata("evaluationOrderForUntilReversed.kt")
public void testEvaluationOrderForUntilReversed() throws Exception {
runTest("compiler/testData/codegen/box/ranges/contains/evaluationOrderForUntilReversed.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("inUntilMaxValue.kt")
public void testInUntilMaxValue() throws Exception {
runTest("compiler/testData/codegen/box/ranges/contains/inUntilMaxValue.kt");
}
@TestMetadata("inUntilMinValue.kt")
public void testInUntilMinValue() throws Exception {
runTest("compiler/testData/codegen/box/ranges/contains/inUntilMinValue.kt");
}
@TestMetadata("inUntilMinValueNonConst.kt")
public void testInUntilMinValueNonConst() throws Exception {
runTest("compiler/testData/codegen/box/ranges/contains/inUntilMinValueNonConst.kt");
}
@TestMetadata("jvmStaticContainsInObject.kt")
public void testJvmStaticContainsInObject() throws Exception {
runTest("compiler/testData/codegen/box/ranges/contains/jvmStaticContainsInObject.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("userDefinedContainsExtension.kt")
public void testUserDefinedContainsExtension() throws Exception {
runTest("compiler/testData/codegen/box/ranges/contains/userDefinedContainsExtension.kt");
}
@TestMetadata("compiler/testData/codegen/box/ranges/contains/generated")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Generated extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInGenerated() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/contains/generated"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInEvaluationOrder() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/evaluationOrder"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInStepped() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/evaluationOrder/stepped"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ForInDownTo extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInForInDownTo() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInForInRangeLiteral() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInForInUntil() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInExpression() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/expression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInForInDownTo() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/forInDownTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
@TestMetadata("kt43159_ArrayUpperBound.kt")
public void ignoreKt43159_ArrayUpperBound() throws Exception {
runTest("compiler/testData/codegen/box/ranges/forInIndices/kt43159_ArrayUpperBound.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInForInIndices() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/forInIndices"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("kt43159_GenericArray.kt")
public void testKt43159_GenericArray() throws Exception {
runTest("compiler/testData/codegen/box/ranges/forInIndices/kt43159_GenericArray.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/ranges/forInProgressionWithIndex")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ForInProgressionWithIndex extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInForInProgressionWithIndex() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/forInProgressionWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("kt42909.kt")
public void testKt42909() throws Exception {
runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/kt42909.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/ranges/forInReversed")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ForInReversed extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInForInReversed() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/forInReversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
@TestMetadata("kt42533.kt")
public void ignoreKt42533() throws Exception {
runTest("compiler/testData/codegen/box/ranges/forInUntil/kt42533.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInForInUntil() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/forInUntil"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInForWithPossibleOverflow() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/forWithPossibleOverflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
@TestMetadata("javaArrayOfInheritedNotNullFailFast.kt")
public void ignoreJavaArrayOfInheritedNotNullFailFast() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/javaArrayOfInheritedNotNullFailFast.kt");
}
@TestMetadata("javaCollectionOfExplicitNotNullFailFast.kt")
public void ignoreJavaCollectionOfExplicitNotNullFailFast() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/javaCollectionOfExplicitNotNullFailFast.kt");
}
@TestMetadata("javaCollectionOfInheritedNotNullFailFast.kt")
public void ignoreJavaCollectionOfInheritedNotNullFailFast() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/javaCollectionOfInheritedNotNullFailFast.kt");
}
@TestMetadata("javaCollectionOfNotNullToTypedArrayFailFast.kt")
public void ignoreJavaCollectionOfNotNullToTypedArrayFailFast() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/javaCollectionOfNotNullToTypedArrayFailFast.kt");
}
@TestMetadata("javaIteratorOfNotNullFailFast.kt")
public void ignoreJavaIteratorOfNotNullFailFast() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/javaIteratorOfNotNullFailFast.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInJavaInterop() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/javaInterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("javaArrayOfInheritedNotNull.kt")
public void testJavaArrayOfInheritedNotNull() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/javaArrayOfInheritedNotNull.kt");
}
@TestMetadata("javaArrayOfMaybeNullable.kt")
public void testJavaArrayOfMaybeNullable() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/javaArrayOfMaybeNullable.kt");
}
@TestMetadata("javaArrayOfMaybeNullableWithNotNullLoopVariable.kt")
public void testJavaArrayOfMaybeNullableWithNotNullLoopVariable() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/javaArrayOfMaybeNullableWithNotNullLoopVariable.kt");
}
@TestMetadata("javaArrayOfMaybeNullableWithNotNullLoopVariableFailFast.kt")
public void testJavaArrayOfMaybeNullableWithNotNullLoopVariableFailFast() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/javaArrayOfMaybeNullableWithNotNullLoopVariableFailFast.kt");
}
@TestMetadata("javaCollectionOfExplicitNotNull.kt")
public void testJavaCollectionOfExplicitNotNull() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/javaCollectionOfExplicitNotNull.kt");
}
@TestMetadata("javaCollectionOfExplicitNullable.kt")
public void testJavaCollectionOfExplicitNullable() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/javaCollectionOfExplicitNullable.kt");
}
@TestMetadata("javaCollectionOfInheritedNotNull.kt")
public void testJavaCollectionOfInheritedNotNull() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/javaCollectionOfInheritedNotNull.kt");
}
@TestMetadata("javaCollectionOfMaybeNullable.kt")
public void testJavaCollectionOfMaybeNullable() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/javaCollectionOfMaybeNullable.kt");
}
@TestMetadata("javaCollectionOfMaybeNullableWithNotNullLoopVariable.kt")
public void testJavaCollectionOfMaybeNullableWithNotNullLoopVariable() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/javaCollectionOfMaybeNullableWithNotNullLoopVariable.kt");
}
@TestMetadata("javaCollectionOfMaybeNullableWithNotNullLoopVariableFailFast.kt")
public void testJavaCollectionOfMaybeNullableWithNotNullLoopVariableFailFast() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/javaCollectionOfMaybeNullableWithNotNullLoopVariableFailFast.kt");
}
@TestMetadata("javaCollectionOfNotNullFromStdlib.kt")
public void testJavaCollectionOfNotNullFromStdlib() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/javaCollectionOfNotNullFromStdlib.kt");
}
@TestMetadata("javaCollectionOfNotNullFromStdlibToTypedArray.kt")
public void testJavaCollectionOfNotNullFromStdlibToTypedArray() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/javaCollectionOfNotNullFromStdlibToTypedArray.kt");
}
@TestMetadata("javaCollectionOfNotNullToTypedArray.kt")
public void testJavaCollectionOfNotNullToTypedArray() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/javaCollectionOfNotNullToTypedArray.kt");
}
@TestMetadata("javaIteratorOfNotNull.kt")
public void testJavaIteratorOfNotNull() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/javaIteratorOfNotNull.kt");
}
@TestMetadata("compiler/testData/codegen/box/ranges/javaInterop/withIndex")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class WithIndex extends AbstractLightAnalysisModeTest {
@TestMetadata("javaArrayOfInheritedNotNullWithIndexFailFast.kt")
public void ignoreJavaArrayOfInheritedNotNullWithIndexFailFast() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/withIndex/javaArrayOfInheritedNotNullWithIndexFailFast.kt");
}
@TestMetadata("javaArrayOfMaybeNullableWithIndexWithNotNullLoopVariableFailFast.kt")
public void ignoreJavaArrayOfMaybeNullableWithIndexWithNotNullLoopVariableFailFast() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/withIndex/javaArrayOfMaybeNullableWithIndexWithNotNullLoopVariableFailFast.kt");
}
@TestMetadata("javaCollectionOfExplicitNotNullWithIndexFailFast.kt")
public void ignoreJavaCollectionOfExplicitNotNullWithIndexFailFast() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/withIndex/javaCollectionOfExplicitNotNullWithIndexFailFast.kt");
}
@TestMetadata("javaCollectionOfMaybeNullableWithIndexWithNotNullLoopVariableFailFast.kt")
public void ignoreJavaCollectionOfMaybeNullableWithIndexWithNotNullLoopVariableFailFast() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/withIndex/javaCollectionOfMaybeNullableWithIndexWithNotNullLoopVariableFailFast.kt");
}
@TestMetadata("javaIteratorOfNotNullWithIndexFailFast.kt")
public void ignoreJavaIteratorOfNotNullWithIndexFailFast() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/withIndex/javaIteratorOfNotNullWithIndexFailFast.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInWithIndex() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/javaInterop/withIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("javaArrayOfInheritedNotNullWithIndex.kt")
public void testJavaArrayOfInheritedNotNullWithIndex() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/withIndex/javaArrayOfInheritedNotNullWithIndex.kt");
}
@TestMetadata("javaArrayOfMaybeNullableWithIndex.kt")
public void testJavaArrayOfMaybeNullableWithIndex() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/withIndex/javaArrayOfMaybeNullableWithIndex.kt");
}
@TestMetadata("javaArrayOfMaybeNullableWithIndexWithNotNullLoopVariable.kt")
public void testJavaArrayOfMaybeNullableWithIndexWithNotNullLoopVariable() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/withIndex/javaArrayOfMaybeNullableWithIndexWithNotNullLoopVariable.kt");
}
@TestMetadata("javaCollectionOfExplicitNotNullWithIndex.kt")
public void testJavaCollectionOfExplicitNotNullWithIndex() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/withIndex/javaCollectionOfExplicitNotNullWithIndex.kt");
}
@TestMetadata("javaCollectionOfExplicitNullableWithIndex.kt")
public void testJavaCollectionOfExplicitNullableWithIndex() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/withIndex/javaCollectionOfExplicitNullableWithIndex.kt");
}
@TestMetadata("javaCollectionOfMaybeNullableWithIndex.kt")
public void testJavaCollectionOfMaybeNullableWithIndex() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/withIndex/javaCollectionOfMaybeNullableWithIndex.kt");
}
@TestMetadata("javaCollectionOfMaybeNullableWithIndexWithNotNullLoopVariable.kt")
public void testJavaCollectionOfMaybeNullableWithIndexWithNotNullLoopVariable() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/withIndex/javaCollectionOfMaybeNullableWithIndexWithNotNullLoopVariable.kt");
}
@TestMetadata("javaIteratorOfNotNullWithIndex.kt")
public void testJavaIteratorOfNotNullWithIndex() throws Exception {
runTest("compiler/testData/codegen/box/ranges/javaInterop/withIndex/javaIteratorOfNotNullWithIndex.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/ranges/literal")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Literal extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInLiteral() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/literal"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInNullableLoopParameter() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/nullableLoopParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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/unsigned")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Unsigned extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInUnsigned() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/unsigned"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("outOfBoundsInMixedContains.kt")
public void testOutOfBoundsInMixedContains() throws Exception {
runTest("compiler/testData/codegen/box/ranges/unsigned/outOfBoundsInMixedContains.kt");
}
@TestMetadata("compiler/testData/codegen/box/ranges/unsigned/expression")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Expression extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInExpression() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/unsigned/expression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInLiteral() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/unsigned/literal"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
@TestMetadata("progressionExpression.kt")
public void ignoreProgressionExpression() throws Exception {
runTest("compiler/testData/codegen/box/ranges/unsigned/nullableLoopParameter/progressionExpression.kt");
}
@TestMetadata("rangeExpression.kt")
public void ignoreRangeExpression() throws Exception {
runTest("compiler/testData/codegen/box/ranges/unsigned/nullableLoopParameter/rangeExpression.kt");
}
@TestMetadata("rangeLiteral.kt")
public void ignoreRangeLiteral() throws Exception {
runTest("compiler/testData/codegen/box/ranges/unsigned/nullableLoopParameter/rangeLiteral.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInNullableLoopParameter() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/unsigned/nullableLoopParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
}
}
}
@TestMetadata("compiler/testData/codegen/box/recursiveRawTypes")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class RecursiveRawTypes extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInRecursiveRawTypes() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/recursiveRawTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("kt16528.kt")
public void testKt16528() throws Exception {
runTest("compiler/testData/codegen/box/recursiveRawTypes/kt16528.kt");
}
@TestMetadata("kt16639.kt")
public void testKt16639() throws Exception {
runTest("compiler/testData/codegen/box/recursiveRawTypes/kt16639.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/reflection")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Reflection extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInReflection() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("compiler/testData/codegen/box/reflection/annotations")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Annotations extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInAnnotations() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("annotationRetentionAnnotation.kt")
public void testAnnotationRetentionAnnotation() throws Exception {
runTest("compiler/testData/codegen/box/reflection/annotations/annotationRetentionAnnotation.kt");
}
@TestMetadata("annotationsOnJavaMembers.kt")
public void testAnnotationsOnJavaMembers() throws Exception {
runTest("compiler/testData/codegen/box/reflection/annotations/annotationsOnJavaMembers.kt");
}
@TestMetadata("classLiteralWithVoidDefault.kt")
public void testClassLiteralWithVoidDefault() throws Exception {
runTest("compiler/testData/codegen/box/reflection/annotations/classLiteralWithVoidDefault.kt");
}
@TestMetadata("findAnnotation.kt")
public void testFindAnnotation() throws Exception {
runTest("compiler/testData/codegen/box/reflection/annotations/findAnnotation.kt");
}
@TestMetadata("genericExtensionProperty.kt")
public void testGenericExtensionProperty() throws Exception {
runTest("compiler/testData/codegen/box/reflection/annotations/genericExtensionProperty.kt");
}
@TestMetadata("hasAnnotation.kt")
public void testHasAnnotation() throws Exception {
runTest("compiler/testData/codegen/box/reflection/annotations/hasAnnotation.kt");
}
@TestMetadata("localClassLiteral.kt")
public void testLocalClassLiteral() throws Exception {
runTest("compiler/testData/codegen/box/reflection/annotations/localClassLiteral.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("retentions.kt")
public void testRetentions() throws Exception {
runTest("compiler/testData/codegen/box/reflection/annotations/retentions.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("simpleConstructorAnnotation.kt")
public void testSimpleConstructorAnnotation() throws Exception {
runTest("compiler/testData/codegen/box/reflection/annotations/simpleConstructorAnnotation.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInOnTypes() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/annotations/onTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("arrayKClass.kt")
public void testArrayKClass() throws Exception {
runTest("compiler/testData/codegen/box/reflection/annotations/onTypes/arrayKClass.kt");
}
@TestMetadata("classLiteralWithExpectedType.kt")
public void testClassLiteralWithExpectedType() throws Exception {
runTest("compiler/testData/codegen/box/reflection/annotations/onTypes/classLiteralWithExpectedType.kt");
}
@TestMetadata("differentArgumentTypes.kt")
public void testDifferentArgumentTypes() throws Exception {
runTest("compiler/testData/codegen/box/reflection/annotations/onTypes/differentArgumentTypes.kt");
}
@TestMetadata("differentPositions.kt")
public void testDifferentPositions() throws Exception {
runTest("compiler/testData/codegen/box/reflection/annotations/onTypes/differentPositions.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/reflection/annotations/repeatable")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Repeatable extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInRepeatable() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/annotations/repeatable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
}
}
@TestMetadata("compiler/testData/codegen/box/reflection/builtins")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Builtins extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInBuiltins() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/builtins"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("collections.kt")
public void testCollections() throws Exception {
runTest("compiler/testData/codegen/box/reflection/builtins/collections.kt");
}
@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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInCall() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/call"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("bigArity.kt")
public void testBigArity() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/bigArity.kt");
}
@TestMetadata("callInstanceJavaMethod.kt")
public void testCallInstanceJavaMethod() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/callInstanceJavaMethod.kt");
}
@TestMetadata("callPrivateJavaMethod.kt")
public void testCallPrivateJavaMethod() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/callPrivateJavaMethod.kt");
}
@TestMetadata("callStaticJavaMethod.kt")
public void testCallStaticJavaMethod() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/callStaticJavaMethod.kt");
}
@TestMetadata("cannotCallEnumConstructor.kt")
public void testCannotCallEnumConstructor() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/cannotCallEnumConstructor.kt");
}
@TestMetadata("disallowNullValueForNotNullField.kt")
public void testDisallowNullValueForNotNullField() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/disallowNullValueForNotNullField.kt");
}
@TestMetadata("equalsHashCodeToString.kt")
public void testEqualsHashCodeToString() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/equalsHashCodeToString.kt");
}
@TestMetadata("exceptionHappened.kt")
public void testExceptionHappened() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/exceptionHappened.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("incorrectNumberOfArguments.kt")
public void testIncorrectNumberOfArguments() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/incorrectNumberOfArguments.kt");
}
@TestMetadata("innerClassConstructor.kt")
public void testInnerClassConstructor() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/innerClassConstructor.kt");
}
@TestMetadata("jvmStatic.kt")
public void testJvmStatic() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/jvmStatic.kt");
}
@TestMetadata("jvmStaticInObjectIncorrectReceiver.kt")
public void testJvmStaticInObjectIncorrectReceiver() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/jvmStaticInObjectIncorrectReceiver.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("privateProperty.kt")
public void testPrivateProperty() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/privateProperty.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("protectedMembers.kt")
public void testProtectedMembers() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/protectedMembers.kt");
}
@TestMetadata("returnUnit.kt")
public void testReturnUnit() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/returnUnit.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInBound() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/call/bound"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("javaInstanceField.kt")
public void testJavaInstanceField() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/bound/javaInstanceField.kt");
}
@TestMetadata("javaInstanceMethod.kt")
public void testJavaInstanceMethod() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/bound/javaInstanceMethod.kt");
}
@TestMetadata("jvmStaticCompanionObjectPropertyAccessors.kt")
public void testJvmStaticCompanionObjectPropertyAccessors() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/bound/jvmStaticCompanionObjectPropertyAccessors.kt");
}
@TestMetadata("jvmStaticObjectFunction.kt")
public void testJvmStaticObjectFunction() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/bound/jvmStaticObjectFunction.kt");
}
@TestMetadata("jvmStaticObjectPropertyAccessors.kt")
public void testJvmStaticObjectPropertyAccessors() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/bound/jvmStaticObjectPropertyAccessors.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInInlineClasses() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/call/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("constructorWithInlineClassParameters.kt")
public void testConstructorWithInlineClassParameters() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/constructorWithInlineClassParameters.kt");
}
@TestMetadata("fieldAccessors.kt")
public void testFieldAccessors() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/fieldAccessors.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("jvmStaticFieldInObject.kt")
public void testJvmStaticFieldInObject() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/jvmStaticFieldInObject.kt");
}
@TestMetadata("jvmStaticFunction.kt")
public void testJvmStaticFunction() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/jvmStaticFunction.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("suspendFunction.kt")
public void testSuspendFunction() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/suspendFunction.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/reflection/callBy")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class CallBy extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInCallBy() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/callBy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("boundJvmStaticInObject.kt")
public void testBoundJvmStaticInObject() throws Exception {
runTest("compiler/testData/codegen/box/reflection/callBy/boundJvmStaticInObject.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("jvmStaticInCompanionObject.kt")
public void testJvmStaticInCompanionObject() throws Exception {
runTest("compiler/testData/codegen/box/reflection/callBy/jvmStaticInCompanionObject.kt");
}
@TestMetadata("jvmStaticInObject.kt")
public void testJvmStaticInObject() throws Exception {
runTest("compiler/testData/codegen/box/reflection/callBy/jvmStaticInObject.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("privateMemberFunction.kt")
public void testPrivateMemberFunction() throws Exception {
runTest("compiler/testData/codegen/box/reflection/callBy/privateMemberFunction.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInClassLiterals() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/classLiterals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("annotationClassLiteral.kt")
public void testAnnotationClassLiteral() throws Exception {
runTest("compiler/testData/codegen/box/reflection/classLiterals/annotationClassLiteral.kt");
}
@TestMetadata("arrays.kt")
public void testArrays() throws Exception {
runTest("compiler/testData/codegen/box/reflection/classLiterals/arrays.kt");
}
@TestMetadata("bareArray.kt")
public void testBareArray() throws Exception {
runTest("compiler/testData/codegen/box/reflection/classLiterals/bareArray.kt");
}
@TestMetadata("builtinClassLiterals.kt")
public void testBuiltinClassLiterals() throws Exception {
runTest("compiler/testData/codegen/box/reflection/classLiterals/builtinClassLiterals.kt");
}
@TestMetadata("genericArrays.kt")
public void testGenericArrays() throws Exception {
runTest("compiler/testData/codegen/box/reflection/classLiterals/genericArrays.kt");
}
@TestMetadata("genericClass.kt")
public void testGenericClass() throws Exception {
runTest("compiler/testData/codegen/box/reflection/classLiterals/genericClass.kt");
}
@TestMetadata("javaClassLiteral.kt")
public void testJavaClassLiteral() throws Exception {
runTest("compiler/testData/codegen/box/reflection/classLiterals/javaClassLiteral.kt");
}
@TestMetadata("lambdaClass.kt")
public void testLambdaClass() throws Exception {
runTest("compiler/testData/codegen/box/reflection/classLiterals/lambdaClass.kt");
}
@TestMetadata("reifiedTypeClassLiteral.kt")
public void testReifiedTypeClassLiteral() throws Exception {
runTest("compiler/testData/codegen/box/reflection/classLiterals/reifiedTypeClassLiteral.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInClasses() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/classes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("classSimpleName.kt")
public void testClassSimpleName() throws Exception {
runTest("compiler/testData/codegen/box/reflection/classes/classSimpleName.kt");
}
@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("declaredMembers.kt")
public void testDeclaredMembers() throws Exception {
runTest("compiler/testData/codegen/box/reflection/classes/declaredMembers.kt");
}
@TestMetadata("javaVoid.kt")
public void testJavaVoid() throws Exception {
runTest("compiler/testData/codegen/box/reflection/classes/javaVoid.kt");
}
@TestMetadata("jvmName.kt")
public void testJvmName() throws Exception {
runTest("compiler/testData/codegen/box/reflection/classes/jvmName.kt");
}
@TestMetadata("jvmNameOfStandardClasses.kt")
public void testJvmNameOfStandardClasses() throws Exception {
runTest("compiler/testData/codegen/box/reflection/classes/jvmNameOfStandardClasses.kt");
}
@TestMetadata("localClassSimpleName.kt")
public void testLocalClassSimpleName() throws Exception {
runTest("compiler/testData/codegen/box/reflection/classes/localClassSimpleName.kt");
}
@TestMetadata("nestedClasses.kt")
public void testNestedClasses() throws Exception {
runTest("compiler/testData/codegen/box/reflection/classes/nestedClasses.kt");
}
@TestMetadata("nestedClassesInScript.kt")
public void testNestedClassesInScript() throws Exception {
runTest("compiler/testData/codegen/box/reflection/classes/nestedClassesInScript.kt");
}
@TestMetadata("nestedClassesJava.kt")
public void testNestedClassesJava() throws Exception {
runTest("compiler/testData/codegen/box/reflection/classes/nestedClassesJava.kt");
}
@TestMetadata("objectInstance.kt")
public void testObjectInstance() throws Exception {
runTest("compiler/testData/codegen/box/reflection/classes/objectInstance.kt");
}
@TestMetadata("primitiveKClassEquality.kt")
public void testPrimitiveKClassEquality() throws Exception {
runTest("compiler/testData/codegen/box/reflection/classes/primitiveKClassEquality.kt");
}
@TestMetadata("qualifiedName.kt")
public void testQualifiedName() throws Exception {
runTest("compiler/testData/codegen/box/reflection/classes/qualifiedName.kt");
}
@TestMetadata("qualifiedNameOfStandardClasses.kt")
public void testQualifiedNameOfStandardClasses() throws Exception {
runTest("compiler/testData/codegen/box/reflection/classes/qualifiedNameOfStandardClasses.kt");
}
@TestMetadata("sealedSubclasses.kt")
public void testSealedSubclasses() throws Exception {
runTest("compiler/testData/codegen/box/reflection/classes/sealedSubclasses.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInConstructors() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/constructors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("simpleGetConstructors.kt")
public void testSimpleGetConstructors() throws Exception {
runTest("compiler/testData/codegen/box/reflection/constructors/simpleGetConstructors.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/reflection/createAnnotation")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class CreateAnnotation extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInCreateAnnotation() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/createAnnotation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("callByJava.kt")
public void testCallByJava() throws Exception {
runTest("compiler/testData/codegen/box/reflection/createAnnotation/callByJava.kt");
}
@TestMetadata("callByKotlin.kt")
public void testCallByKotlin() throws Exception {
runTest("compiler/testData/codegen/box/reflection/createAnnotation/callByKotlin.kt");
}
@TestMetadata("callByWithEmptyVarArg.kt")
public void testCallByWithEmptyVarArg() throws Exception {
runTest("compiler/testData/codegen/box/reflection/createAnnotation/callByWithEmptyVarArg.kt");
}
@TestMetadata("callJava.kt")
public void testCallJava() throws Exception {
runTest("compiler/testData/codegen/box/reflection/createAnnotation/callJava.kt");
}
@TestMetadata("callKotlin.kt")
public void testCallKotlin() throws Exception {
runTest("compiler/testData/codegen/box/reflection/createAnnotation/callKotlin.kt");
}
@TestMetadata("createJdkAnnotationInstance.kt")
public void testCreateJdkAnnotationInstance() throws Exception {
runTest("compiler/testData/codegen/box/reflection/createAnnotation/createJdkAnnotationInstance.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 AbstractLightAnalysisModeTest {
@TestMetadata("kt45907.kt")
public void ignoreKt45907() throws Exception {
runTest("compiler/testData/codegen/box/reflection/enclosing/kt45907.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInEnclosing() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/enclosing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("anonymousObjectInInlinedLambda.kt")
public void testAnonymousObjectInInlinedLambda() throws Exception {
runTest("compiler/testData/codegen/box/reflection/enclosing/anonymousObjectInInlinedLambda.kt");
}
@TestMetadata("classInLambda.kt")
public void testClassInLambda() throws Exception {
runTest("compiler/testData/codegen/box/reflection/enclosing/classInLambda.kt");
}
@TestMetadata("functionExpressionInProperty.kt")
public void testFunctionExpressionInProperty() throws Exception {
runTest("compiler/testData/codegen/box/reflection/enclosing/functionExpressionInProperty.kt");
}
@TestMetadata("kt11969.kt")
public void testKt11969() throws Exception {
runTest("compiler/testData/codegen/box/reflection/enclosing/kt11969.kt");
}
@TestMetadata("kt6368.kt")
public void testKt6368() throws Exception {
runTest("compiler/testData/codegen/box/reflection/enclosing/kt6368.kt");
}
@TestMetadata("kt6691_lambdaInSamConstructor.kt")
public void testKt6691_lambdaInSamConstructor() throws Exception {
runTest("compiler/testData/codegen/box/reflection/enclosing/kt6691_lambdaInSamConstructor.kt");
}
@TestMetadata("lambdaInClassObject.kt")
public void testLambdaInClassObject() throws Exception {
runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInClassObject.kt");
}
@TestMetadata("lambdaInConstructor.kt")
public void testLambdaInConstructor() throws Exception {
runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInConstructor.kt");
}
@TestMetadata("lambdaInFunction.kt")
public void testLambdaInFunction() throws Exception {
runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInFunction.kt");
}
@TestMetadata("lambdaInLambda.kt")
public void testLambdaInLambda() throws Exception {
runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInLambda.kt");
}
@TestMetadata("lambdaInLocalClassConstructor.kt")
public void testLambdaInLocalClassConstructor() throws Exception {
runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInLocalClassConstructor.kt");
}
@TestMetadata("lambdaInLocalClassSuperCall.kt")
public void testLambdaInLocalClassSuperCall() throws Exception {
runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInLocalClassSuperCall.kt");
}
@TestMetadata("lambdaInLocalFunction.kt")
public void testLambdaInLocalFunction() throws Exception {
runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInLocalFunction.kt");
}
@TestMetadata("lambdaInMemberFunction.kt")
public void testLambdaInMemberFunction() throws Exception {
runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInMemberFunction.kt");
}
@TestMetadata("lambdaInMemberFunctionInLocalClass.kt")
public void testLambdaInMemberFunctionInLocalClass() throws Exception {
runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInMemberFunctionInLocalClass.kt");
}
@TestMetadata("lambdaInMemberFunctionInNestedClass.kt")
public void testLambdaInMemberFunctionInNestedClass() throws Exception {
runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInMemberFunctionInNestedClass.kt");
}
@TestMetadata("lambdaInObjectDeclaration.kt")
public void testLambdaInObjectDeclaration() throws Exception {
runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInObjectDeclaration.kt");
}
@TestMetadata("lambdaInObjectExpression.kt")
public void testLambdaInObjectExpression() throws Exception {
runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInObjectExpression.kt");
}
@TestMetadata("lambdaInObjectLiteralSuperCall.kt")
public void testLambdaInObjectLiteralSuperCall() throws Exception {
runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInObjectLiteralSuperCall.kt");
}
@TestMetadata("lambdaInPackage.kt")
public void testLambdaInPackage() throws Exception {
runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInPackage.kt");
}
@TestMetadata("lambdaInPropertyDelegate.kt")
public void testLambdaInPropertyDelegate() throws Exception {
runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInPropertyDelegate.kt");
}
@TestMetadata("lambdaInPropertyGetter.kt")
public void testLambdaInPropertyGetter() throws Exception {
runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInPropertyGetter.kt");
}
@TestMetadata("lambdaInPropertySetter.kt")
public void testLambdaInPropertySetter() throws Exception {
runTest("compiler/testData/codegen/box/reflection/enclosing/lambdaInPropertySetter.kt");
}
@TestMetadata("localClassInTopLevelFunction.kt")
public void testLocalClassInTopLevelFunction() throws Exception {
runTest("compiler/testData/codegen/box/reflection/enclosing/localClassInTopLevelFunction.kt");
}
@TestMetadata("objectInLambda.kt")
public void testObjectInLambda() throws Exception {
runTest("compiler/testData/codegen/box/reflection/enclosing/objectInLambda.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/reflection/functions")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Functions extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInFunctions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/functions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("declaredVsInheritedFunctions.kt")
public void testDeclaredVsInheritedFunctions() throws Exception {
runTest("compiler/testData/codegen/box/reflection/functions/declaredVsInheritedFunctions.kt");
}
@TestMetadata("enumValuesValueOf.kt")
public void testEnumValuesValueOf() throws Exception {
runTest("compiler/testData/codegen/box/reflection/functions/enumValuesValueOf.kt");
}
@TestMetadata("functionFromStdlib.kt")
public void testFunctionFromStdlib() throws Exception {
runTest("compiler/testData/codegen/box/reflection/functions/functionFromStdlib.kt");
}
@TestMetadata("functionReferenceErasedToKFunction.kt")
public void testFunctionReferenceErasedToKFunction() throws Exception {
runTest("compiler/testData/codegen/box/reflection/functions/functionReferenceErasedToKFunction.kt");
}
@TestMetadata("genericOverriddenFunction.kt")
public void testGenericOverriddenFunction() throws Exception {
runTest("compiler/testData/codegen/box/reflection/functions/genericOverriddenFunction.kt");
}
@TestMetadata("instanceOfFunction.kt")
public void testInstanceOfFunction() throws Exception {
runTest("compiler/testData/codegen/box/reflection/functions/instanceOfFunction.kt");
}
@TestMetadata("isAccessibleOnAllMembers.kt")
public void testIsAccessibleOnAllMembers() throws Exception {
runTest("compiler/testData/codegen/box/reflection/functions/isAccessibleOnAllMembers.kt");
}
@TestMetadata("javaClassGetFunctions.kt")
public void testJavaClassGetFunctions() throws Exception {
runTest("compiler/testData/codegen/box/reflection/functions/javaClassGetFunctions.kt");
}
@TestMetadata("javaMethodsSmokeTest.kt")
public void testJavaMethodsSmokeTest() throws Exception {
runTest("compiler/testData/codegen/box/reflection/functions/javaMethodsSmokeTest.kt");
}
@TestMetadata("platformName.kt")
public void testPlatformName() throws Exception {
runTest("compiler/testData/codegen/box/reflection/functions/platformName.kt");
}
@TestMetadata("privateMemberFunction.kt")
public void testPrivateMemberFunction() throws Exception {
runTest("compiler/testData/codegen/box/reflection/functions/privateMemberFunction.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInGenericSignature() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/genericSignature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("covariantOverride.kt")
public void testCovariantOverride() throws Exception {
runTest("compiler/testData/codegen/box/reflection/genericSignature/covariantOverride.kt");
}
@TestMetadata("defaultImplsGenericSignature.kt")
public void testDefaultImplsGenericSignature() throws Exception {
runTest("compiler/testData/codegen/box/reflection/genericSignature/defaultImplsGenericSignature.kt");
}
@TestMetadata("delegatedMembers.kt")
public void testDelegatedMembers() throws Exception {
runTest("compiler/testData/codegen/box/reflection/genericSignature/delegatedMembers.kt");
}
@TestMetadata("functionLiteralGenericSignature.kt")
public void testFunctionLiteralGenericSignature() throws Exception {
runTest("compiler/testData/codegen/box/reflection/genericSignature/functionLiteralGenericSignature.kt");
}
@TestMetadata("genericBackingFieldSignature.kt")
public void testGenericBackingFieldSignature() throws Exception {
runTest("compiler/testData/codegen/box/reflection/genericSignature/genericBackingFieldSignature.kt");
}
@TestMetadata("genericMethodSignature.kt")
public void testGenericMethodSignature() throws Exception {
runTest("compiler/testData/codegen/box/reflection/genericSignature/genericMethodSignature.kt");
}
@TestMetadata("kt11121.kt")
public void testKt11121() throws Exception {
runTest("compiler/testData/codegen/box/reflection/genericSignature/kt11121.kt");
}
@TestMetadata("kt5112.kt")
public void testKt5112() throws Exception {
runTest("compiler/testData/codegen/box/reflection/genericSignature/kt5112.kt");
}
@TestMetadata("kt6106.kt")
public void testKt6106() throws Exception {
runTest("compiler/testData/codegen/box/reflection/genericSignature/kt6106.kt");
}
@TestMetadata("samWrappedLambdaVsReference.kt")
public void testSamWrappedLambdaVsReference() throws Exception {
runTest("compiler/testData/codegen/box/reflection/genericSignature/samWrappedLambdaVsReference.kt");
}
@TestMetadata("signatureOfDeepGenericInner.kt")
public void testSignatureOfDeepGenericInner() throws Exception {
runTest("compiler/testData/codegen/box/reflection/genericSignature/signatureOfDeepGenericInner.kt");
}
@TestMetadata("signatureOfDeepInner.kt")
public void testSignatureOfDeepInner() throws Exception {
runTest("compiler/testData/codegen/box/reflection/genericSignature/signatureOfDeepInner.kt");
}
@TestMetadata("signatureOfDeepInnerLastGeneric.kt")
public void testSignatureOfDeepInnerLastGeneric() throws Exception {
runTest("compiler/testData/codegen/box/reflection/genericSignature/signatureOfDeepInnerLastGeneric.kt");
}
@TestMetadata("signatureOfGenericInnerGenericOuter.kt")
public void testSignatureOfGenericInnerGenericOuter() throws Exception {
runTest("compiler/testData/codegen/box/reflection/genericSignature/signatureOfGenericInnerGenericOuter.kt");
}
@TestMetadata("signatureOfGenericInnerSimpleOuter.kt")
public void testSignatureOfGenericInnerSimpleOuter() throws Exception {
runTest("compiler/testData/codegen/box/reflection/genericSignature/signatureOfGenericInnerSimpleOuter.kt");
}
@TestMetadata("signatureOfSimpleInnerSimpleOuter.kt")
public void testSignatureOfSimpleInnerSimpleOuter() throws Exception {
runTest("compiler/testData/codegen/box/reflection/genericSignature/signatureOfSimpleInnerSimpleOuter.kt");
}
@TestMetadata("suspendFunctionLiteralGenericSignature.kt")
public void testSuspendFunctionLiteralGenericSignature() throws Exception {
runTest("compiler/testData/codegen/box/reflection/genericSignature/suspendFunctionLiteralGenericSignature.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/reflection/isInstance")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class IsInstance extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInIsInstance() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/isInstance"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("isInstanceCastAndSafeCast.kt")
public void testIsInstanceCastAndSafeCast() throws Exception {
runTest("compiler/testData/codegen/box/reflection/isInstance/isInstanceCastAndSafeCast.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/reflection/kClassInAnnotation")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class KClassInAnnotation extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInKClassInAnnotation() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/kClassInAnnotation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("array.kt")
public void testArray() throws Exception {
runTest("compiler/testData/codegen/box/reflection/kClassInAnnotation/array.kt");
}
@TestMetadata("arrayInJava.kt")
public void testArrayInJava() throws Exception {
runTest("compiler/testData/codegen/box/reflection/kClassInAnnotation/arrayInJava.kt");
}
@TestMetadata("basic.kt")
public void testBasic() throws Exception {
runTest("compiler/testData/codegen/box/reflection/kClassInAnnotation/basic.kt");
}
@TestMetadata("basicInJava.kt")
public void testBasicInJava() throws Exception {
runTest("compiler/testData/codegen/box/reflection/kClassInAnnotation/basicInJava.kt");
}
@TestMetadata("checkcast.kt")
public void testCheckcast() throws Exception {
runTest("compiler/testData/codegen/box/reflection/kClassInAnnotation/checkcast.kt");
}
@TestMetadata("forceWrapping.kt")
public void testForceWrapping() throws Exception {
runTest("compiler/testData/codegen/box/reflection/kClassInAnnotation/forceWrapping.kt");
}
@TestMetadata("vararg.kt")
public void testVararg() throws Exception {
runTest("compiler/testData/codegen/box/reflection/kClassInAnnotation/vararg.kt");
}
@TestMetadata("varargInJava.kt")
public void testVarargInJava() throws Exception {
runTest("compiler/testData/codegen/box/reflection/kClassInAnnotation/varargInJava.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInLambdaClasses() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/lambdaClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("parameterNamesAndNullability.kt")
public void testParameterNamesAndNullability() throws Exception {
runTest("compiler/testData/codegen/box/reflection/lambdaClasses/parameterNamesAndNullability.kt");
}
@TestMetadata("reflectOnDefaultWithInlineClassArgument.kt")
public void testReflectOnDefaultWithInlineClassArgument() throws Exception {
runTest("compiler/testData/codegen/box/reflection/lambdaClasses/reflectOnDefaultWithInlineClassArgument.kt");
}
@TestMetadata("reflectOnLambdaInArrayConstructor.kt")
public void testReflectOnLambdaInArrayConstructor() throws Exception {
runTest("compiler/testData/codegen/box/reflection/lambdaClasses/reflectOnLambdaInArrayConstructor.kt");
}
@TestMetadata("reflectOnLambdaInConstructor.kt")
public void testReflectOnLambdaInConstructor() throws Exception {
runTest("compiler/testData/codegen/box/reflection/lambdaClasses/reflectOnLambdaInConstructor.kt");
}
@TestMetadata("reflectOnLambdaInField.kt")
public void testReflectOnLambdaInField() throws Exception {
runTest("compiler/testData/codegen/box/reflection/lambdaClasses/reflectOnLambdaInField.kt");
}
@TestMetadata("reflectOnLambdaInStaticField.kt")
public void testReflectOnLambdaInStaticField() throws Exception {
runTest("compiler/testData/codegen/box/reflection/lambdaClasses/reflectOnLambdaInStaticField.kt");
}
@TestMetadata("reflectOnLambdaInSuspend.kt")
public void testReflectOnLambdaInSuspend() throws Exception {
runTest("compiler/testData/codegen/box/reflection/lambdaClasses/reflectOnLambdaInSuspend.kt");
}
@TestMetadata("reflectOnLambdaInSuspendLambda.kt")
public void testReflectOnLambdaInSuspendLambda() throws Exception {
runTest("compiler/testData/codegen/box/reflection/lambdaClasses/reflectOnLambdaInSuspendLambda.kt");
}
@TestMetadata("reflectOnSuspendLambdaInField.kt")
public void testReflectOnSuspendLambdaInField() throws Exception {
runTest("compiler/testData/codegen/box/reflection/lambdaClasses/reflectOnSuspendLambdaInField.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/reflection/mapping")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Mapping extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInMapping() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/mapping"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("constructor.kt")
public void testConstructor() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/constructor.kt");
}
@TestMetadata("constructorWithInlineClassParameters.kt")
public void testConstructorWithInlineClassParameters() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/constructorWithInlineClassParameters.kt");
}
@TestMetadata("extensionProperty.kt")
public void testExtensionProperty() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/extensionProperty.kt");
}
@TestMetadata("functions.kt")
public void testFunctions() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/functions.kt");
}
@TestMetadata("inlineReifiedFun.kt")
public void testInlineReifiedFun() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/inlineReifiedFun.kt");
}
@TestMetadata("interfaceCompanionPropertyWithJvmField.kt")
public void testInterfaceCompanionPropertyWithJvmField() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/interfaceCompanionPropertyWithJvmField.kt");
}
@TestMetadata("jClass2kClass.kt")
public void testJClass2kClass() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/jClass2kClass.kt");
}
@TestMetadata("javaConstructor.kt")
public void testJavaConstructor() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/javaConstructor.kt");
}
@TestMetadata("javaFields.kt")
public void testJavaFields() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/javaFields.kt");
}
@TestMetadata("javaMethods.kt")
public void testJavaMethods() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/javaMethods.kt");
}
@TestMetadata("lateinitProperty.kt")
public void testLateinitProperty() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/lateinitProperty.kt");
}
@TestMetadata("mappedClassIsEqualToClassLiteral.kt")
public void testMappedClassIsEqualToClassLiteral() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/mappedClassIsEqualToClassLiteral.kt");
}
@TestMetadata("memberProperty.kt")
public void testMemberProperty() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/memberProperty.kt");
}
@TestMetadata("methodsFromObject.kt")
public void testMethodsFromObject() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/methodsFromObject.kt");
}
@TestMetadata("methodsFromSuperInterface.kt")
public void testMethodsFromSuperInterface() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/methodsFromSuperInterface.kt");
}
@TestMetadata("openSuspendFun.kt")
public void testOpenSuspendFun() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/openSuspendFun.kt");
}
@TestMetadata("privateProperty.kt")
public void testPrivateProperty() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/privateProperty.kt");
}
@TestMetadata("propertyAccessorsWithJvmName.kt")
public void testPropertyAccessorsWithJvmName() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/propertyAccessorsWithJvmName.kt");
}
@TestMetadata("syntheticFields.kt")
public void testSyntheticFields() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/syntheticFields.kt");
}
@TestMetadata("topLevelFunctionOtherFile.kt")
public void testTopLevelFunctionOtherFile() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/topLevelFunctionOtherFile.kt");
}
@TestMetadata("topLevelProperty.kt")
public void testTopLevelProperty() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/topLevelProperty.kt");
}
@TestMetadata("compiler/testData/codegen/box/reflection/mapping/fakeOverrides")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class FakeOverrides extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInFakeOverrides() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/mapping/fakeOverrides"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("javaFieldGetterSetter.kt")
public void testJavaFieldGetterSetter() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/fakeOverrides/javaFieldGetterSetter.kt");
}
@TestMetadata("javaMethod.kt")
public void testJavaMethod() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/fakeOverrides/javaMethod.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/reflection/mapping/inlineClasses")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class InlineClasses extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInInlineClasses() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/mapping/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("inlineClassPrimaryVal.kt")
public void testInlineClassPrimaryVal() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/inlineClasses/inlineClassPrimaryVal.kt");
}
@TestMetadata("suspendFunctionWithInlineClassInSignature.kt")
public void testSuspendFunctionWithInlineClassInSignature() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/inlineClasses/suspendFunctionWithInlineClassInSignature.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/reflection/mapping/jvmStatic")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class JvmStatic extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInJvmStatic() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/mapping/jvmStatic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("companionObjectFunction.kt")
public void testCompanionObjectFunction() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/jvmStatic/companionObjectFunction.kt");
}
@TestMetadata("objectFunction.kt")
public void testObjectFunction() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/jvmStatic/objectFunction.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/reflection/mapping/types")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Types extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInTypes() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/mapping/types"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("allSupertypes.kt")
public void testAllSupertypes() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/types/allSupertypes.kt");
}
@TestMetadata("annotationConstructorParameters.kt")
public void testAnnotationConstructorParameters() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/types/annotationConstructorParameters.kt");
}
@TestMetadata("array.kt")
public void testArray() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/types/array.kt");
}
@TestMetadata("constructors.kt")
public void testConstructors() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/types/constructors.kt");
}
@TestMetadata("createType.kt")
public void testCreateType() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/types/createType.kt");
}
@TestMetadata("genericArrayElementType.kt")
public void testGenericArrayElementType() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/types/genericArrayElementType.kt");
}
@TestMetadata("inlineClassInSignature.kt")
public void testInlineClassInSignature() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/types/inlineClassInSignature.kt");
}
@TestMetadata("inlineClassPrimaryVal.kt")
public void testInlineClassPrimaryVal() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/types/inlineClassPrimaryVal.kt");
}
@TestMetadata("innerGenericTypeArgument.kt")
public void testInnerGenericTypeArgument() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/types/innerGenericTypeArgument.kt");
}
@TestMetadata("memberFunctions.kt")
public void testMemberFunctions() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/types/memberFunctions.kt");
}
@TestMetadata("overrideAnyWithPrimitive.kt")
public void testOverrideAnyWithPrimitive() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/types/overrideAnyWithPrimitive.kt");
}
@TestMetadata("parameterizedTypeArgument.kt")
public void testParameterizedTypeArgument() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/types/parameterizedTypeArgument.kt");
}
@TestMetadata("parameterizedTypes.kt")
public void testParameterizedTypes() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/types/parameterizedTypes.kt");
}
@TestMetadata("propertyAccessors.kt")
public void testPropertyAccessors() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/types/propertyAccessors.kt");
}
@TestMetadata("rawTypeArgument.kt")
public void testRawTypeArgument() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/types/rawTypeArgument.kt");
}
@TestMetadata("supertypes.kt")
public void testSupertypes() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/types/supertypes.kt");
}
@TestMetadata("suspendFun.kt")
public void testSuspendFun() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/types/suspendFun.kt");
}
@TestMetadata("topLevelFunctions.kt")
public void testTopLevelFunctions() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/types/topLevelFunctions.kt");
}
@TestMetadata("typeParameters.kt")
public void testTypeParameters() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/types/typeParameters.kt");
}
@TestMetadata("unit.kt")
public void testUnit() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/types/unit.kt");
}
@TestMetadata("withNullability.kt")
public void testWithNullability() throws Exception {
runTest("compiler/testData/codegen/box/reflection/mapping/types/withNullability.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/reflection/methodsFromAny")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class MethodsFromAny extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("adaptedCallableReferencesNotEqualToCallablesFromAPI.kt")
public void testAdaptedCallableReferencesNotEqualToCallablesFromAPI() throws Exception {
runTest("compiler/testData/codegen/box/reflection/methodsFromAny/adaptedCallableReferencesNotEqualToCallablesFromAPI.kt");
}
public void testAllFilesPresentInMethodsFromAny() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/methodsFromAny"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("builtinFunctionsToString.kt")
public void testBuiltinFunctionsToString() throws Exception {
runTest("compiler/testData/codegen/box/reflection/methodsFromAny/builtinFunctionsToString.kt");
}
@TestMetadata("callableReferencesEqualToCallablesFromAPI.kt")
public void testCallableReferencesEqualToCallablesFromAPI() throws Exception {
runTest("compiler/testData/codegen/box/reflection/methodsFromAny/callableReferencesEqualToCallablesFromAPI.kt");
}
@TestMetadata("classToString.kt")
public void testClassToString() throws Exception {
runTest("compiler/testData/codegen/box/reflection/methodsFromAny/classToString.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("parametersEqualsWithClearCaches.kt")
public void testParametersEqualsWithClearCaches() throws Exception {
runTest("compiler/testData/codegen/box/reflection/methodsFromAny/parametersEqualsWithClearCaches.kt");
}
@TestMetadata("parametersToString.kt")
public void testParametersToString() throws Exception {
runTest("compiler/testData/codegen/box/reflection/methodsFromAny/parametersToString.kt");
}
@TestMetadata("propertyAccessorEqualsHashCode.kt")
public void testPropertyAccessorEqualsHashCode() throws Exception {
runTest("compiler/testData/codegen/box/reflection/methodsFromAny/propertyAccessorEqualsHashCode.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("typeParametersEqualsWithClearCaches.kt")
public void testTypeParametersEqualsWithClearCaches() throws Exception {
runTest("compiler/testData/codegen/box/reflection/methodsFromAny/typeParametersEqualsWithClearCaches.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInModifiers() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/modifiers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("classes.kt")
public void testClasses() throws Exception {
runTest("compiler/testData/codegen/box/reflection/modifiers/classes.kt");
}
@TestMetadata("functions.kt")
public void testFunctions() throws Exception {
runTest("compiler/testData/codegen/box/reflection/modifiers/functions.kt");
}
@TestMetadata("javaVisibility.kt")
public void testJavaVisibility() throws Exception {
runTest("compiler/testData/codegen/box/reflection/modifiers/javaVisibility.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInMultifileClasses() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/multifileClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("callFunctionsInMultifileClass.kt")
public void testCallFunctionsInMultifileClass() throws Exception {
runTest("compiler/testData/codegen/box/reflection/multifileClasses/callFunctionsInMultifileClass.kt");
}
@TestMetadata("callPropertiesInMultifileClass.kt")
public void testCallPropertiesInMultifileClass() throws Exception {
runTest("compiler/testData/codegen/box/reflection/multifileClasses/callPropertiesInMultifileClass.kt");
}
@TestMetadata("javaFieldForVarAndConstVal.kt")
public void testJavaFieldForVarAndConstVal() throws Exception {
runTest("compiler/testData/codegen/box/reflection/multifileClasses/javaFieldForVarAndConstVal.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/reflection/noReflectAtRuntime")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class NoReflectAtRuntime extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInNoReflectAtRuntime() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/noReflectAtRuntime"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("javaClass.kt")
public void testJavaClass() throws Exception {
runTest("compiler/testData/codegen/box/reflection/noReflectAtRuntime/javaClass.kt");
}
@TestMetadata("javaVoid.kt")
public void testJavaVoid() throws Exception {
runTest("compiler/testData/codegen/box/reflection/noReflectAtRuntime/javaVoid.kt");
}
@TestMetadata("primitiveJavaClass.kt")
public void testPrimitiveJavaClass() throws Exception {
runTest("compiler/testData/codegen/box/reflection/noReflectAtRuntime/primitiveJavaClass.kt");
}
@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("reifiedTypeJavaClass.kt")
public void testReifiedTypeJavaClass() throws Exception {
runTest("compiler/testData/codegen/box/reflection/noReflectAtRuntime/reifiedTypeJavaClass.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInMethodsFromAny() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/noReflectAtRuntime/methodsFromAny"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("callableReferences.kt")
public void testCallableReferences() throws Exception {
runTest("compiler/testData/codegen/box/reflection/noReflectAtRuntime/methodsFromAny/callableReferences.kt");
}
@TestMetadata("classReference.kt")
public void testClassReference() throws Exception {
runTest("compiler/testData/codegen/box/reflection/noReflectAtRuntime/methodsFromAny/classReference.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInParameters() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/parameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("boundObjectMemberReferences.kt")
public void testBoundObjectMemberReferences() throws Exception {
runTest("compiler/testData/codegen/box/reflection/parameters/boundObjectMemberReferences.kt");
}
@TestMetadata("boundReferences.kt")
public void testBoundReferences() throws Exception {
runTest("compiler/testData/codegen/box/reflection/parameters/boundReferences.kt");
}
@TestMetadata("findParameterByName.kt")
public void testFindParameterByName() throws Exception {
runTest("compiler/testData/codegen/box/reflection/parameters/findParameterByName.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("instanceParameterOfFakeOverride.kt")
public void testInstanceParameterOfFakeOverride() throws Exception {
runTest("compiler/testData/codegen/box/reflection/parameters/instanceParameterOfFakeOverride.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("javaAnnotationConstructor.kt")
public void testJavaAnnotationConstructor() throws Exception {
runTest("compiler/testData/codegen/box/reflection/parameters/javaAnnotationConstructor.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("realParameterNames.kt")
public void testRealParameterNames() throws Exception {
runTest("compiler/testData/codegen/box/reflection/parameters/realParameterNames.kt");
}
@TestMetadata("synthesizedParameterNames.kt")
public void testSynthesizedParameterNames() throws Exception {
runTest("compiler/testData/codegen/box/reflection/parameters/synthesizedParameterNames.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/reflection/properties")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Properties extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInProperties() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("allVsDeclared.kt")
public void testAllVsDeclared() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/allVsDeclared.kt");
}
@TestMetadata("callPrivatePropertyFromGetProperties.kt")
public void testCallPrivatePropertyFromGetProperties() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/callPrivatePropertyFromGetProperties.kt");
}
@TestMetadata("declaredVsInheritedProperties.kt")
public void testDeclaredVsInheritedProperties() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/declaredVsInheritedProperties.kt");
}
@TestMetadata("equalsHashCodeToString.kt")
public void testEqualsHashCodeToString() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/equalsHashCodeToString.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("javaPropertyInheritedInKotlin.kt")
public void testJavaPropertyInheritedInKotlin() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/javaPropertyInheritedInKotlin.kt");
}
@TestMetadata("javaStaticField.kt")
public void testJavaStaticField() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/javaStaticField.kt");
}
@TestMetadata("kotlinPropertyInheritedInJava.kt")
public void testKotlinPropertyInheritedInJava() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/kotlinPropertyInheritedInJava.kt");
}
@TestMetadata("memberAndMemberExtensionWithSameName.kt")
public void testMemberAndMemberExtensionWithSameName() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/memberAndMemberExtensionWithSameName.kt");
}
@TestMetadata("mutatePrivateJavaInstanceField.kt")
public void testMutatePrivateJavaInstanceField() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/mutatePrivateJavaInstanceField.kt");
}
@TestMetadata("mutatePrivateJavaStaticField.kt")
public void testMutatePrivateJavaStaticField() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/mutatePrivateJavaStaticField.kt");
}
@TestMetadata("noConflictOnKotlinGetterAndJavaField.kt")
public void testNoConflictOnKotlinGetterAndJavaField() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/noConflictOnKotlinGetterAndJavaField.kt");
}
@TestMetadata("overrideKotlinPropertyByJavaMethod.kt")
public void testOverrideKotlinPropertyByJavaMethod() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/overrideKotlinPropertyByJavaMethod.kt");
}
@TestMetadata("privateClassVal.kt")
public void testPrivateClassVal() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/privateClassVal.kt");
}
@TestMetadata("privateClassVar.kt")
public void testPrivateClassVar() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/privateClassVar.kt");
}
@TestMetadata("privateFakeOverrideFromSuperclass.kt")
public void testPrivateFakeOverrideFromSuperclass() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/privateFakeOverrideFromSuperclass.kt");
}
@TestMetadata("privateJvmStaticVarInObject.kt")
public void testPrivateJvmStaticVarInObject() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/privateJvmStaticVarInObject.kt");
}
@TestMetadata("privatePropertyCallIsAccessibleOnAccessors.kt")
public void testPrivatePropertyCallIsAccessibleOnAccessors() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/privatePropertyCallIsAccessibleOnAccessors.kt");
}
@TestMetadata("privateToThisAccessors.kt")
public void testPrivateToThisAccessors() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/privateToThisAccessors.kt");
}
@TestMetadata("propertyOfNestedClassAndArrayType.kt")
public void testPropertyOfNestedClassAndArrayType() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/propertyOfNestedClassAndArrayType.kt");
}
@TestMetadata("protectedClassVar.kt")
public void testProtectedClassVar() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/protectedClassVar.kt");
}
@TestMetadata("publicClassValAccessible.kt")
public void testPublicClassValAccessible() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/publicClassValAccessible.kt");
}
@TestMetadata("referenceToJavaFieldOfKotlinSubclass.kt")
public void testReferenceToJavaFieldOfKotlinSubclass() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/referenceToJavaFieldOfKotlinSubclass.kt");
}
@TestMetadata("simpleGetProperties.kt")
public void testSimpleGetProperties() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/simpleGetProperties.kt");
}
@TestMetadata("withLocalType.kt")
public void testWithLocalType() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/withLocalType.kt");
}
@TestMetadata("compiler/testData/codegen/box/reflection/properties/accessors")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Accessors extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("accessorNames.kt")
public void testAccessorNames() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/accessors/accessorNames.kt");
}
public void testAllFilesPresentInAccessors() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/properties/accessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInGetDelegate() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/properties/getDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("booleanPropertyNameStartsWithIs.kt")
public void testBooleanPropertyNameStartsWithIs() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/booleanPropertyNameStartsWithIs.kt");
}
@TestMetadata("boundExtensionProperty.kt")
public void testBoundExtensionProperty() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/boundExtensionProperty.kt");
}
@TestMetadata("boundMemberProperty.kt")
public void testBoundMemberProperty() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/boundMemberProperty.kt");
}
@TestMetadata("extensionProperty.kt")
public void testExtensionProperty() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/extensionProperty.kt");
}
@TestMetadata("fakeOverride.kt")
public void testFakeOverride() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/fakeOverride.kt");
}
@TestMetadata("getExtensionDelegate.kt")
public void testGetExtensionDelegate() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/getExtensionDelegate.kt");
}
@TestMetadata("kPropertyForDelegatedProperty.kt")
public void testKPropertyForDelegatedProperty() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/kPropertyForDelegatedProperty.kt");
}
@TestMetadata("memberExtensionProperty.kt")
public void testMemberExtensionProperty() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/memberExtensionProperty.kt");
}
@TestMetadata("memberProperty.kt")
public void testMemberProperty() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/memberProperty.kt");
}
@TestMetadata("nameClashClassAndCompanion.kt")
public void testNameClashClassAndCompanion() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/nameClashClassAndCompanion.kt");
}
@TestMetadata("nameClashExtensionProperties.kt")
public void testNameClashExtensionProperties() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/nameClashExtensionProperties.kt");
}
@TestMetadata("noSetAccessibleTrue.kt")
public void testNoSetAccessibleTrue() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/noSetAccessibleTrue.kt");
}
@TestMetadata("notDelegatedProperty.kt")
public void testNotDelegatedProperty() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/notDelegatedProperty.kt");
}
@TestMetadata("overrideDelegatedByDelegated.kt")
public void testOverrideDelegatedByDelegated() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/overrideDelegatedByDelegated.kt");
}
@TestMetadata("topLevelProperty.kt")
public void testTopLevelProperty() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/topLevelProperty.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/reflection/properties/jvmField")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class JvmField extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInJvmField() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/properties/jvmField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("annotationCompanionWithAnnotation.kt")
public void testAnnotationCompanionWithAnnotation() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/jvmField/annotationCompanionWithAnnotation.kt");
}
@TestMetadata("interfaceCompanion.kt")
public void testInterfaceCompanion() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/jvmField/interfaceCompanion.kt");
}
@TestMetadata("interfaceCompanionWithAnnotation.kt")
public void testInterfaceCompanionWithAnnotation() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/jvmField/interfaceCompanionWithAnnotation.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/reflection/properties/localDelegated")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class LocalDelegated extends AbstractLightAnalysisModeTest {
@TestMetadata("inLambdaInInline.kt")
public void ignoreInLambdaInInline() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/localDelegated/inLambdaInInline.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInLocalDelegated() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/properties/localDelegated"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("defaultImpls.kt")
public void testDefaultImpls() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/localDelegated/defaultImpls.kt");
}
@TestMetadata("inLambda.kt")
public void testInLambda() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/localDelegated/inLambda.kt");
}
@TestMetadata("inlineFun.kt")
public void testInlineFun() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/localDelegated/inlineFun.kt");
}
@TestMetadata("localAndNonLocal.kt")
public void testLocalAndNonLocal() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/localDelegated/localAndNonLocal.kt");
}
@TestMetadata("localDelegatedProperty.kt")
public void testLocalDelegatedProperty() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/localDelegated/localDelegatedProperty.kt");
}
@TestMetadata("multiFileClass.kt")
public void testMultiFileClass() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/localDelegated/multiFileClass.kt");
}
@TestMetadata("variableOfGenericType.kt")
public void testVariableOfGenericType() throws Exception {
runTest("compiler/testData/codegen/box/reflection/properties/localDelegated/variableOfGenericType.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/reflection/supertypes")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Supertypes extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInSupertypes() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/supertypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("builtInClassSupertypes.kt")
public void testBuiltInClassSupertypes() throws Exception {
runTest("compiler/testData/codegen/box/reflection/supertypes/builtInClassSupertypes.kt");
}
@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("primitives.kt")
public void testPrimitives() throws Exception {
runTest("compiler/testData/codegen/box/reflection/supertypes/primitives.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInTypeOf() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/typeOf"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("classes.kt")
public void testClasses() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/classes.kt");
}
@TestMetadata("flexibleTypes_after.kt")
public void testFlexibleTypes_after() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/flexibleTypes_after.kt");
}
@TestMetadata("flexibleTypes_before.kt")
public void testFlexibleTypes_before() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/flexibleTypes_before.kt");
}
@TestMetadata("inlineClasses.kt")
public void testInlineClasses() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/inlineClasses.kt");
}
@TestMetadata("intersectionType.kt")
public void testIntersectionType() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/intersectionType.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("mutableCollections_after.kt")
public void testMutableCollections_after() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/mutableCollections_after.kt");
}
@TestMetadata("mutableCollections_before.kt")
public void testMutableCollections_before() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/mutableCollections_before.kt");
}
@TestMetadata("nothing_after.kt")
public void testNothing_after() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/nothing_after.kt");
}
@TestMetadata("nothing_before.kt")
public void testNothing_before() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/nothing_before.kt");
}
@TestMetadata("primitiveJavaTypes.kt")
public void testPrimitiveJavaTypes() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/primitiveJavaTypes.kt");
}
@TestMetadata("rawTypes_after.kt")
public void testRawTypes_after() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/rawTypes_after.kt");
}
@TestMetadata("rawTypes_before.kt")
public void testRawTypes_before() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/rawTypes_before.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInJs() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/typeOf/js"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
}
@TestMetadata("compiler/testData/codegen/box/reflection/typeOf/noReflect")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class NoReflect extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInNoReflect() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/typeOf/noReflect"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("classes.kt")
public void testClasses() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/classes.kt");
}
@TestMetadata("flexibleTypes_after.kt")
public void testFlexibleTypes_after() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/flexibleTypes_after.kt");
}
@TestMetadata("flexibleTypes_before.kt")
public void testFlexibleTypes_before() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/flexibleTypes_before.kt");
}
@TestMetadata("inlineClasses.kt")
public void testInlineClasses() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/inlineClasses.kt");
}
@TestMetadata("mutableCollections_after.kt")
public void testMutableCollections_after() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/mutableCollections_after.kt");
}
@TestMetadata("mutableCollections_before.kt")
public void testMutableCollections_before() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/mutableCollections_before.kt");
}
@TestMetadata("nothing_after.kt")
public void testNothing_after() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/nothing_after.kt");
}
@TestMetadata("nothing_before.kt")
public void testNothing_before() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/nothing_before.kt");
}
@TestMetadata("primitiveJavaTypes.kt")
public void testPrimitiveJavaTypes() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/primitiveJavaTypes.kt");
}
@TestMetadata("rawTypes_after.kt")
public void testRawTypes_after() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/rawTypes_after.kt");
}
@TestMetadata("rawTypes_before.kt")
public void testRawTypes_before() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/rawTypes_before.kt");
}
@TestMetadata("typeReferenceEqualsHashCode.kt")
public void testTypeReferenceEqualsHashCode() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/typeReferenceEqualsHashCode.kt");
}
@TestMetadata("compiler/testData/codegen/box/reflection/typeOf/noReflect/nonReifiedTypeParameters")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class NonReifiedTypeParameters extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInNonReifiedTypeParameters() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/typeOf/noReflect/nonReifiedTypeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("defaultUpperBound.kt")
public void testDefaultUpperBound() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/nonReifiedTypeParameters/defaultUpperBound.kt");
}
@TestMetadata("equalsOnClassParameters.kt")
public void testEqualsOnClassParameters() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/nonReifiedTypeParameters/equalsOnClassParameters.kt");
}
@TestMetadata("equalsOnFunctionParameters.kt")
public void testEqualsOnFunctionParameters() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/nonReifiedTypeParameters/equalsOnFunctionParameters.kt");
}
@TestMetadata("innerGeneric.kt")
public void testInnerGeneric() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/nonReifiedTypeParameters/innerGeneric.kt");
}
@TestMetadata("simpleClassParameter.kt")
public void testSimpleClassParameter() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/nonReifiedTypeParameters/simpleClassParameter.kt");
}
@TestMetadata("simpleFunctionParameter.kt")
public void testSimpleFunctionParameter() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/nonReifiedTypeParameters/simpleFunctionParameter.kt");
}
@TestMetadata("simplePropertyParameter.kt")
public void testSimplePropertyParameter() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/nonReifiedTypeParameters/simplePropertyParameter.kt");
}
@TestMetadata("typeParameterFlags.kt")
public void testTypeParameterFlags() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/nonReifiedTypeParameters/typeParameterFlags.kt");
}
@TestMetadata("upperBoundUsesOuterClassParameter.kt")
public void testUpperBoundUsesOuterClassParameter() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/nonReifiedTypeParameters/upperBoundUsesOuterClassParameter.kt");
}
@TestMetadata("upperBounds.kt")
public void testUpperBounds() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/nonReifiedTypeParameters/upperBounds.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class NonReifiedTypeParameters extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInNonReifiedTypeParameters() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("equalsOnClassParametersWithReflectAPI.kt")
public void testEqualsOnClassParametersWithReflectAPI() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/equalsOnClassParametersWithReflectAPI.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("starProjectionInUpperBound.kt")
public void testStarProjectionInUpperBound() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/starProjectionInUpperBound.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInTypeParameters() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("declarationSiteVariance.kt")
public void testDeclarationSiteVariance() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeParameters/declarationSiteVariance.kt");
}
@TestMetadata("innerGenericParameter.kt")
public void testInnerGenericParameter() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeParameters/innerGenericParameter.kt");
}
@TestMetadata("javaGenericTypeConstructor.kt")
public void testJavaGenericTypeConstructor() throws Exception {
runTest("compiler/testData/codegen/box/reflection/typeParameters/javaGenericTypeConstructor.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInTypes() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/types"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("classifiersOfBuiltInTypes.kt")
public void testClassifiersOfBuiltInTypes() throws Exception {
runTest("compiler/testData/codegen/box/reflection/types/classifiersOfBuiltInTypes.kt");
}
@TestMetadata("equalsForClassAndTypeParameterWithSameFqName.kt")
public void testEqualsForClassAndTypeParameterWithSameFqName() throws Exception {
runTest("compiler/testData/codegen/box/reflection/types/equalsForClassAndTypeParameterWithSameFqName.kt");
}
@TestMetadata("innerGenericArguments.kt")
public void testInnerGenericArguments() throws Exception {
runTest("compiler/testData/codegen/box/reflection/types/innerGenericArguments.kt");
}
@TestMetadata("jvmErasureOfClass.kt")
public void testJvmErasureOfClass() throws Exception {
runTest("compiler/testData/codegen/box/reflection/types/jvmErasureOfClass.kt");
}
@TestMetadata("jvmErasureOfTypeParameter.kt")
public void testJvmErasureOfTypeParameter() throws Exception {
runTest("compiler/testData/codegen/box/reflection/types/jvmErasureOfTypeParameter.kt");
}
@TestMetadata("platformTypeClassifier.kt")
public void testPlatformTypeClassifier() throws Exception {
runTest("compiler/testData/codegen/box/reflection/types/platformTypeClassifier.kt");
}
@TestMetadata("platformTypeNotEqualToKotlinType.kt")
public void testPlatformTypeNotEqualToKotlinType() throws Exception {
runTest("compiler/testData/codegen/box/reflection/types/platformTypeNotEqualToKotlinType.kt");
}
@TestMetadata("platformTypeToString.kt")
public void testPlatformTypeToString() throws Exception {
runTest("compiler/testData/codegen/box/reflection/types/platformTypeToString.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("withNullability.kt")
public void testWithNullability() throws Exception {
runTest("compiler/testData/codegen/box/reflection/types/withNullability.kt");
}
@TestMetadata("compiler/testData/codegen/box/reflection/types/createType")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class CreateType extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInCreateType() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/types/createType"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInSubtyping() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/types/subtyping"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("platformType.kt")
public void testPlatformType() throws Exception {
runTest("compiler/testData/codegen/box/reflection/types/subtyping/platformType.kt");
}
@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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInRegressions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/regressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("approximateIntersectionType.kt")
public void testApproximateIntersectionType() throws Exception {
runTest("compiler/testData/codegen/box/regressions/approximateIntersectionType.kt");
}
@TestMetadata("approximationForDefinitelyNotNull.kt")
public void testApproximationForDefinitelyNotNull() throws Exception {
runTest("compiler/testData/codegen/box/regressions/approximationForDefinitelyNotNull.kt");
}
@TestMetadata("arrayLengthNPE.kt")
public void testArrayLengthNPE() throws Exception {
runTest("compiler/testData/codegen/box/regressions/arrayLengthNPE.kt");
}
@TestMetadata("collections.kt")
public void testCollections() throws Exception {
runTest("compiler/testData/codegen/box/regressions/collections.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("getGenericInterfaces.kt")
public void testGetGenericInterfaces() throws Exception {
runTest("compiler/testData/codegen/box/regressions/getGenericInterfaces.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("intersectionAsLastLambda.kt")
public void testIntersectionAsLastLambda() throws Exception {
runTest("compiler/testData/codegen/box/regressions/intersectionAsLastLambda.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("kt1202.kt")
public void testKt1202() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt1202.kt");
}
@TestMetadata("kt13381.kt")
public void testKt13381() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt13381.kt");
}
@TestMetadata("kt1406.kt")
public void testKt1406() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt1406.kt");
}
@TestMetadata("kt14447.kt")
public void testKt14447() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt14447.kt");
}
@TestMetadata("kt1515.kt")
public void testKt1515() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt1515.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("kt1568.kt")
public void testKt1568() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt1568.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("kt1932.kt")
public void testKt1932() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt1932.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("kt2318.kt")
public void testKt2318() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt2318.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("kt2593.kt")
public void testKt2593() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt2593.kt");
}
@TestMetadata("kt274.kt")
public void testKt274() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt274.kt");
}
@TestMetadata("kt3046.kt")
public void testKt3046() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt3046.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("kt39088.kt")
public void testKt39088() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt39088.kt");
}
@TestMetadata("kt41357.kt")
public void testKt41357() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt41357.kt");
}
@TestMetadata("kt4142.kt")
public void testKt4142() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt4142.kt");
}
@TestMetadata("kt41806.kt")
public void testKt41806() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt41806.kt");
}
@TestMetadata("kt4259.kt")
public void testKt4259() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt4259.kt");
}
@TestMetadata("kt4262.kt")
public void testKt4262() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt4262.kt");
}
@TestMetadata("kt4281.kt")
public void testKt4281() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt4281.kt");
}
@TestMetadata("kt44993.kt")
public void testKt44993() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt44993.kt");
}
@TestMetadata("kt5056.kt")
public void testKt5056() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt5056.kt");
}
@TestMetadata("kt528.kt")
public void testKt528() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt528.kt");
}
@TestMetadata("kt529.kt")
public void testKt529() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt529.kt");
}
@TestMetadata("kt533.kt")
public void testKt533() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt533.kt");
}
@TestMetadata("kt5395.kt")
public void testKt5395() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt5395.kt");
}
@TestMetadata("kt5445.kt")
public void testKt5445() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt5445.kt");
}
@TestMetadata("kt5445_2.kt")
public void testKt5445_2() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt5445_2.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("kt6485.kt")
public void testKt6485() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt6485.kt");
}
@TestMetadata("kt715.kt")
public void testKt715() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt715.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("kt864.kt")
public void testKt864() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt864.kt");
}
@TestMetadata("kt9345.kt")
public void testKt9345() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt9345.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("nestedIntersection.kt")
public void testNestedIntersection() throws Exception {
runTest("compiler/testData/codegen/box/regressions/nestedIntersection.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("referenceToSelfInLocal.kt")
public void testReferenceToSelfInLocal() throws Exception {
runTest("compiler/testData/codegen/box/regressions/referenceToSelfInLocal.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("typeCastException.kt")
public void testTypeCastException() throws Exception {
runTest("compiler/testData/codegen/box/regressions/typeCastException.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/reified")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Reified extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInReified() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reified"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("anonymousObject.kt")
public void testAnonymousObject() throws Exception {
runTest("compiler/testData/codegen/box/reified/anonymousObject.kt");
}
@TestMetadata("anonymousObjectNoPropagate.kt")
public void testAnonymousObjectNoPropagate() throws Exception {
runTest("compiler/testData/codegen/box/reified/anonymousObjectNoPropagate.kt");
}
@TestMetadata("anonymousObjectReifiedSupertype.kt")
public void testAnonymousObjectReifiedSupertype() throws Exception {
runTest("compiler/testData/codegen/box/reified/anonymousObjectReifiedSupertype.kt");
}
@TestMetadata("approximateCapturedTypes.kt")
public void testApproximateCapturedTypes() throws Exception {
runTest("compiler/testData/codegen/box/reified/approximateCapturedTypes.kt");
}
@TestMetadata("asOnPlatformType.kt")
public void testAsOnPlatformType() throws Exception {
runTest("compiler/testData/codegen/box/reified/asOnPlatformType.kt");
}
@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("DIExample.kt")
public void testDIExample() throws Exception {
runTest("compiler/testData/codegen/box/reified/DIExample.kt");
}
@TestMetadata("defaultJavaClass.kt")
public void testDefaultJavaClass() throws Exception {
runTest("compiler/testData/codegen/box/reified/defaultJavaClass.kt");
}
@TestMetadata("expectedTypeFromCast.kt")
public void testExpectedTypeFromCast() throws Exception {
runTest("compiler/testData/codegen/box/reified/expectedTypeFromCast.kt");
}
@TestMetadata("filterIsInstance.kt")
public void testFilterIsInstance() throws Exception {
runTest("compiler/testData/codegen/box/reified/filterIsInstance.kt");
}
@TestMetadata("innerAnonymousObject.kt")
public void testInnerAnonymousObject() throws Exception {
runTest("compiler/testData/codegen/box/reified/innerAnonymousObject.kt");
}
@TestMetadata("instanceof.kt")
public void testInstanceof() throws Exception {
runTest("compiler/testData/codegen/box/reified/instanceof.kt");
}
@TestMetadata("isOnPlatformType.kt")
public void testIsOnPlatformType() throws Exception {
runTest("compiler/testData/codegen/box/reified/isOnPlatformType.kt");
}
@TestMetadata("javaClass.kt")
public void testJavaClass() throws Exception {
runTest("compiler/testData/codegen/box/reified/javaClass.kt");
}
@TestMetadata("kt16445.kt")
public void testKt16445() throws Exception {
runTest("compiler/testData/codegen/box/reified/kt16445.kt");
}
@TestMetadata("nestedReified.kt")
public void testNestedReified() throws Exception {
runTest("compiler/testData/codegen/box/reified/nestedReified.kt");
}
@TestMetadata("nestedReifiedSignature.kt")
public void testNestedReifiedSignature() throws Exception {
runTest("compiler/testData/codegen/box/reified/nestedReifiedSignature.kt");
}
@TestMetadata("newArrayInt.kt")
public void testNewArrayInt() throws Exception {
runTest("compiler/testData/codegen/box/reified/newArrayInt.kt");
}
@TestMetadata("nonInlineableLambdaInReifiedFunction.kt")
public void testNonInlineableLambdaInReifiedFunction() throws Exception {
runTest("compiler/testData/codegen/box/reified/nonInlineableLambdaInReifiedFunction.kt");
}
@TestMetadata("recursiveInnerAnonymousObject.kt")
public void testRecursiveInnerAnonymousObject() throws Exception {
runTest("compiler/testData/codegen/box/reified/recursiveInnerAnonymousObject.kt");
}
@TestMetadata("recursiveNewArray.kt")
public void testRecursiveNewArray() throws Exception {
runTest("compiler/testData/codegen/box/reified/recursiveNewArray.kt");
}
@TestMetadata("recursiveNonInlineableLambda.kt")
public void testRecursiveNonInlineableLambda() throws Exception {
runTest("compiler/testData/codegen/box/reified/recursiveNonInlineableLambda.kt");
}
@TestMetadata("reifiedChain.kt")
public void testReifiedChain() throws Exception {
runTest("compiler/testData/codegen/box/reified/reifiedChain.kt");
}
@TestMetadata("reifiedInlineFunOfObject.kt")
public void testReifiedInlineFunOfObject() throws Exception {
runTest("compiler/testData/codegen/box/reified/reifiedInlineFunOfObject.kt");
}
@TestMetadata("reifiedInlineFunOfObjectWithinReified.kt")
public void testReifiedInlineFunOfObjectWithinReified() throws Exception {
runTest("compiler/testData/codegen/box/reified/reifiedInlineFunOfObjectWithinReified.kt");
}
@TestMetadata("reifiedInlineIntoNonInlineableLambda.kt")
public void testReifiedInlineIntoNonInlineableLambda() throws Exception {
runTest("compiler/testData/codegen/box/reified/reifiedInlineIntoNonInlineableLambda.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInArraysReification() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reified/arraysReification"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("jClass.kt")
public void testJClass() throws Exception {
runTest("compiler/testData/codegen/box/reified/arraysReification/jClass.kt");
}
@TestMetadata("jaggedArray.kt")
public void testJaggedArray() throws Exception {
runTest("compiler/testData/codegen/box/reified/arraysReification/jaggedArray.kt");
}
@TestMetadata("jaggedArrayOfNulls.kt")
public void testJaggedArrayOfNulls() throws Exception {
runTest("compiler/testData/codegen/box/reified/arraysReification/jaggedArrayOfNulls.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInSafeCall() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/safeCall"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInSam() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("arrayAsVarargAfterSamArgument.kt")
public void testArrayAsVarargAfterSamArgument() throws Exception {
runTest("compiler/testData/codegen/box/sam/arrayAsVarargAfterSamArgument.kt");
}
@TestMetadata("castFromAny.kt")
public void testCastFromAny() throws Exception {
runTest("compiler/testData/codegen/box/sam/castFromAny.kt");
}
@TestMetadata("contravariantIntersectionType.kt")
public void testContravariantIntersectionType() throws Exception {
runTest("compiler/testData/codegen/box/sam/contravariantIntersectionType.kt");
}
@TestMetadata("contravariantIntersectionTypeWithNonTrivialCommonSupertype.kt")
public void testContravariantIntersectionTypeWithNonTrivialCommonSupertype() throws Exception {
runTest("compiler/testData/codegen/box/sam/contravariantIntersectionTypeWithNonTrivialCommonSupertype.kt");
}
@TestMetadata("contravariantIntersectionTypeWithNonTrivialCommonSupertype2.kt")
public void testContravariantIntersectionTypeWithNonTrivialCommonSupertype2() throws Exception {
runTest("compiler/testData/codegen/box/sam/contravariantIntersectionTypeWithNonTrivialCommonSupertype2.kt");
}
@TestMetadata("differentFqNames.kt")
public void testDifferentFqNames() throws Exception {
runTest("compiler/testData/codegen/box/sam/differentFqNames.kt");
}
@TestMetadata("inlinedSamWrapper.kt")
public void testInlinedSamWrapper() throws Exception {
runTest("compiler/testData/codegen/box/sam/inlinedSamWrapper.kt");
}
@TestMetadata("irrelevantStaticProperty.kt")
public void testIrrelevantStaticProperty() throws Exception {
runTest("compiler/testData/codegen/box/sam/irrelevantStaticProperty.kt");
}
@TestMetadata("kt11519.kt")
public void testKt11519() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt11519.kt");
}
@TestMetadata("kt11519Constructor.kt")
public void testKt11519Constructor() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt11519Constructor.kt");
}
@TestMetadata("kt11696.kt")
public void testKt11696() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt11696.kt");
}
@TestMetadata("kt17091.kt")
public void testKt17091() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt17091.kt");
}
@TestMetadata("kt17091_2.kt")
public void testKt17091_2() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt17091_2.kt");
}
@TestMetadata("kt17091_3.kt")
public void testKt17091_3() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt17091_3.kt");
}
@TestMetadata("kt17091_4.kt")
public void testKt17091_4() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt17091_4.kt");
}
@TestMetadata("kt19910.kt")
public void testKt19910() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt19910.kt");
}
@TestMetadata("kt22906.kt")
public void testKt22906() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt22906.kt");
}
@TestMetadata("kt22906_2.kt")
public void testKt22906_2() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt22906_2.kt");
}
@TestMetadata("kt24825.kt")
public void testKt24825() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt24825.kt");
}
@TestMetadata("kt31908.kt")
public void testKt31908() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt31908.kt");
}
@TestMetadata("kt44827_sam.kt")
public void testKt44827_sam() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt44827_sam.kt");
}
@TestMetadata("kt4753.kt")
public void testKt4753() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt4753.kt");
}
@TestMetadata("kt4753_2.kt")
public void testKt4753_2() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt4753_2.kt");
}
@TestMetadata("nonInlinedSamWrapper.kt")
public void testNonInlinedSamWrapper() throws Exception {
runTest("compiler/testData/codegen/box/sam/nonInlinedSamWrapper.kt");
}
@TestMetadata("nullableSam.kt")
public void testNullableSam() throws Exception {
runTest("compiler/testData/codegen/box/sam/nullableSam.kt");
}
@TestMetadata("partialSam.kt")
public void testPartialSam() throws Exception {
runTest("compiler/testData/codegen/box/sam/partialSam.kt");
}
@TestMetadata("partialSamKT.kt")
public void testPartialSamKT() throws Exception {
runTest("compiler/testData/codegen/box/sam/partialSamKT.kt");
}
@TestMetadata("passSubtypeOfFunctionSamConversion.kt")
public void testPassSubtypeOfFunctionSamConversion() throws Exception {
runTest("compiler/testData/codegen/box/sam/passSubtypeOfFunctionSamConversion.kt");
}
@TestMetadata("predicateSamWrapper.kt")
public void testPredicateSamWrapper() throws Exception {
runTest("compiler/testData/codegen/box/sam/predicateSamWrapper.kt");
}
@TestMetadata("propertyReference.kt")
public void testPropertyReference() throws Exception {
runTest("compiler/testData/codegen/box/sam/propertyReference.kt");
}
@TestMetadata("receiverEvaluatedOnce.kt")
public void testReceiverEvaluatedOnce() throws Exception {
runTest("compiler/testData/codegen/box/sam/receiverEvaluatedOnce.kt");
}
@TestMetadata("recordSubstitutedTypeForCallableSamParameter.kt")
public void testRecordSubstitutedTypeForCallableSamParameter() throws Exception {
runTest("compiler/testData/codegen/box/sam/recordSubstitutedTypeForCallableSamParameter.kt");
}
@TestMetadata("samConstructorGenericSignature.kt")
public void testSamConstructorGenericSignature() throws Exception {
runTest("compiler/testData/codegen/box/sam/samConstructorGenericSignature.kt");
}
@TestMetadata("samConversionToJavaWildcard.kt")
public void testSamConversionToJavaWildcard() throws Exception {
runTest("compiler/testData/codegen/box/sam/samConversionToJavaWildcard.kt");
}
@TestMetadata("samInterfaceTypeParameterErasure.kt")
public void testSamInterfaceTypeParameterErasure() throws Exception {
runTest("compiler/testData/codegen/box/sam/samInterfaceTypeParameterErasure.kt");
}
@TestMetadata("smartCastSamConversion.kt")
public void testSmartCastSamConversion() throws Exception {
runTest("compiler/testData/codegen/box/sam/smartCastSamConversion.kt");
}
@TestMetadata("compiler/testData/codegen/box/sam/adapters")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Adapters extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInAdapters() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sam/adapters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("bridgesForOverridden.kt")
public void testBridgesForOverridden() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/bridgesForOverridden.kt");
}
@TestMetadata("bridgesForOverriddenComplex.kt")
public void testBridgesForOverriddenComplex() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/bridgesForOverriddenComplex.kt");
}
@TestMetadata("callAbstractAdapter.kt")
public void testCallAbstractAdapter() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/callAbstractAdapter.kt");
}
@TestMetadata("comparator.kt")
public void testComparator() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/comparator.kt");
}
@TestMetadata("constructor.kt")
public void testConstructor() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/constructor.kt");
}
@TestMetadata("doubleLongParameters.kt")
public void testDoubleLongParameters() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/doubleLongParameters.kt");
}
@TestMetadata("fileFilter.kt")
public void testFileFilter() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/fileFilter.kt");
}
@TestMetadata("genericSignature.kt")
public void testGenericSignature() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/genericSignature.kt");
}
@TestMetadata("implementAdapter.kt")
public void testImplementAdapter() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/implementAdapter.kt");
}
@TestMetadata("inheritedInKotlin.kt")
public void testInheritedInKotlin() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/inheritedInKotlin.kt");
}
@TestMetadata("inheritedOverriddenAdapter.kt")
public void testInheritedOverriddenAdapter() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/inheritedOverriddenAdapter.kt");
}
@TestMetadata("inheritedSimple.kt")
public void testInheritedSimple() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/inheritedSimple.kt");
}
@TestMetadata("localClass.kt")
public void testLocalClass() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/localClass.kt");
}
@TestMetadata("localObjectConstructor.kt")
public void testLocalObjectConstructor() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/localObjectConstructor.kt");
}
@TestMetadata("localObjectConstructorWithFnValue.kt")
public void testLocalObjectConstructorWithFnValue() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/localObjectConstructorWithFnValue.kt");
}
@TestMetadata("nonLiteralAndLiteralRunnable.kt")
public void testNonLiteralAndLiteralRunnable() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/nonLiteralAndLiteralRunnable.kt");
}
@TestMetadata("nonLiteralComparator.kt")
public void testNonLiteralComparator() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/nonLiteralComparator.kt");
}
@TestMetadata("nonLiteralInConstructor.kt")
public void testNonLiteralInConstructor() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/nonLiteralInConstructor.kt");
}
@TestMetadata("nonLiteralNull.kt")
public void testNonLiteralNull() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/nonLiteralNull.kt");
}
@TestMetadata("nonLiteralRunnable.kt")
public void testNonLiteralRunnable() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/nonLiteralRunnable.kt");
}
@TestMetadata("protectedFromBase.kt")
public void testProtectedFromBase() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/protectedFromBase.kt");
}
@TestMetadata("severalSamParameters.kt")
public void testSeveralSamParameters() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/severalSamParameters.kt");
}
@TestMetadata("simplest.kt")
public void testSimplest() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/simplest.kt");
}
@TestMetadata("superInSecondaryConstructor.kt")
public void testSuperInSecondaryConstructor() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/superInSecondaryConstructor.kt");
}
@TestMetadata("superconstructor.kt")
public void testSuperconstructor() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/superconstructor.kt");
}
@TestMetadata("superconstructorWithClosure.kt")
public void testSuperconstructorWithClosure() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/superconstructorWithClosure.kt");
}
@TestMetadata("typeParameterOfClass.kt")
public void testTypeParameterOfClass() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/typeParameterOfClass.kt");
}
@TestMetadata("typeParameterOfMethod.kt")
public void testTypeParameterOfMethod() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/typeParameterOfMethod.kt");
}
@TestMetadata("typeParameterOfOuterClass.kt")
public void testTypeParameterOfOuterClass() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/typeParameterOfOuterClass.kt");
}
@TestMetadata("compiler/testData/codegen/box/sam/adapters/operators")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Operators extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInOperators() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sam/adapters/operators"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("augmentedAssignmentPure.kt")
public void testAugmentedAssignmentPure() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/operators/augmentedAssignmentPure.kt");
}
@TestMetadata("augmentedAssignmentViaSimpleBinary.kt")
public void testAugmentedAssignmentViaSimpleBinary() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/operators/augmentedAssignmentViaSimpleBinary.kt");
}
@TestMetadata("binary.kt")
public void testBinary() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/operators/binary.kt");
}
@TestMetadata("compareTo.kt")
public void testCompareTo() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/operators/compareTo.kt");
}
@TestMetadata("contains.kt")
public void testContains() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/operators/contains.kt");
}
@TestMetadata("get.kt")
public void testGet() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/operators/get.kt");
}
@TestMetadata("invoke.kt")
public void testInvoke() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/operators/invoke.kt");
}
@TestMetadata("legacyModOperator.kt")
public void testLegacyModOperator() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/operators/legacyModOperator.kt");
}
@TestMetadata("multiGetSet.kt")
public void testMultiGetSet() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/operators/multiGetSet.kt");
}
@TestMetadata("multiInvoke.kt")
public void testMultiInvoke() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/operators/multiInvoke.kt");
}
@TestMetadata("set.kt")
public void testSet() throws Exception {
runTest("compiler/testData/codegen/box/sam/adapters/operators/set.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/sam/approximation")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Approximation extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInApproximation() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sam/approximation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("approxToIntermediateType.kt")
public void testApproxToIntermediateType() throws Exception {
runTest("compiler/testData/codegen/box/sam/approximation/approxToIntermediateType.kt");
}
@TestMetadata("approxToSingleUpperBound.kt")
public void testApproxToSingleUpperBound() throws Exception {
runTest("compiler/testData/codegen/box/sam/approximation/approxToSingleUpperBound.kt");
}
@TestMetadata("impossibleToApproxToRepresentable.kt")
public void testImpossibleToApproxToRepresentable() throws Exception {
runTest("compiler/testData/codegen/box/sam/approximation/impossibleToApproxToRepresentable.kt");
}
@TestMetadata("impossibleToApproxToRepresentable2.kt")
public void testImpossibleToApproxToRepresentable2() throws Exception {
runTest("compiler/testData/codegen/box/sam/approximation/impossibleToApproxToRepresentable2.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/sam/constructors")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Constructors extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInConstructors() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sam/constructors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("comparator.kt")
public void testComparator() throws Exception {
runTest("compiler/testData/codegen/box/sam/constructors/comparator.kt");
}
@TestMetadata("filenameFilter.kt")
public void testFilenameFilter() throws Exception {
runTest("compiler/testData/codegen/box/sam/constructors/filenameFilter.kt");
}
@TestMetadata("kt16790.kt")
public void testKt16790() throws Exception {
runTest("compiler/testData/codegen/box/sam/constructors/kt16790.kt");
}
@TestMetadata("kt19251.kt")
public void testKt19251() throws Exception {
runTest("compiler/testData/codegen/box/sam/constructors/kt19251.kt");
}
@TestMetadata("kt19251_child.kt")
public void testKt19251_child() throws Exception {
runTest("compiler/testData/codegen/box/sam/constructors/kt19251_child.kt");
}
@TestMetadata("nonLiteralComparator.kt")
public void testNonLiteralComparator() throws Exception {
runTest("compiler/testData/codegen/box/sam/constructors/nonLiteralComparator.kt");
}
@TestMetadata("nonLiteralFilenameFilter.kt")
public void testNonLiteralFilenameFilter() throws Exception {
runTest("compiler/testData/codegen/box/sam/constructors/nonLiteralFilenameFilter.kt");
}
@TestMetadata("nonLiteralRunnable.kt")
public void testNonLiteralRunnable() throws Exception {
runTest("compiler/testData/codegen/box/sam/constructors/nonLiteralRunnable.kt");
}
@TestMetadata("nonTrivialRunnable.kt")
public void testNonTrivialRunnable() throws Exception {
runTest("compiler/testData/codegen/box/sam/constructors/nonTrivialRunnable.kt");
}
@TestMetadata("runnable.kt")
public void testRunnable() throws Exception {
runTest("compiler/testData/codegen/box/sam/constructors/runnable.kt");
}
@TestMetadata("runnableAccessingClosure1.kt")
public void testRunnableAccessingClosure1() throws Exception {
runTest("compiler/testData/codegen/box/sam/constructors/runnableAccessingClosure1.kt");
}
@TestMetadata("runnableAccessingClosure2.kt")
public void testRunnableAccessingClosure2() throws Exception {
runTest("compiler/testData/codegen/box/sam/constructors/runnableAccessingClosure2.kt");
}
@TestMetadata("samWrappersDifferentFiles.kt")
public void testSamWrappersDifferentFiles() throws Exception {
runTest("compiler/testData/codegen/box/sam/constructors/samWrappersDifferentFiles.kt");
}
@TestMetadata("sameWrapperClass.kt")
public void testSameWrapperClass() throws Exception {
runTest("compiler/testData/codegen/box/sam/constructors/sameWrapperClass.kt");
}
@TestMetadata("syntheticVsReal.kt")
public void testSyntheticVsReal() throws Exception {
runTest("compiler/testData/codegen/box/sam/constructors/syntheticVsReal.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/sam/equality")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Equality extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInEquality() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sam/equality"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("functionReferencesBound.kt")
public void testFunctionReferencesBound() throws Exception {
runTest("compiler/testData/codegen/box/sam/equality/functionReferencesBound.kt");
}
@TestMetadata("functionReferencesUnbound.kt")
public void testFunctionReferencesUnbound() throws Exception {
runTest("compiler/testData/codegen/box/sam/equality/functionReferencesUnbound.kt");
}
@TestMetadata("lambdaRuntimeConversion.kt")
public void testLambdaRuntimeConversion() throws Exception {
runTest("compiler/testData/codegen/box/sam/equality/lambdaRuntimeConversion.kt");
}
@TestMetadata("localFunctionReferences.kt")
public void testLocalFunctionReferences() throws Exception {
runTest("compiler/testData/codegen/box/sam/equality/localFunctionReferences.kt");
}
@TestMetadata("simpleLambdas.kt")
public void testSimpleLambdas() throws Exception {
runTest("compiler/testData/codegen/box/sam/equality/simpleLambdas.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/sameFileInSourceAndDependencies")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class SameFileInSourceAndDependencies extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInSameFileInSourceAndDependencies() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sameFileInSourceAndDependencies"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("classDeclaration.kt")
public void testClassDeclaration() throws Exception {
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/classDeclaration.kt");
}
@TestMetadata("functionDeclaration.kt")
public void testFunctionDeclaration() throws Exception {
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/functionDeclaration.kt");
}
@TestMetadata("jvmFieldMemberPropertyDeclaration.kt")
public void testJvmFieldMemberPropertyDeclaration() throws Exception {
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/jvmFieldMemberPropertyDeclaration.kt");
}
@TestMetadata("lateinitMemberPropertyDeclaration.kt")
public void testLateinitMemberPropertyDeclaration() throws Exception {
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/lateinitMemberPropertyDeclaration.kt");
}
@TestMetadata("memberFunctionDeclaration.kt")
public void testMemberFunctionDeclaration() throws Exception {
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/memberFunctionDeclaration.kt");
}
@TestMetadata("memberFunctionWithDefaultArgumentsDeclaration.kt")
public void testMemberFunctionWithDefaultArgumentsDeclaration() throws Exception {
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/memberFunctionWithDefaultArgumentsDeclaration.kt");
}
@TestMetadata("memberPropertyDeclaration.kt")
public void testMemberPropertyDeclaration() throws Exception {
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/memberPropertyDeclaration.kt");
}
@TestMetadata("nestedClassDeclaration.kt")
public void testNestedClassDeclaration() throws Exception {
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/nestedClassDeclaration.kt");
}
@TestMetadata("propertyDeclaration.kt")
public void testPropertyDeclaration() throws Exception {
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/propertyDeclaration.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/script")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Script extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInScript() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/script"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("classReference.kt")
public void testClassReference() throws Exception {
runTest("compiler/testData/codegen/box/script/classReference.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/sealed")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Sealed extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInSealed() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sealed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("constructorAnnotations.kt")
public void testConstructorAnnotations() throws Exception {
runTest("compiler/testData/codegen/box/sealed/constructorAnnotations.kt");
}
@TestMetadata("delegatingConstructor.kt")
public void testDelegatingConstructor() throws Exception {
runTest("compiler/testData/codegen/box/sealed/delegatingConstructor.kt");
}
@TestMetadata("multipleFiles_enabled.kt")
public void testMultipleFiles_enabled() throws Exception {
runTest("compiler/testData/codegen/box/sealed/multipleFiles_enabled.kt");
}
@TestMetadata("objects.kt")
public void testObjects() throws Exception {
runTest("compiler/testData/codegen/box/sealed/objects.kt");
}
@TestMetadata("sealedInSameFile.kt")
public void testSealedInSameFile() throws Exception {
runTest("compiler/testData/codegen/box/sealed/sealedInSameFile.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 AbstractLightAnalysisModeTest {
@TestMetadata("fieldInitializerOptimization_inlineClass.kt")
public void ignoreFieldInitializerOptimization_inlineClass() throws Exception {
runTest("compiler/testData/codegen/box/secondaryConstructors/fieldInitializerOptimization_inlineClass.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, 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 {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/secondaryConstructors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("inlineIntoTwoConstructors.kt")
public void testInlineIntoTwoConstructors() throws Exception {
runTest("compiler/testData/codegen/box/secondaryConstructors/inlineIntoTwoConstructors.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("withGenerics.kt")
public void testWithGenerics() throws Exception {
runTest("compiler/testData/codegen/box/secondaryConstructors/withGenerics.kt");
}
@TestMetadata("withNonLocalReturn.kt")
public void testWithNonLocalReturn() throws Exception {
runTest("compiler/testData/codegen/box/secondaryConstructors/withNonLocalReturn.kt");
}
@TestMetadata("withPrimary.kt")
public void testWithPrimary() throws Exception {
runTest("compiler/testData/codegen/box/secondaryConstructors/withPrimary.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("withVarargs.kt")
public void testWithVarargs() throws Exception {
runTest("compiler/testData/codegen/box/secondaryConstructors/withVarargs.kt");
}
@TestMetadata("withoutPrimary.kt")
public void testWithoutPrimary() throws Exception {
runTest("compiler/testData/codegen/box/secondaryConstructors/withoutPrimary.kt");
}
@TestMetadata("withoutPrimarySimple.kt")
public void testWithoutPrimarySimple() throws Exception {
runTest("compiler/testData/codegen/box/secondaryConstructors/withoutPrimarySimple.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/smap")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Smap extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInSmap() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/smap"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("chainCalls.kt")
public void testChainCalls() throws Exception {
runTest("compiler/testData/codegen/box/smap/chainCalls.kt");
}
@TestMetadata("infixCalls.kt")
public void testInfixCalls() throws Exception {
runTest("compiler/testData/codegen/box/smap/infixCalls.kt");
}
@TestMetadata("simpleCallWithParams.kt")
public void testSimpleCallWithParams() throws Exception {
runTest("compiler/testData/codegen/box/smap/simpleCallWithParams.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/smartCasts")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class SmartCasts extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInSmartCasts() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/smartCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("complexExplicitReceiver.kt")
public void testComplexExplicitReceiver() throws Exception {
runTest("compiler/testData/codegen/box/smartCasts/complexExplicitReceiver.kt");
}
@TestMetadata("complexImplicitReceiver.kt")
public void testComplexImplicitReceiver() throws Exception {
runTest("compiler/testData/codegen/box/smartCasts/complexImplicitReceiver.kt");
}
@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("kt19058.kt")
public void testKt19058() throws Exception {
runTest("compiler/testData/codegen/box/smartCasts/kt19058.kt");
}
@TestMetadata("kt19100.kt")
public void testKt19100() throws Exception {
runTest("compiler/testData/codegen/box/smartCasts/kt19100.kt");
}
@TestMetadata("kt42517.kt")
public void testKt42517() throws Exception {
runTest("compiler/testData/codegen/box/smartCasts/kt42517.kt");
}
@TestMetadata("kt44802.kt")
public void testKt44802() throws Exception {
runTest("compiler/testData/codegen/box/smartCasts/kt44802.kt");
}
@TestMetadata("kt44804.kt")
public void testKt44804() throws Exception {
runTest("compiler/testData/codegen/box/smartCasts/kt44804.kt");
}
@TestMetadata("kt44814.kt")
public void testKt44814() throws Exception {
runTest("compiler/testData/codegen/box/smartCasts/kt44814.kt");
}
@TestMetadata("kt44932.kt")
public void testKt44932() throws Exception {
runTest("compiler/testData/codegen/box/smartCasts/kt44932.kt");
}
@TestMetadata("kt44942.kt")
public void testKt44942() throws Exception {
runTest("compiler/testData/codegen/box/smartCasts/kt44942.kt");
}
@TestMetadata("kt48163_smartCastToThrowable.kt")
public void testKt48163_smartCastToThrowable() throws Exception {
runTest("compiler/testData/codegen/box/smartCasts/kt48163_smartCastToThrowable.kt");
}
@TestMetadata("lambdaArgumentWithoutType.kt")
public void testLambdaArgumentWithoutType() throws Exception {
runTest("compiler/testData/codegen/box/smartCasts/lambdaArgumentWithoutType.kt");
}
@TestMetadata("multipleSmartCast.kt")
public void testMultipleSmartCast() throws Exception {
runTest("compiler/testData/codegen/box/smartCasts/multipleSmartCast.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInSpecialBuiltins() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/specialBuiltins"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("charBuffer.kt")
public void testCharBuffer() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/charBuffer.kt");
}
@TestMetadata("collectionImpl.kt")
public void testCollectionImpl() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/collectionImpl.kt");
}
@TestMetadata("commonBridgesTarget.kt")
public void testCommonBridgesTarget() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/commonBridgesTarget.kt");
}
@TestMetadata("complexMapImpl.kt")
public void testComplexMapImpl() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/complexMapImpl.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("javaMapWithCustomEntries.kt")
public void testJavaMapWithCustomEntries() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/javaMapWithCustomEntries.kt");
}
@TestMetadata("mapGetOrDefault.kt")
public void testMapGetOrDefault() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/mapGetOrDefault.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("specialBridgeModality.kt")
public void testSpecialBridgeModality() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/specialBridgeModality.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 AbstractLightAnalysisModeTest {
@TestMetadata("inlineCallsStaticMethodFromOtherPackage.kt")
public void ignoreInlineCallsStaticMethodFromOtherPackage() throws Exception {
runTest("compiler/testData/codegen/box/statics/inlineCallsStaticMethodFromOtherPackage.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInStatics() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/statics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("fields.kt")
public void testFields() throws Exception {
runTest("compiler/testData/codegen/box/statics/fields.kt");
}
@TestMetadata("functions.kt")
public void testFunctions() throws Exception {
runTest("compiler/testData/codegen/box/statics/functions.kt");
}
@TestMetadata("hidePrivateByPublic.kt")
public void testHidePrivateByPublic() throws Exception {
runTest("compiler/testData/codegen/box/statics/hidePrivateByPublic.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("inlineCallsStaticMethod.kt")
public void testInlineCallsStaticMethod() throws Exception {
runTest("compiler/testData/codegen/box/statics/inlineCallsStaticMethod.kt");
}
@TestMetadata("kt8089.kt")
public void testKt8089() throws Exception {
runTest("compiler/testData/codegen/box/statics/kt8089.kt");
}
@TestMetadata("protectedSamConstructor.kt")
public void testProtectedSamConstructor() throws Exception {
runTest("compiler/testData/codegen/box/statics/protectedSamConstructor.kt");
}
@TestMetadata("protectedStatic.kt")
public void testProtectedStatic() throws Exception {
runTest("compiler/testData/codegen/box/statics/protectedStatic.kt");
}
@TestMetadata("protectedStatic2.kt")
public void testProtectedStatic2() throws Exception {
runTest("compiler/testData/codegen/box/statics/protectedStatic2.kt");
}
@TestMetadata("protectedStaticAndInline.kt")
public void testProtectedStaticAndInline() throws Exception {
runTest("compiler/testData/codegen/box/statics/protectedStaticAndInline.kt");
}
@TestMetadata("simpleStaticInJavaSuperChain.kt")
public void testSimpleStaticInJavaSuperChain() throws Exception {
runTest("compiler/testData/codegen/box/statics/simpleStaticInJavaSuperChain.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInStoreStackBeforeInline() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/storeStackBeforeInline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
@TestMetadata("kt13213.kt")
public void ignoreKt13213() throws Exception {
runTest("compiler/testData/codegen/box/strings/kt13213.kt");
}
@TestMetadata("kt13213a.kt")
public void ignoreKt13213a() throws Exception {
runTest("compiler/testData/codegen/box/strings/kt13213a.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInStrings() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/strings"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("concatDynamicWithConstants.kt")
public void testConcatDynamicWithConstants() throws Exception {
runTest("compiler/testData/codegen/box/strings/concatDynamicWithConstants.kt");
}
@TestMetadata("concatDynamicWithSpecialSymbols.kt")
public void testConcatDynamicWithSpecialSymbols() throws Exception {
runTest("compiler/testData/codegen/box/strings/concatDynamicWithSpecialSymbols.kt");
}
@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("javaToStringNPE.kt")
public void testJavaToStringNPE() throws Exception {
runTest("compiler/testData/codegen/box/strings/javaToStringNPE.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("kt42457_old.kt")
public void testKt42457_old() throws Exception {
runTest("compiler/testData/codegen/box/strings/kt42457_old.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("stringFromJavaPlus.kt")
public void testStringFromJavaPlus() throws Exception {
runTest("compiler/testData/codegen/box/strings/stringFromJavaPlus.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInSuper() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/super"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInSuperConstructor() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/super/superConstructor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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/suspendConversion")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class SuspendConversion extends AbstractLightAnalysisModeTest {
@TestMetadata("basicSuspendConversion.kt")
public void ignoreBasicSuspendConversion() throws Exception {
runTest("compiler/testData/codegen/box/suspendConversion/basicSuspendConversion.kt");
}
@TestMetadata("basicSuspendConversionGenerics.kt")
public void ignoreBasicSuspendConversionGenerics() throws Exception {
runTest("compiler/testData/codegen/box/suspendConversion/basicSuspendConversionGenerics.kt");
}
@TestMetadata("chainedFunSuspendConversionForSimpleExpression.kt")
public void ignoreChainedFunSuspendConversionForSimpleExpression() throws Exception {
runTest("compiler/testData/codegen/box/suspendConversion/chainedFunSuspendConversionForSimpleExpression.kt");
}
@TestMetadata("overloadResolutionBySuspendModifier.kt")
public void ignoreOverloadResolutionBySuspendModifier() throws Exception {
runTest("compiler/testData/codegen/box/suspendConversion/overloadResolutionBySuspendModifier.kt");
}
@TestMetadata("severalConversionsInOneCall.kt")
public void ignoreSeveralConversionsInOneCall() throws Exception {
runTest("compiler/testData/codegen/box/suspendConversion/severalConversionsInOneCall.kt");
}
@TestMetadata("suspendAndFunConversionInDisabledMode.kt")
public void ignoreSuspendAndFunConversionInDisabledMode() throws Exception {
runTest("compiler/testData/codegen/box/suspendConversion/suspendAndFunConversionInDisabledMode.kt");
}
@TestMetadata("suspendConversionOnVarargElements.kt")
public void ignoreSuspendConversionOnVarargElements() throws Exception {
runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionOnVarargElements.kt");
}
@TestMetadata("suspendConversionWithFunInterfaces.kt")
public void ignoreSuspendConversionWithFunInterfaces() throws Exception {
runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionWithFunInterfaces.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInSuspendConversion() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/suspendConversion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("basicSuspendConversionForCallableReference.kt")
public void testBasicSuspendConversionForCallableReference() throws Exception {
runTest("compiler/testData/codegen/box/suspendConversion/basicSuspendConversionForCallableReference.kt");
}
@TestMetadata("suspendConversionCompatibility.kt")
public void testSuspendConversionCompatibility() throws Exception {
runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionCompatibility.kt");
}
@TestMetadata("suspendConversionWithReferenceAdaptation.kt")
public void testSuspendConversionWithReferenceAdaptation() throws Exception {
runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionWithReferenceAdaptation.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/synchronized")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Synchronized extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInSynchronized() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/synchronized"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("changeMonitor.kt")
public void testChangeMonitor() throws Exception {
runTest("compiler/testData/codegen/box/synchronized/changeMonitor.kt");
}
@TestMetadata("exceptionInMonitorExpression.kt")
public void testExceptionInMonitorExpression() throws Exception {
runTest("compiler/testData/codegen/box/synchronized/exceptionInMonitorExpression.kt");
}
@TestMetadata("finally.kt")
public void testFinally() throws Exception {
runTest("compiler/testData/codegen/box/synchronized/finally.kt");
}
@TestMetadata("longValue.kt")
public void testLongValue() throws Exception {
runTest("compiler/testData/codegen/box/synchronized/longValue.kt");
}
@TestMetadata("nestedDifferentObjects.kt")
public void testNestedDifferentObjects() throws Exception {
runTest("compiler/testData/codegen/box/synchronized/nestedDifferentObjects.kt");
}
@TestMetadata("nestedSameObject.kt")
public void testNestedSameObject() throws Exception {
runTest("compiler/testData/codegen/box/synchronized/nestedSameObject.kt");
}
@TestMetadata("nonLocalReturn.kt")
public void testNonLocalReturn() throws Exception {
runTest("compiler/testData/codegen/box/synchronized/nonLocalReturn.kt");
}
@TestMetadata("objectValue.kt")
public void testObjectValue() throws Exception {
runTest("compiler/testData/codegen/box/synchronized/objectValue.kt");
}
@TestMetadata("sync.kt")
public void testSync() throws Exception {
runTest("compiler/testData/codegen/box/synchronized/sync.kt");
}
@TestMetadata("value.kt")
public void testValue() throws Exception {
runTest("compiler/testData/codegen/box/synchronized/value.kt");
}
@TestMetadata("wait.kt")
public void testWait() throws Exception {
runTest("compiler/testData/codegen/box/synchronized/wait.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/syntheticAccessors")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class SyntheticAccessors extends AbstractLightAnalysisModeTest {
@TestMetadata("protectedSuperclassCompanionObjectMember.kt")
public void ignoreProtectedSuperclassCompanionObjectMember() throws Exception {
runTest("compiler/testData/codegen/box/syntheticAccessors/protectedSuperclassCompanionObjectMember.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("accessorForAbstractProtected.kt")
public void testAccessorForAbstractProtected() throws Exception {
runTest("compiler/testData/codegen/box/syntheticAccessors/accessorForAbstractProtected.kt");
}
@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");
}
@TestMetadata("accessorForProtectedPropertyReference.kt")
public void testAccessorForProtectedPropertyReference() throws Exception {
runTest("compiler/testData/codegen/box/syntheticAccessors/accessorForProtectedPropertyReference.kt");
}
public void testAllFilesPresentInSyntheticAccessors() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/syntheticAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("jvmField.kt")
public void testJvmField() throws Exception {
runTest("compiler/testData/codegen/box/syntheticAccessors/jvmField.kt");
}
@TestMetadata("jvmNameForAccessors.kt")
public void testJvmNameForAccessors() throws Exception {
runTest("compiler/testData/codegen/box/syntheticAccessors/jvmNameForAccessors.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("syntheticAccessorNames.kt")
public void testSyntheticAccessorNames() throws Exception {
runTest("compiler/testData/codegen/box/syntheticAccessors/syntheticAccessorNames.kt");
}
@TestMetadata("compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ProtectedJavaFieldAccessor extends AbstractLightAnalysisModeTest {
@TestMetadata("kt44855.kt")
public void ignoreKt44855() throws Exception {
runTest("compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor/kt44855.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInProtectedJavaFieldAccessor() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("kt44855a.kt")
public void testKt44855a() throws Exception {
runTest("compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor/kt44855a.kt");
}
@TestMetadata("kt46578_anonObject.kt")
public void testKt46578_anonObject() throws Exception {
runTest("compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor/kt46578_anonObject.kt");
}
@TestMetadata("kt46578_delegated.kt")
public void testKt46578_delegated() throws Exception {
runTest("compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor/kt46578_delegated.kt");
}
@TestMetadata("kt46578_kotlin_delegated.kt")
public void testKt46578_kotlin_delegated() throws Exception {
runTest("compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor/kt46578_kotlin_delegated.kt");
}
@TestMetadata("kt46578_kotlin_propertyRef.kt")
public void testKt46578_kotlin_propertyRef() throws Exception {
runTest("compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor/kt46578_kotlin_propertyRef.kt");
}
@TestMetadata("kt46578_lambda.kt")
public void testKt46578_lambda() throws Exception {
runTest("compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor/kt46578_lambda.kt");
}
@TestMetadata("kt46578_propertyRef.kt")
public void testKt46578_propertyRef() throws Exception {
runTest("compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor/kt46578_propertyRef.kt");
}
@TestMetadata("kt46900_jkk_inheritance.kt")
public void testKt46900_jkk_inheritance() throws Exception {
runTest("compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor/kt46900_jkk_inheritance.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/syntheticAccessors/protectedMemberReferenceAccessor")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ProtectedMemberReferenceAccessor extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInProtectedMemberReferenceAccessor() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/syntheticAccessors/protectedMemberReferenceAccessor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("kt46597_crossinline_java_field.kt")
public void testKt46597_crossinline_java_field() throws Exception {
runTest("compiler/testData/codegen/box/syntheticAccessors/protectedMemberReferenceAccessor/kt46597_crossinline_java_field.kt");
}
@TestMetadata("kt46597_crossinline_jvmField_property.kt")
public void testKt46597_crossinline_jvmField_property() throws Exception {
runTest("compiler/testData/codegen/box/syntheticAccessors/protectedMemberReferenceAccessor/kt46597_crossinline_jvmField_property.kt");
}
@TestMetadata("kt46597_crossinline_method.kt")
public void testKt46597_crossinline_method() throws Exception {
runTest("compiler/testData/codegen/box/syntheticAccessors/protectedMemberReferenceAccessor/kt46597_crossinline_method.kt");
}
@TestMetadata("kt46597_crossinline_property.kt")
public void testKt46597_crossinline_property() throws Exception {
runTest("compiler/testData/codegen/box/syntheticAccessors/protectedMemberReferenceAccessor/kt46597_crossinline_property.kt");
}
@TestMetadata("kt46597_java_field.kt")
public void testKt46597_java_field() throws Exception {
runTest("compiler/testData/codegen/box/syntheticAccessors/protectedMemberReferenceAccessor/kt46597_java_field.kt");
}
@TestMetadata("kt46597_jvmField_property.kt")
public void testKt46597_jvmField_property() throws Exception {
runTest("compiler/testData/codegen/box/syntheticAccessors/protectedMemberReferenceAccessor/kt46597_jvmField_property.kt");
}
@TestMetadata("kt46597_method.kt")
public void testKt46597_method() throws Exception {
runTest("compiler/testData/codegen/box/syntheticAccessors/protectedMemberReferenceAccessor/kt46597_method.kt");
}
@TestMetadata("kt46597_property.kt")
public void testKt46597_property() throws Exception {
runTest("compiler/testData/codegen/box/syntheticAccessors/protectedMemberReferenceAccessor/kt46597_property.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/syntheticExtensions")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class SyntheticExtensions extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInSyntheticExtensions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/syntheticExtensions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("firstCapitalizedProperty.kt")
public void testFirstCapitalizedProperty() throws Exception {
runTest("compiler/testData/codegen/box/syntheticExtensions/firstCapitalizedProperty.kt");
}
@TestMetadata("fromTwoBases.kt")
public void testFromTwoBases() throws Exception {
runTest("compiler/testData/codegen/box/syntheticExtensions/fromTwoBases.kt");
}
@TestMetadata("getter.kt")
public void testGetter() throws Exception {
runTest("compiler/testData/codegen/box/syntheticExtensions/getter.kt");
}
@TestMetadata("implicitReceiver.kt")
public void testImplicitReceiver() throws Exception {
runTest("compiler/testData/codegen/box/syntheticExtensions/implicitReceiver.kt");
}
@TestMetadata("overrideOnlyGetter.kt")
public void testOverrideOnlyGetter() throws Exception {
runTest("compiler/testData/codegen/box/syntheticExtensions/overrideOnlyGetter.kt");
}
@TestMetadata("plusPlus.kt")
public void testPlusPlus() throws Exception {
runTest("compiler/testData/codegen/box/syntheticExtensions/plusPlus.kt");
}
@TestMetadata("protected.kt")
public void testProtected() throws Exception {
runTest("compiler/testData/codegen/box/syntheticExtensions/protected.kt");
}
@TestMetadata("protectedSetter.kt")
public void testProtectedSetter() throws Exception {
runTest("compiler/testData/codegen/box/syntheticExtensions/protectedSetter.kt");
}
@TestMetadata("setter.kt")
public void testSetter() throws Exception {
runTest("compiler/testData/codegen/box/syntheticExtensions/setter.kt");
}
@TestMetadata("setterNonVoid1.kt")
public void testSetterNonVoid1() throws Exception {
runTest("compiler/testData/codegen/box/syntheticExtensions/setterNonVoid1.kt");
}
@TestMetadata("setterNonVoid2.kt")
public void testSetterNonVoid2() throws Exception {
runTest("compiler/testData/codegen/box/syntheticExtensions/setterNonVoid2.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/throws")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Throws extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInThrows() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/throws"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("delegationAndThrows.kt")
public void testDelegationAndThrows() throws Exception {
runTest("compiler/testData/codegen/box/throws/delegationAndThrows.kt");
}
@TestMetadata("delegationAndThrows_1_3.kt")
public void testDelegationAndThrows_1_3() throws Exception {
runTest("compiler/testData/codegen/box/throws/delegationAndThrows_1_3.kt");
}
@TestMetadata("delegationAndThrows_AgainstCompiled.kt")
public void testDelegationAndThrows_AgainstCompiled() throws Exception {
runTest("compiler/testData/codegen/box/throws/delegationAndThrows_AgainstCompiled.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/toArray")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ToArray extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInToArray() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/toArray"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("incorrectToArrayDetection.kt")
public void testIncorrectToArrayDetection() throws Exception {
runTest("compiler/testData/codegen/box/toArray/incorrectToArrayDetection.kt");
}
@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("toArray.kt")
public void testToArray() throws Exception {
runTest("compiler/testData/codegen/box/toArray/toArray.kt");
}
@TestMetadata("toArrayAlreadyPresent.kt")
public void testToArrayAlreadyPresent() throws Exception {
runTest("compiler/testData/codegen/box/toArray/toArrayAlreadyPresent.kt");
}
@TestMetadata("toArrayFromJava.kt")
public void testToArrayFromJava() throws Exception {
runTest("compiler/testData/codegen/box/toArray/toArrayFromJava.kt");
}
@TestMetadata("toArrayShouldBePublic.kt")
public void testToArrayShouldBePublic() throws Exception {
runTest("compiler/testData/codegen/box/toArray/toArrayShouldBePublic.kt");
}
@TestMetadata("toArrayShouldBePublicWithJava.kt")
public void testToArrayShouldBePublicWithJava() throws Exception {
runTest("compiler/testData/codegen/box/toArray/toArrayShouldBePublicWithJava.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInTopLevelPrivate() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/topLevelPrivate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("noPrivateNoAccessorsInMultiFileFacade.kt")
public void testNoPrivateNoAccessorsInMultiFileFacade() throws Exception {
runTest("compiler/testData/codegen/box/topLevelPrivate/noPrivateNoAccessorsInMultiFileFacade.kt");
}
@TestMetadata("noPrivateNoAccessorsInMultiFileFacade2.kt")
public void testNoPrivateNoAccessorsInMultiFileFacade2() throws Exception {
runTest("compiler/testData/codegen/box/topLevelPrivate/noPrivateNoAccessorsInMultiFileFacade2.kt");
}
@TestMetadata("privateInInlineNested.kt")
public void testPrivateInInlineNested() throws Exception {
runTest("compiler/testData/codegen/box/topLevelPrivate/privateInInlineNested.kt");
}
@TestMetadata("privateVisibility.kt")
public void testPrivateVisibility() throws Exception {
runTest("compiler/testData/codegen/box/topLevelPrivate/privateVisibility.kt");
}
@TestMetadata("syntheticAccessor.kt")
public void testSyntheticAccessor() throws Exception {
runTest("compiler/testData/codegen/box/topLevelPrivate/syntheticAccessor.kt");
}
@TestMetadata("syntheticAccessorInMultiFile.kt")
public void testSyntheticAccessorInMultiFile() throws Exception {
runTest("compiler/testData/codegen/box/topLevelPrivate/syntheticAccessorInMultiFile.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/trailingComma")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class TrailingComma extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInTrailingComma() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/trailingComma"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@TestMetadata("abstractClassInheritsFromInterface.kt")
public void testAbstractClassInheritsFromInterface() throws Exception {
runTest("compiler/testData/codegen/box/traits/abstractClassInheritsFromInterface.kt");
}
@TestMetadata("abstractClassWithFakeOverride.kt")
public void testAbstractClassWithFakeOverride() throws Exception {
runTest("compiler/testData/codegen/box/traits/abstractClassWithFakeOverride.kt");
}
public void testAllFilesPresentInTraits() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/traits"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("defaultImplCall.kt")
public void testDefaultImplCall() throws Exception {
runTest("compiler/testData/codegen/box/traits/defaultImplCall.kt");
}
@TestMetadata("defaultMethod.kt")
public void testDefaultMethod() throws Exception {
runTest("compiler/testData/codegen/box/traits/defaultMethod.kt");
}
@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("doubleGenericDiamond.kt")
public void testDoubleGenericDiamond() throws Exception {
runTest("compiler/testData/codegen/box/traits/doubleGenericDiamond.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("inheritJavaInterface.kt")
public void testInheritJavaInterface() throws Exception {
runTest("compiler/testData/codegen/box/traits/inheritJavaInterface.kt");
}
@TestMetadata("inheritJavaInterface_AgainstCompiled.kt")
public void testInheritJavaInterface_AgainstCompiled() throws Exception {
runTest("compiler/testData/codegen/box/traits/inheritJavaInterface_AgainstCompiled.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("interfaceDefaultImpls.kt")
public void testInterfaceDefaultImpls() throws Exception {
runTest("compiler/testData/codegen/box/traits/interfaceDefaultImpls.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("multipleImplFromJava.kt")
public void testMultipleImplFromJava() throws Exception {
runTest("compiler/testData/codegen/box/traits/multipleImplFromJava.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("sameNameMethodFromInterface.kt")
public void testSameNameMethodFromInterface() throws Exception {
runTest("compiler/testData/codegen/box/traits/sameNameMethodFromInterface.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInTypeInfo() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/typeInfo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("asInLoop.kt")
public void testAsInLoop() throws Exception {
runTest("compiler/testData/codegen/box/typeInfo/asInLoop.kt");
}
@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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInTypeMapping() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/typeMapping"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("enhancedPrimitiveInReturnType.kt")
public void testEnhancedPrimitiveInReturnType() throws Exception {
runTest("compiler/testData/codegen/box/typeMapping/enhancedPrimitiveInReturnType.kt");
}
@TestMetadata("enhancedPrimitives.kt")
public void testEnhancedPrimitives() throws Exception {
runTest("compiler/testData/codegen/box/typeMapping/enhancedPrimitives.kt");
}
@TestMetadata("genericTypeWithNothing.kt")
public void testGenericTypeWithNothing() throws Exception {
runTest("compiler/testData/codegen/box/typeMapping/genericTypeWithNothing.kt");
}
@TestMetadata("kt2831.kt")
public void testKt2831() throws Exception {
runTest("compiler/testData/codegen/box/typeMapping/kt2831.kt");
}
@TestMetadata("kt309.kt")
public void testKt309() throws Exception {
runTest("compiler/testData/codegen/box/typeMapping/kt309.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("typeParameterMultipleBounds.kt")
public void testTypeParameterMultipleBounds() throws Exception {
runTest("compiler/testData/codegen/box/typeMapping/typeParameterMultipleBounds.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/typealias")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Typealias extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInTypealias() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/typealias"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("enumEntryQualifier.kt")
public void testEnumEntryQualifier() throws Exception {
runTest("compiler/testData/codegen/box/typealias/enumEntryQualifier.kt");
}
@TestMetadata("extensionFunction.kt")
public void testExtensionFunction() throws Exception {
runTest("compiler/testData/codegen/box/typealias/extensionFunction.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("javaStaticMembersViaTypeAlias.kt")
public void testJavaStaticMembersViaTypeAlias() throws Exception {
runTest("compiler/testData/codegen/box/typealias/javaStaticMembersViaTypeAlias.kt");
}
@TestMetadata("kt15109.kt")
public void testKt15109() throws Exception {
runTest("compiler/testData/codegen/box/typealias/kt15109.kt");
}
@TestMetadata("kt45308.kt")
public void testKt45308() throws Exception {
runTest("compiler/testData/codegen/box/typealias/kt45308.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("typeAliasFunction.kt")
public void testTypeAliasFunction() throws Exception {
runTest("compiler/testData/codegen/box/typealias/typeAliasFunction.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInUnaryOp() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/unaryOp"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInUnit() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/unit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInUnsignedTypes() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/unsignedTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("defaultArguments.kt")
public void testDefaultArguments() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/defaultArguments.kt");
}
@TestMetadata("equalsImplForInlineClassWrappingNullableInlineClass.kt")
public void testEqualsImplForInlineClassWrappingNullableInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/equalsImplForInlineClassWrappingNullableInlineClass.kt");
}
@TestMetadata("evaluateConstructorOfUnsignedArrayType.kt")
public void testEvaluateConstructorOfUnsignedArrayType() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/evaluateConstructorOfUnsignedArrayType.kt");
}
@TestMetadata("evaluateConstructorOfUnsignedType.kt")
public void testEvaluateConstructorOfUnsignedType() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/evaluateConstructorOfUnsignedType.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("kt43286.kt")
public void testKt43286() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/kt43286.kt");
}
@TestMetadata("kt43286a.kt")
public void testKt43286a() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/kt43286a.kt");
}
@TestMetadata("kt47716.kt")
public void testKt47716() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/kt47716.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("unsignedArraySize.kt")
public void testUnsignedArraySize() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedArraySize.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("unsignedLiteralsInApiVersion14.kt")
public void testUnsignedLiteralsInApiVersion14() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLiteralsInApiVersion14.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/unsignedTypes/jvm8Intrinsics")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Jvm8Intrinsics extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInJvm8Intrinsics() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/unsignedTypes/jvm8Intrinsics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("unsignedIntCompare_jvm8.kt")
public void testUnsignedIntCompare_jvm8() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/jvm8Intrinsics/unsignedIntCompare_jvm8.kt");
}
@TestMetadata("unsignedIntDivide_jvm8.kt")
public void testUnsignedIntDivide_jvm8() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/jvm8Intrinsics/unsignedIntDivide_jvm8.kt");
}
@TestMetadata("unsignedIntRemainder_jvm8.kt")
public void testUnsignedIntRemainder_jvm8() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/jvm8Intrinsics/unsignedIntRemainder_jvm8.kt");
}
@TestMetadata("unsignedIntToString_jvm8.kt")
public void testUnsignedIntToString_jvm8() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/jvm8Intrinsics/unsignedIntToString_jvm8.kt");
}
@TestMetadata("unsignedLongCompare_jvm8.kt")
public void testUnsignedLongCompare_jvm8() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/jvm8Intrinsics/unsignedLongCompare_jvm8.kt");
}
@TestMetadata("unsignedLongDivide_jvm8.kt")
public void testUnsignedLongDivide_jvm8() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/jvm8Intrinsics/unsignedLongDivide_jvm8.kt");
}
@TestMetadata("unsignedLongRemainder_jvm8.kt")
public void testUnsignedLongRemainder_jvm8() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/jvm8Intrinsics/unsignedLongRemainder_jvm8.kt");
}
@TestMetadata("unsignedLongToString_jvm8.kt")
public void testUnsignedLongToString_jvm8() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/jvm8Intrinsics/unsignedLongToString_jvm8.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/valueClasses")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ValueClasses extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInValueClasses() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/valueClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("jvmInline.kt")
public void testJvmInline() throws Exception {
runTest("compiler/testData/codegen/box/valueClasses/jvmInline.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/vararg")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Vararg extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInVararg() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/vararg"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("assigningArrayToVarargInAnnotation.kt")
public void testAssigningArrayToVarargInAnnotation() throws Exception {
runTest("compiler/testData/codegen/box/vararg/assigningArrayToVarargInAnnotation.kt");
}
@TestMetadata("doNotCopyImmediatelyCreatedArrays.kt")
public void testDoNotCopyImmediatelyCreatedArrays() throws Exception {
runTest("compiler/testData/codegen/box/vararg/doNotCopyImmediatelyCreatedArrays.kt");
}
@TestMetadata("emptyVarargOfBoxedPrimitiveType.kt")
public void testEmptyVarargOfBoxedPrimitiveType() throws Exception {
runTest("compiler/testData/codegen/box/vararg/emptyVarargOfBoxedPrimitiveType.kt");
}
@TestMetadata("evaluationOrder.kt")
public void testEvaluationOrder() throws Exception {
runTest("compiler/testData/codegen/box/vararg/evaluationOrder.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("kt45187.kt")
public void testKt45187() throws Exception {
runTest("compiler/testData/codegen/box/vararg/kt45187.kt");
}
@TestMetadata("kt46092.kt")
public void testKt46092() throws Exception {
runTest("compiler/testData/codegen/box/vararg/kt46092.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("notInLastPosition.kt")
public void testNotInLastPosition() throws Exception {
runTest("compiler/testData/codegen/box/vararg/notInLastPosition.kt");
}
@TestMetadata("referenceToContainsFromVarargParameter.kt")
public void testReferenceToContainsFromVarargParameter() throws Exception {
runTest("compiler/testData/codegen/box/vararg/referenceToContainsFromVarargParameter.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("varargInJava.kt")
public void testVarargInJava() throws Exception {
runTest("compiler/testData/codegen/box/vararg/varargInJava.kt");
}
@TestMetadata("varargsAndFunctionLiterals.kt")
public void testVarargsAndFunctionLiterals() throws Exception {
runTest("compiler/testData/codegen/box/vararg/varargsAndFunctionLiterals.kt");
}
@TestMetadata("varargsOverride.kt")
public void testVarargsOverride() throws Exception {
runTest("compiler/testData/codegen/box/vararg/varargsOverride.kt");
}
@TestMetadata("varargsOverride2.kt")
public void testVarargsOverride2() throws Exception {
runTest("compiler/testData/codegen/box/vararg/varargsOverride2.kt");
}
@TestMetadata("varargsOverride3.kt")
public void testVarargsOverride3() throws Exception {
runTest("compiler/testData/codegen/box/vararg/varargsOverride3.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/when")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class When extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInWhen() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/when"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("inferredTypeParameters.kt")
public void testInferredTypeParameters() throws Exception {
runTest("compiler/testData/codegen/box/when/inferredTypeParameters.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("kt43242.kt")
public void testKt43242() throws Exception {
runTest("compiler/testData/codegen/box/when/kt43242.kt");
}
@TestMetadata("kt45081.kt")
public void testKt45081() throws Exception {
runTest("compiler/testData/codegen/box/when/kt45081.kt");
}
@TestMetadata("kt47365.kt")
public void testKt47365() throws Exception {
runTest("compiler/testData/codegen/box/when/kt47365.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("switchBreakNoLabel.kt")
public void testSwitchBreakNoLabel() throws Exception {
runTest("compiler/testData/codegen/box/when/switchBreakNoLabel.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("switchOptimizationMultipleMixedConditions.kt")
public void testSwitchOptimizationMultipleMixedConditions() throws Exception {
runTest("compiler/testData/codegen/box/when/switchOptimizationMultipleMixedConditions.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInEnumOptimization() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/when/enumOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInStringOptimization() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/when/stringOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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("enhancedNullability.kt")
public void testEnhancedNullability() throws Exception {
runTest("compiler/testData/codegen/box/when/stringOptimization/enhancedNullability.kt");
}
@TestMetadata("expression.kt")
public void testExpression() throws Exception {
runTest("compiler/testData/codegen/box/when/stringOptimization/expression.kt");
}
@TestMetadata("flexibleNullability.kt")
public void testFlexibleNullability() throws Exception {
runTest("compiler/testData/codegen/box/when/stringOptimization/flexibleNullability.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 AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInWhenSubjectVariable() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/when/whenSubjectVariable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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");
}
}
}
}