ee8d42532b
We don't have true flexible types in the IR, but we approximate it with internal type annotations, such as FlexibleNullability, FlexibleMutability, RawType. These annotations are then handled specially in JvmIrTypeSystemContext, which can construct a fake flexible type so that type checker on IR types would behave exactly as on frontend types. As shown in KT-63441, one instance of flexible types where flexibility was lost during conversion to IR is Java array/vararg types. It's necessary to support it so that IR fake overrides could be constructed correctly, because IR fake override checker requires parameter types to be equal. So this change introduces another internal type annotation, FlexibleArrayElementVariance, which is only applicable to types with classifier kotlin/Array, and which signifies that the annotated type `Array<X>` should rather be seen as `Array<X>..Array<out X>`. #KT-63441 Fixed #KT-63446 Fixed
44363 lines
2.1 MiB
Plaintext
Generated
44363 lines
2.1 MiB
Plaintext
Generated
/*
|
|
* Copyright 2010-2023 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.utils.TransformersFunctions;
|
|
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.test.generators.GenerateCompilerTestsKt}. 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInBox() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true, "ranges/stepped", "compileKotlinAgainstKotlin", "testsWithJava9", "testsWithJava15", "testsWithJava17", "multiplatform/k2");
|
|
}
|
|
|
|
@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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInAnnotations() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("allowedTargets.kt")
|
|
public void testAllowedTargets() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/allowedTargets.kt");
|
|
}
|
|
|
|
@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("annotationDefaultValueOfUnsigned.kt")
|
|
public void testAnnotationDefaultValueOfUnsigned() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/annotationDefaultValueOfUnsigned.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("annotationWithDefaultArgInDifferentModule.kt")
|
|
public void testAnnotationWithDefaultArgInDifferentModule() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/annotationWithDefaultArgInDifferentModule.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("annotationWithVarargAsDefaultValue.kt")
|
|
public void testAnnotationWithVarargAsDefaultValue() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/annotationWithVarargAsDefaultValue.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("correctTypeForClassReferenceExpressionInAnnotation.kt")
|
|
public void testCorrectTypeForClassReferenceExpressionInAnnotation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/correctTypeForClassReferenceExpressionInAnnotation.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("deserializationOfNestedAnnotationOnType_1.kt")
|
|
public void testDeserializationOfNestedAnnotationOnType_1() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/deserializationOfNestedAnnotationOnType_1.kt");
|
|
}
|
|
|
|
@TestMetadata("deserializationOfNestedAnnotationOnType_2.kt")
|
|
public void testDeserializationOfNestedAnnotationOnType_2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/deserializationOfNestedAnnotationOnType_2.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("invisibleFunctionWithReceiverWithSuppress.kt")
|
|
public void testInvisibleFunctionWithReceiverWithSuppress() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/invisibleFunctionWithReceiverWithSuppress.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("javaConstAnnotationArguments.kt")
|
|
public void testJavaConstAnnotationArguments() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/javaConstAnnotationArguments.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("javaTargetOnPrimaryCtorParameter.kt")
|
|
public void testJavaTargetOnPrimaryCtorParameter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/javaTargetOnPrimaryCtorParameter.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("noTypeUseIfDependOnJvm6.kt")
|
|
public void testNoTypeUseIfDependOnJvm6() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/noTypeUseIfDependOnJvm6.kt");
|
|
}
|
|
|
|
@TestMetadata("noTypeUseIfFlagIsSpecified.kt")
|
|
public void testNoTypeUseIfFlagIsSpecified() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/noTypeUseIfFlagIsSpecified.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("platformDependent.kt")
|
|
public void testPlatformDependent() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/platformDependent.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("resolvedReturnTypeForJavaEnumEntryAfterDeserialization.kt")
|
|
public void testResolvedReturnTypeForJavaEnumEntryAfterDeserialization() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/resolvedReturnTypeForJavaEnumEntryAfterDeserialization.kt");
|
|
}
|
|
|
|
@TestMetadata("retentionInJava.kt")
|
|
public void testRetentionInJava() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/retentionInJava.kt");
|
|
}
|
|
|
|
@TestMetadata("selfReferentialAnnotation.kt")
|
|
public void testSelfReferentialAnnotation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/selfReferentialAnnotation.kt");
|
|
}
|
|
|
|
@TestMetadata("singleAssignmentToVarargInAnnotation.kt")
|
|
public void testSingleAssignmentToVarargInAnnotation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/singleAssignmentToVarargInAnnotation.kt");
|
|
}
|
|
|
|
@TestMetadata("suppressInvisibleMember.kt")
|
|
public void testSuppressInvisibleMember() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/suppressInvisibleMember.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("targetOnPrimaryCtorParameter.kt")
|
|
public void testTargetOnPrimaryCtorParameter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/targetOnPrimaryCtorParameter.kt");
|
|
}
|
|
|
|
@TestMetadata("targetOnPrimaryCtorParameterMultiModule.kt")
|
|
public void testTargetOnPrimaryCtorParameterMultiModule() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/targetOnPrimaryCtorParameterMultiModule.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInAnnotatedLambda() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations/annotatedLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("suspendLambda.kt")
|
|
public void testSuspendLambda() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/annotatedLambda/suspendLambda.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/annotations/instances")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Instances extends AbstractLightAnalysisModeTest {
|
|
@TestMetadata("innerAnnotationInstantiation.kt")
|
|
public void ignoreInnerAnnotationInstantiation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/instances/innerAnnotationInstantiation.kt");
|
|
}
|
|
|
|
@TestMetadata("javaAnnotationDefault.kt")
|
|
public void ignoreJavaAnnotationDefault() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/instances/javaAnnotationDefault.kt");
|
|
}
|
|
|
|
@TestMetadata("javaExistingAnnotation.kt")
|
|
public void ignoreJavaExistingAnnotation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/instances/javaExistingAnnotation.kt");
|
|
}
|
|
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInInstances() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations/instances"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("annotationEnclosingName.kt")
|
|
public void testAnnotationEnclosingName() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/instances/annotationEnclosingName.kt");
|
|
}
|
|
|
|
@TestMetadata("annotationEqHc.kt")
|
|
public void testAnnotationEqHc() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/instances/annotationEqHc.kt");
|
|
}
|
|
|
|
@TestMetadata("annotationFromStdlib.kt")
|
|
public void testAnnotationFromStdlib() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/instances/annotationFromStdlib.kt");
|
|
}
|
|
|
|
@TestMetadata("annotationInstances.kt")
|
|
public void testAnnotationInstances() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/instances/annotationInstances.kt");
|
|
}
|
|
|
|
@TestMetadata("annotationInstancesEmptyDefault.kt")
|
|
public void testAnnotationInstancesEmptyDefault() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/instances/annotationInstancesEmptyDefault.kt");
|
|
}
|
|
|
|
@TestMetadata("annotationInstancesEmptyDefaultLowered.kt")
|
|
public void testAnnotationInstancesEmptyDefaultLowered() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/instances/annotationInstancesEmptyDefaultLowered.kt");
|
|
}
|
|
|
|
@TestMetadata("AnnotationInstantiationWithArray.kt")
|
|
public void testAnnotationInstantiationWithArray() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/instances/AnnotationInstantiationWithArray.kt");
|
|
}
|
|
|
|
@TestMetadata("annotationJvmHashCode.kt")
|
|
public void testAnnotationJvmHashCode() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/instances/annotationJvmHashCode.kt");
|
|
}
|
|
|
|
@TestMetadata("annotationToString.kt")
|
|
public void testAnnotationToString() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/instances/annotationToString.kt");
|
|
}
|
|
|
|
@TestMetadata("annotationType.kt")
|
|
public void testAnnotationType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/instances/annotationType.kt");
|
|
}
|
|
|
|
@TestMetadata("annotationWithTypeParameters.kt")
|
|
public void testAnnotationWithTypeParameters() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/instances/annotationWithTypeParameters.kt");
|
|
}
|
|
|
|
@TestMetadata("annotationWithTypeParametersJvm.kt")
|
|
public void testAnnotationWithTypeParametersJvm() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/instances/annotationWithTypeParametersJvm.kt");
|
|
}
|
|
|
|
@TestMetadata("annotationsUnsignedTypes.kt")
|
|
public void testAnnotationsUnsignedTypes() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/instances/annotationsUnsignedTypes.kt");
|
|
}
|
|
|
|
@TestMetadata("inInlineFunction.kt")
|
|
public void testInInlineFunction() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/instances/inInlineFunction.kt");
|
|
}
|
|
|
|
@TestMetadata("javaAnnotation.kt")
|
|
public void testJavaAnnotation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/instances/javaAnnotation.kt");
|
|
}
|
|
|
|
@TestMetadata("kotlinExistingAnnotation.kt")
|
|
public void testKotlinExistingAnnotation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/instances/kotlinExistingAnnotation.kt");
|
|
}
|
|
|
|
@TestMetadata("multifileEqHc.kt")
|
|
public void testMultifileEqHc() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/instances/multifileEqHc.kt");
|
|
}
|
|
|
|
@TestMetadata("multimoduleCreation.kt")
|
|
public void testMultimoduleCreation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/instances/multimoduleCreation.kt");
|
|
}
|
|
|
|
@TestMetadata("multimoduleInlining.kt")
|
|
public void testMultimoduleInlining() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/instances/multimoduleInlining.kt");
|
|
}
|
|
|
|
@TestMetadata("multimoduleTypeParams.kt")
|
|
public void testMultimoduleTypeParams() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/instances/multimoduleTypeParams.kt");
|
|
}
|
|
|
|
@TestMetadata("multiplatformInstantiation.kt")
|
|
public void testMultiplatformInstantiation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/instances/multiplatformInstantiation.kt");
|
|
}
|
|
|
|
@TestMetadata("nestedAnnotationInstances.kt")
|
|
public void testNestedAnnotationInstances() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/instances/nestedAnnotationInstances.kt");
|
|
}
|
|
|
|
@TestMetadata("varargInAnnotationParameterInstantiation.kt")
|
|
public void testVarargInAnnotationParameterInstantiation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/instances/varargInAnnotationParameterInstantiation.kt");
|
|
}
|
|
}
|
|
|
|
@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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInKClassMapping() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations/kClassMapping"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInRepeatable() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations/repeatable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("javaAnnotation.kt")
|
|
public void testJavaAnnotation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/repeatable/javaAnnotation.kt");
|
|
}
|
|
|
|
@TestMetadata("jvmRepeatableKotlinAnnotation.kt")
|
|
public void testJvmRepeatableKotlinAnnotation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/repeatable/jvmRepeatableKotlinAnnotation.kt");
|
|
}
|
|
|
|
@TestMetadata("kotlinAnnotation.kt")
|
|
public void testKotlinAnnotation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/repeatable/kotlinAnnotation.kt");
|
|
}
|
|
|
|
@TestMetadata("kotlinAnnotationInJava.kt")
|
|
public void testKotlinAnnotationInJava() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/repeatable/kotlinAnnotationInJava.kt");
|
|
}
|
|
|
|
@TestMetadata("kotlinAnnotationWithBothRepeatables.kt")
|
|
public void testKotlinAnnotationWithBothRepeatables() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/repeatable/kotlinAnnotationWithBothRepeatables.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/annotations/typeAnnotations")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class TypeAnnotations extends AbstractLightAnalysisModeTest {
|
|
@TestMetadata("annotationWithTypeParameterOnReturnType.kt")
|
|
public void ignoreAnnotationWithTypeParameterOnReturnType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/typeAnnotations/annotationWithTypeParameterOnReturnType.kt");
|
|
}
|
|
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInTypeAnnotations() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations/typeAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("classTypeParameterBoundsJava.kt")
|
|
public void testClassTypeParameterBoundsJava() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/typeAnnotations/classTypeParameterBoundsJava.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("methodTypeParameters.kt")
|
|
public void testMethodTypeParameters() throws Exception {
|
|
runTest("compiler/testData/codegen/box/annotations/typeAnnotations/methodTypeParameters.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 {
|
|
@TestMetadata("kt17691.kt")
|
|
public void ignoreKt17691() throws Exception {
|
|
runTest("compiler/testData/codegen/box/argumentOrder/kt17691.kt");
|
|
}
|
|
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInArgumentOrder() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/argumentOrder"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInArrays() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("constantArrayOfAny.kt")
|
|
public void testConstantArrayOfAny() throws Exception {
|
|
runTest("compiler/testData/codegen/box/arrays/constantArrayOfAny.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("kt47483.kt")
|
|
public void testKt47483() throws Exception {
|
|
runTest("compiler/testData/codegen/box/arrays/kt47483.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("kt55984.kt")
|
|
public void testKt55984() throws Exception {
|
|
runTest("compiler/testData/codegen/box/arrays/kt55984.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_IR, 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_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInForInReversed() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays/forInReversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("reversedArray.kt")
|
|
public void testReversedArray() throws Exception {
|
|
runTest("compiler/testData/codegen/box/arrays/forInReversed/reversedArray.kt");
|
|
}
|
|
|
|
@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/forInUnsignedArray")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class ForInUnsignedArray extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInForInUnsignedArray() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays/forInUnsignedArray"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("forInUnsignedArray.kt")
|
|
public void testForInUnsignedArray() throws Exception {
|
|
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArray.kt");
|
|
}
|
|
|
|
@TestMetadata("forInUnsignedArrayIndices.kt")
|
|
public void testForInUnsignedArrayIndices() throws Exception {
|
|
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayIndices.kt");
|
|
}
|
|
|
|
@TestMetadata("forInUnsignedArrayIndicesReversed.kt")
|
|
public void testForInUnsignedArrayIndicesReversed() throws Exception {
|
|
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayIndicesReversed.kt");
|
|
}
|
|
|
|
@TestMetadata("forInUnsignedArrayReversed.kt")
|
|
public void testForInUnsignedArrayReversed() throws Exception {
|
|
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayReversed.kt");
|
|
}
|
|
|
|
@TestMetadata("forInUnsignedArrayWithIndex.kt")
|
|
public void testForInUnsignedArrayWithIndex() throws Exception {
|
|
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayWithIndex.kt");
|
|
}
|
|
|
|
@TestMetadata("forInUnsignedArrayWithIndexNoElementVar.kt")
|
|
public void testForInUnsignedArrayWithIndexNoElementVar() throws Exception {
|
|
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayWithIndexNoElementVar.kt");
|
|
}
|
|
|
|
@TestMetadata("forInUnsignedArrayWithIndexNoIndexVar.kt")
|
|
public void testForInUnsignedArrayWithIndexNoIndexVar() throws Exception {
|
|
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayWithIndexNoIndexVar.kt");
|
|
}
|
|
|
|
@TestMetadata("forInUnsignedArrayWithIndexReversed.kt")
|
|
public void testForInUnsignedArrayWithIndexReversed() throws Exception {
|
|
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayWithIndexReversed.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInMultiDecl() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays/multiDecl"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInAssert() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/assert"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInJvm() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/assert/jvm"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("classAssertionsForInnerClasses.kt")
|
|
public void testClassAssertionsForInnerClasses() throws Exception {
|
|
runTest("compiler/testData/codegen/box/assert/jvm/classAssertionsForInnerClasses.kt");
|
|
}
|
|
|
|
@TestMetadata("classAssertionsForLocalClasses.kt")
|
|
public void testClassAssertionsForLocalClasses() throws Exception {
|
|
runTest("compiler/testData/codegen/box/assert/jvm/classAssertionsForLocalClasses.kt");
|
|
}
|
|
|
|
@TestMetadata("classAssertionsForNestedClasses.kt")
|
|
public void testClassAssertionsForNestedClasses() throws Exception {
|
|
runTest("compiler/testData/codegen/box/assert/jvm/classAssertionsForNestedClasses.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInBinaryOp() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/binaryOp"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInBoxingOptimization() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxingOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("checkcastAndInstanceOf2.kt")
|
|
public void testCheckcastAndInstanceOf2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.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("kt48394.kt")
|
|
public void testKt48394() throws Exception {
|
|
runTest("compiler/testData/codegen/box/boxingOptimization/kt48394.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49092a.kt")
|
|
public void testKt49092a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/boxingOptimization/kt49092a.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49092b.kt")
|
|
public void testKt49092b() throws Exception {
|
|
runTest("compiler/testData/codegen/box/boxingOptimization/kt49092b.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49092c.kt")
|
|
public void testKt49092c() throws Exception {
|
|
runTest("compiler/testData/codegen/box/boxingOptimization/kt49092c.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49092d.kt")
|
|
public void testKt49092d() throws Exception {
|
|
runTest("compiler/testData/codegen/box/boxingOptimization/kt49092d.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49092e.kt")
|
|
public void testKt49092e() throws Exception {
|
|
runTest("compiler/testData/codegen/box/boxingOptimization/kt49092e.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49092f.kt")
|
|
public void testKt49092f() throws Exception {
|
|
runTest("compiler/testData/codegen/box/boxingOptimization/kt49092f.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49548.kt")
|
|
public void testKt49548() throws Exception {
|
|
runTest("compiler/testData/codegen/box/boxingOptimization/kt49548.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49548a.kt")
|
|
public void testKt49548a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/boxingOptimization/kt49548a.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("unsignedArrayForEach.kt")
|
|
public void testUnsignedArrayForEach() throws Exception {
|
|
runTest("compiler/testData/codegen/box/boxingOptimization/unsignedArrayForEach.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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, 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_IR, 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("internalMethodOverrideInFriendModule.kt")
|
|
public void testInternalMethodOverrideInFriendModule() throws Exception {
|
|
runTest("compiler/testData/codegen/box/bridges/internalMethodOverrideInFriendModule.kt");
|
|
}
|
|
|
|
@TestMetadata("internalMethodOverrideInOtherModule.kt")
|
|
public void testInternalMethodOverrideInOtherModule() throws Exception {
|
|
runTest("compiler/testData/codegen/box/bridges/internalMethodOverrideInOtherModule.kt");
|
|
}
|
|
|
|
@TestMetadata("internalMethodOverrideMultipleInheritance.kt")
|
|
public void testInternalMethodOverrideMultipleInheritance() throws Exception {
|
|
runTest("compiler/testData/codegen/box/bridges/internalMethodOverrideMultipleInheritance.kt");
|
|
}
|
|
|
|
@TestMetadata("internalMethodOverridePublishedApi.kt")
|
|
public void testInternalMethodOverridePublishedApi() throws Exception {
|
|
runTest("compiler/testData/codegen/box/bridges/internalMethodOverridePublishedApi.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("kt24193.kt")
|
|
public void testKt24193() throws Exception {
|
|
runTest("compiler/testData/codegen/box/bridges/kt24193.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("kt46389.kt")
|
|
public void testKt46389() throws Exception {
|
|
runTest("compiler/testData/codegen/box/bridges/kt46389.kt");
|
|
}
|
|
|
|
@TestMetadata("kt46389_jvmDefault.kt")
|
|
public void testKt46389_jvmDefault() throws Exception {
|
|
runTest("compiler/testData/codegen/box/bridges/kt46389_jvmDefault.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("methodWithDefaultParameter.kt")
|
|
public void testMethodWithDefaultParameter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/bridges/methodWithDefaultParameter.kt");
|
|
}
|
|
|
|
@TestMetadata("nestedClassTypeParameters.kt")
|
|
public void testNestedClassTypeParameters() throws Exception {
|
|
runTest("compiler/testData/codegen/box/bridges/nestedClassTypeParameters.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("overrideWithValueClassReturn.kt")
|
|
public void testOverrideWithValueClassReturn() throws Exception {
|
|
runTest("compiler/testData/codegen/box/bridges/overrideWithValueClassReturn.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_IR, 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_IR, true);
|
|
}
|
|
|
|
@TestMetadata("boundedTypeArguments.kt")
|
|
public void testBoundedTypeArguments() throws Exception {
|
|
runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/boundedTypeArguments.kt");
|
|
}
|
|
|
|
@TestMetadata("delegation.kt")
|
|
public void testDelegation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/delegation.kt");
|
|
}
|
|
|
|
@TestMetadata("differentErasureInSuperClass.kt")
|
|
public void testDifferentErasureInSuperClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/differentErasureInSuperClass.kt");
|
|
}
|
|
|
|
@TestMetadata("differentErasureInSuperClassComplex.kt")
|
|
public void testDifferentErasureInSuperClassComplex() throws Exception {
|
|
runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/differentErasureInSuperClassComplex.kt");
|
|
}
|
|
|
|
@TestMetadata("enum.kt")
|
|
public void testEnum() throws Exception {
|
|
runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/enum.kt");
|
|
}
|
|
|
|
@TestMetadata("genericMethod.kt")
|
|
public void testGenericMethod() throws Exception {
|
|
runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/genericMethod.kt");
|
|
}
|
|
|
|
@TestMetadata("object.kt")
|
|
public void testObject() throws Exception {
|
|
runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/object.kt");
|
|
}
|
|
|
|
@TestMetadata("property.kt")
|
|
public void testProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/property.kt");
|
|
}
|
|
|
|
@TestMetadata("simple.kt")
|
|
public void testSimple() throws Exception {
|
|
runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/simple.kt");
|
|
}
|
|
|
|
@TestMetadata("upperBound.kt")
|
|
public void testUpperBound() throws Exception {
|
|
runTest("compiler/testData/codegen/box/bridges/substitutionInSuperClass/upperBound.kt");
|
|
}
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/builderInference")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class BuilderInference extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInBuilderInference() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/builderInference/issues")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Issues extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInIssues() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference/issues"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("kt43710.kt")
|
|
public void testKt43710() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt43710.kt");
|
|
}
|
|
|
|
@TestMetadata("kt47989a.kt")
|
|
public void testKt47989a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt47989a.kt");
|
|
}
|
|
|
|
@TestMetadata("kt47989b.kt")
|
|
public void testKt47989b() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt47989b.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49160a.kt")
|
|
public void testKt49160a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt49160a.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49160b.kt")
|
|
public void testKt49160b() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt49160b.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49160c.kt")
|
|
public void testKt49160c() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt49160c.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49160d.kt")
|
|
public void testKt49160d() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt49160d.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49160e.kt")
|
|
public void testKt49160e() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt49160e.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49263.kt")
|
|
public void testKt49263() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt49263.kt");
|
|
}
|
|
|
|
@TestMetadata("kt50453.kt")
|
|
public void testKt50453() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt50453.kt");
|
|
}
|
|
|
|
@TestMetadata("kt50827a.kt")
|
|
public void testKt50827a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt50827a.kt");
|
|
}
|
|
|
|
@TestMetadata("kt50827b.kt")
|
|
public void testKt50827b() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt50827b.kt");
|
|
}
|
|
|
|
@TestMetadata("kt52757.kt")
|
|
public void testKt52757() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt52757.kt");
|
|
}
|
|
|
|
@TestMetadata("kt52838a.kt")
|
|
public void testKt52838a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt52838a.kt");
|
|
}
|
|
|
|
@TestMetadata("kt52838b.kt")
|
|
public void testKt52838b() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt52838b.kt");
|
|
}
|
|
|
|
@TestMetadata("kt52838c.kt")
|
|
public void testKt52838c() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt52838c.kt");
|
|
}
|
|
|
|
@TestMetadata("kt53109.kt")
|
|
public void testKt53109() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt53109.kt");
|
|
}
|
|
|
|
@TestMetadata("kt53422a.kt")
|
|
public void testKt53422a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt53422a.kt");
|
|
}
|
|
|
|
@TestMetadata("kt53422b.kt")
|
|
public void testKt53422b() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt53422b.kt");
|
|
}
|
|
|
|
@TestMetadata("kt53553.kt")
|
|
public void testKt53553() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt53553.kt");
|
|
}
|
|
|
|
@TestMetadata("kt53639.kt")
|
|
public void testKt53639() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt53639.kt");
|
|
}
|
|
|
|
@TestMetadata("kt53740a.kt")
|
|
public void testKt53740a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt53740a.kt");
|
|
}
|
|
|
|
@TestMetadata("kt53740b.kt")
|
|
public void testKt53740b() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt53740b.kt");
|
|
}
|
|
|
|
@TestMetadata("kt54400a.kt")
|
|
public void testKt54400a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt54400a.kt");
|
|
}
|
|
|
|
@TestMetadata("kt54400b.kt")
|
|
public void testKt54400b() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt54400b.kt");
|
|
}
|
|
|
|
@TestMetadata("kt54400c.kt")
|
|
public void testKt54400c() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt54400c.kt");
|
|
}
|
|
|
|
@TestMetadata("kt54664.kt")
|
|
public void testKt54664() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt54664.kt");
|
|
}
|
|
|
|
@TestMetadata("kt54767a.kt")
|
|
public void testKt54767a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt54767a.kt");
|
|
}
|
|
|
|
@TestMetadata("kt54767b.kt")
|
|
public void testKt54767b() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt54767b.kt");
|
|
}
|
|
|
|
@TestMetadata("kt55056.kt")
|
|
public void testKt55056() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt55056.kt");
|
|
}
|
|
|
|
@TestMetadata("kt55252.kt")
|
|
public void testKt55252() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt55252.kt");
|
|
}
|
|
|
|
@TestMetadata("kt55281.kt")
|
|
public void testKt55281() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt55281.kt");
|
|
}
|
|
|
|
@TestMetadata("kt56949.kt")
|
|
public void testKt56949() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt56949.kt");
|
|
}
|
|
|
|
@TestMetadata("kt57707.kt")
|
|
public void testKt57707() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt57707.kt");
|
|
}
|
|
|
|
@TestMetadata("kt57709.kt")
|
|
public void testKt57709() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt57709.kt");
|
|
}
|
|
|
|
@TestMetadata("kt57834.kt")
|
|
public void testKt57834() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt57834.kt");
|
|
}
|
|
|
|
@TestMetadata("kt59426.kt")
|
|
public void testKt59426() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt59426.kt");
|
|
}
|
|
|
|
@TestMetadata("kt59798.kt")
|
|
public void testKt59798() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt59798.kt");
|
|
}
|
|
|
|
@TestMetadata("kt60291a.kt")
|
|
public void testKt60291a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt60291a.kt");
|
|
}
|
|
|
|
@TestMetadata("kt60291b.kt")
|
|
public void testKt60291b() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt60291b.kt");
|
|
}
|
|
|
|
@TestMetadata("kt60291c.kt")
|
|
public void testKt60291c() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt60291c.kt");
|
|
}
|
|
|
|
@TestMetadata("kt60447a.kt")
|
|
public void testKt60447a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt60447a.kt");
|
|
}
|
|
|
|
@TestMetadata("kt60447b.kt")
|
|
public void testKt60447b() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt60447b.kt");
|
|
}
|
|
|
|
@TestMetadata("kt61310.kt")
|
|
public void testKt61310() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt61310.kt");
|
|
}
|
|
|
|
@TestMetadata("kt63733.kt")
|
|
public void testKt63733() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt63733.kt");
|
|
}
|
|
|
|
@TestMetadata("kt63840a.kt")
|
|
public void testKt63840a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt63840a.kt");
|
|
}
|
|
|
|
@TestMetadata("kt63840b.kt")
|
|
public void testKt63840b() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt63840b.kt");
|
|
}
|
|
|
|
@TestMetadata("kt63840c.kt")
|
|
public void testKt63840c() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/issues/kt63840c.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/builderInference/oneParameter")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class OneParameter extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInOneParameter() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference/oneParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class OneTypeVariable extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInOneTypeVariable() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class OneTypeInfoOrigin extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInOneTypeInfoOrigin() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("AnonymousFunctionArgumentAndBuildeeParameter.kt")
|
|
public void testAnonymousFunctionArgumentAndBuildeeParameter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/AnonymousFunctionArgumentAndBuildeeParameter.kt");
|
|
}
|
|
|
|
@TestMetadata("AnonymousFunctionArgumentAndBuildeeReceiver.kt")
|
|
public void testAnonymousFunctionArgumentAndBuildeeReceiver() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/AnonymousFunctionArgumentAndBuildeeReceiver.kt");
|
|
}
|
|
|
|
@TestMetadata("LambdaArgumentAndBuildeeParameter.kt")
|
|
public void testLambdaArgumentAndBuildeeParameter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/LambdaArgumentAndBuildeeParameter.kt");
|
|
}
|
|
|
|
@TestMetadata("LambdaArgumentAndBuildeeReceiver.kt")
|
|
public void testLambdaArgumentAndBuildeeReceiver() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/LambdaArgumentAndBuildeeReceiver.kt");
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class SourceSinkFeedContexts extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInSourceSinkFeedContexts() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("ByAssignmentToALocalVariableMaterializeCase.kt")
|
|
public void testByAssignmentToALocalVariableMaterializeCase() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts/ByAssignmentToALocalVariableMaterializeCase.kt");
|
|
}
|
|
|
|
@TestMetadata("ByAssignmentToALocalVariableYieldCase.kt")
|
|
public void testByAssignmentToALocalVariableYieldCase() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts/ByAssignmentToALocalVariableYieldCase.kt");
|
|
}
|
|
|
|
@TestMetadata("InsideAnonymousObject.kt")
|
|
public void testInsideAnonymousObject() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts/InsideAnonymousObject.kt");
|
|
}
|
|
|
|
@TestMetadata("InsideLocalClass.kt")
|
|
public void testInsideLocalClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts/InsideLocalClass.kt");
|
|
}
|
|
|
|
@TestMetadata("InsideNestedLambda.kt")
|
|
public void testInsideNestedLambda() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts/InsideNestedLambda.kt");
|
|
}
|
|
|
|
@TestMetadata("ThroughDelegatedLocalVariableMaterializeCase.kt")
|
|
public void testThroughDelegatedLocalVariableMaterializeCase() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts/ThroughDelegatedLocalVariableMaterializeCase.kt");
|
|
}
|
|
|
|
@TestMetadata("ThroughDelegatedLocalVariableYieldCase.kt")
|
|
public void testThroughDelegatedLocalVariableYieldCase() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts/ThroughDelegatedLocalVariableYieldCase.kt");
|
|
}
|
|
|
|
@TestMetadata("ThroughGenericFunctionCall.kt")
|
|
public void testThroughGenericFunctionCall() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts/ThroughGenericFunctionCall.kt");
|
|
}
|
|
|
|
@TestMetadata("ThroughLocalVariable.kt")
|
|
public void testThroughLocalVariable() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts/ThroughLocalVariable.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class TargetTypes extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInTargetTypes() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("AnonymousObject.kt")
|
|
public void testAnonymousObject() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/AnonymousObject.kt");
|
|
}
|
|
|
|
@TestMetadata("DefinitelyNonNullableTypeParameter.kt")
|
|
public void testDefinitelyNonNullableTypeParameter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/DefinitelyNonNullableTypeParameter.kt");
|
|
}
|
|
|
|
@TestMetadata("EnclosingClass.kt")
|
|
public void testEnclosingClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/EnclosingClass.kt");
|
|
}
|
|
|
|
@TestMetadata("EnclosingEnumerationEntryType.kt")
|
|
public void testEnclosingEnumerationEntryType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/EnclosingEnumerationEntryType.kt");
|
|
}
|
|
|
|
@TestMetadata("EnclosingEnumerationType.kt")
|
|
public void testEnclosingEnumerationType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/EnclosingEnumerationType.kt");
|
|
}
|
|
|
|
@TestMetadata("EnclosingExplicitlyGenericInnerClass.kt")
|
|
public void testEnclosingExplicitlyGenericInnerClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/EnclosingExplicitlyGenericInnerClass.kt");
|
|
}
|
|
|
|
@TestMetadata("EnclosingGenericClass.kt")
|
|
public void testEnclosingGenericClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/EnclosingGenericClass.kt");
|
|
}
|
|
|
|
@TestMetadata("EnclosingImplicitlyGenericInnerClass.kt")
|
|
public void testEnclosingImplicitlyGenericInnerClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/EnclosingImplicitlyGenericInnerClass.kt");
|
|
}
|
|
|
|
@TestMetadata("EnclosingInnerClass.kt")
|
|
public void testEnclosingInnerClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/EnclosingInnerClass.kt");
|
|
}
|
|
|
|
@TestMetadata("EnumerationType.kt")
|
|
public void testEnumerationType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/EnumerationType.kt");
|
|
}
|
|
|
|
@TestMetadata("ExplicitlyGenericInnerClass.kt")
|
|
public void testExplicitlyGenericInnerClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/ExplicitlyGenericInnerClass.kt");
|
|
}
|
|
|
|
@TestMetadata("FunctionWithParameterToUnit.kt")
|
|
public void testFunctionWithParameterToUnit() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/FunctionWithParameterToUnit.kt");
|
|
}
|
|
|
|
@TestMetadata("FunctionWithReceiverToUnit.kt")
|
|
public void testFunctionWithReceiverToUnit() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/FunctionWithReceiverToUnit.kt");
|
|
}
|
|
|
|
@TestMetadata("GenericLocalClass.kt")
|
|
public void testGenericLocalClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/GenericLocalClass.kt");
|
|
}
|
|
|
|
@TestMetadata("GenericLocalClassWithLeakingTypeParameter.kt")
|
|
public void testGenericLocalClassWithLeakingTypeParameter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/GenericLocalClassWithLeakingTypeParameter.kt");
|
|
}
|
|
|
|
@TestMetadata("GenericWithContravariantTypeParameter.kt")
|
|
public void testGenericWithContravariantTypeParameter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/GenericWithContravariantTypeParameter.kt");
|
|
}
|
|
|
|
@TestMetadata("GenericWithCovariantTypeParameter.kt")
|
|
public void testGenericWithCovariantTypeParameter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/GenericWithCovariantTypeParameter.kt");
|
|
}
|
|
|
|
@TestMetadata("GenericWithInProjectedTypeArgument.kt")
|
|
public void testGenericWithInProjectedTypeArgument() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/GenericWithInProjectedTypeArgument.kt");
|
|
}
|
|
|
|
@TestMetadata("GenericWithInvariantTypeParameter.kt")
|
|
public void testGenericWithInvariantTypeParameter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/GenericWithInvariantTypeParameter.kt");
|
|
}
|
|
|
|
@TestMetadata("GenericWithOutProjectedTypeArgument.kt")
|
|
public void testGenericWithOutProjectedTypeArgument() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/GenericWithOutProjectedTypeArgument.kt");
|
|
}
|
|
|
|
@TestMetadata("GenericWithStarProjectedTypeArgument.kt")
|
|
public void testGenericWithStarProjectedTypeArgument() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/GenericWithStarProjectedTypeArgument.kt");
|
|
}
|
|
|
|
@TestMetadata("ImplicitlyGenericInnerClass.kt")
|
|
public void testImplicitlyGenericInnerClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/ImplicitlyGenericInnerClass.kt");
|
|
}
|
|
|
|
@TestMetadata("InnerClass.kt")
|
|
public void testInnerClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/InnerClass.kt");
|
|
}
|
|
|
|
@TestMetadata("Int.kt")
|
|
public void testInt() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/Int.kt");
|
|
}
|
|
|
|
@TestMetadata("IntersectionType.kt")
|
|
public void testIntersectionType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/IntersectionType.kt");
|
|
}
|
|
|
|
@TestMetadata("LocalClass.kt")
|
|
public void testLocalClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/LocalClass.kt");
|
|
}
|
|
|
|
@TestMetadata("NothingYieldCase.kt")
|
|
public void testNothingYieldCase() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/NothingYieldCase.kt");
|
|
}
|
|
|
|
@TestMetadata("NullableNothing.kt")
|
|
public void testNullableNothing() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/NullableNothing.kt");
|
|
}
|
|
|
|
@TestMetadata("NullableNothingNullLiteralYieldCase.kt")
|
|
public void testNullableNothingNullLiteralYieldCase() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/NullableNothingNullLiteralYieldCase.kt");
|
|
}
|
|
|
|
@TestMetadata("NullableType.kt")
|
|
public void testNullableType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/NullableType.kt");
|
|
}
|
|
|
|
@TestMetadata("NullableTypeParameter.kt")
|
|
public void testNullableTypeParameter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/NullableTypeParameter.kt");
|
|
}
|
|
|
|
@TestMetadata("NullaryFunctionToUnit.kt")
|
|
public void testNullaryFunctionToUnit() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/NullaryFunctionToUnit.kt");
|
|
}
|
|
|
|
@TestMetadata("NullaryFunctionWithReturnValue.kt")
|
|
public void testNullaryFunctionWithReturnValue() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/NullaryFunctionWithReturnValue.kt");
|
|
}
|
|
|
|
@TestMetadata("String.kt")
|
|
public void testString() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/String.kt");
|
|
}
|
|
|
|
@TestMetadata("SuspendingFunction.kt")
|
|
public void testSuspendingFunction() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/SuspendingFunction.kt");
|
|
}
|
|
|
|
@TestMetadata("TypeParameter.kt")
|
|
public void testTypeParameter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/targetTypes/TypeParameter.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class TypeInfoSinks extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInTypeInfoSinks() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("ExtensionFunctions.kt")
|
|
public void testExtensionFunctions() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks/ExtensionFunctions.kt");
|
|
}
|
|
|
|
@TestMetadata("ImmutableExtensionProperties.kt")
|
|
public void testImmutableExtensionProperties() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks/ImmutableExtensionProperties.kt");
|
|
}
|
|
|
|
@TestMetadata("ImmutableProperties.kt")
|
|
public void testImmutableProperties() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks/ImmutableProperties.kt");
|
|
}
|
|
|
|
@TestMetadata("MutableExtensionPropertiesMaterializeCase.kt")
|
|
public void testMutableExtensionPropertiesMaterializeCase() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks/MutableExtensionPropertiesMaterializeCase.kt");
|
|
}
|
|
|
|
@TestMetadata("MutableExtensionPropertiesYieldCase.kt")
|
|
public void testMutableExtensionPropertiesYieldCase() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks/MutableExtensionPropertiesYieldCase.kt");
|
|
}
|
|
|
|
@TestMetadata("MutablePropertiesMaterializeCase.kt")
|
|
public void testMutablePropertiesMaterializeCase() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks/MutablePropertiesMaterializeCase.kt");
|
|
}
|
|
|
|
@TestMetadata("MutablePropertiesYieldCase.kt")
|
|
public void testMutablePropertiesYieldCase() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks/MutablePropertiesYieldCase.kt");
|
|
}
|
|
|
|
@TestMetadata("ParametersOfBuilderArguments.kt")
|
|
public void testParametersOfBuilderArguments() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks/ParametersOfBuilderArguments.kt");
|
|
}
|
|
|
|
@TestMetadata("ReceiversOfBuilderArguments.kt")
|
|
public void testReceiversOfBuilderArguments() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks/ReceiversOfBuilderArguments.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSources")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class TypeInfoSources extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInTypeInfoSources() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSources"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("ExtensionFunctions.kt")
|
|
public void testExtensionFunctions() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSources/ExtensionFunctions.kt");
|
|
}
|
|
|
|
@TestMetadata("ExtensionProperties.kt")
|
|
public void testExtensionProperties() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSources/ExtensionProperties.kt");
|
|
}
|
|
|
|
@TestMetadata("ParametersOfBuilderArguments.kt")
|
|
public void testParametersOfBuilderArguments() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSources/ParametersOfBuilderArguments.kt");
|
|
}
|
|
|
|
@TestMetadata("ReceiversOfBuilderArguments.kt")
|
|
public void testReceiversOfBuilderArguments() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSources/ReceiversOfBuilderArguments.kt");
|
|
}
|
|
|
|
@TestMetadata("ReturnTypesOfBuilderParameters.kt")
|
|
public void testReturnTypesOfBuilderParameters() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSources/ReturnTypesOfBuilderParameters.kt");
|
|
}
|
|
|
|
@TestMetadata("UnitReturnTypeOfBuilderParametersExplicitReturnCase.kt")
|
|
public void testUnitReturnTypeOfBuilderParametersExplicitReturnCase() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSources/UnitReturnTypeOfBuilderParametersExplicitReturnCase.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_IR, 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_IR, 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/bridgesForStubs")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class BridgesForStubs extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInBridgesForStubs() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builtinStubMethods/bridgesForStubs"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("derivedEmptyListAdd.kt")
|
|
public void testDerivedEmptyListAdd() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builtinStubMethods/bridgesForStubs/derivedEmptyListAdd.kt");
|
|
}
|
|
|
|
@TestMetadata("derivedEmptyListSeveralModulesAdd.kt")
|
|
public void testDerivedEmptyListSeveralModulesAdd() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builtinStubMethods/bridgesForStubs/derivedEmptyListSeveralModulesAdd.kt");
|
|
}
|
|
|
|
@TestMetadata("derivedEmptyStringListAdd.kt")
|
|
public void testDerivedEmptyStringListAdd() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builtinStubMethods/bridgesForStubs/derivedEmptyStringListAdd.kt");
|
|
}
|
|
|
|
@TestMetadata("emptyListAdd.kt")
|
|
public void testEmptyListAdd() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builtinStubMethods/bridgesForStubs/emptyListAdd.kt");
|
|
}
|
|
|
|
@TestMetadata("emptyListAddWithIndex.kt")
|
|
public void testEmptyListAddWithIndex() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builtinStubMethods/bridgesForStubs/emptyListAddWithIndex.kt");
|
|
}
|
|
|
|
@TestMetadata("emptyListSet.kt")
|
|
public void testEmptyListSet() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builtinStubMethods/bridgesForStubs/emptyListSet.kt");
|
|
}
|
|
|
|
@TestMetadata("emptyStringListAdd.kt")
|
|
public void testEmptyStringListAdd() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builtinStubMethods/bridgesForStubs/emptyStringListAdd.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class ExtendJavaClasses extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
@TestMetadata("abstractList.kt")
|
|
public void testAbstractList() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/abstractList.kt");
|
|
}
|
|
|
|
@TestMetadata("abstractMap.kt")
|
|
public void testAbstractMap() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/abstractMap.kt");
|
|
}
|
|
|
|
@TestMetadata("abstractSet.kt")
|
|
public void testAbstractSet() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/abstractSet.kt");
|
|
}
|
|
|
|
public void testAllFilesPresentInExtendJavaClasses() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("arrayList.kt")
|
|
public void testArrayList() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/arrayList.kt");
|
|
}
|
|
|
|
@TestMetadata("charSequenceGetOverriddenInJavaSuperClass.kt")
|
|
public void testCharSequenceGetOverriddenInJavaSuperClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/charSequenceGetOverriddenInJavaSuperClass.kt");
|
|
}
|
|
|
|
@TestMetadata("extendArrayListThroughKotlin.kt")
|
|
public void testExtendArrayListThroughKotlin() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/extendArrayListThroughKotlin.kt");
|
|
}
|
|
|
|
@TestMetadata("hashMap.kt")
|
|
public void testHashMap() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashMap.kt");
|
|
}
|
|
|
|
@TestMetadata("hashSet.kt")
|
|
public void testHashSet() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashSet.kt");
|
|
}
|
|
|
|
@TestMetadata("kt61548.kt")
|
|
public void testKt61548() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/kt61548.kt");
|
|
}
|
|
|
|
@TestMetadata("mapEntry.kt")
|
|
public void testMapEntry() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/mapEntry.kt");
|
|
}
|
|
|
|
@TestMetadata("numberMixedHierarchy.kt")
|
|
public void testNumberMixedHierarchy() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/numberMixedHierarchy.kt");
|
|
}
|
|
|
|
@TestMetadata("overrideAbstractSetMethod.kt")
|
|
public void testOverrideAbstractSetMethod() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/overrideAbstractSetMethod.kt");
|
|
}
|
|
|
|
@TestMetadata("removeAtBridgeToJavaClass.kt")
|
|
public void testRemoveAtBridgeToJavaClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/removeAtBridgeToJavaClass.kt");
|
|
}
|
|
|
|
@TestMetadata("removeAtBridgeToJavaDefault.kt")
|
|
public void testRemoveAtBridgeToJavaDefault() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/removeAtBridgeToJavaDefault.kt");
|
|
}
|
|
|
|
@TestMetadata("removeAtBridgeToJavaSuperClass.kt")
|
|
public void testRemoveAtBridgeToJavaSuperClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/removeAtBridgeToJavaSuperClass.kt");
|
|
}
|
|
|
|
@TestMetadata("superCallToFakeRemoveAt.kt")
|
|
public void testSuperCallToFakeRemoveAt() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToFakeRemoveAt.kt");
|
|
}
|
|
|
|
@TestMetadata("superCallToRemoveAt.kt")
|
|
public void testSuperCallToRemoveAt() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToRemoveAt.kt");
|
|
}
|
|
|
|
@TestMetadata("superCallToRemoveAtInJavaDefault.kt")
|
|
public void testSuperCallToRemoveAtInJavaDefault() throws Exception {
|
|
runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/superCallToRemoveAtInJavaDefault.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInMapGetOrDefault() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builtinStubMethods/mapGetOrDefault"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInMapRemove() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builtinStubMethods/mapRemove"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("kt55138.kt")
|
|
public void ignoreKt55138() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/kt55138.kt");
|
|
}
|
|
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInCallableReference() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("arrayOfNulls.kt")
|
|
public void testArrayOfNulls() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/arrayOfNulls.kt");
|
|
}
|
|
|
|
@TestMetadata("builtinFunctionReferenceOwner.kt")
|
|
public void testBuiltinFunctionReferenceOwner() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/builtinFunctionReferenceOwner.kt");
|
|
}
|
|
|
|
@TestMetadata("callableReferenceOfCompanionConst.kt")
|
|
public void testCallableReferenceOfCompanionConst() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/callableReferenceOfCompanionConst.kt");
|
|
}
|
|
|
|
@TestMetadata("callableReferenceOfCompanionMethod.kt")
|
|
public void testCallableReferenceOfCompanionMethod() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/callableReferenceOfCompanionMethod.kt");
|
|
}
|
|
|
|
@TestMetadata("callableReferenceOfCompanionProperty.kt")
|
|
public void testCallableReferenceOfCompanionProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/callableReferenceOfCompanionProperty.kt");
|
|
}
|
|
|
|
@TestMetadata("callableReferenceOfJavaNestedClass.kt")
|
|
public void testCallableReferenceOfJavaNestedClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/callableReferenceOfJavaNestedClass.kt");
|
|
}
|
|
|
|
@TestMetadata("callableReferenceOfKotlinNestedClass.kt")
|
|
public void testCallableReferenceOfKotlinNestedClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/callableReferenceOfKotlinNestedClass.kt");
|
|
}
|
|
|
|
@TestMetadata("callableReferenceOfNestedClass.kt")
|
|
public void testCallableReferenceOfNestedClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/callableReferenceOfNestedClass.kt");
|
|
}
|
|
|
|
@TestMetadata("callableReferenceOfObjectMethod.kt")
|
|
public void testCallableReferenceOfObjectMethod() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/callableReferenceOfObjectMethod.kt");
|
|
}
|
|
|
|
@TestMetadata("callableReferenceOfStaticField.kt")
|
|
public void testCallableReferenceOfStaticField() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/callableReferenceOfStaticField.kt");
|
|
}
|
|
|
|
@TestMetadata("callableReferenceOfStaticMethod.kt")
|
|
public void testCallableReferenceOfStaticMethod() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/callableReferenceOfStaticMethod.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("kt16752.kt")
|
|
public void testKt16752() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/kt16752.kt");
|
|
}
|
|
|
|
@TestMetadata("kt21014.kt")
|
|
public void testKt21014() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/kt21014.kt");
|
|
}
|
|
|
|
@TestMetadata("kt21092a.kt")
|
|
public void testKt21092a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/kt21092a.kt");
|
|
}
|
|
|
|
@TestMetadata("kt21092b.kt")
|
|
public void testKt21092b() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/kt21092b.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("kt49526.kt")
|
|
public void testKt49526() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/kt49526.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49526_sam.kt")
|
|
public void testKt49526_sam() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/kt49526_sam.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49526a.kt")
|
|
public void testKt49526a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/kt49526a.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49526b.kt")
|
|
public void testKt49526b() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/kt49526b.kt");
|
|
}
|
|
|
|
@TestMetadata("kt50172.kt")
|
|
public void testKt50172() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/kt50172.kt");
|
|
}
|
|
|
|
@TestMetadata("kt51844.kt")
|
|
public void testKt51844() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/kt51844.kt");
|
|
}
|
|
|
|
@TestMetadata("kt52270.kt")
|
|
public void testKt52270() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/kt52270.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("referenceToGenericSyntheticProperty.kt")
|
|
public void testReferenceToGenericSyntheticProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/referenceToGenericSyntheticProperty.kt");
|
|
}
|
|
|
|
@TestMetadata("referenceToTypealiasConstructorInLet.kt")
|
|
public void testReferenceToTypealiasConstructorInLet() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/referenceToTypealiasConstructorInLet.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_IR, testDataFilePath);
|
|
}
|
|
|
|
@TestMetadata("adaptedArrayOf.kt")
|
|
public void testAdaptedArrayOf() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/adaptedArrayOf.kt");
|
|
}
|
|
|
|
@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_IR, 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("nestedClassConstructorWithDefault.kt")
|
|
public void testNestedClassConstructorWithDefault() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/nestedClassConstructorWithDefault.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("suspendUnitConversion.kt")
|
|
public void testSuspendUnitConversion() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/suspendUnitConversion.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("unitCoercionOverloads.kt")
|
|
public void testUnitCoercionOverloads() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/unitCoercionOverloads.kt");
|
|
}
|
|
|
|
@TestMetadata("varargFromBaseClass.kt")
|
|
public void testVarargFromBaseClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/varargFromBaseClass.kt");
|
|
}
|
|
|
|
@TestMetadata("varargOverloads.kt")
|
|
public void testVarargOverloads() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/varargOverloads.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_IR, 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_IR, 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_IR, 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_IR, 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("companionObjectReceiverInheritsFromOuter.kt")
|
|
public void testCompanionObjectReceiverInheritsFromOuter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/bound/companionObjectReceiverInheritsFromOuter.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("kt44636_localExtension.kt")
|
|
public void testKt44636_localExtension() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/bound/kt44636_localExtension.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("typeAliasObjectBoundReference.kt")
|
|
public void testTypeAliasObjectBoundReference() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/bound/typeAliasObjectBoundReference.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_IR, 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_IR, 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 {
|
|
@TestMetadata("conversionCombinations.kt")
|
|
public void ignoreConversionCombinations() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/equality/conversionCombinations.kt");
|
|
}
|
|
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInEquality() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/equality"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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/funInterfaceConstructor")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class FunInterfaceConstructor extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInFunInterfaceConstructor() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/funInterfaceConstructor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("funInterfaceConstructedObjectsEquality.kt")
|
|
public void testFunInterfaceConstructedObjectsEquality() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/funInterfaceConstructor/funInterfaceConstructedObjectsEquality.kt");
|
|
}
|
|
|
|
@TestMetadata("funInterfaceConstructor.kt")
|
|
public void testFunInterfaceConstructor() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/funInterfaceConstructor/funInterfaceConstructor.kt");
|
|
}
|
|
|
|
@TestMetadata("funInterfaceConstructorEquality.kt")
|
|
public void testFunInterfaceConstructorEquality() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/funInterfaceConstructor/funInterfaceConstructorEquality.kt");
|
|
}
|
|
|
|
@TestMetadata("funInterfaceConstructorIsKFunction.kt")
|
|
public void testFunInterfaceConstructorIsKFunction() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/funInterfaceConstructor/funInterfaceConstructorIsKFunction.kt");
|
|
}
|
|
|
|
@TestMetadata("funInterfaceConstructorOfImplicitKFunctionType.kt")
|
|
public void testFunInterfaceConstructorOfImplicitKFunctionType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/funInterfaceConstructor/funInterfaceConstructorOfImplicitKFunctionType.kt");
|
|
}
|
|
|
|
@TestMetadata("funInterfaceConstructorThrowsNpe.kt")
|
|
public void testFunInterfaceConstructorThrowsNpe() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/funInterfaceConstructor/funInterfaceConstructorThrowsNpe.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_IR, 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_IR, 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("genericCallableReferenceWithReifiedTypeParam.kt")
|
|
public void testGenericCallableReferenceWithReifiedTypeParam() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceWithReifiedTypeParam.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("kt53794_protectedJavaMember.kt")
|
|
public void testKt53794_protectedJavaMember() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/function/kt53794_protectedJavaMember.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_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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("referenceToCompanionFunction.kt")
|
|
public void testReferenceToCompanionFunction() throws Exception {
|
|
runTest("compiler/testData/codegen/box/callableReference/serializability/referenceToCompanionFunction.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInCasts() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("arrayDowncastingContravariant.kt")
|
|
public void testArrayDowncastingContravariant() throws Exception {
|
|
runTest("compiler/testData/codegen/box/casts/arrayDowncastingContravariant.kt");
|
|
}
|
|
|
|
@TestMetadata("arrayDowncatingInvariant.kt")
|
|
public void testArrayDowncatingInvariant() throws Exception {
|
|
runTest("compiler/testData/codegen/box/casts/arrayDowncatingInvariant.kt");
|
|
}
|
|
|
|
@TestMetadata("arrayDownctingCovariant.kt")
|
|
public void testArrayDownctingCovariant() throws Exception {
|
|
runTest("compiler/testData/codegen/box/casts/arrayDownctingCovariant.kt");
|
|
}
|
|
|
|
@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("castToDefinitelyNotNullType.kt")
|
|
public void testCastToDefinitelyNotNullType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/casts/castToDefinitelyNotNullType.kt");
|
|
}
|
|
|
|
@TestMetadata("dontCreateInconsistentTypeDuringStarProjectionSubstitution.kt")
|
|
public void testDontCreateInconsistentTypeDuringStarProjectionSubstitution() throws Exception {
|
|
runTest("compiler/testData/codegen/box/casts/dontCreateInconsistentTypeDuringStarProjectionSubstitution.kt");
|
|
}
|
|
|
|
@TestMetadata("genericReturnCast.kt")
|
|
public void testGenericReturnCast() throws Exception {
|
|
runTest("compiler/testData/codegen/box/casts/genericReturnCast.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("kt48927_privateMethodOnDerivedCastToBase.kt")
|
|
public void testKt48927_privateMethodOnDerivedCastToBase() throws Exception {
|
|
runTest("compiler/testData/codegen/box/casts/kt48927_privateMethodOnDerivedCastToBase.kt");
|
|
}
|
|
|
|
@TestMetadata("kt50577.kt")
|
|
public void testKt50577() throws Exception {
|
|
runTest("compiler/testData/codegen/box/casts/kt50577.kt");
|
|
}
|
|
|
|
@TestMetadata("kt53146.kt")
|
|
public void testKt53146() throws Exception {
|
|
runTest("compiler/testData/codegen/box/casts/kt53146.kt");
|
|
}
|
|
|
|
@TestMetadata("kt53677.kt")
|
|
public void testKt53677() throws Exception {
|
|
runTest("compiler/testData/codegen/box/casts/kt53677.kt");
|
|
}
|
|
|
|
@TestMetadata("kt54318.kt")
|
|
public void testKt54318() throws Exception {
|
|
runTest("compiler/testData/codegen/box/casts/kt54318.kt");
|
|
}
|
|
|
|
@TestMetadata("kt54581.kt")
|
|
public void testKt54581() throws Exception {
|
|
runTest("compiler/testData/codegen/box/casts/kt54581.kt");
|
|
}
|
|
|
|
@TestMetadata("kt54707.kt")
|
|
public void testKt54707() throws Exception {
|
|
runTest("compiler/testData/codegen/box/casts/kt54707.kt");
|
|
}
|
|
|
|
@TestMetadata("kt54802.kt")
|
|
public void testKt54802() throws Exception {
|
|
runTest("compiler/testData/codegen/box/casts/kt54802.kt");
|
|
}
|
|
|
|
@TestMetadata("kt55005.kt")
|
|
public void testKt55005() throws Exception {
|
|
runTest("compiler/testData/codegen/box/casts/kt55005.kt");
|
|
}
|
|
|
|
@TestMetadata("kt58707.kt")
|
|
public void testKt58707() throws Exception {
|
|
runTest("compiler/testData/codegen/box/casts/kt58707.kt");
|
|
}
|
|
|
|
@TestMetadata("kt59022.kt")
|
|
public void testKt59022() throws Exception {
|
|
runTest("compiler/testData/codegen/box/casts/kt59022.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInFunctions() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts/functions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("isFunKSmallJVM.kt")
|
|
public void testIsFunKSmallJVM() throws Exception {
|
|
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallJVM.kt");
|
|
}
|
|
|
|
@TestMetadata("isFunKSmallNonJS.kt")
|
|
public void testIsFunKSmallNonJS() throws Exception {
|
|
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallNonJS.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInJavaInterop() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts/javaInterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInLiteralExpressionAsGenericArgument() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInMutableCollections() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts/mutableCollections"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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/casts/nativeCCEMessage")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class NativeCCEMessage extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInNativeCCEMessage() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts/nativeCCEMessage"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
}
|
|
}
|
|
|
|
@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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInCheckcastOptimization() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/checkcastOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("kt47851.kt")
|
|
public void testKt47851() throws Exception {
|
|
runTest("compiler/testData/codegen/box/checkcastOptimization/kt47851.kt");
|
|
}
|
|
|
|
@TestMetadata("kt47851a.kt")
|
|
public void testKt47851a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/checkcastOptimization/kt47851a.kt");
|
|
}
|
|
|
|
@TestMetadata("kt50215.kt")
|
|
public void testKt50215() throws Exception {
|
|
runTest("compiler/testData/codegen/box/checkcastOptimization/kt50215.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/cinterop")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Cinterop extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInCinterop() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
}
|
|
|
|
@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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInClassLiteral() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("bareArray.kt")
|
|
public void testBareArray() throws Exception {
|
|
runTest("compiler/testData/codegen/box/classLiteral/bareArray.kt");
|
|
}
|
|
|
|
@TestMetadata("classEquality.kt")
|
|
public void testClassEquality() throws Exception {
|
|
runTest("compiler/testData/codegen/box/classLiteral/classEquality.kt");
|
|
}
|
|
|
|
@TestMetadata("primitiveClassEquality.kt")
|
|
public void testPrimitiveClassEquality() throws Exception {
|
|
runTest("compiler/testData/codegen/box/classLiteral/primitiveClassEquality.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInBound() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral/bound"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInJava() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral/java"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInClasses() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("kt40332.kt")
|
|
public void testKt40332() throws Exception {
|
|
runTest("compiler/testData/codegen/box/classes/kt40332.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("kt53007.kt")
|
|
public void testKt53007() throws Exception {
|
|
runTest("compiler/testData/codegen/box/classes/kt53007.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("nestedInitBlocksWithLambda.kt")
|
|
public void testNestedInitBlocksWithLambda() throws Exception {
|
|
runTest("compiler/testData/codegen/box/classes/nestedInitBlocksWithLambda.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 {
|
|
@TestMetadata("innerClassDerivedFromOuterClass.kt")
|
|
public void ignoreInnerClassDerivedFromOuterClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/classes/inner/innerClassDerivedFromOuterClass.kt");
|
|
}
|
|
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInInner() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classes/inner"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInClosures() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/closures"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("closureCapturingGenericParam.kt")
|
|
public void testClosureCapturingGenericParam() throws Exception {
|
|
runTest("compiler/testData/codegen/box/closures/closureCapturingGenericParam.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("kt23881.kt")
|
|
public void testKt23881() throws Exception {
|
|
runTest("compiler/testData/codegen/box/closures/kt23881.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("kt47894_inlineFunWithObjectWithNothing.kt")
|
|
public void testKt47894_inlineFunWithObjectWithNothing() throws Exception {
|
|
runTest("compiler/testData/codegen/box/closures/kt47894_inlineFunWithObjectWithNothing.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInCaptureInSuperConstructorCall() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/closures/captureInSuperConstructorCall"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInCaptureOuterProperty() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/closures/captureOuterProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInCapturedVarsOptimization() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/closures/capturedVarsOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInClosureInsideClosure() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/closures/closureInsideClosure"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInCollectionLiterals() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/collectionLiterals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, 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_IR, 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("internalRemoveFromJava.kt")
|
|
public void testInternalRemoveFromJava() throws Exception {
|
|
runTest("compiler/testData/codegen/box/collections/internalRemoveFromJava.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("kt48945.kt")
|
|
public void testKt48945() throws Exception {
|
|
runTest("compiler/testData/codegen/box/collections/kt48945.kt");
|
|
}
|
|
|
|
@TestMetadata("kt48945a.kt")
|
|
public void testKt48945a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/collections/kt48945a.kt");
|
|
}
|
|
|
|
@TestMetadata("kt48945b.kt")
|
|
public void testKt48945b() throws Exception {
|
|
runTest("compiler/testData/codegen/box/collections/kt48945b.kt");
|
|
}
|
|
|
|
@TestMetadata("kt48945c.kt")
|
|
public void testKt48945c() throws Exception {
|
|
runTest("compiler/testData/codegen/box/collections/kt48945c.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("removeAtIntOverrideInJava.kt")
|
|
public void testRemoveAtIntOverrideInJava() throws Exception {
|
|
runTest("compiler/testData/codegen/box/collections/removeAtIntOverrideInJava.kt");
|
|
}
|
|
|
|
@TestMetadata("removeAtIntOverrideInJava2.kt")
|
|
public void testRemoveAtIntOverrideInJava2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/collections/removeAtIntOverrideInJava2.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("specialBridgeForGet.kt")
|
|
public void testSpecialBridgeForGet() throws Exception {
|
|
runTest("compiler/testData/codegen/box/collections/specialBridgeForGet.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInCompanion() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/companion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("delegatedPropertyOnCompanion.kt")
|
|
public void testDelegatedPropertyOnCompanion() throws Exception {
|
|
runTest("compiler/testData/codegen/box/companion/delegatedPropertyOnCompanion.kt");
|
|
}
|
|
|
|
@TestMetadata("genericLambdaOnStringCompanion.kt")
|
|
public void testGenericLambdaOnStringCompanion() throws Exception {
|
|
runTest("compiler/testData/codegen/box/companion/genericLambdaOnStringCompanion.kt");
|
|
}
|
|
|
|
@TestMetadata("inlineFunctionCompanionPropertyAccess.kt")
|
|
public void testInlineFunctionCompanionPropertyAccess() throws Exception {
|
|
runTest("compiler/testData/codegen/box/companion/inlineFunctionCompanionPropertyAccess.kt");
|
|
}
|
|
|
|
@TestMetadata("kt54645.kt")
|
|
public void testKt54645() throws Exception {
|
|
runTest("compiler/testData/codegen/box/companion/kt54645.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInCompatibility() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInConstants() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/constants"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("doNotTriggerInit.kt")
|
|
public void testDoNotTriggerInit() throws Exception {
|
|
runTest("compiler/testData/codegen/box/constants/doNotTriggerInit.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("literalToLongConversion.kt")
|
|
public void testLiteralToLongConversion() throws Exception {
|
|
runTest("compiler/testData/codegen/box/constants/literalToLongConversion.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInConstructor() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/constructor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInConstructorCall() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/constructorCall"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("inlineFunInConstructorCall.kt")
|
|
public void testInlineFunInConstructorCall() throws Exception {
|
|
runTest("compiler/testData/codegen/box/constructorCall/inlineFunInConstructorCall.kt");
|
|
}
|
|
|
|
@TestMetadata("inlineFunInConstructorCallEvaluationOrder.kt")
|
|
public void testInlineFunInConstructorCallEvaluationOrder() throws Exception {
|
|
runTest("compiler/testData/codegen/box/constructorCall/inlineFunInConstructorCallEvaluationOrder.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("kt49615.kt")
|
|
public void testKt49615() throws Exception {
|
|
runTest("compiler/testData/codegen/box/constructorCall/kt49615.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49615a.kt")
|
|
public void testKt49615a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/constructorCall/kt49615a.kt");
|
|
}
|
|
|
|
@TestMetadata("loopInInlineFun.kt")
|
|
public void testLoopInInlineFun() throws Exception {
|
|
runTest("compiler/testData/codegen/box/constructorCall/loopInInlineFun.kt");
|
|
}
|
|
|
|
@TestMetadata("loopInInlineFunInSuperConstructorCall.kt")
|
|
public void testLoopInInlineFunInSuperConstructorCall() throws Exception {
|
|
runTest("compiler/testData/codegen/box/constructorCall/loopInInlineFunInSuperConstructorCall.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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInContracts() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/contracts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("nestedLambdaInNonInlineCallExactlyOnce.kt")
|
|
public void testNestedLambdaInNonInlineCallExactlyOnce() throws Exception {
|
|
runTest("compiler/testData/codegen/box/contracts/nestedLambdaInNonInlineCallExactlyOnce.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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInControlStructures() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("kt47245.kt")
|
|
public void testKt47245() throws Exception {
|
|
runTest("compiler/testData/codegen/box/controlStructures/kt47245.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("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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInBreakContinueInExpressions() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("breakInLoopConditions.kt")
|
|
public void testBreakInLoopConditions() throws Exception {
|
|
runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/breakInLoopConditions.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("kt45704_elvisInInlineFun.kt")
|
|
public void testKt45704_elvisInInlineFun() throws Exception {
|
|
runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt45704_elvisInInlineFun.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/breakContinueInExpressions/inlinedBreakContinue")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class InlinedBreakContinue extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInInlinedBreakContinue() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/inlinedBreakContinue"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("initializerBlock.kt")
|
|
public void testInitializerBlock() throws Exception {
|
|
runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/inlinedBreakContinue/initializerBlock.kt");
|
|
}
|
|
|
|
@TestMetadata("inlineFunctionWithMultipleParameters.kt")
|
|
public void testInlineFunctionWithMultipleParameters() throws Exception {
|
|
runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/inlinedBreakContinue/inlineFunctionWithMultipleParameters.kt");
|
|
}
|
|
|
|
@TestMetadata("lambdaPassedToInlineFunction.kt")
|
|
public void testLambdaPassedToInlineFunction() throws Exception {
|
|
runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/inlinedBreakContinue/lambdaPassedToInlineFunction.kt");
|
|
}
|
|
|
|
@TestMetadata("loopWithinInlineFunction.kt")
|
|
public void testLoopWithinInlineFunction() throws Exception {
|
|
runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/inlinedBreakContinue/loopWithinInlineFunction.kt");
|
|
}
|
|
|
|
@TestMetadata("simple.kt")
|
|
public void testSimple() throws Exception {
|
|
runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/inlinedBreakContinue/simple.kt");
|
|
}
|
|
|
|
@TestMetadata("stdlibFunctions.kt")
|
|
public void testStdlibFunctions() throws Exception {
|
|
runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/inlinedBreakContinue/stdlibFunctions.kt");
|
|
}
|
|
|
|
@TestMetadata("withReturnValue.kt")
|
|
public void testWithReturnValue() throws Exception {
|
|
runTest("compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/inlinedBreakContinue/withReturnValue.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInForInArray() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/forInArray"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInForInArrayWithIndex() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInForInCharSequenceWithIndex() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInForInIterableWithIndex() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("forInListWithIndexBreak.kt")
|
|
public void testForInListWithIndexBreak() throws Exception {
|
|
runTest("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInListWithIndexBreak.kt");
|
|
}
|
|
|
|
@TestMetadata("forInListWithIndexBreakAndContinue.kt")
|
|
public void testForInListWithIndexBreakAndContinue() throws Exception {
|
|
runTest("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInListWithIndexBreakAndContinue.kt");
|
|
}
|
|
|
|
@TestMetadata("forInListWithIndexContinue.kt")
|
|
public void testForInListWithIndexContinue() throws Exception {
|
|
runTest("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInListWithIndexContinue.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/forInIterator")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class ForInIterator extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
@TestMetadata("abstractNext.kt")
|
|
public void testAbstractNext() throws Exception {
|
|
runTest("compiler/testData/codegen/box/controlStructures/forInIterator/abstractNext.kt");
|
|
}
|
|
|
|
public void testAllFilesPresentInForInIterator() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/forInIterator"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("primitiveIterator.kt")
|
|
public void testPrimitiveIterator() throws Exception {
|
|
runTest("compiler/testData/codegen/box/controlStructures/forInIterator/primitiveIterator.kt");
|
|
}
|
|
|
|
@TestMetadata("uintIterator.kt")
|
|
public void testUintIterator() throws Exception {
|
|
runTest("compiler/testData/codegen/box/controlStructures/forInIterator/uintIterator.kt");
|
|
}
|
|
|
|
@TestMetadata("unrelatedExtensionFunctionNext.kt")
|
|
public void testUnrelatedExtensionFunctionNext() throws Exception {
|
|
runTest("compiler/testData/codegen/box/controlStructures/forInIterator/unrelatedExtensionFunctionNext.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInForInSequenceWithIndex() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInReturnsNothing() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/returnsNothing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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/slowDsl")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class SlowDsl extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInSlowDsl() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/slowDsl"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("slowHtmlLikeDsl.kt")
|
|
public void testSlowHtmlLikeDsl() throws Exception {
|
|
runTest("compiler/testData/codegen/box/controlStructures/slowDsl/slowHtmlLikeDsl.kt");
|
|
}
|
|
|
|
@TestMetadata("slowHtmlLikeDslNoInline.kt")
|
|
public void testSlowHtmlLikeDslNoInline() throws Exception {
|
|
runTest("compiler/testData/codegen/box/controlStructures/slowDsl/slowHtmlLikeDslNoInline.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInTryCatchInExpressions() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("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("tryFinallyOfTypeUnit.kt")
|
|
public void testTryFinallyOfTypeUnit() throws Exception {
|
|
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryFinallyOfTypeUnit.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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, 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_IR, 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("defaultParameterLambdaInSuspend.kt")
|
|
public void testDefaultParameterLambdaInSuspend() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/defaultParameterLambdaInSuspend.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("deserializedSuspendFunctionProperty.kt")
|
|
public void testDeserializedSuspendFunctionProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/deserializedSuspendFunctionProperty.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("genericSignatureForSuspendImpl.kt")
|
|
public void testGenericSignatureForSuspendImpl() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/genericSignatureForSuspendImpl.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("infiniteLoopInNextMeaningful.kt")
|
|
public void testInfiniteLoopInNextMeaningful() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/infiniteLoopInNextMeaningful.kt");
|
|
}
|
|
|
|
@TestMetadata("inlineCallWithReturns.kt")
|
|
public void testInlineCallWithReturns() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/inlineCallWithReturns.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("inlineSuspendTypealias.kt")
|
|
public void testInlineSuspendTypealias() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/inlineSuspendTypealias.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("kt21080.kt")
|
|
public void testKt21080() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/kt21080.kt");
|
|
}
|
|
|
|
@TestMetadata("kt21605.kt")
|
|
public void testKt21605() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/kt21605.kt");
|
|
}
|
|
|
|
@TestMetadata("kt24135.kt")
|
|
public void testKt24135() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/kt24135.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("kt38099.kt")
|
|
public void testKt38099() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/kt38099.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("kt49168.kt")
|
|
public void testKt49168() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/kt49168.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49317.kt")
|
|
public void testKt49317() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/kt49317.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49645.kt")
|
|
public void testKt49645() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/kt49645.kt");
|
|
}
|
|
|
|
@TestMetadata("kt50277.kt")
|
|
public void testKt50277() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/kt50277.kt");
|
|
}
|
|
|
|
@TestMetadata("kt51530.kt")
|
|
public void testKt51530() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/kt51530.kt");
|
|
}
|
|
|
|
@TestMetadata("kt51718.kt")
|
|
public void testKt51718() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/kt51718.kt");
|
|
}
|
|
|
|
@TestMetadata("kt52311_nullOnLeft.kt")
|
|
public void testKt52311_nullOnLeft() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/kt52311_nullOnLeft.kt");
|
|
}
|
|
|
|
@TestMetadata("kt52311_nullOnRight.kt")
|
|
public void testKt52311_nullOnRight() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/kt52311_nullOnRight.kt");
|
|
}
|
|
|
|
@TestMetadata("kt52561.kt")
|
|
public void testKt52561() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/kt52561.kt");
|
|
}
|
|
|
|
@TestMetadata("kt55494.kt")
|
|
public void testKt55494() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/kt55494.kt");
|
|
}
|
|
|
|
@TestMetadata("kt56407.kt")
|
|
public void testKt56407() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/kt56407.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("simpleWithDefaultValue.kt")
|
|
public void testSimpleWithDefaultValue() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/simpleWithDefaultValue.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("suspendCallInSuperInterfaceCallArguments.kt")
|
|
public void testSuspendCallInSuperInterfaceCallArguments() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/suspendCallInSuperInterfaceCallArguments.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("suspendFunctionAsSupertype.kt")
|
|
public void testSuspendFunctionAsSupertype() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsSupertype.kt");
|
|
}
|
|
|
|
@TestMetadata("suspendFunctionAsSupertypeCall.kt")
|
|
public void testSuspendFunctionAsSupertypeCall() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionAsSupertypeCall.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("suspendImplTypeParameters.kt")
|
|
public void testSuspendImplTypeParameters() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/suspendImplTypeParameters.kt");
|
|
}
|
|
|
|
@TestMetadata("suspendImplTypeParametersOuterClass.kt")
|
|
public void testSuspendImplTypeParametersOuterClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/suspendImplTypeParametersOuterClass.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("suspendInlineReference.kt")
|
|
public void testSuspendInlineReference() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/suspendInlineReference.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("varargCallFromSuspend.kt")
|
|
public void testVarargCallFromSuspend() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/varargCallFromSuspend.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInBridges() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/bridges"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("mapSuspendAbstractClear.kt")
|
|
public void testMapSuspendAbstractClear() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/bridges/mapSuspendAbstractClear.kt");
|
|
}
|
|
|
|
@TestMetadata("mapSuspendClear.kt")
|
|
public void testMapSuspendClear() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/bridges/mapSuspendClear.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInControlFlow() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/controlFlow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInDebug() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/debug"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInFeatureIntersection() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("funInterface.kt")
|
|
public void testFunInterface() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/funInterface.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("suspendFunctionAsSupertypeIsCheck.kt")
|
|
public void testSuspendFunctionAsSupertypeIsCheck() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/suspendFunctionAsSupertypeIsCheck.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_IR, 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_IR, 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("kt48732_genericSignature.kt")
|
|
public void testKt48732_genericSignature() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/kt48732_genericSignature.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_IR, 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_IR, 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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
@TestMetadata("adapted.kt")
|
|
public void testAdapted() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/adapted.kt");
|
|
}
|
|
|
|
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_IR, 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_IR, 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_IR, 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/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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInFunInterface() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/funInterface"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("kt47549.kt")
|
|
public void testKt47549() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/funInterface/kt47549.kt");
|
|
}
|
|
|
|
@TestMetadata("kt47549_1.kt")
|
|
public void testKt47549_1() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/funInterface/kt47549_1.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49294.kt")
|
|
public void testKt49294() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/funInterface/kt49294.kt");
|
|
}
|
|
|
|
@TestMetadata("kt50950.kt")
|
|
public void testKt50950() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/funInterface/kt50950.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_IR, 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_IR, true);
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/coroutines/featureIntersection/jvmDefault/kt46007")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Kt46007 extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, 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_IR, true);
|
|
}
|
|
|
|
@TestMetadata("all-compatibility.kt")
|
|
public void testAll_compatibility() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/jvmDefault/kt46007/all-compatibility.kt");
|
|
}
|
|
|
|
@TestMetadata("disable.kt")
|
|
public void testDisable() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/jvmDefault/kt46007/disable.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_IR, 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_IR, 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("kt38920_localTailrec.kt")
|
|
public void testKt38920_localTailrec() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/kt38920_localTailrec.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInInlineClasses() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, 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_IR, 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("boxTypeParameterOfSuperType.kt")
|
|
public void testBoxTypeParameterOfSuperType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxTypeParameterOfSuperType.kt");
|
|
}
|
|
|
|
@TestMetadata("boxTypeParameterOfSuperTypeResult.kt")
|
|
public void testBoxTypeParameterOfSuperTypeResult() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxTypeParameterOfSuperTypeResult.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_IR, 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_IR, 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_IR, 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_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInIntLikeVarSpilling() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/intLikeVarSpilling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInIntrinsicSemantics() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/intrinsicSemantics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("releaseIntercepted.kt")
|
|
public void testReleaseIntercepted() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/intrinsicSemantics/releaseIntercepted.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInJavaInterop() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/javaInterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInLocalFunctions() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Named extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, 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_IR, true);
|
|
}
|
|
|
|
@TestMetadata("callTopLevelFromLocal.kt")
|
|
public void testCallTopLevelFromLocal() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/callTopLevelFromLocal.kt");
|
|
}
|
|
|
|
@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("defaultArgument.kt")
|
|
public void testDefaultArgument() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/localFunctions/named/defaultArgument.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInMultiModule() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/multiModule"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("inheritFromAnotherModule.kt")
|
|
public void testInheritFromAnotherModule() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/multiModule/inheritFromAnotherModule.kt");
|
|
}
|
|
|
|
@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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInRedundantLocalsElimination() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/redundantLocalsElimination"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInReflect() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/reflect"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("bigArity.kt")
|
|
public void testBigArity() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/reflect/bigArity.kt");
|
|
}
|
|
|
|
@TestMetadata("bigArityLambda.kt")
|
|
public void testBigArityLambda() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/reflect/bigArityLambda.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInStackUnwinding() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/stackUnwinding"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInSuspendConversion() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/suspendConversion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("intersectionTypeToSubtypeConversion.kt")
|
|
public void testIntersectionTypeToSubtypeConversion() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/suspendConversion/intersectionTypeToSubtypeConversion.kt");
|
|
}
|
|
|
|
@TestMetadata("onArgument.kt")
|
|
public void testOnArgument() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/suspendConversion/onArgument.kt");
|
|
}
|
|
|
|
@TestMetadata("onInlineArgument.kt")
|
|
public void testOnInlineArgument() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/suspendConversion/onInlineArgument.kt");
|
|
}
|
|
|
|
@TestMetadata("subtypeOfFunctionalTypeToSuspendConversion.kt")
|
|
public void testSubtypeOfFunctionalTypeToSuspendConversion() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/suspendConversion/subtypeOfFunctionalTypeToSuspendConversion.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class SuspendFunctionAsCoroutine extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInSuspendFunctionAsCoroutine() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInSuspendFunctionTypeCall() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInTailCallOptimizations() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/tailCallOptimizations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("also.kt")
|
|
public void testAlso() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/also.kt");
|
|
}
|
|
|
|
@TestMetadata("checkcast.kt")
|
|
public void testCheckcast() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/checkcast.kt");
|
|
}
|
|
|
|
@TestMetadata("checkcast2.kt")
|
|
public void testCheckcast2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/checkcast2.kt");
|
|
}
|
|
|
|
@TestMetadata("crossinline.kt")
|
|
public void testCrossinline() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/crossinline.kt");
|
|
}
|
|
|
|
@TestMetadata("deferredAwaitSuspendImpl.kt")
|
|
public void testDeferredAwaitSuspendImpl() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/deferredAwaitSuspendImpl.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("lambdaParameterInlining.kt")
|
|
public void testLambdaParameterInlining() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/lambdaParameterInlining.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_IR, 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_IR, true);
|
|
}
|
|
|
|
@TestMetadata("functionReference.kt")
|
|
public void testFunctionReference() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/functionReference.kt");
|
|
}
|
|
|
|
@TestMetadata("inline.kt")
|
|
public void testInline() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/inline.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInTailOperations() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/tailOperations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInUnitTypeReturn() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/unitTypeReturn"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInVarSpilling() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/varSpilling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("kt49834.kt")
|
|
public void testKt49834() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/varSpilling/kt49834.kt");
|
|
}
|
|
|
|
@TestMetadata("kt64139.kt")
|
|
public void testKt64139() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/varSpilling/kt64139.kt");
|
|
}
|
|
|
|
@TestMetadata("lvtWithInlineOnly.kt")
|
|
public void testLvtWithInlineOnly() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/varSpilling/lvtWithInlineOnly.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/coroutines/varSpilling/cleanup")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Cleanup extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInCleanup() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/varSpilling/cleanup"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("backEdge.kt")
|
|
public void testBackEdge() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/varSpilling/cleanup/backEdge.kt");
|
|
}
|
|
|
|
@TestMetadata("if.kt")
|
|
public void testIf() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/varSpilling/cleanup/if.kt");
|
|
}
|
|
|
|
@TestMetadata("nullCleanup.kt")
|
|
public void testNullCleanup() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/varSpilling/cleanup/nullCleanup.kt");
|
|
}
|
|
|
|
@TestMetadata("nullNotSpill.kt")
|
|
public void testNullNotSpill() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/varSpilling/cleanup/nullNotSpill.kt");
|
|
}
|
|
|
|
@TestMetadata("simple.kt")
|
|
public void testSimple() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/varSpilling/cleanup/simple.kt");
|
|
}
|
|
|
|
@TestMetadata("twoRefs.kt")
|
|
public void testTwoRefs() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/varSpilling/cleanup/twoRefs.kt");
|
|
}
|
|
|
|
@TestMetadata("unusedParamNotSpill.kt")
|
|
public void testUnusedParamNotSpill() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/varSpilling/cleanup/unusedParamNotSpill.kt");
|
|
}
|
|
|
|
@TestMetadata("when.kt")
|
|
public void testWhen() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/varSpilling/cleanup/when.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/coroutines/varSpilling/debugMode")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class DebugMode extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInDebugMode() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/varSpilling/debugMode"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("backEdge.kt")
|
|
public void testBackEdge() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/varSpilling/debugMode/backEdge.kt");
|
|
}
|
|
|
|
@TestMetadata("if.kt")
|
|
public void testIf() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/varSpilling/debugMode/if.kt");
|
|
}
|
|
|
|
@TestMetadata("inlineOnly.kt")
|
|
public void testInlineOnly() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/varSpilling/debugMode/inlineOnly.kt");
|
|
}
|
|
|
|
@TestMetadata("nullCleanup.kt")
|
|
public void testNullCleanup() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/varSpilling/debugMode/nullCleanup.kt");
|
|
}
|
|
|
|
@TestMetadata("nullNotSpill.kt")
|
|
public void testNullNotSpill() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/varSpilling/debugMode/nullNotSpill.kt");
|
|
}
|
|
|
|
@TestMetadata("simple.kt")
|
|
public void testSimple() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/varSpilling/debugMode/simple.kt");
|
|
}
|
|
|
|
@TestMetadata("twoRefs.kt")
|
|
public void testTwoRefs() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/varSpilling/debugMode/twoRefs.kt");
|
|
}
|
|
|
|
@TestMetadata("unusedParamNotSpill.kt")
|
|
public void testUnusedParamNotSpill() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/varSpilling/debugMode/unusedParamNotSpill.kt");
|
|
}
|
|
|
|
@TestMetadata("when.kt")
|
|
public void testWhen() throws Exception {
|
|
runTest("compiler/testData/codegen/box/coroutines/varSpilling/debugMode/when.kt");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/correctFrontendCode")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class CorrectFrontendCode extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInCorrectFrontendCode() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/correctFrontendCode"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("privateNestedClassInSuper.kt")
|
|
public void testPrivateNestedClassInSuper() throws Exception {
|
|
runTest("compiler/testData/codegen/box/correctFrontendCode/privateNestedClassInSuper.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInDataClasses() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("equalityChecksPrimitiveUnboxed.kt")
|
|
public void testEqualityChecksPrimitiveUnboxed() throws Exception {
|
|
runTest("compiler/testData/codegen/box/dataClasses/equalityChecksPrimitiveUnboxed.kt");
|
|
}
|
|
|
|
@TestMetadata("floatParam.kt")
|
|
public void testFloatParam() throws Exception {
|
|
runTest("compiler/testData/codegen/box/dataClasses/floatParam.kt");
|
|
}
|
|
|
|
@TestMetadata("fromOtherModule.kt")
|
|
public void testFromOtherModule() throws Exception {
|
|
runTest("compiler/testData/codegen/box/dataClasses/fromOtherModule.kt");
|
|
}
|
|
|
|
@TestMetadata("genericParam.kt")
|
|
public void testGenericParam() throws Exception {
|
|
runTest("compiler/testData/codegen/box/dataClasses/genericParam.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49715.kt")
|
|
public void testKt49715() throws Exception {
|
|
runTest("compiler/testData/codegen/box/dataClasses/kt49715.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49715_behaviorChange.kt")
|
|
public void testKt49715_behaviorChange() throws Exception {
|
|
runTest("compiler/testData/codegen/box/dataClasses/kt49715_behaviorChange.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/components")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Components extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInComponents() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataClasses/components"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("kt49812.kt")
|
|
public void testKt49812() throws Exception {
|
|
runTest("compiler/testData/codegen/box/dataClasses/components/kt49812.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49936.kt")
|
|
public void testKt49936() throws Exception {
|
|
runTest("compiler/testData/codegen/box/dataClasses/components/kt49936.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInCopy() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataClasses/copy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInEquals() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataClasses/equals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInHashCode() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataClasses/hashCode"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInToString() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataClasses/toString"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("primitiveArrays.kt")
|
|
public void testPrimitiveArrays() throws Exception {
|
|
runTest("compiler/testData/codegen/box/dataClasses/toString/primitiveArrays.kt");
|
|
}
|
|
|
|
@TestMetadata("unitComponent.kt")
|
|
public void testUnitComponent() throws Exception {
|
|
runTest("compiler/testData/codegen/box/dataClasses/toString/unitComponent.kt");
|
|
}
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/dataObjects")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class DataObjects extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInDataObjects() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataObjects"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("equals.kt")
|
|
public void testEquals() throws Exception {
|
|
runTest("compiler/testData/codegen/box/dataObjects/equals.kt");
|
|
}
|
|
|
|
@TestMetadata("hashCode.kt")
|
|
public void testHashCode() throws Exception {
|
|
runTest("compiler/testData/codegen/box/dataObjects/hashCode.kt");
|
|
}
|
|
|
|
@TestMetadata("multipleInstances.kt")
|
|
public void testMultipleInstances() throws Exception {
|
|
runTest("compiler/testData/codegen/box/dataObjects/multipleInstances.kt");
|
|
}
|
|
|
|
@TestMetadata("serialization.kt")
|
|
public void testSerialization() throws Exception {
|
|
runTest("compiler/testData/codegen/box/dataObjects/serialization.kt");
|
|
}
|
|
|
|
@TestMetadata("toString.kt")
|
|
public void testToString() throws Exception {
|
|
runTest("compiler/testData/codegen/box/dataObjects/toString.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInDeadCodeElimination() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/deadCodeElimination"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInDefaultArguments() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("callDefaultFromInitializer.kt")
|
|
public void testCallDefaultFromInitializer() throws Exception {
|
|
runTest("compiler/testData/codegen/box/defaultArguments/callDefaultFromInitializer.kt");
|
|
}
|
|
|
|
@TestMetadata("captureInTailrec.kt")
|
|
public void testCaptureInTailrec() throws Exception {
|
|
runTest("compiler/testData/codegen/box/defaultArguments/captureInTailrec.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("kt48391.kt")
|
|
public void testKt48391() throws Exception {
|
|
runTest("compiler/testData/codegen/box/defaultArguments/kt48391.kt");
|
|
}
|
|
|
|
@TestMetadata("kt52702.kt")
|
|
public void testKt52702() throws Exception {
|
|
runTest("compiler/testData/codegen/box/defaultArguments/kt52702.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("useNextParamInLambdaTailrec.kt")
|
|
public void testUseNextParamInLambdaTailrec() throws Exception {
|
|
runTest("compiler/testData/codegen/box/defaultArguments/useNextParamInLambdaTailrec.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInConstructor() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/defaultArguments/constructor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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 {
|
|
@TestMetadata("kt16520_old.kt")
|
|
public void ignoreKt16520_old() throws Exception {
|
|
runTest("compiler/testData/codegen/box/defaultArguments/convention/kt16520_old.kt");
|
|
}
|
|
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInConvention() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/defaultArguments/convention"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("incWithDefaultInGetter.kt")
|
|
public void testIncWithDefaultInGetter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/defaultArguments/convention/incWithDefaultInGetter.kt");
|
|
}
|
|
|
|
@TestMetadata("incWithDefaults.kt")
|
|
public void testIncWithDefaults() throws Exception {
|
|
runTest("compiler/testData/codegen/box/defaultArguments/convention/incWithDefaults.kt");
|
|
}
|
|
|
|
@TestMetadata("kt16520.kt")
|
|
public void testKt16520() throws Exception {
|
|
runTest("compiler/testData/codegen/box/defaultArguments/convention/kt16520.kt");
|
|
}
|
|
|
|
@TestMetadata("kt9140.kt")
|
|
public void testKt9140() throws Exception {
|
|
runTest("compiler/testData/codegen/box/defaultArguments/convention/kt9140.kt");
|
|
}
|
|
|
|
@TestMetadata("plusAssignWithDefaultInGetter.kt")
|
|
public void testPlusAssignWithDefaultInGetter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/defaultArguments/convention/plusAssignWithDefaultInGetter.kt");
|
|
}
|
|
|
|
@TestMetadata("plusAssignWithDefaults.kt")
|
|
public void testPlusAssignWithDefaults() throws Exception {
|
|
runTest("compiler/testData/codegen/box/defaultArguments/convention/plusAssignWithDefaults.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/defaultArguments/function")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Function extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, 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_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInPrivate() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/defaultArguments/private"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInSignature() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/defaultArguments/signature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("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_IR, 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_IR, 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("delegateToConstVal.kt")
|
|
public void testDelegateToConstVal() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToConstVal.kt");
|
|
}
|
|
|
|
@TestMetadata("delegateToConstructorParameter.kt")
|
|
public void testDelegateToConstructorParameter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToConstructorParameter.kt");
|
|
}
|
|
|
|
@TestMetadata("delegateToJavaFinalStaticField.kt")
|
|
public void testDelegateToJavaFinalStaticField() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToJavaFinalStaticField.kt");
|
|
}
|
|
|
|
@TestMetadata("delegateWithPrivateSet.kt")
|
|
public void testDelegateWithPrivateSet() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateWithPrivateSet.kt");
|
|
}
|
|
|
|
@TestMetadata("delegatedPropertyInEnum.kt")
|
|
public void testDelegatedPropertyInEnum() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegatedPropertyInEnum.kt");
|
|
}
|
|
|
|
@TestMetadata("DelegationByFunctionWithEnumUpperBound.kt")
|
|
public void testDelegationByFunctionWithEnumUpperBound() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/DelegationByFunctionWithEnumUpperBound.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("noTypeVariablesLeft.kt")
|
|
public void testNoTypeVariablesLeft() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/noTypeVariablesLeft.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("referenceEnclosingClassFieldInReceiver.kt")
|
|
public void testReferenceEnclosingClassFieldInReceiver() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/referenceEnclosingClassFieldInReceiver.kt");
|
|
}
|
|
|
|
@TestMetadata("referenceEnclosingClassFieldInReceiver2.kt")
|
|
public void testReferenceEnclosingClassFieldInReceiver2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/referenceEnclosingClassFieldInReceiver2.kt");
|
|
}
|
|
|
|
@TestMetadata("resolveGetValueWithWholeDelegate.kt")
|
|
public void testResolveGetValueWithWholeDelegate() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/resolveGetValueWithWholeDelegate.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/delegateToAnother")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class DelegateToAnother extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInDelegateToAnother() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/delegateToAnother"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("custom.kt")
|
|
public void testCustom() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnother/custom.kt");
|
|
}
|
|
|
|
@TestMetadata("genericJavaProperty.kt")
|
|
public void testGenericJavaProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnother/genericJavaProperty.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49793_companionObject.kt")
|
|
public void testKt49793_companionObject() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnother/kt49793_companionObject.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49793_interfaceCompanionObject.kt")
|
|
public void testKt49793_interfaceCompanionObject() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnother/kt49793_interfaceCompanionObject.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49793_object.kt")
|
|
public void testKt49793_object() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnother/kt49793_object.kt");
|
|
}
|
|
|
|
@TestMetadata("kt50019_noOptimizedCallableReferences.kt")
|
|
public void testKt50019_noOptimizedCallableReferences() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnother/kt50019_noOptimizedCallableReferences.kt");
|
|
}
|
|
|
|
@TestMetadata("kt57955.kt")
|
|
public void testKt57955() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnother/kt57955.kt");
|
|
}
|
|
|
|
@TestMetadata("mutable.kt")
|
|
public void testMutable() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnother/mutable.kt");
|
|
}
|
|
|
|
@TestMetadata("openProperty.kt")
|
|
public void testOpenProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnother/openProperty.kt");
|
|
}
|
|
|
|
@TestMetadata("simple.kt")
|
|
public void testSimple() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnother/simple.kt");
|
|
}
|
|
|
|
@TestMetadata("withSideEffects.kt")
|
|
public void testWithSideEffects() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnother/withSideEffects.kt");
|
|
}
|
|
|
|
@TestMetadata("withSideEffectsFromFileClass.kt")
|
|
public void testWithSideEffectsFromFileClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnother/withSideEffectsFromFileClass.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/delegatedProperty/delegateToConst")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class DelegateToConst extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInDelegateToConst() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/delegateToConst"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("delegateToConst.kt")
|
|
public void testDelegateToConst() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToConst/delegateToConst.kt");
|
|
}
|
|
|
|
@TestMetadata("delegateToConstProperty.kt")
|
|
public void testDelegateToConstProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToConst/delegateToConstProperty.kt");
|
|
}
|
|
|
|
@TestMetadata("delegateToNull.kt")
|
|
public void testDelegateToNull() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToConst/delegateToNull.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/delegatedProperty/delegateToFinalProperty")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class DelegateToFinalProperty extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInDelegateToFinalProperty() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/delegateToFinalProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("chain.kt")
|
|
public void testChain() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToFinalProperty/chain.kt");
|
|
}
|
|
|
|
@TestMetadata("delegateToFinalInstanceProperty.kt")
|
|
public void testDelegateToFinalInstanceProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToFinalProperty/delegateToFinalInstanceProperty.kt");
|
|
}
|
|
|
|
@TestMetadata("delegateToFinalObjectProperty.kt")
|
|
public void testDelegateToFinalObjectProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToFinalProperty/delegateToFinalObjectProperty.kt");
|
|
}
|
|
|
|
@TestMetadata("delegateToFinalProperty.kt")
|
|
public void testDelegateToFinalProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToFinalProperty/delegateToFinalProperty.kt");
|
|
}
|
|
|
|
@TestMetadata("finalPropertyInAnotherFile.kt")
|
|
public void testFinalPropertyInAnotherFile() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToFinalProperty/finalPropertyInAnotherFile.kt");
|
|
}
|
|
|
|
@TestMetadata("initializeContainerOfTopLevelProperties.kt")
|
|
public void testInitializeContainerOfTopLevelProperties() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToFinalProperty/initializeContainerOfTopLevelProperties.kt");
|
|
}
|
|
|
|
@TestMetadata("kt54463_platformType.kt")
|
|
public void testKt54463_platformType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToFinalProperty/kt54463_platformType.kt");
|
|
}
|
|
|
|
@TestMetadata("memberExtensionPropertyAndImportFromObject.kt")
|
|
public void testMemberExtensionPropertyAndImportFromObject() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToFinalProperty/memberExtensionPropertyAndImportFromObject.kt");
|
|
}
|
|
|
|
@TestMetadata("memberExtensionPropertyAndLocalDelegatedProperty.kt")
|
|
public void testMemberExtensionPropertyAndLocalDelegatedProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToFinalProperty/memberExtensionPropertyAndLocalDelegatedProperty.kt");
|
|
}
|
|
|
|
@TestMetadata("multimodule.kt")
|
|
public void testMultimodule() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToFinalProperty/multimodule.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/delegatedProperty/delegateToSingleton")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class DelegateToSingleton extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInDelegateToSingleton() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/delegateToSingleton"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("delegateToEnum.kt")
|
|
public void testDelegateToEnum() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToSingleton/delegateToEnum.kt");
|
|
}
|
|
|
|
@TestMetadata("delegateToEnumInAClass.kt")
|
|
public void testDelegateToEnumInAClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToSingleton/delegateToEnumInAClass.kt");
|
|
}
|
|
|
|
@TestMetadata("delegateToSingleton.kt")
|
|
public void testDelegateToSingleton() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToSingleton/delegateToSingleton.kt");
|
|
}
|
|
|
|
@TestMetadata("noInitializationOfOuterClass.kt")
|
|
public void testNoInitializationOfOuterClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToSingleton/noInitializationOfOuterClass.kt");
|
|
}
|
|
|
|
@TestMetadata("withSideEffects.kt")
|
|
public void testWithSideEffects() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToSingleton/withSideEffects.kt");
|
|
}
|
|
|
|
@TestMetadata("withSideEffectsFromFileClass.kt")
|
|
public void testWithSideEffectsFromFileClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToSingleton/withSideEffectsFromFileClass.kt");
|
|
}
|
|
|
|
@TestMetadata("withSideEffectsToEnum.kt")
|
|
public void testWithSideEffectsToEnum() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToSingleton/withSideEffectsToEnum.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/delegatedProperty/delegateToThis")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class DelegateToThis extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInDelegateToThis() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/delegateToThis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("delegateToOuterThis.kt")
|
|
public void testDelegateToOuterThis() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToThis/delegateToOuterThis.kt");
|
|
}
|
|
|
|
@TestMetadata("delegateToThis.kt")
|
|
public void testDelegateToThis() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToThis/delegateToThis.kt");
|
|
}
|
|
|
|
@TestMetadata("delegateToThisByExtension.kt")
|
|
public void testDelegateToThisByExtension() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToThis/delegateToThisByExtension.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInLocal() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/local"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInOptimizedDelegatedProperties() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("kt48825.kt")
|
|
public void testKt48825() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/optimizedDelegatedProperties/kt48825.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInProvideDelegate() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("commonCaseForInference.kt")
|
|
public void testCommonCaseForInference() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/commonCaseForInference.kt");
|
|
}
|
|
|
|
@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("inferenceFromReceiver2.kt")
|
|
public void testInferenceFromReceiver2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/inferenceFromReceiver2.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("notNullAssertionInLocalDelegated.kt")
|
|
public void testNotNullAssertionInLocalDelegated() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.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("setValue.kt")
|
|
public void testSetValue() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegatedProperty/provideDelegate/setValue.kt");
|
|
}
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/delegation")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Delegation extends AbstractLightAnalysisModeTest {
|
|
@TestMetadata("doubleDelegationEqualsHashcode.kt")
|
|
public void ignoreDoubleDelegationEqualsHashcode() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegation/doubleDelegationEqualsHashcode.kt");
|
|
}
|
|
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInDelegation() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/delegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("byMiddleInterface.kt")
|
|
public void testByMiddleInterface() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegation/byMiddleInterface.kt");
|
|
}
|
|
|
|
@TestMetadata("computeIfAbsent.kt")
|
|
public void testComputeIfAbsent() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegation/computeIfAbsent.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("delegationDifferentModule2.kt")
|
|
public void testDelegationDifferentModule2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegation/delegationDifferentModule2.kt");
|
|
}
|
|
|
|
@TestMetadata("delegationToIntersectionType.kt")
|
|
public void testDelegationToIntersectionType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegation/delegationToIntersectionType.kt");
|
|
}
|
|
|
|
@TestMetadata("delegationToIntersectionType2.kt")
|
|
public void testDelegationToIntersectionType2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegation/delegationToIntersectionType2.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("genericFunctionInGenericInterface.kt")
|
|
public void testGenericFunctionInGenericInterface() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegation/genericFunctionInGenericInterface.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("ifWithCallableReferenceInLazy.kt")
|
|
public void testIfWithCallableReferenceInLazy() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegation/ifWithCallableReferenceInLazy.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("kt30102_comparable.kt")
|
|
public void testKt30102_comparable() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegation/kt30102_comparable.kt");
|
|
}
|
|
|
|
@TestMetadata("kt54654.kt")
|
|
public void testKt54654() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegation/kt54654.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("nestedNameClash.kt")
|
|
public void testNestedNameClash() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegation/nestedNameClash.kt");
|
|
}
|
|
|
|
@TestMetadata("nestedNameClash2.kt")
|
|
public void testNestedNameClash2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegation/nestedNameClash2.kt");
|
|
}
|
|
|
|
@TestMetadata("sealedClass.kt")
|
|
public void testSealedClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegation/sealedClass.kt");
|
|
}
|
|
|
|
@TestMetadata("simple.kt")
|
|
public void testSimple() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegation/simple.kt");
|
|
}
|
|
|
|
@TestMetadata("smartCastedDelegation.kt")
|
|
public void testSmartCastedDelegation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegation/smartCastedDelegation.kt");
|
|
}
|
|
|
|
@TestMetadata("valueClassImplementingJavaInterfaceWithDefault.kt")
|
|
public void testValueClassImplementingJavaInterfaceWithDefault() throws Exception {
|
|
runTest("compiler/testData/codegen/box/delegation/valueClassImplementingJavaInterfaceWithDefault.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInDeprecated() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/deprecated"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInDestructuringDeclInLambdaParam() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/destructuringDeclInLambdaParam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInDiagnostics() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/diagnostics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInFunctions() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/diagnostics/functions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, 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_IR, 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("kt47084_lambdaInDefaultArgument.kt")
|
|
public void testKt47084_lambdaInDefaultArgument() throws Exception {
|
|
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/kt47084_lambdaInDefaultArgument.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("recursiveCallInInlineLambda.kt")
|
|
public void testRecursiveCallInInlineLambda() throws Exception {
|
|
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambda.kt");
|
|
}
|
|
|
|
@TestMetadata("recursiveCallInInlineLambdaWithCapture.kt")
|
|
public void testRecursiveCallInInlineLambdaWithCapture() throws Exception {
|
|
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambdaWithCapture.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("tailrecWithExplicitCompanionObjectDispatcher.kt")
|
|
public void testTailrecWithExplicitCompanionObjectDispatcher() throws Exception {
|
|
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/tailrecWithExplicitCompanionObjectDispatcher.kt");
|
|
}
|
|
|
|
@TestMetadata("tailrecWithExplicitObjectDispatcher.kt")
|
|
public void testTailrecWithExplicitObjectDispatcher() throws Exception {
|
|
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/tailrecWithExplicitObjectDispatcher.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInVararg() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/diagnostics/vararg"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("kt4172.kt")
|
|
public void testKt4172() throws Exception {
|
|
runTest("compiler/testData/codegen/box/diagnostics/vararg/kt4172.kt");
|
|
}
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/differentDependencyVersion")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class DifferentDependencyVersion extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInDifferentDependencyVersion() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/differentDependencyVersion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("kt51194_java.kt")
|
|
public void testKt51194_java() throws Exception {
|
|
runTest("compiler/testData/codegen/box/differentDependencyVersion/kt51194_java.kt");
|
|
}
|
|
|
|
@TestMetadata("kt51194_javaAndKotlin.kt")
|
|
public void testKt51194_javaAndKotlin() throws Exception {
|
|
runTest("compiler/testData/codegen/box/differentDependencyVersion/kt51194_javaAndKotlin.kt");
|
|
}
|
|
|
|
@TestMetadata("kt51194_kotlin.kt")
|
|
public void testKt51194_kotlin() throws Exception {
|
|
runTest("compiler/testData/codegen/box/differentDependencyVersion/kt51194_kotlin.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInDirectInvokeOptimization() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/directInvokeOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("canary.kt")
|
|
public void testCanary() throws Exception {
|
|
runTest("compiler/testData/codegen/box/directInvokeOptimization/canary.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("kt53202.kt")
|
|
public void testKt53202() throws Exception {
|
|
runTest("compiler/testData/codegen/box/directInvokeOptimization/kt53202.kt");
|
|
}
|
|
|
|
@TestMetadata("kt53202_funLiteral.kt")
|
|
public void testKt53202_funLiteral() throws Exception {
|
|
runTest("compiler/testData/codegen/box/directInvokeOptimization/kt53202_funLiteral.kt");
|
|
}
|
|
|
|
@TestMetadata("kt53202_returns.kt")
|
|
public void testKt53202_returns() throws Exception {
|
|
runTest("compiler/testData/codegen/box/directInvokeOptimization/kt53202_returns.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInElvis() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/elvis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("kt24209.kt")
|
|
public void testKt24209() throws Exception {
|
|
runTest("compiler/testData/codegen/box/elvis/kt24209.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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, 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_IR, 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("bigEnum.kt")
|
|
public void testBigEnum() throws Exception {
|
|
runTest("compiler/testData/codegen/box/enum/bigEnum.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("enumEntries.kt")
|
|
public void testEnumEntries() throws Exception {
|
|
runTest("compiler/testData/codegen/box/enum/enumEntries.kt");
|
|
}
|
|
|
|
@TestMetadata("enumEntriesCompatibilityCheck.kt")
|
|
public void testEnumEntriesCompatibilityCheck() throws Exception {
|
|
runTest("compiler/testData/codegen/box/enum/enumEntriesCompatibilityCheck.kt");
|
|
}
|
|
|
|
@TestMetadata("enumEntriesFromJava.kt")
|
|
public void testEnumEntriesFromJava() throws Exception {
|
|
runTest("compiler/testData/codegen/box/enum/enumEntriesFromJava.kt");
|
|
}
|
|
|
|
@TestMetadata("enumEntriesInCompanion.kt")
|
|
public void testEnumEntriesInCompanion() throws Exception {
|
|
runTest("compiler/testData/codegen/box/enum/enumEntriesInCompanion.kt");
|
|
}
|
|
|
|
@TestMetadata("enumEntriesIntrinsicForJava.kt")
|
|
public void testEnumEntriesIntrinsicForJava() throws Exception {
|
|
runTest("compiler/testData/codegen/box/enum/enumEntriesIntrinsicForJava.kt");
|
|
}
|
|
|
|
@TestMetadata("enumEntriesIntrinsicMultipleEnums.kt")
|
|
public void testEnumEntriesIntrinsicMultipleEnums() throws Exception {
|
|
runTest("compiler/testData/codegen/box/enum/enumEntriesIntrinsicMultipleEnums.kt");
|
|
}
|
|
|
|
@TestMetadata("enumEntriesIntrinsicWithoutFeature.kt")
|
|
public void testEnumEntriesIntrinsicWithoutFeature() throws Exception {
|
|
runTest("compiler/testData/codegen/box/enum/enumEntriesIntrinsicWithoutFeature.kt");
|
|
}
|
|
|
|
@TestMetadata("enumEntriesMultimodule.kt")
|
|
public void testEnumEntriesMultimodule() throws Exception {
|
|
runTest("compiler/testData/codegen/box/enum/enumEntriesMultimodule.kt");
|
|
}
|
|
|
|
@TestMetadata("enumEntriesMultimoduleMultipleMappings.kt")
|
|
public void testEnumEntriesMultimoduleMultipleMappings() throws Exception {
|
|
runTest("compiler/testData/codegen/box/enum/enumEntriesMultimoduleMultipleMappings.kt");
|
|
}
|
|
|
|
@TestMetadata("enumEntriesMultimoduleMultipleMappingsForMultipleClassfiles.kt")
|
|
public void testEnumEntriesMultimoduleMultipleMappingsForMultipleClassfiles() throws Exception {
|
|
runTest("compiler/testData/codegen/box/enum/enumEntriesMultimoduleMultipleMappingsForMultipleClassfiles.kt");
|
|
}
|
|
|
|
@TestMetadata("enumEntriesMultimoduleNoMappings.kt")
|
|
public void testEnumEntriesMultimoduleNoMappings() throws Exception {
|
|
runTest("compiler/testData/codegen/box/enum/enumEntriesMultimoduleNoMappings.kt");
|
|
}
|
|
|
|
@TestMetadata("enumEntriesNameClashes.kt")
|
|
public void testEnumEntriesNameClashes() throws Exception {
|
|
runTest("compiler/testData/codegen/box/enum/enumEntriesNameClashes.kt");
|
|
}
|
|
|
|
@TestMetadata("enumEntryHashCode.kt")
|
|
public void testEnumEntryHashCode() throws Exception {
|
|
runTest("compiler/testData/codegen/box/enum/enumEntryHashCode.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("getEnumEntityByOrdinal.kt")
|
|
public void testGetEnumEntityByOrdinal() throws Exception {
|
|
runTest("compiler/testData/codegen/box/enum/getEnumEntityByOrdinal.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("javaEnumValueOf.kt")
|
|
public void testJavaEnumValueOf() throws Exception {
|
|
runTest("compiler/testData/codegen/box/enum/javaEnumValueOf.kt");
|
|
}
|
|
|
|
@TestMetadata("javaEnumValueOf2.kt")
|
|
public void testJavaEnumValueOf2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/enum/javaEnumValueOf2.kt");
|
|
}
|
|
|
|
@TestMetadata("javaEnumValues.kt")
|
|
public void testJavaEnumValues() throws Exception {
|
|
runTest("compiler/testData/codegen/box/enum/javaEnumValues.kt");
|
|
}
|
|
|
|
@TestMetadata("javaEnumValues2.kt")
|
|
public void testJavaEnumValues2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/enum/javaEnumValues2.kt");
|
|
}
|
|
|
|
@TestMetadata("javaEnumValues3.kt")
|
|
public void testJavaEnumValues3() throws Exception {
|
|
runTest("compiler/testData/codegen/box/enum/javaEnumValues3.kt");
|
|
}
|
|
|
|
@TestMetadata("k54079.kt")
|
|
public void testK54079() throws Exception {
|
|
runTest("compiler/testData/codegen/box/enum/k54079.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("ordinal.kt")
|
|
public void testOrdinal() throws Exception {
|
|
runTest("compiler/testData/codegen/box/enum/ordinal.kt");
|
|
}
|
|
|
|
@TestMetadata("ordinalsWithEnumEntitiesOverrides.kt")
|
|
public void testOrdinalsWithEnumEntitiesOverrides() throws Exception {
|
|
runTest("compiler/testData/codegen/box/enum/ordinalsWithEnumEntitiesOverrides.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInDefaultCtor() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/enum/defaultCtor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("noPrimaryConstructor.kt")
|
|
public void testNoPrimaryConstructor() throws Exception {
|
|
runTest("compiler/testData/codegen/box/enum/defaultCtor/noPrimaryConstructor.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/equivalentCalls")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class EquivalentCalls extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInEquivalentCalls() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/equivalentCalls"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("localEquivalentWins.kt")
|
|
public void testLocalEquivalentWins() throws Exception {
|
|
runTest("compiler/testData/codegen/box/equivalentCalls/localEquivalentWins.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInEvaluate() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/evaluate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInExclExcl() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/exclExcl"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("genericNull.kt")
|
|
public void testGenericNull() throws Exception {
|
|
runTest("compiler/testData/codegen/box/exclExcl/genericNull.kt");
|
|
}
|
|
|
|
@TestMetadata("kt48440.kt")
|
|
public void testKt48440() throws Exception {
|
|
runTest("compiler/testData/codegen/box/exclExcl/kt48440.kt");
|
|
}
|
|
|
|
@TestMetadata("kt48440_2.kt")
|
|
public void testKt48440_2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/exclExcl/kt48440_2.kt");
|
|
}
|
|
|
|
@TestMetadata("primitive.kt")
|
|
public void testPrimitive() throws Exception {
|
|
runTest("compiler/testData/codegen/box/exclExcl/primitive.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/extensionClasses")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class ExtensionClasses extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInExtensionClasses() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/extensionClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("constructors.kt")
|
|
public void testConstructors() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionClasses/constructors.kt");
|
|
}
|
|
|
|
@TestMetadata("contextualPrimaryConstructorWithParams.kt")
|
|
public void testContextualPrimaryConstructorWithParams() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionClasses/contextualPrimaryConstructorWithParams.kt");
|
|
}
|
|
|
|
@TestMetadata("edouble.kt")
|
|
public void testEdouble() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionClasses/edouble.kt");
|
|
}
|
|
|
|
@TestMetadata("genericCollection.kt")
|
|
public void testGenericCollection() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionClasses/genericCollection.kt");
|
|
}
|
|
|
|
@TestMetadata("generics.kt")
|
|
public void testGenerics() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionClasses/generics.kt");
|
|
}
|
|
|
|
@TestMetadata("lambdaReceiverFromContext.kt")
|
|
public void testLambdaReceiverFromContext() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionClasses/lambdaReceiverFromContext.kt");
|
|
}
|
|
|
|
@TestMetadata("multiple.kt")
|
|
public void testMultiple() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionClasses/multiple.kt");
|
|
}
|
|
|
|
@TestMetadata("noRedeclaration.kt")
|
|
public void testNoRedeclaration() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionClasses/noRedeclaration.kt");
|
|
}
|
|
|
|
@TestMetadata("propertyWithContext.kt")
|
|
public void testPropertyWithContext() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionClasses/propertyWithContext.kt");
|
|
}
|
|
|
|
@TestMetadata("simple.kt")
|
|
public void testSimple() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionClasses/simple.kt");
|
|
}
|
|
|
|
@TestMetadata("typealiasForContextualClass.kt")
|
|
public void testTypealiasForContextualClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionClasses/typealiasForContextualClass.kt");
|
|
}
|
|
|
|
@TestMetadata("useFromAnotherModule.kt")
|
|
public void testUseFromAnotherModule() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionClasses/useFromAnotherModule.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInExtensionFunctions() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/extensionFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("extensionFunctionAsSupertype.kt")
|
|
public void testExtensionFunctionAsSupertype() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/extensionFunctionAsSupertype.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/extensionFunctions/contextReceivers")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class ContextReceivers extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInContextReceivers() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/extensionFunctions/contextReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("arrayAccessCompositeOperators.kt")
|
|
public void testArrayAccessCompositeOperators() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/arrayAccessCompositeOperators.kt");
|
|
}
|
|
|
|
@TestMetadata("arrayAccessOperators.kt")
|
|
public void testArrayAccessOperators() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/arrayAccessOperators.kt");
|
|
}
|
|
|
|
@TestMetadata("compoundAssignmentOperators.kt")
|
|
public void testCompoundAssignmentOperators() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/compoundAssignmentOperators.kt");
|
|
}
|
|
|
|
@TestMetadata("contextAndExtensionLambdaIndy.kt")
|
|
public void testContextAndExtensionLambdaIndy() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/contextAndExtensionLambdaIndy.kt");
|
|
}
|
|
|
|
@TestMetadata("contextAndExtensionSameName.kt")
|
|
public void testContextAndExtensionSameName() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/contextAndExtensionSameName.kt");
|
|
}
|
|
|
|
@TestMetadata("contextualFunctionConversion.kt")
|
|
public void testContextualFunctionConversion() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/contextualFunctionConversion.kt");
|
|
}
|
|
|
|
@TestMetadata("contextualInlineCall.kt")
|
|
public void testContextualInlineCall() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/contextualInlineCall.kt");
|
|
}
|
|
|
|
@TestMetadata("delegatedPropertiesOperators.kt")
|
|
public void testDelegatedPropertiesOperators() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/delegatedPropertiesOperators.kt");
|
|
}
|
|
|
|
@TestMetadata("inferGenericPropertyType.kt")
|
|
public void testInferGenericPropertyType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/inferGenericPropertyType.kt");
|
|
}
|
|
|
|
@TestMetadata("iteratorOperator.kt")
|
|
public void testIteratorOperator() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/iteratorOperator.kt");
|
|
}
|
|
|
|
@TestMetadata("kt51247.kt")
|
|
public void testKt51247() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt51247.kt");
|
|
}
|
|
|
|
@TestMetadata("kt51277.kt")
|
|
public void testKt51277() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt51277.kt");
|
|
}
|
|
|
|
@TestMetadata("kt51284.kt")
|
|
public void testKt51284() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt51284.kt");
|
|
}
|
|
|
|
@TestMetadata("kt51290.kt")
|
|
public void testKt51290() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt51290.kt");
|
|
}
|
|
|
|
@TestMetadata("kt51397.kt")
|
|
public void testKt51397() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt51397.kt");
|
|
}
|
|
|
|
@TestMetadata("kt51475.kt")
|
|
public void testKt51475() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt51475.kt");
|
|
}
|
|
|
|
@TestMetadata("kt51863.kt")
|
|
public void testKt51863() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt51863.kt");
|
|
}
|
|
|
|
@TestMetadata("kt51951.kt")
|
|
public void testKt51951() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt51951.kt");
|
|
}
|
|
|
|
@TestMetadata("kt52207.kt")
|
|
public void testKt52207() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt52207.kt");
|
|
}
|
|
|
|
@TestMetadata("kt52213.kt")
|
|
public void testKt52213() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt52213.kt");
|
|
}
|
|
|
|
@TestMetadata("kt52373.kt")
|
|
public void testKt52373() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt52373.kt");
|
|
}
|
|
|
|
@TestMetadata("kt52459.kt")
|
|
public void testKt52459() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt52459.kt");
|
|
}
|
|
|
|
@TestMetadata("kt53551.kt")
|
|
public void testKt53551() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt53551.kt");
|
|
}
|
|
|
|
@TestMetadata("kt53846.kt")
|
|
public void testKt53846() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt53846.kt");
|
|
}
|
|
|
|
@TestMetadata("kt54357.kt")
|
|
public void testKt54357() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt54357.kt");
|
|
}
|
|
|
|
@TestMetadata("kt56508.kt")
|
|
public void testKt56508() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt56508.kt");
|
|
}
|
|
|
|
@TestMetadata("kt58476.kt")
|
|
public void testKt58476() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt58476.kt");
|
|
}
|
|
|
|
@TestMetadata("kt63430.kt")
|
|
public void testKt63430() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/kt63430.kt");
|
|
}
|
|
|
|
@TestMetadata("overload.kt")
|
|
public void testOverload() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/overload.kt");
|
|
}
|
|
|
|
@TestMetadata("overloading.kt")
|
|
public void testOverloading() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/overloading.kt");
|
|
}
|
|
|
|
@TestMetadata("parameterizedContextualLambda.kt")
|
|
public void testParameterizedContextualLambda() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/parameterizedContextualLambda.kt");
|
|
}
|
|
|
|
@TestMetadata("passingLambdaToContextualParam.kt")
|
|
public void testPassingLambdaToContextualParam() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/passingLambdaToContextualParam.kt");
|
|
}
|
|
|
|
@TestMetadata("plusAssign.kt")
|
|
public void testPlusAssign() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/plusAssign.kt");
|
|
}
|
|
|
|
@TestMetadata("plusMatrix.kt")
|
|
public void testPlusMatrix() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/plusMatrix.kt");
|
|
}
|
|
|
|
@TestMetadata("propertyCompoundAssignment.kt")
|
|
public void testPropertyCompoundAssignment() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/propertyCompoundAssignment.kt");
|
|
}
|
|
|
|
@TestMetadata("receiversOrder.kt")
|
|
public void testReceiversOrder() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/receiversOrder.kt");
|
|
}
|
|
|
|
@TestMetadata("simpleCall.kt")
|
|
public void testSimpleCall() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/simpleCall.kt");
|
|
}
|
|
|
|
@TestMetadata("substitutedContextReceivers.kt")
|
|
public void testSubstitutedContextReceivers() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/substitutedContextReceivers.kt");
|
|
}
|
|
|
|
@TestMetadata("superClassAndSubClassWithContextReceiver.kt")
|
|
public void testSuperClassAndSubClassWithContextReceiver() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/superClassAndSubClassWithContextReceiver.kt");
|
|
}
|
|
|
|
@TestMetadata("superClassAndSubClassWithContextReceiverSubstituted.kt")
|
|
public void testSuperClassAndSubClassWithContextReceiverSubstituted() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/superClassAndSubClassWithContextReceiverSubstituted.kt");
|
|
}
|
|
|
|
@TestMetadata("suspendContextualWithExtension.kt")
|
|
public void testSuspendContextualWithExtension() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/suspendContextualWithExtension.kt");
|
|
}
|
|
|
|
@TestMetadata("this.kt")
|
|
public void testThis() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/this.kt");
|
|
}
|
|
|
|
@TestMetadata("unaryOperators.kt")
|
|
public void testUnaryOperators() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/unaryOperators.kt");
|
|
}
|
|
|
|
@TestMetadata("useContextReceiverInPropertyInitializer.kt")
|
|
public void testUseContextReceiverInPropertyInitializer() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/useContextReceiverInPropertyInitializer.kt");
|
|
}
|
|
|
|
@TestMetadata("useFromAnotherModule.kt")
|
|
public void testUseFromAnotherModule() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/useFromAnotherModule.kt");
|
|
}
|
|
|
|
@TestMetadata("useFromAnotherModuleSuspending.kt")
|
|
public void testUseFromAnotherModuleSuspending() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/useFromAnotherModuleSuspending.kt");
|
|
}
|
|
|
|
@TestMetadata("useFromAnotherModuleWithDefaultParameterValues.kt")
|
|
public void testUseFromAnotherModuleWithDefaultParameterValues() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/useFromAnotherModuleWithDefaultParameterValues.kt");
|
|
}
|
|
|
|
@TestMetadata("withTwoContextReceivers.kt")
|
|
public void testWithTwoContextReceivers() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/withTwoContextReceivers.kt");
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/extensionFunctions/contextReceivers/fromKEEP")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class FromKEEP extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInFromKEEP() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/extensionFunctions/contextReceivers/fromKEEP"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("canvas.kt")
|
|
public void testCanvas() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/fromKEEP/canvas.kt");
|
|
}
|
|
|
|
@TestMetadata("compareTo.kt")
|
|
public void testCompareTo() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/fromKEEP/compareTo.kt");
|
|
}
|
|
|
|
@TestMetadata("decimateEveryEvenThird.kt")
|
|
public void testDecimateEveryEvenThird() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/fromKEEP/decimateEveryEvenThird.kt");
|
|
}
|
|
|
|
@TestMetadata("dp.kt")
|
|
public void testDp() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/fromKEEP/dp.kt");
|
|
}
|
|
|
|
@TestMetadata("functionalType.kt")
|
|
public void testFunctionalType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/fromKEEP/functionalType.kt");
|
|
}
|
|
|
|
@TestMetadata("monoidSum.kt")
|
|
public void testMonoidSum() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/fromKEEP/monoidSum.kt");
|
|
}
|
|
|
|
@TestMetadata("structuredConcurrency.kt")
|
|
public void testStructuredConcurrency() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionFunctions/contextReceivers/fromKEEP/structuredConcurrency.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_IR, 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_IR, true);
|
|
}
|
|
|
|
@TestMetadata("genericContextOverride.kt")
|
|
public void testGenericContextOverride() throws Exception {
|
|
runTest("compiler/testData/codegen/box/extensionProperties/genericContextOverride.kt");
|
|
}
|
|
|
|
@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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInExternal() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/external"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInFakeOverride() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fakeOverride"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("complexOverriddensInLazyFunctions.kt")
|
|
public void testComplexOverriddensInLazyFunctions() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fakeOverride/complexOverriddensInLazyFunctions.kt");
|
|
}
|
|
|
|
@TestMetadata("diamondFunction.kt")
|
|
public void testDiamondFunction() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fakeOverride/diamondFunction.kt");
|
|
}
|
|
|
|
@TestMetadata("fakeOverrideInAnonymousObject.kt")
|
|
public void testFakeOverrideInAnonymousObject() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fakeOverride/fakeOverrideInAnonymousObject.kt");
|
|
}
|
|
|
|
@TestMetadata("function.kt")
|
|
public void testFunction() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fakeOverride/function.kt");
|
|
}
|
|
|
|
@TestMetadata("internalFromFriendModule.kt")
|
|
public void testInternalFromFriendModule() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fakeOverride/internalFromFriendModule.kt");
|
|
}
|
|
|
|
@TestMetadata("intersectionInLocal.kt")
|
|
public void testIntersectionInLocal() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fakeOverride/intersectionInLocal.kt");
|
|
}
|
|
|
|
@TestMetadata("intersectionOverrideBetweenValAndVar.kt")
|
|
public void testIntersectionOverrideBetweenValAndVar() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fakeOverride/intersectionOverrideBetweenValAndVar.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49371.kt")
|
|
public void testKt49371() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fakeOverride/kt49371.kt");
|
|
}
|
|
|
|
@TestMetadata("methodOfAnyFromInterface.kt")
|
|
public void testMethodOfAnyFromInterface() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fakeOverride/methodOfAnyFromInterface.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("substitutionInLocal.kt")
|
|
public void testSubstitutionInLocal() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fakeOverride/substitutionInLocal.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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInFieldRename() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fieldRename"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("jvmFieldNoClash1.kt")
|
|
public void testJvmFieldNoClash1() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fieldRename/jvmFieldNoClash1.kt");
|
|
}
|
|
|
|
@TestMetadata("jvmFieldNoClash2.kt")
|
|
public void testJvmFieldNoClash2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fieldRename/jvmFieldNoClash2.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/fileCheck")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class FileCheck extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInFileCheck() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/fileCheck/kt53261")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Kt53261 extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInKt53261() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/kt53261"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class StringConcatenationTypeNarrowing extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInStringConcatenationTypeNarrowing() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("kt53119_side_effect.kt")
|
|
public void testKt53119_side_effect() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInFinally() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/finally"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("returnNullFromInlined.kt")
|
|
public void testReturnNullFromInlined() throws Exception {
|
|
runTest("compiler/testData/codegen/box/finally/returnNullFromInlined.kt");
|
|
}
|
|
|
|
@TestMetadata("someStuff.kt")
|
|
public void testSomeStuff() throws Exception {
|
|
runTest("compiler/testData/codegen/box/finally/someStuff.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("callableReferenceConversionTopLevel.kt")
|
|
public void ignoreCallableReferenceConversionTopLevel() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/callableReferenceConversionTopLevel.kt");
|
|
}
|
|
|
|
@TestMetadata("emptyIntersectionWarning.kt")
|
|
public void ignoreEmptyIntersectionWarning() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/emptyIntersectionWarning.kt");
|
|
}
|
|
|
|
@TestMetadata("selectingLambdas.kt")
|
|
public void ignoreSelectingLambdas() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/selectingLambdas.kt");
|
|
}
|
|
|
|
@TestMetadata("typeParameterInClashingAccessor.kt")
|
|
public void ignoreTypeParameterInClashingAccessor() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/typeParameterInClashingAccessor.kt");
|
|
}
|
|
|
|
@TestMetadata("unqualifiedEnum.kt")
|
|
public void ignoreUnqualifiedEnum() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/unqualifiedEnum.kt");
|
|
}
|
|
|
|
@TestMetadata("vararg.kt")
|
|
public void ignoreVararg() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/vararg.kt");
|
|
}
|
|
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInFir() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("anonymousOverrideWithDefaultInLocalOverridden.kt")
|
|
public void testAnonymousOverrideWithDefaultInLocalOverridden() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInLocalOverridden.kt");
|
|
}
|
|
|
|
@TestMetadata("anonymousOverrideWithDefaultInOverridden.kt")
|
|
public void testAnonymousOverrideWithDefaultInOverridden() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInOverridden.kt");
|
|
}
|
|
|
|
@TestMetadata("assertEqualsFakeOverride.kt")
|
|
public void testAssertEqualsFakeOverride() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/assertEqualsFakeOverride.kt");
|
|
}
|
|
|
|
@TestMetadata("callableReferenceToJavaField.kt")
|
|
public void testCallableReferenceToJavaField() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/callableReferenceToJavaField.kt");
|
|
}
|
|
|
|
@TestMetadata("callableReferenceToStaticFunction.kt")
|
|
public void testCallableReferenceToStaticFunction() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/callableReferenceToStaticFunction.kt");
|
|
}
|
|
|
|
@TestMetadata("cannotCastToFunctionInIf.kt")
|
|
public void testCannotCastToFunctionInIf() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/cannotCastToFunctionInIf.kt");
|
|
}
|
|
|
|
@TestMetadata("capitalizationNotEnhanced.kt")
|
|
public void testCapitalizationNotEnhanced() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/capitalizationNotEnhanced.kt");
|
|
}
|
|
|
|
@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("ColorValuePanel.kt")
|
|
public void testColorValuePanel() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/ColorValuePanel.kt");
|
|
}
|
|
|
|
@TestMetadata("complexAnnotations.kt")
|
|
public void testComplexAnnotations() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/complexAnnotations.kt");
|
|
}
|
|
|
|
@TestMetadata("ConstValAccess.kt")
|
|
public void testConstValAccess() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/ConstValAccess.kt");
|
|
}
|
|
|
|
@TestMetadata("contextReceiverToExtensionReceiver.kt")
|
|
public void testContextReceiverToExtensionReceiver() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/contextReceiverToExtensionReceiver.kt");
|
|
}
|
|
|
|
@TestMetadata("CustomHashSetSize.kt")
|
|
public void testCustomHashSetSize() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/CustomHashSetSize.kt");
|
|
}
|
|
|
|
@TestMetadata("CustomThrowableMessage.kt")
|
|
public void testCustomThrowableMessage() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/CustomThrowableMessage.kt");
|
|
}
|
|
|
|
@TestMetadata("delegatedAndDataTogether.kt")
|
|
public void testDelegatedAndDataTogether() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/delegatedAndDataTogether.kt");
|
|
}
|
|
|
|
@TestMetadata("deserializedOptInDeprecated.kt")
|
|
public void testDeserializedOptInDeprecated() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/deserializedOptInDeprecated.kt");
|
|
}
|
|
|
|
@TestMetadata("differentSinceKotlin.kt")
|
|
public void testDifferentSinceKotlin() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/differentSinceKotlin.kt");
|
|
}
|
|
|
|
@TestMetadata("enumEntryInTypeJavaAnnotation.kt")
|
|
public void testEnumEntryInTypeJavaAnnotation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/enumEntryInTypeJavaAnnotation.kt");
|
|
}
|
|
|
|
@TestMetadata("ExtensionAlias.kt")
|
|
public void testExtensionAlias() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/ExtensionAlias.kt");
|
|
}
|
|
|
|
@TestMetadata("externalInDependency.kt")
|
|
public void testExternalInDependency() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/externalInDependency.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("findAnnotationOnDefaultMethodParameter.kt")
|
|
public void testFindAnnotationOnDefaultMethodParameter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/findAnnotationOnDefaultMethodParameter.kt");
|
|
}
|
|
|
|
@TestMetadata("Fir2IrClassifierStorage.kt")
|
|
public void testFir2IrClassifierStorage() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/Fir2IrClassifierStorage.kt");
|
|
}
|
|
|
|
@TestMetadata("flexibleIntegerLiterals.kt")
|
|
public void testFlexibleIntegerLiterals() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/flexibleIntegerLiterals.kt");
|
|
}
|
|
|
|
@TestMetadata("flexibleStaticConstantFromJava.kt")
|
|
public void testFlexibleStaticConstantFromJava() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/flexibleStaticConstantFromJava.kt");
|
|
}
|
|
|
|
@TestMetadata("functionsDifferInTypeParameterBounds.kt")
|
|
public void testFunctionsDifferInTypeParameterBounds() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/functionsDifferInTypeParameterBounds.kt");
|
|
}
|
|
|
|
@TestMetadata("functionsDifferInTypeParameterBounds2.kt")
|
|
public void testFunctionsDifferInTypeParameterBounds2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/functionsDifferInTypeParameterBounds2.kt");
|
|
}
|
|
|
|
@TestMetadata("functionsDifferInTypeParameterBounds3.kt")
|
|
public void testFunctionsDifferInTypeParameterBounds3() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/functionsDifferInTypeParameterBounds3.kt");
|
|
}
|
|
|
|
@TestMetadata("getOnNullableTypeAlias.kt")
|
|
public void testGetOnNullableTypeAlias() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/getOnNullableTypeAlias.kt");
|
|
}
|
|
|
|
@TestMetadata("implicitNothingInDelegate.kt")
|
|
public void testImplicitNothingInDelegate() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/implicitNothingInDelegate.kt");
|
|
}
|
|
|
|
@TestMetadata("incorrectBytecodeWithEnhancedNullability.kt")
|
|
public void testIncorrectBytecodeWithEnhancedNullability() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/incorrectBytecodeWithEnhancedNullability.kt");
|
|
}
|
|
|
|
@TestMetadata("internalPotentialOverride.kt")
|
|
public void testInternalPotentialOverride() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/internalPotentialOverride.kt");
|
|
}
|
|
|
|
@TestMetadata("intersectionWithCapturedTypeWithRawUpperBound.kt")
|
|
public void testIntersectionWithCapturedTypeWithRawUpperBound() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/intersectionWithCapturedTypeWithRawUpperBound.kt");
|
|
}
|
|
|
|
@TestMetadata("IrBuiltIns.kt")
|
|
public void testIrBuiltIns() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/IrBuiltIns.kt");
|
|
}
|
|
|
|
@TestMetadata("JKEnumConstant.kt")
|
|
public void testJKEnumConstant() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/JKEnumConstant.kt");
|
|
}
|
|
|
|
@TestMetadata("javaAnnotationWithDefaultValueForenumArray.kt")
|
|
public void testJavaAnnotationWithDefaultValueForenumArray() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/javaAnnotationWithDefaultValueForenumArray.kt");
|
|
}
|
|
|
|
@TestMetadata("jvmFieldInLocalClass.kt")
|
|
public void testJvmFieldInLocalClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/jvmFieldInLocalClass.kt");
|
|
}
|
|
|
|
@TestMetadata("KotlinDocumentationProvider.kt")
|
|
public void testKotlinDocumentationProvider() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/KotlinDocumentationProvider.kt");
|
|
}
|
|
|
|
@TestMetadata("kt61856.kt")
|
|
public void testKt61856() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/kt61856.kt");
|
|
}
|
|
|
|
@TestMetadata("linkViaSignatures.kt")
|
|
public void testLinkViaSignatures() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/linkViaSignatures.kt");
|
|
}
|
|
|
|
@TestMetadata("listAssignmentInWhen.kt")
|
|
public void testListAssignmentInWhen() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/listAssignmentInWhen.kt");
|
|
}
|
|
|
|
@TestMetadata("localInvokeExtension.kt")
|
|
public void testLocalInvokeExtension() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/localInvokeExtension.kt");
|
|
}
|
|
|
|
@TestMetadata("localOverrideWithDefaultInLocalOverridden.kt")
|
|
public void testLocalOverrideWithDefaultInLocalOverridden() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInLocalOverridden.kt");
|
|
}
|
|
|
|
@TestMetadata("localOverrideWithDefaultInOverridden.kt")
|
|
public void testLocalOverrideWithDefaultInOverridden() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInOverridden.kt");
|
|
}
|
|
|
|
@TestMetadata("LookupTags.kt")
|
|
public void testLookupTags() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/LookupTags.kt");
|
|
}
|
|
|
|
@TestMetadata("manyImplFromOneJavaInterfaceWithDelegation.kt")
|
|
public void testManyImplFromOneJavaInterfaceWithDelegation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/manyImplFromOneJavaInterfaceWithDelegation.kt");
|
|
}
|
|
|
|
@TestMetadata("manyImplFromOneJavaInterfaceWithDelegation2.kt")
|
|
public void testManyImplFromOneJavaInterfaceWithDelegation2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/manyImplFromOneJavaInterfaceWithDelegation2.kt");
|
|
}
|
|
|
|
@TestMetadata("Mockito.kt")
|
|
public void testMockito() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/Mockito.kt");
|
|
}
|
|
|
|
@TestMetadata("NameHighlighter.kt")
|
|
public void testNameHighlighter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/NameHighlighter.kt");
|
|
}
|
|
|
|
@TestMetadata("namedArgumentOnTypeAnnotation.kt")
|
|
public void testNamedArgumentOnTypeAnnotation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/namedArgumentOnTypeAnnotation.kt");
|
|
}
|
|
|
|
@TestMetadata("nestedClassTypeParameterDeserialization.kt")
|
|
public void testNestedClassTypeParameterDeserialization() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/nestedClassTypeParameterDeserialization.kt");
|
|
}
|
|
|
|
@TestMetadata("noInfer.kt")
|
|
public void testNoInfer() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/noInfer.kt");
|
|
}
|
|
|
|
@TestMetadata("noSymbolForIntRangeIterator.kt")
|
|
public void testNoSymbolForIntRangeIterator() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/noSymbolForIntRangeIterator.kt");
|
|
}
|
|
|
|
@TestMetadata("notFoundClasses.kt")
|
|
public void testNotFoundClasses() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/notFoundClasses.kt");
|
|
}
|
|
|
|
@TestMetadata("publicMethodCallViaPackagePrivateCommon.kt")
|
|
public void testPublicMethodCallViaPackagePrivateCommon() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/publicMethodCallViaPackagePrivateCommon.kt");
|
|
}
|
|
|
|
@TestMetadata("SamWithReceiverMavenProjectImportHandler.kt")
|
|
public void testSamWithReceiverMavenProjectImportHandler() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/SamWithReceiverMavenProjectImportHandler.kt");
|
|
}
|
|
|
|
@TestMetadata("smartCastToInvisibleClassMember.kt")
|
|
public void testSmartCastToInvisibleClassMember() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.kt");
|
|
}
|
|
|
|
@TestMetadata("StackOverflowInAnnotationLoader.kt")
|
|
public void testStackOverflowInAnnotationLoader() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/StackOverflowInAnnotationLoader.kt");
|
|
}
|
|
|
|
@TestMetadata("starProjectionLambdaNullReturn.kt")
|
|
public void testStarProjectionLambdaNullReturn() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/starProjectionLambdaNullReturn.kt");
|
|
}
|
|
|
|
@TestMetadata("staticImportFromEnum.kt")
|
|
public void testStaticImportFromEnum() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/staticImportFromEnum.kt");
|
|
}
|
|
|
|
@TestMetadata("staticImportFromEnumJava.kt")
|
|
public void testStaticImportFromEnumJava() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/staticImportFromEnumJava.kt");
|
|
}
|
|
|
|
@TestMetadata("staticImportFromObject.kt")
|
|
public void testStaticImportFromObject() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/staticImportFromObject.kt");
|
|
}
|
|
|
|
@TestMetadata("staticImportViaInheritance.kt")
|
|
public void testStaticImportViaInheritance() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/staticImportViaInheritance.kt");
|
|
}
|
|
|
|
@TestMetadata("suppressedInvisibleReferenceQualifier.kt")
|
|
public void testSuppressedInvisibleReferenceQualifier() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/suppressedInvisibleReferenceQualifier.kt");
|
|
}
|
|
|
|
@TestMetadata("SuspendExtension.kt")
|
|
public void testSuspendExtension() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/SuspendExtension.kt");
|
|
}
|
|
|
|
@TestMetadata("SuspendFunctionReference.kt")
|
|
public void testSuspendFunctionReference() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/SuspendFunctionReference.kt");
|
|
}
|
|
|
|
@TestMetadata("syntheticPropertyThroughJava.kt")
|
|
public void testSyntheticPropertyThroughJava() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/syntheticPropertyThroughJava.kt");
|
|
}
|
|
|
|
@TestMetadata("syntheticPropertyThroughJavaMultiModule.kt")
|
|
public void testSyntheticPropertyThroughJavaMultiModule() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/syntheticPropertyThroughJavaMultiModule.kt");
|
|
}
|
|
|
|
@TestMetadata("syntheticPropertyThroughJavaWithSetter.kt")
|
|
public void testSyntheticPropertyThroughJavaWithSetter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/syntheticPropertyThroughJavaWithSetter.kt");
|
|
}
|
|
|
|
@TestMetadata("toLong.kt")
|
|
public void testToLong() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/toLong.kt");
|
|
}
|
|
|
|
@TestMetadata("TypeParameterInNestedClass.kt")
|
|
public void testTypeParameterInNestedClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/TypeParameterInNestedClass.kt");
|
|
}
|
|
|
|
@TestMetadata("TypeParameterInNestedClass2.kt")
|
|
public void testTypeParameterInNestedClass2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/fir/TypeParameterInNestedClass2.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInFullJdk() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fullJdk"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInNative() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fullJdk/native"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInRegressions() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fullJdk/regressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInFunInterface() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/funInterface"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("funInterfaceTypealias.kt")
|
|
public void testFunInterfaceTypealias() throws Exception {
|
|
runTest("compiler/testData/codegen/box/funInterface/funInterfaceTypealias.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("kt41670.kt")
|
|
public void testKt41670() throws Exception {
|
|
runTest("compiler/testData/codegen/box/funInterface/kt41670.kt");
|
|
}
|
|
|
|
@TestMetadata("kt44827_funInterface.kt")
|
|
public void testKt44827_funInterface() throws Exception {
|
|
runTest("compiler/testData/codegen/box/funInterface/kt44827_funInterface.kt");
|
|
}
|
|
|
|
@TestMetadata("kt45444_privateFunInterface.kt")
|
|
public void testKt45444_privateFunInterface() throws Exception {
|
|
runTest("compiler/testData/codegen/box/funInterface/kt45444_privateFunInterface.kt");
|
|
}
|
|
|
|
@TestMetadata("kt46512_indyFunInterfaceOverCallableReference.kt")
|
|
public void testKt46512_indyFunInterfaceOverCallableReference() throws Exception {
|
|
runTest("compiler/testData/codegen/box/funInterface/kt46512_indyFunInterfaceOverCallableReference.kt");
|
|
}
|
|
|
|
@TestMetadata("kt46908_functionSupertype.kt")
|
|
public void testKt46908_functionSupertype() throws Exception {
|
|
runTest("compiler/testData/codegen/box/funInterface/kt46908_functionSupertype.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInEquality() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/funInterface/equality"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInFunctions() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/functions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("delegatedPropertyWithMultipleOverriddens_generics.kt")
|
|
public void testDelegatedPropertyWithMultipleOverriddens_generics() throws Exception {
|
|
runTest("compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_generics.kt");
|
|
}
|
|
|
|
@TestMetadata("delegatedPropertyWithMultipleOverriddens_noGenerics.kt")
|
|
public void testDelegatedPropertyWithMultipleOverriddens_noGenerics() throws Exception {
|
|
runTest("compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_noGenerics.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("kt48989.kt")
|
|
public void testKt48989() throws Exception {
|
|
runTest("compiler/testData/codegen/box/functions/kt48989.kt");
|
|
}
|
|
|
|
@TestMetadata("kt58825_arrayOverloads.kt")
|
|
public void testKt58825_arrayOverloads() throws Exception {
|
|
runTest("compiler/testData/codegen/box/functions/kt58825_arrayOverloads.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("overloadByInterfaceType.kt")
|
|
public void testOverloadByInterfaceType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/functions/overloadByInterfaceType.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInBigArity() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/functions/bigArity"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInFunctionExpression() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/functions/functionExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInInvoke() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/functions/invoke"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInLocalFunctions() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/functions/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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/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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInIeee754() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ieee754"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("anyCastToPrimitiveCompareTo1.kt")
|
|
public void testAnyCastToPrimitiveCompareTo1() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ieee754/anyCastToPrimitiveCompareTo1.kt");
|
|
}
|
|
|
|
@TestMetadata("anyCastToPrimitiveCompareTo2.kt")
|
|
public void testAnyCastToPrimitiveCompareTo2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ieee754/anyCastToPrimitiveCompareTo2.kt");
|
|
}
|
|
|
|
@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("kt48648_genericField.kt")
|
|
public void testKt48648_genericField() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ieee754/kt48648_genericField.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInIncrement() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/increment"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInInference() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("approximateNonTopLevelCapturedTypes.kt")
|
|
public void testApproximateNonTopLevelCapturedTypes() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inference/approximateNonTopLevelCapturedTypes.kt");
|
|
}
|
|
|
|
@TestMetadata("builderAndDelegateInference.kt")
|
|
public void testBuilderAndDelegateInference() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inference/builderAndDelegateInference.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("builderInferenceWithAnnotation.kt")
|
|
public void testBuilderInferenceWithAnnotation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inference/builderInferenceWithAnnotation.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("intersectionWithInvisibleComponent.kt")
|
|
public void testIntersectionWithInvisibleComponent() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inference/intersectionWithInvisibleComponent.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("kt45118.kt")
|
|
public void testKt45118() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inference/kt45118.kt");
|
|
}
|
|
|
|
@TestMetadata("kt47316.kt")
|
|
public void testKt47316() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inference/kt47316.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49838.kt")
|
|
public void testKt49838() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inference/kt49838.kt");
|
|
}
|
|
|
|
@TestMetadata("kt51040.kt")
|
|
public void testKt51040() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inference/kt51040.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("overrideDefaultProperty.kt")
|
|
public void testOverrideDefaultProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inference/overrideDefaultProperty.kt");
|
|
}
|
|
|
|
@TestMetadata("overrideGenericDefaultMethod.kt")
|
|
public void testOverrideGenericDefaultMethod() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inference/overrideGenericDefaultMethod.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInBuilderInference() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inference/builderInference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("inferFromExpectedType.kt")
|
|
public void testInferFromExpectedType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inference/builderInference/inferFromExpectedType.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("kt48633.kt")
|
|
public void testKt48633() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inference/builderInference/kt48633.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49887.kt")
|
|
public void testKt49887() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inference/builderInference/kt49887.kt");
|
|
}
|
|
|
|
@TestMetadata("kt51988.kt")
|
|
public void testKt51988() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inference/builderInference/kt51988.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("partiallyResolvedCallInReturnArgument.kt")
|
|
public void testPartiallyResolvedCallInReturnArgument() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inference/builderInference/partiallyResolvedCallInReturnArgument.kt");
|
|
}
|
|
|
|
@TestMetadata("partiallyResolvedCallInReturnArgumentNonLast.kt")
|
|
public void testPartiallyResolvedCallInReturnArgumentNonLast() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inference/builderInference/partiallyResolvedCallInReturnArgumentNonLast.kt");
|
|
}
|
|
|
|
@TestMetadata("partiallyResolvedCallInReturnArgumentNonUnit.kt")
|
|
public void testPartiallyResolvedCallInReturnArgumentNonUnit() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inference/builderInference/partiallyResolvedCallInReturnArgumentNonUnit.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInInlineArgsInPlace() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineArgsInPlace"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("kotlinReflect.kt")
|
|
public void testKotlinReflect() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineArgsInPlace/kotlinReflect.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49370.kt")
|
|
public void testKt49370() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineArgsInPlace/kt49370.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49407.kt")
|
|
public void testKt49407() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineArgsInPlace/kt49407.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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
private void runTest(String testDataFilePath, java.util.function.Function<String, String> transformer) throws Exception {
|
|
KotlinTestUtils.runTest(path -> doTestWithTransformer(path, transformer), TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInInlineClasses() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("annotatedMemberExtensionProperty.kt")
|
|
public void testAnnotatedMemberExtensionProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/annotatedMemberExtensionProperty.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("annotatedMemberExtensionPropertyGeneric.kt")
|
|
public void testAnnotatedMemberExtensionPropertyGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/annotatedMemberExtensionPropertyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("anySuperCall.kt")
|
|
public void testAnySuperCall() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/anySuperCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("anySuperCallGeneric.kt")
|
|
public void testAnySuperCallGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/anySuperCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boundCallableReferencePassedToInlineFunction.kt")
|
|
public void testBoundCallableReferencePassedToInlineFunction() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunction.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boundCallableReferencePassedToInlineFunctionGeneric.kt")
|
|
public void testBoundCallableReferencePassedToInlineFunctionGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunctionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boundCallableReferencePassedToInlineFunctionGeneric2.kt")
|
|
public void testBoundCallableReferencePassedToInlineFunctionGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boundCallableReferencePassedToInlineFunctionGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxImplDoesNotExecuteInSecondaryConstructor.kt")
|
|
public void testBoxImplDoesNotExecuteInSecondaryConstructor() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInSecondaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxImplDoesNotExecuteInSecondaryConstructorGeneric.kt")
|
|
public void testBoxImplDoesNotExecuteInSecondaryConstructorGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInSecondaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxImplDoesNotExecuteInitBlock.kt")
|
|
public void testBoxImplDoesNotExecuteInitBlock() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInitBlock.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxImplDoesNotExecuteInitBlockGeneric.kt")
|
|
public void testBoxImplDoesNotExecuteInitBlockGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInitBlockGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxNullableForFakeOverride.kt")
|
|
public void testBoxNullableForFakeOverride() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxNullableForFakeOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxNullableForFakeOverrideGeneric.kt")
|
|
public void testBoxNullableForFakeOverrideGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxNullableForFakeOverrideGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxNullableForFakeOverrideGeneric2.kt")
|
|
public void testBoxNullableForFakeOverrideGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxNullableForFakeOverrideGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxNullableValueOfInlineClassWithNonNullUnderlyingType.kt")
|
|
public void testBoxNullableValueOfInlineClassWithNonNullUnderlyingType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithNonNullUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt")
|
|
public void testBoxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric2.kt")
|
|
public void testBoxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt")
|
|
public void testBoxNullableValueOfInlineClassWithPrimitiveUnderlyingType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt")
|
|
public void testBoxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric2.kt")
|
|
public void testBoxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxResultInlineClassOfConstructorCall.kt")
|
|
public void testBoxResultInlineClassOfConstructorCall() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxResultInlineClassOfConstructorCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxResultInlineClassOfConstructorCallGeneric.kt")
|
|
public void testBoxResultInlineClassOfConstructorCallGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxResultInlineClassOfConstructorCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxResultInlineClassOfConstructorCallGeneric2.kt")
|
|
public void testBoxResultInlineClassOfConstructorCallGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxResultInlineClassOfConstructorCallGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxUnboxInlineClassesWithOperatorsGetSet.kt")
|
|
public void testBoxUnboxInlineClassesWithOperatorsGetSet() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxInlineClassesWithOperatorsGetSet.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxUnboxInlineClassesWithOperatorsGetSetGeneric.kt")
|
|
public void testBoxUnboxInlineClassesWithOperatorsGetSetGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxInlineClassesWithOperatorsGetSetGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxUnboxOfInlineClassForCapturedVars.kt")
|
|
public void testBoxUnboxOfInlineClassForCapturedVars() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxOfInlineClassForCapturedVars.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxUnboxOfInlineClassForCapturedVarsGeneric.kt")
|
|
public void testBoxUnboxOfInlineClassForCapturedVarsGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxUnboxOfInlineClassForCapturedVarsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("bridgeForFunctionReturningInlineClass.kt")
|
|
public void testBridgeForFunctionReturningInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/bridgeForFunctionReturningInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("bridgeForFunctionReturningInlineClassGeneric.kt")
|
|
public void testBridgeForFunctionReturningInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/bridgeForFunctionReturningInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("bridgeGenerationWithInlineClassOverAny.kt")
|
|
public void testBridgeGenerationWithInlineClassOverAny() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/bridgeGenerationWithInlineClassOverAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("bridgeGenerationWithInlineClassOverAnyGeneric.kt")
|
|
public void testBridgeGenerationWithInlineClassOverAnyGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/bridgeGenerationWithInlineClassOverAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("bridgeGenerationWithInlineClassOverAnyGeneric2.kt")
|
|
public void testBridgeGenerationWithInlineClassOverAnyGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/bridgeGenerationWithInlineClassOverAnyGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("bridgesWhenInlineClassImplementsGenericInterface.kt")
|
|
public void testBridgesWhenInlineClassImplementsGenericInterface() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/bridgesWhenInlineClassImplementsGenericInterface.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("bridgesWhenInlineClassImplementsGenericInterfaceGeneric.kt")
|
|
public void testBridgesWhenInlineClassImplementsGenericInterfaceGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/bridgesWhenInlineClassImplementsGenericInterfaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("callComputablePropertyInsideInlineClass.kt")
|
|
public void testCallComputablePropertyInsideInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callComputablePropertyInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("callSpecializedEqualsViaReflection.kt")
|
|
public void testCallSpecializedEqualsViaReflection() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callSpecializedEqualsViaReflection.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("callSpecializedEqualsViaReflectionGeneric.kt")
|
|
public void testCallSpecializedEqualsViaReflectionGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callSpecializedEqualsViaReflectionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("callSpeciallyOverriddenPropertyOfInlineClass.kt")
|
|
public void testCallSpeciallyOverriddenPropertyOfInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callSpeciallyOverriddenPropertyOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("callSpeciallyOverriddenPropertyOfInlineClassGeneric.kt")
|
|
public void testCallSpeciallyOverriddenPropertyOfInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callSpeciallyOverriddenPropertyOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("callableReferencesWithInlineClasses.kt")
|
|
public void testCallableReferencesWithInlineClasses() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferencesWithInlineClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("callableReferencesWithInlineClassesGeneric.kt")
|
|
public void testCallableReferencesWithInlineClassesGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferencesWithInlineClassesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("castInsideWhenExpression.kt")
|
|
public void testCastInsideWhenExpression() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/castInsideWhenExpression.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("castInsideWhenExpressionGeneric.kt")
|
|
public void testCastInsideWhenExpressionGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/castInsideWhenExpressionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("checkBoxUnboxOfArgumentsOnInlinedFunctions.kt")
|
|
public void testCheckBoxUnboxOfArgumentsOnInlinedFunctions() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/checkBoxUnboxOfArgumentsOnInlinedFunctions.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("checkBoxUnboxOfArgumentsOnInlinedFunctionsGeneric.kt")
|
|
public void testCheckBoxUnboxOfArgumentsOnInlinedFunctionsGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/checkBoxUnboxOfArgumentsOnInlinedFunctionsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("checkBoxingAfterAssertionOperator.kt")
|
|
public void testCheckBoxingAfterAssertionOperator() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingAfterAssertionOperator.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("checkBoxingAfterAssertionOperatorGeneric.kt")
|
|
public void testCheckBoxingAfterAssertionOperatorGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingAfterAssertionOperatorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("checkBoxingForComplexClassHierarchy.kt")
|
|
public void testCheckBoxingForComplexClassHierarchy() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForComplexClassHierarchy.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("checkBoxingForComplexClassHierarchyGeneric.kt")
|
|
public void testCheckBoxingForComplexClassHierarchyGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForComplexClassHierarchyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("checkBoxingForNonLocalAndLabeledReturns.kt")
|
|
public void testCheckBoxingForNonLocalAndLabeledReturns() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForNonLocalAndLabeledReturns.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("checkBoxingForNonLocalAndLabeledReturnsGeneric.kt")
|
|
public void testCheckBoxingForNonLocalAndLabeledReturnsGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingForNonLocalAndLabeledReturnsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("checkBoxingFromReturnTypeForInlineClasses.kt")
|
|
public void testCheckBoxingFromReturnTypeForInlineClasses() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingFromReturnTypeForInlineClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("checkBoxingFromReturnTypeForInlineClassesGeneric.kt")
|
|
public void testCheckBoxingFromReturnTypeForInlineClassesGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingFromReturnTypeForInlineClassesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("checkBoxingOnFunctionCalls.kt")
|
|
public void testCheckBoxingOnFunctionCalls() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnFunctionCalls.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("checkBoxingOnFunctionCallsGeneric.kt")
|
|
public void testCheckBoxingOnFunctionCallsGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnFunctionCallsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("checkBoxingOnLocalVariableAssignments.kt")
|
|
public void testCheckBoxingOnLocalVariableAssignments() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnLocalVariableAssignments.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("checkBoxingOnLocalVariableAssignmentsGeneric.kt")
|
|
public void testCheckBoxingOnLocalVariableAssignmentsGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingOnLocalVariableAssignmentsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("checkBoxingUnboxingForInheritedTypeSpecializedFunctions.kt")
|
|
public void testCheckBoxingUnboxingForInheritedTypeSpecializedFunctions() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingUnboxingForInheritedTypeSpecializedFunctions.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("checkBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric.kt")
|
|
public void testCheckBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/checkBoxingUnboxingForInheritedTypeSpecializedFunctionsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("checkCallingMembersInsideInlineClass.kt")
|
|
public void testCheckCallingMembersInsideInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/checkCallingMembersInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("checkCallingMembersInsideInlineClassGeneric.kt")
|
|
public void testCheckCallingMembersInsideInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/checkCallingMembersInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("checkCastToInlineClass.kt")
|
|
public void testCheckCastToInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/checkCastToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("checkCastToInlineClassGeneric.kt")
|
|
public void testCheckCastToInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/checkCastToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("checkForInstanceOfInlineClass.kt")
|
|
public void testCheckForInstanceOfInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/checkForInstanceOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("checkForInstanceOfInlineClassGeneric.kt")
|
|
public void testCheckForInstanceOfInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/checkForInstanceOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("checkLambdaWithInlineClassesInFunctionalType.kt")
|
|
public void testCheckLambdaWithInlineClassesInFunctionalType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/checkLambdaWithInlineClassesInFunctionalType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("checkLambdaWithInlineClassesInFunctionalTypeGeneric.kt")
|
|
public void testCheckLambdaWithInlineClassesInFunctionalTypeGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/checkLambdaWithInlineClassesInFunctionalTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("checkUnboxingResultFromTypeVariable.kt")
|
|
public void testCheckUnboxingResultFromTypeVariable() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/checkUnboxingResultFromTypeVariable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("checkUnboxingResultFromTypeVariableGeneric.kt")
|
|
public void testCheckUnboxingResultFromTypeVariableGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/checkUnboxingResultFromTypeVariableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("checkUnboxingResultFromTypeVariableGeneric2.kt")
|
|
public void testCheckUnboxingResultFromTypeVariableGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/checkUnboxingResultFromTypeVariableGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("classInInlineClassInit.kt")
|
|
public void testClassInInlineClassInit() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/classInInlineClassInit.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("classInInlineClassInitGeneric.kt")
|
|
public void testClassInInlineClassInitGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/classInInlineClassInitGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("classLiteralOnInlineClass.kt")
|
|
public void testClassLiteralOnInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/classLiteralOnInlineClass.kt");
|
|
}
|
|
|
|
@TestMetadata("classLiteralOnInlineClassGeneric.kt")
|
|
public void testClassLiteralOnInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/classLiteralOnInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("computablePropertyInsideInlineClass.kt")
|
|
public void testComputablePropertyInsideInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/computablePropertyInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("conformToComparableAndCallInterfaceMethod.kt")
|
|
public void testConformToComparableAndCallInterfaceMethod() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/conformToComparableAndCallInterfaceMethod.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("conformToComparableAndCallInterfaceMethodGeneric.kt")
|
|
public void testConformToComparableAndCallInterfaceMethodGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/conformToComparableAndCallInterfaceMethodGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("constructorCallableReference.kt")
|
|
public void testConstructorCallableReference() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/constructorCallableReference.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("constructorCallableReferenceGeneric.kt")
|
|
public void testConstructorCallableReferenceGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/constructorCallableReferenceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("constructorImplVisibility.kt")
|
|
public void testConstructorImplVisibility() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/constructorImplVisibility.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("constructorImplVisibilityGeneric.kt")
|
|
public void testConstructorImplVisibilityGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/constructorImplVisibilityGeneric.kt");
|
|
}
|
|
|
|
@TestMetadata("correctBoxingForBranchExpressions.kt")
|
|
public void testCorrectBoxingForBranchExpressions() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/correctBoxingForBranchExpressions.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("correctBoxingForBranchExpressionsGeneric.kt")
|
|
public void testCorrectBoxingForBranchExpressionsGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/correctBoxingForBranchExpressionsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("createInlineClassInArgumentPosition.kt")
|
|
public void testCreateInlineClassInArgumentPosition() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/createInlineClassInArgumentPosition.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("createInlineClassInArgumentPositionGeneric.kt")
|
|
public void testCreateInlineClassInArgumentPositionGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/createInlineClassInArgumentPositionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("crossinlineWithInlineClassInParameter.kt")
|
|
public void testCrossinlineWithInlineClassInParameter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/crossinlineWithInlineClassInParameter.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("crossinlineWithInlineClassInParameterGeneric.kt")
|
|
public void testCrossinlineWithInlineClassInParameterGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/crossinlineWithInlineClassInParameterGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("crossinlineWithInlineClassInParameterGeneric2.kt")
|
|
public void testCrossinlineWithInlineClassInParameterGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/crossinlineWithInlineClassInParameterGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("customIterator.kt")
|
|
public void testCustomIterator() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/customIterator.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("defaultFunctionsFromAnyForInlineClass.kt")
|
|
public void testDefaultFunctionsFromAnyForInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultFunctionsFromAnyForInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("defaultFunctionsFromAnyForInlineClassGeneric.kt")
|
|
public void testDefaultFunctionsFromAnyForInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultFunctionsFromAnyForInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("defaultInterfaceMethodsInInlineClass.kt")
|
|
public void testDefaultInterfaceMethodsInInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultInterfaceMethodsInInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("defaultInterfaceMethodsInInlineClassGeneric.kt")
|
|
public void testDefaultInterfaceMethodsInInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultInterfaceMethodsInInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("defaultWithInlineClassArgument.kt")
|
|
public void testDefaultWithInlineClassArgument() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgument.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("defaultWithInlineClassArgumentGeneric.kt")
|
|
public void testDefaultWithInlineClassArgumentGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgumentGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("delegateFromDifferentPackage.kt")
|
|
public void testDelegateFromDifferentPackage() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/delegateFromDifferentPackage.kt");
|
|
}
|
|
|
|
@TestMetadata("elvisWithInlineClassAndNullConstant.kt")
|
|
public void testElvisWithInlineClassAndNullConstant() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/elvisWithInlineClassAndNullConstant.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("elvisWithInlineClassAndNullConstantGeneric.kt")
|
|
public void testElvisWithInlineClassAndNullConstantGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/elvisWithInlineClassAndNullConstantGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("emptyConstructorForInlineClass.kt")
|
|
public void testEmptyConstructorForInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/emptyConstructorForInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("emptyConstructorForInlineClassGeneric.kt")
|
|
public void testEmptyConstructorForInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/emptyConstructorForInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalityChecksInlineClassNonNull.kt")
|
|
public void testEqualityChecksInlineClassNonNull() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksInlineClassNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalityChecksInlineClassNonNullGeneric.kt")
|
|
public void testEqualityChecksInlineClassNonNullGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksInlineClassNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalityChecksMixedNullability.kt")
|
|
public void testEqualityChecksMixedNullability() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksMixedNullability.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalityChecksMixedNullabilityGeneric.kt")
|
|
public void testEqualityChecksMixedNullabilityGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksMixedNullabilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalityChecksNegatedInlineClassNonNull.kt")
|
|
public void testEqualityChecksNegatedInlineClassNonNull() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedInlineClassNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalityChecksNegatedInlineClassNonNullGeneric.kt")
|
|
public void testEqualityChecksNegatedInlineClassNonNullGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedInlineClassNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalityChecksNegatedNonNull.kt")
|
|
public void testEqualityChecksNegatedNonNull() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalityChecksNegatedNonNullGeneric.kt")
|
|
public void testEqualityChecksNegatedNonNullGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalityChecksNegatedNullable.kt")
|
|
public void testEqualityChecksNegatedNullable() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNullable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalityChecksNegatedNullableGeneric.kt")
|
|
public void testEqualityChecksNegatedNullableGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNullableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalityChecksNegatedNullableGeneric2.kt")
|
|
public void testEqualityChecksNegatedNullableGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedNullableGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalityChecksNegatedPrimitive.kt")
|
|
public void testEqualityChecksNegatedPrimitive() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedPrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalityChecksNegatedPrimitiveGeneric.kt")
|
|
public void testEqualityChecksNegatedPrimitiveGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNegatedPrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalityChecksNonNull.kt")
|
|
public void testEqualityChecksNonNull() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalityChecksNonNullGeneric.kt")
|
|
public void testEqualityChecksNonNullGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalityChecksNullable.kt")
|
|
public void testEqualityChecksNullable() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNullable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalityChecksNullableGeneric.kt")
|
|
public void testEqualityChecksNullableGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNullableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalityChecksNullableGeneric2.kt")
|
|
public void testEqualityChecksNullableGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksNullableGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalityChecksPrimitive.kt")
|
|
public void testEqualityChecksPrimitive() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalityChecksPrimitiveGeneric.kt")
|
|
public void testEqualityChecksPrimitiveGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalityChecksPrimitiveUnboxed.kt")
|
|
public void testEqualityChecksPrimitiveUnboxed() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitiveUnboxed.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalityForBoxesOfNullableValuesOfInlineClass.kt")
|
|
public void testEqualityForBoxesOfNullableValuesOfInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalityForBoxesOfNullableValuesOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalityForBoxesOfNullableValuesOfInlineClassGeneric.kt")
|
|
public void testEqualityForBoxesOfNullableValuesOfInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalityForBoxesOfNullableValuesOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalsCallsLeftArgument.kt")
|
|
public void testEqualsCallsLeftArgument() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalsCallsLeftArgument.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalsCallsLeftArgumentGeneric.kt")
|
|
public void testEqualsCallsLeftArgumentGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalsCallsLeftArgumentGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalsEvaluationOrderInlineClass.kt")
|
|
public void testEqualsEvaluationOrderInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalsEvaluationOrderInlineClassGeneric.kt")
|
|
public void testEqualsEvaluationOrderInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalsEvaluationOrderNonNull.kt")
|
|
public void testEqualsEvaluationOrderNonNull() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalsEvaluationOrderNonNullGeneric.kt")
|
|
public void testEqualsEvaluationOrderNonNullGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalsEvaluationOrderNullable.kt")
|
|
public void testEqualsEvaluationOrderNullable() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNullable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalsEvaluationOrderNullableGeneric.kt")
|
|
public void testEqualsEvaluationOrderNullableGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNullableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalsEvaluationOrderNullableGeneric2.kt")
|
|
public void testEqualsEvaluationOrderNullableGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderNullableGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalsEvaluationOrderPrimitive.kt")
|
|
public void testEqualsEvaluationOrderPrimitive() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderPrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalsEvaluationOrderPrimitiveGeneric.kt")
|
|
public void testEqualsEvaluationOrderPrimitiveGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalsEvaluationOrderPrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalsOperatorWithGenericCall.kt")
|
|
public void testEqualsOperatorWithGenericCall() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalsOperatorWithGenericCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalsOperatorWithGenericCallGeneric.kt")
|
|
public void testEqualsOperatorWithGenericCallGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/equalsOperatorWithGenericCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("extLambdaInInlineClassFun.kt")
|
|
public void testExtLambdaInInlineClassFun() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("extLambdaInInlineClassFun2.kt")
|
|
public void testExtLambdaInInlineClassFun2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("extLambdaInInlineClassFun2Generic.kt")
|
|
public void testExtLambdaInInlineClassFun2Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("extLambdaInInlineClassFunGeneric.kt")
|
|
public void testExtLambdaInInlineClassFunGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("fieldNameClash.kt")
|
|
public void testFieldNameClash() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/fieldNameClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("fieldNameClashGeneric.kt")
|
|
public void testFieldNameClashGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/fieldNameClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("funInterfaceDoubleSuffux.kt")
|
|
public void testFunInterfaceDoubleSuffux() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/funInterfaceDoubleSuffux.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("funInterfaceDoubleSuffux2.kt")
|
|
public void testFunInterfaceDoubleSuffux2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/funInterfaceDoubleSuffux2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("functionExpression.kt")
|
|
public void testFunctionExpression() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionExpression.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("functionExpressionGeneric.kt")
|
|
public void testFunctionExpressionGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionExpressionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("genericInlineClassSynthMembers.kt")
|
|
public void testGenericInlineClassSynthMembers() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/genericInlineClassSynthMembers.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("genericVararg2ndConstructor.kt")
|
|
public void testGenericVararg2ndConstructor() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/genericVararg2ndConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("implicitCastToNonValueClassType.kt")
|
|
public void testImplicitCastToNonValueClassType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/implicitCastToNonValueClassType.kt");
|
|
}
|
|
|
|
@TestMetadata("infixCompareToOptimization.kt")
|
|
public void testInfixCompareToOptimization() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/infixCompareToOptimization.kt");
|
|
}
|
|
|
|
@TestMetadata("initBlock.kt")
|
|
public void testInitBlock() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/initBlock.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("initBlockGeneric.kt")
|
|
public void testInitBlockGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/initBlockGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("initInCompanion.kt")
|
|
public void testInitInCompanion() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/initInCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassAsLastExpressionInInLambda.kt")
|
|
public void testInlineClassAsLastExpressionInInLambda() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassAsLastExpressionInInLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassAsLastExpressionInInLambdaGeneric.kt")
|
|
public void testInlineClassAsLastExpressionInInLambdaGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassAsLastExpressionInInLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassBothEqualsOverride.kt")
|
|
public void testInlineClassBothEqualsOverride() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassBothEqualsOverride.kt");
|
|
}
|
|
|
|
@TestMetadata("inlineClassEqualityShouldUseTotalOrderForFloatingPointData.kt")
|
|
public void testInlineClassEqualityShouldUseTotalOrderForFloatingPointData() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualityShouldUseTotalOrderForFloatingPointData.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric.kt")
|
|
public void testInlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualityShouldUseTotalOrderForFloatingPointDataGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassEqualsConsistency.kt")
|
|
public void testInlineClassEqualsConsistency() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualsConsistency.kt");
|
|
}
|
|
|
|
@TestMetadata("inlineClassEqualsOverriddenForCollections.kt")
|
|
public void testInlineClassEqualsOverriddenForCollections() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualsOverriddenForCollections.kt");
|
|
}
|
|
|
|
@TestMetadata("inlineClassEqualsOverride.kt")
|
|
public void testInlineClassEqualsOverride() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassEqualsOverride.kt");
|
|
}
|
|
|
|
@TestMetadata("inlineClassFieldHandling.kt")
|
|
public void testInlineClassFieldHandling() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFieldHandling.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassFieldHandlingGeneric.kt")
|
|
public void testInlineClassFieldHandlingGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFieldHandlingGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassFunctionInvoke.kt")
|
|
public void testInlineClassFunctionInvoke() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFunctionInvoke.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassFunctionInvokeGeneric.kt")
|
|
public void testInlineClassFunctionInvokeGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassFunctionInvokeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassHashCodeOverride.kt")
|
|
public void testInlineClassHashCodeOverride() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassHashCodeOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassImplementsCollection.kt")
|
|
public void testInlineClassImplementsCollection() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassImplementsCollection.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassImplementsCollectionGeneric.kt")
|
|
public void testInlineClassImplementsCollectionGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassImplementsCollectionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassImplementsJavaLangInterface.kt")
|
|
public void testInlineClassImplementsJavaLangInterface() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassImplementsJavaLangInterface.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassInInitBlock.kt")
|
|
public void testInlineClassInInitBlock() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInInitBlock.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassInInitBlockGeneric.kt")
|
|
public void testInlineClassInInitBlockGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInInitBlockGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassInStringTemplate.kt")
|
|
public void testInlineClassInStringTemplate() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInStringTemplate.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassInStringTemplateGeneric.kt")
|
|
public void testInlineClassInStringTemplateGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassInStringTemplateGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassPropertyReferenceGetAndSet.kt")
|
|
public void testInlineClassPropertyReferenceGetAndSet() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassPropertyReferenceGetAndSet.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassPropertyReferenceGetAndSetGeneric.kt")
|
|
public void testInlineClassPropertyReferenceGetAndSetGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassPropertyReferenceGetAndSetGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassTypedEqualsGenerics.kt")
|
|
public void testInlineClassTypedEqualsGenerics() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassTypedEqualsGenerics.kt");
|
|
}
|
|
|
|
@TestMetadata("inlineClassUntypedEqualsOverriden.kt")
|
|
public void testInlineClassUntypedEqualsOverriden() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassUntypedEqualsOverriden.kt");
|
|
}
|
|
|
|
@TestMetadata("inlineClassValueCapturedInInlineLambda.kt")
|
|
public void testInlineClassValueCapturedInInlineLambda() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInInlineLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassValueCapturedInInlineLambdaGeneric.kt")
|
|
public void testInlineClassValueCapturedInInlineLambdaGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInInlineLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassValueCapturedInNonInlineLambda.kt")
|
|
public void testInlineClassValueCapturedInNonInlineLambda() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInNonInlineLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassValueCapturedInNonInlineLambdaGeneric.kt")
|
|
public void testInlineClassValueCapturedInNonInlineLambdaGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValueCapturedInNonInlineLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassValuesInsideStrings.kt")
|
|
public void testInlineClassValuesInsideStrings() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValuesInsideStrings.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassValuesInsideStringsGeneric.kt")
|
|
public void testInlineClassValuesInsideStringsGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassValuesInsideStringsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassWithCustomEquals.kt")
|
|
public void testInlineClassWithCustomEquals() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEquals.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassWithCustomEqualsGeneric.kt")
|
|
public void testInlineClassWithCustomEqualsGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEqualsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassWithDefaultFunctionsFromAny.kt")
|
|
public void testInlineClassWithDefaultFunctionsFromAny() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithDefaultFunctionsFromAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassWithDefaultFunctionsFromAnyGeneric.kt")
|
|
public void testInlineClassWithDefaultFunctionsFromAnyGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithDefaultFunctionsFromAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassesAsInlineFunParameters.kt")
|
|
public void testInlineClassesAsInlineFunParameters() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesAsInlineFunParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassesAsInlineFunParametersGeneric.kt")
|
|
public void testInlineClassesAsInlineFunParametersGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesAsInlineFunParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassesCheckCast.kt")
|
|
public void testInlineClassesCheckCast() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesCheckCast.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassesCheckCastGeneric.kt")
|
|
public void testInlineClassesCheckCastGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesCheckCastGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassesInInlineLambdaParameters.kt")
|
|
public void testInlineClassesInInlineLambdaParameters() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesInInlineLambdaParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassesInInlineLambdaParametersGeneric.kt")
|
|
public void testInlineClassesInInlineLambdaParametersGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesInInlineLambdaParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassesRefTypesInInlineLambdaParameters.kt")
|
|
public void testInlineClassesRefTypesInInlineLambdaParameters() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesRefTypesInInlineLambdaParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassesRefTypesInInlineLambdaParametersGeneric.kt")
|
|
public void testInlineClassesRefTypesInInlineLambdaParametersGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassesRefTypesInInlineLambdaParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineExtLambdaInInlineClassFun.kt")
|
|
public void testInlineExtLambdaInInlineClassFun() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineExtLambdaInInlineClassFun2.kt")
|
|
public void testInlineExtLambdaInInlineClassFun2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineExtLambdaInInlineClassFun2Generic.kt")
|
|
public void testInlineExtLambdaInInlineClassFun2Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFun2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineExtLambdaInInlineClassFunGeneric.kt")
|
|
public void testInlineExtLambdaInInlineClassFunGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineExtLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineFunctionInsideInlineClass.kt")
|
|
public void testInlineFunctionInsideInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineFunctionInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineFunctionInsideInlineClassGeneric.kt")
|
|
public void testInlineFunctionInsideInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineFunctionInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineInCompanion.kt")
|
|
public void testInlineInCompanion() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineInCompanion.kt");
|
|
}
|
|
|
|
@TestMetadata("inlineInCompanionGeneric.kt")
|
|
public void testInlineInCompanionGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineInCompanionGeneric.kt");
|
|
}
|
|
|
|
@TestMetadata("inlineOverInlineWithCustomEquals.kt")
|
|
public void testInlineOverInlineWithCustomEquals() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineOverInlineWithCustomEquals.kt");
|
|
}
|
|
|
|
@TestMetadata("inlineToString.kt")
|
|
public void testInlineToString() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineToString.kt");
|
|
}
|
|
|
|
@TestMetadata("iterateOverArrayOfInlineClassValues.kt")
|
|
public void testIterateOverArrayOfInlineClassValues() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/iterateOverArrayOfInlineClassValues.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("iterateOverArrayOfInlineClassValuesGeneric.kt")
|
|
public void testIterateOverArrayOfInlineClassValuesGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/iterateOverArrayOfInlineClassValuesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("iterateOverListOfInlineClassValues.kt")
|
|
public void testIterateOverListOfInlineClassValues() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/iterateOverListOfInlineClassValues.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("iterateOverListOfInlineClassValuesGeneric.kt")
|
|
public void testIterateOverListOfInlineClassValuesGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/iterateOverListOfInlineClassValuesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("javaClassIntrinsicOnInlineClasses.kt")
|
|
public void testJavaClassIntrinsicOnInlineClasses() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/javaClassIntrinsicOnInlineClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("javaClassIntrinsicOnInlineClassesGeneric.kt")
|
|
public void testJavaClassIntrinsicOnInlineClassesGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/javaClassIntrinsicOnInlineClassesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("javaPrimitiveTypeIC.kt")
|
|
public void testJavaPrimitiveTypeIC() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/javaPrimitiveTypeIC.kt");
|
|
}
|
|
|
|
@TestMetadata("javaPrimitiveTypeICGeneric.kt")
|
|
public void testJavaPrimitiveTypeICGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/javaPrimitiveTypeICGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("jvmFieldInInlineClassCompanion.kt")
|
|
public void testJvmFieldInInlineClassCompanion() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvmFieldInInlineClassCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("jvmFieldInInlineClassCompanionGeneric.kt")
|
|
public void testJvmFieldInInlineClassCompanionGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvmFieldInInlineClassCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("jvmInline.kt")
|
|
public void testJvmInline() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvmInline.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt")
|
|
public void testJvmOverloadsOnTopLevelFunctionReturningInlineClassValue() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt");
|
|
}
|
|
|
|
@TestMetadata("jvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric.kt")
|
|
public void testJvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValueGeneric.kt");
|
|
}
|
|
|
|
@TestMetadata("jvmStaticFunInInlineClassCompanion.kt")
|
|
public void testJvmStaticFunInInlineClassCompanion() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticFunInInlineClassCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("jvmStaticFunInInlineClassCompanionGeneric.kt")
|
|
public void testJvmStaticFunInInlineClassCompanionGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticFunInInlineClassCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("jvmStaticPropertyAccessorInInlineClassCompanion.kt")
|
|
public void testJvmStaticPropertyAccessorInInlineClassCompanion() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticPropertyAccessorInInlineClassCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("jvmStaticPropertyAccessorInInlineClassCompanionGeneric.kt")
|
|
public void testJvmStaticPropertyAccessorInInlineClassCompanionGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticPropertyAccessorInInlineClassCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("jvmStaticVarInInlineClassCompanion.kt")
|
|
public void testJvmStaticVarInInlineClassCompanion() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticVarInInlineClassCompanion.kt");
|
|
}
|
|
|
|
@TestMetadata("jvmStaticVarInInlineClassCompanionGeneric.kt")
|
|
public void testJvmStaticVarInInlineClassCompanionGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticVarInInlineClassCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kclassInAnnotation.kt")
|
|
public void testKclassInAnnotation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kclassInAnnotation.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kclassInAnnotationGeneric.kt")
|
|
public void testKclassInAnnotationGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kclassInAnnotationGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt25246.kt")
|
|
public void testKt25246() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt25246.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt25750.kt")
|
|
public void testKt25750() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt25750.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt25750Generic.kt")
|
|
public void testKt25750Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt25750Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt25771.kt")
|
|
public void testKt25771() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt25771.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt26103.kt")
|
|
public void testKt26103() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt26103.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt26103_contravariantUnderlyingType.kt")
|
|
public void testKt26103_contravariantUnderlyingType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt26103_contravariantUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt26103_covariantUnderlyingType.kt")
|
|
public void testKt26103_covariantUnderlyingType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt26103_covariantUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt26103_original.kt")
|
|
public void testKt26103_original() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt26103_original.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27096.kt")
|
|
public void testKt27096() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt27096.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27096Generic.kt")
|
|
public void testKt27096Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt27096Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27096_enum.kt")
|
|
public void testKt27096_enum() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt27096_enum.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27096_enumGeneric.kt")
|
|
public void testKt27096_enumGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt27096_enumGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27096_functional.kt")
|
|
public void testKt27096_functional() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt27096_functional.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27096_functionalGeneric.kt")
|
|
public void testKt27096_functionalGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt27096_functionalGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27096_innerClass.kt")
|
|
public void testKt27096_innerClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt27096_innerClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27096_nullablePrimitive.kt")
|
|
public void testKt27096_nullablePrimitive() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullablePrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27096_nullablePrimitiveGeneric.kt")
|
|
public void testKt27096_nullablePrimitiveGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullablePrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27096_nullablePrimitiveGeneric2.kt")
|
|
public void testKt27096_nullablePrimitiveGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullablePrimitiveGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27096_nullableReference.kt")
|
|
public void testKt27096_nullableReference() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullableReference.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27096_nullableReferenceGeneric.kt")
|
|
public void testKt27096_nullableReferenceGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullableReferenceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27096_nullableReferenceGeneric2.kt")
|
|
public void testKt27096_nullableReferenceGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt27096_nullableReferenceGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27096_primitive.kt")
|
|
public void testKt27096_primitive() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt27096_primitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27096_primitiveGeneric.kt")
|
|
public void testKt27096_primitiveGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt27096_primitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27096_reference.kt")
|
|
public void testKt27096_reference() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt27096_reference.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27096_referenceGeneric.kt")
|
|
public void testKt27096_referenceGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt27096_referenceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27113.kt")
|
|
public void testKt27113() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt27113.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27113a.kt")
|
|
public void testKt27113a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt27113a.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27113aGeneric.kt")
|
|
public void testKt27113aGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt27113aGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27132.kt")
|
|
public void testKt27132() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt27132.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27132Generic.kt")
|
|
public void testKt27132Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt27132Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27140.kt")
|
|
public void testKt27140() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt27140.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27140Generic.kt")
|
|
public void testKt27140Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt27140Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27705.kt")
|
|
public void testKt27705() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt27705.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27705Generic.kt")
|
|
public void testKt27705Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt27705Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27706.kt")
|
|
public void testKt27706() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt27706.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27706Generic.kt")
|
|
public void testKt27706Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt27706Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt28405.kt")
|
|
public void testKt28405() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt28405.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@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("kt31994.kt")
|
|
public void testKt31994() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt31994.kt");
|
|
}
|
|
|
|
@TestMetadata("kt32793.kt")
|
|
public void testKt32793() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt32793.kt");
|
|
}
|
|
|
|
@TestMetadata("kt33119.kt")
|
|
public void testKt33119() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt33119.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt33119Generic.kt")
|
|
public void testKt33119Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt33119Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@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", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt37998Generic.kt")
|
|
public void testKt37998Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt37998Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt38680.kt")
|
|
public void testKt38680() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt38680.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt38680Generic.kt")
|
|
public void testKt38680Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt38680Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt38680a.kt")
|
|
public void testKt38680a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt38680a.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt38680aGeneric.kt")
|
|
public void testKt38680aGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt38680aGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt38680b.kt")
|
|
public void testKt38680b() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt38680b.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt38680bGeneric.kt")
|
|
public void testKt38680bGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt38680bGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt44141.kt")
|
|
public void testKt44141() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt44141.kt");
|
|
}
|
|
|
|
@TestMetadata("kt44701_jvmOverloads.kt")
|
|
public void testKt44701_jvmOverloads() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloads.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt44701_jvmOverloadsGeneric.kt")
|
|
public void testKt44701_jvmOverloadsGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloadsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt44701_jvmOverloadsGeneric2.kt")
|
|
public void testKt44701_jvmOverloadsGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloadsGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt44867.kt")
|
|
public void testKt44867() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt44867.kt");
|
|
}
|
|
|
|
@TestMetadata("kt44978.kt")
|
|
public void testKt44978() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt44978.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt45084.kt")
|
|
public void testKt45084() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt45084.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt45084Generic.kt")
|
|
public void testKt45084Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt45084Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt45991.kt")
|
|
public void testKt45991() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt45991.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt46554.kt")
|
|
public void testKt46554() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt46554.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt46554Generic.kt")
|
|
public void testKt46554Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt46554Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt47609.kt")
|
|
public void testKt47609() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt47609.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt47762.kt")
|
|
public void testKt47762() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt47762.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt47762Generic.kt")
|
|
public void testKt47762Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt47762Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt47823.kt")
|
|
public void testKt47823() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt47823.kt");
|
|
}
|
|
|
|
@TestMetadata("kt48993.kt")
|
|
public void testKt48993() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt48993.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt48993Generic.kt")
|
|
public void testKt48993Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt48993Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt50909.kt")
|
|
public void testKt50909() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt50909.kt");
|
|
}
|
|
|
|
@TestMetadata("kt50974_resultMultiModule.kt")
|
|
public void testKt50974_resultMultiModule() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt50974_resultMultiModule.kt");
|
|
}
|
|
|
|
@TestMetadata("kt51157.kt")
|
|
public void testKt51157() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt51157.kt");
|
|
}
|
|
|
|
@TestMetadata("kt51254.kt")
|
|
public void testKt51254() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt51254.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt51353.kt")
|
|
public void testKt51353() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt51353.kt");
|
|
}
|
|
|
|
@TestMetadata("kt51672.kt")
|
|
public void testKt51672() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt51672.kt");
|
|
}
|
|
|
|
@TestMetadata("kt52394.kt")
|
|
public void testKt52394() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt52394.kt");
|
|
}
|
|
|
|
@TestMetadata("kt52913.kt")
|
|
public void testKt52913() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt52913.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt54455.kt")
|
|
public void testKt54455() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt54455.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt54536.kt")
|
|
public void testKt54536() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt54536.kt");
|
|
}
|
|
|
|
@TestMetadata("kt54603.kt")
|
|
public void testKt54603() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt54603.kt");
|
|
}
|
|
|
|
@TestMetadata("kt54656.kt")
|
|
public void testKt54656() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt54656.kt");
|
|
}
|
|
|
|
@TestMetadata("kt57242.kt")
|
|
public void testKt57242() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt57242.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt57261.kt")
|
|
public void testKt57261() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt57261.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt57973.kt")
|
|
public void testKt57973() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/kt57973.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("lateinitInlineClasses.kt")
|
|
public void testLateinitInlineClasses() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/lateinitInlineClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("mangledDefaultParameterFunction.kt")
|
|
public void testMangledDefaultParameterFunction() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunction.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("mangledDefaultParameterFunctionGeneric.kt")
|
|
public void testMangledDefaultParameterFunctionGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunctionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("mangledSuperCalls.kt")
|
|
public void testMangledSuperCalls() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/mangledSuperCalls.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("mangledSuperCallsGeneric.kt")
|
|
public void testMangledSuperCallsGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/mangledSuperCallsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@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", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("mappingOfBoxedFlexibleInlineClassTypeGeneric.kt")
|
|
public void testMappingOfBoxedFlexibleInlineClassTypeGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/mappingOfBoxedFlexibleInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@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", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("nestedInlineClassGeneric.kt")
|
|
public void testNestedInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/nestedInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("noAssertionsOnInlineClassBasedOnNullableType.kt")
|
|
public void testNoAssertionsOnInlineClassBasedOnNullableType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/noAssertionsOnInlineClassBasedOnNullableType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("noAssertionsOnInlineClassBasedOnNullableTypeGeneric.kt")
|
|
public void testNoAssertionsOnInlineClassBasedOnNullableTypeGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/noAssertionsOnInlineClassBasedOnNullableTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("noReturnTypeMangling.kt")
|
|
public void testNoReturnTypeMangling() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeMangling.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("noReturnTypeManglingGeneric.kt")
|
|
public void testNoReturnTypeManglingGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("noReturnTypeManglingJvmName.kt")
|
|
public void testNoReturnTypeManglingJvmName() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingJvmName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("noReturnTypeManglingJvmNameGeneric.kt")
|
|
public void testNoReturnTypeManglingJvmNameGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingJvmNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("nonImmediateInlineClassUpperBound.kt")
|
|
public void testNonImmediateInlineClassUpperBound() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/nonImmediateInlineClassUpperBound.kt");
|
|
}
|
|
|
|
@TestMetadata("nullableEqeqNonNull.kt")
|
|
public void testNullableEqeqNonNull() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/nullableEqeqNonNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("nullableEqeqNonNullGeneric.kt")
|
|
public void testNullableEqeqNonNullGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/nullableEqeqNonNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("nullableWrapperEquality.kt")
|
|
public void testNullableWrapperEquality() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/nullableWrapperEquality.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("nullableWrapperEqualityGeneric.kt")
|
|
public void testNullableWrapperEqualityGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/nullableWrapperEqualityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("nullableWrapperEqualityGeneric2.kt")
|
|
public void testNullableWrapperEqualityGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/nullableWrapperEqualityGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overrideReturnNothing.kt")
|
|
public void testOverrideReturnNothing() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/overrideReturnNothing.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overridingFunCallingPrivateFun.kt")
|
|
public void testOverridingFunCallingPrivateFun() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/overridingFunCallingPrivateFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overridingFunCallingPrivateFunGeneric.kt")
|
|
public void testOverridingFunCallingPrivateFunGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/overridingFunCallingPrivateFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("passInlineClassAsVararg.kt")
|
|
public void testPassInlineClassAsVararg() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassAsVararg.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("passInlineClassAsVarargGeneric.kt")
|
|
public void testPassInlineClassAsVarargGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassAsVarargGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("passInlineClassWithSpreadOperatorToVarargs.kt")
|
|
public void testPassInlineClassWithSpreadOperatorToVarargs() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassWithSpreadOperatorToVarargs.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("passInlineClassWithSpreadOperatorToVarargsGeneric.kt")
|
|
public void testPassInlineClassWithSpreadOperatorToVarargsGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/passInlineClassWithSpreadOperatorToVarargsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("privateConstructorFunInterfaceMultiModule.kt")
|
|
public void testPrivateConstructorFunInterfaceMultiModule() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/privateConstructorFunInterfaceMultiModule.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("privateConstructorFunInterfaceMultiModuleGeneric.kt")
|
|
public void testPrivateConstructorFunInterfaceMultiModuleGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/privateConstructorFunInterfaceMultiModuleGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("propertyLoweringOrder.kt")
|
|
public void testPropertyLoweringOrder() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/propertyLoweringOrder.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("propertyLoweringOrderGeneric.kt")
|
|
public void testPropertyLoweringOrderGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/propertyLoweringOrderGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("referToPropertyInCompanionObjectOfInlineClass.kt")
|
|
public void testReferToPropertyInCompanionObjectOfInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("referToPropertyInCompanionObjectOfInlineClassGeneric.kt")
|
|
public void testReferToPropertyInCompanionObjectOfInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("referToUnderlyingPropertyInsideInlineClass.kt")
|
|
public void testReferToUnderlyingPropertyInsideInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("referToUnderlyingPropertyInsideInlineClassGeneric.kt")
|
|
public void testReferToUnderlyingPropertyInsideInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("referToUnderlyingPropertyOfInlineClass.kt")
|
|
public void testReferToUnderlyingPropertyOfInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("referToUnderlyingPropertyOfInlineClassGeneric.kt")
|
|
public void testReferToUnderlyingPropertyOfInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("removeInInlineCollectionOfInlineClassAsInt.kt")
|
|
public void testRemoveInInlineCollectionOfInlineClassAsInt() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/removeInInlineCollectionOfInlineClassAsInt.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("result.kt")
|
|
public void testResult() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/result.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("resultGeneric.kt")
|
|
public void testResultGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/resultGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("resultGeneric2.kt")
|
|
public void testResultGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/resultGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@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", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("safeAsOfTypeParameterWithInlineClassBound.kt")
|
|
public void testSafeAsOfTypeParameterWithInlineClassBound() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/safeAsOfTypeParameterWithInlineClassBound.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("safeAsOfTypeParameterWithInlineClassBoundGeneric.kt")
|
|
public void testSafeAsOfTypeParameterWithInlineClassBoundGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/safeAsOfTypeParameterWithInlineClassBoundGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("samWrapperDifferentModule.kt")
|
|
public void testSamWrapperDifferentModule() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/samWrapperDifferentModule.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("samWrapperDifferentModuleGeneric.kt")
|
|
public void testSamWrapperDifferentModuleGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/samWrapperDifferentModuleGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("secondaryConstructorExpectActual.kt")
|
|
public void testSecondaryConstructorExpectActual() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorExpectActual.kt");
|
|
}
|
|
|
|
@TestMetadata("secondaryConstructorVisibilies.kt")
|
|
public void testSecondaryConstructorVisibilies() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorVisibilies.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("secondaryConstructorWithVararg.kt")
|
|
public void testSecondaryConstructorWithVararg() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorWithVararg.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("secondaryConstructorWithVarargGeneric.kt")
|
|
public void testSecondaryConstructorWithVarargGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorWithVarargGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("secondaryConstructorsInsideInlineClass.kt")
|
|
public void testSecondaryConstructorsInsideInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("secondaryConstructorsInsideInlineClassGeneric.kt")
|
|
public void testSecondaryConstructorsInsideInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("secondaryConstructorsInsideInlineClassWithPrimitiveCarrierType.kt")
|
|
public void testSecondaryConstructorsInsideInlineClassWithPrimitiveCarrierType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassWithPrimitiveCarrierType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("secondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric.kt")
|
|
public void testSecondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsInsideInlineClassWithPrimitiveCarrierTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("secondaryConstructorsWithBody.kt")
|
|
public void testSecondaryConstructorsWithBody() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/secondaryConstructorsWithBody.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("simpleSecondaryConstructor.kt")
|
|
public void testSimpleSecondaryConstructor() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/simpleSecondaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("simpleSecondaryConstructorGeneric.kt")
|
|
public void testSimpleSecondaryConstructorGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/simpleSecondaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("smartCastOnThisOfInlineClassType.kt")
|
|
public void testSmartCastOnThisOfInlineClassType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/smartCastOnThisOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("smartCastOnThisOfInlineClassTypeGeneric.kt")
|
|
public void testSmartCastOnThisOfInlineClassTypeGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/smartCastOnThisOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("stringPlus.kt")
|
|
public void testStringPlus() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/stringPlus.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("stringPlusGeneric.kt")
|
|
public void testStringPlusGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/stringPlusGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("toStringCallingPrivateFun.kt")
|
|
public void testToStringCallingPrivateFun() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("toStringCallingPrivateFunGeneric.kt")
|
|
public void testToStringCallingPrivateFunGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("toStringOfUnboxedNullable.kt")
|
|
public void testToStringOfUnboxedNullable() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullable.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("toStringOfUnboxedNullableGeneric.kt")
|
|
public void testToStringOfUnboxedNullableGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullableGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("typeChecksForInlineClasses.kt")
|
|
public void testTypeChecksForInlineClasses() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClasses.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("typeChecksForInlineClassesGeneric.kt")
|
|
public void testTypeChecksForInlineClassesGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClassesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("UIntArraySortExample.kt")
|
|
public void testUIntArraySortExample() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/UIntArraySortExample.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("UIntArraySortExampleGeneric.kt")
|
|
public void testUIntArraySortExampleGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/UIntArraySortExampleGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@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", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("unboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt")
|
|
public void testUnboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNonNullUnderlyingTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("unboxNullableValueOfInlineClassWithNullableInlineClassUnderlyingTypeGWI.kt")
|
|
public void testUnboxNullableValueOfInlineClassWithNullableInlineClassUnderlyingTypeGWI() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNullableInlineClassUnderlyingTypeGWI.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("unboxNullableValueOfInlineClassWithNullableInlineClassUnderlyingTypeGWI2.kt")
|
|
public void testUnboxNullableValueOfInlineClassWithNullableInlineClassUnderlyingTypeGWI2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNullableInlineClassUnderlyingTypeGWI2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("unboxNullableValueOfInlineClassWithNullablePrimitiveUnderlyingType.kt")
|
|
public void testUnboxNullableValueOfInlineClassWithNullablePrimitiveUnderlyingType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNullablePrimitiveUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("unboxNullableValueOfInlineClassWithNullablePrimitiveUnderlyingTypeGWI.kt")
|
|
public void testUnboxNullableValueOfInlineClassWithNullablePrimitiveUnderlyingTypeGWI() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNullablePrimitiveUnderlyingTypeGWI.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("unboxNullableValueOfInlineClassWithNullablePrimitiveUnderlyingTypeGWI2.kt")
|
|
public void testUnboxNullableValueOfInlineClassWithNullablePrimitiveUnderlyingTypeGWI2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNullablePrimitiveUnderlyingTypeGWI2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("unboxNullableValueOfInlineClassWithNullablePrimitiveUnderlyingTypeGeneric.kt")
|
|
public void testUnboxNullableValueOfInlineClassWithNullablePrimitiveUnderlyingTypeGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithNullablePrimitiveUnderlyingTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("unboxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt")
|
|
public void testUnboxNullableValueOfInlineClassWithPrimitiveUnderlyingType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithPrimitiveUnderlyingType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("unboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt")
|
|
public void testUnboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxNullableValueOfInlineClassWithPrimitiveUnderlyingTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("unboxParameterOfSuspendLambdaBeforeInvoke.kt")
|
|
public void testUnboxParameterOfSuspendLambdaBeforeInvoke() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxParameterOfSuspendLambdaBeforeInvoke.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("unboxParameterOfSuspendLambdaBeforeInvokeGeneric.kt")
|
|
public void testUnboxParameterOfSuspendLambdaBeforeInvokeGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxParameterOfSuspendLambdaBeforeInvokeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("unboxReceiverOnCallingMethodFromInlineClass.kt")
|
|
public void testUnboxReceiverOnCallingMethodFromInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxReceiverOnCallingMethodFromInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("unboxReceiverOnCallingMethodFromInlineClassGeneric.kt")
|
|
public void testUnboxReceiverOnCallingMethodFromInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxReceiverOnCallingMethodFromInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@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", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("unboxValueFromPlatformTypeGeneric.kt")
|
|
public void testUnboxValueFromPlatformTypeGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("unboxValueOfAnyBeforeMethodInvocation.kt")
|
|
public void testUnboxValueOfAnyBeforeMethodInvocation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocation.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("unboxValueOfAnyBeforeMethodInvocationGeneric.kt")
|
|
public void testUnboxValueOfAnyBeforeMethodInvocationGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocationGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("unboxValueOfAnyBeforeMethodInvocationGeneric2.kt")
|
|
public void testUnboxValueOfAnyBeforeMethodInvocationGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocationGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("unboxValueOfNullableInlineClassUsingInlineFunction.kt")
|
|
public void testUnboxValueOfNullableInlineClassUsingInlineFunction() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxValueOfNullableInlineClassUsingInlineFunction.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("useInlineClassesInsideElvisOperator.kt")
|
|
public void testUseInlineClassesInsideElvisOperator() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperator.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("useInlineClassesInsideElvisOperatorGeneric.kt")
|
|
public void testUseInlineClassesInsideElvisOperatorGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperatorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("useInlineFunctionInsideInlineClass.kt")
|
|
public void testUseInlineFunctionInsideInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/useInlineFunctionInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("useInlineFunctionInsideInlineClassGeneric.kt")
|
|
public void testUseInlineFunctionInsideInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/useInlineFunctionInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("useOfInlineClassWithGenericMethodFromJava.kt")
|
|
public void testUseOfInlineClassWithGenericMethodFromJava() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/useOfInlineClassWithGenericMethodFromJava.kt");
|
|
}
|
|
|
|
@TestMetadata("useOfInlineClassWithGenericMethodFromJavaGeneric.kt")
|
|
public void testUseOfInlineClassWithGenericMethodFromJavaGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/useOfInlineClassWithGenericMethodFromJavaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("useThisInsideInlineClass.kt")
|
|
public void testUseThisInsideInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("useThisInsideInlineClassGeneric.kt")
|
|
public void testUseThisInsideInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("whenWithSubject.kt")
|
|
public void testWhenWithSubject() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/whenWithSubject.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("whenWithSubjectGeneric.kt")
|
|
public void testWhenWithSubjectGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/whenWithSubjectGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@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_IR, testDataFilePath);
|
|
}
|
|
|
|
private void runTest(String testDataFilePath, java.util.function.Function<String, String> transformer) throws Exception {
|
|
KotlinTestUtils.runTest(path -> doTestWithTransformer(path, transformer), TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInBoxReturnValueInLambda() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("boxAny.kt")
|
|
public void testBoxAny() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxAnyGeneric.kt")
|
|
public void testBoxAnyGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxFunLiteralAny.kt")
|
|
public void testBoxFunLiteralAny() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxFunLiteralAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxFunLiteralAnyGeneric.kt")
|
|
public void testBoxFunLiteralAnyGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxFunLiteralAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxInt.kt")
|
|
public void testBoxInt() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxInt.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxIntGeneric.kt")
|
|
public void testBoxIntGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxIntGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxNullableAny.kt")
|
|
public void testBoxNullableAny() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxNullableAnyGeneric.kt")
|
|
public void testBoxNullableAnyGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxNullableAnyGeneric2.kt")
|
|
public void testBoxNullableAnyGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxNullableAnyNull.kt")
|
|
public void testBoxNullableAnyNull() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxNullableAnyNullGeneric.kt")
|
|
public void testBoxNullableAnyNullGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxNullableAnyNullGeneric2.kt")
|
|
public void testBoxNullableAnyNullGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNullGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxNullableInt.kt")
|
|
public void testBoxNullableInt() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableInt.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxNullableIntGeneric.kt")
|
|
public void testBoxNullableIntGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxNullableIntGeneric2.kt")
|
|
public void testBoxNullableIntGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxNullableIntNull.kt")
|
|
public void testBoxNullableIntNull() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxNullableIntNullGeneric.kt")
|
|
public void testBoxNullableIntNullGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxNullableIntNullGeneric2.kt")
|
|
public void testBoxNullableIntNullGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableIntNullGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxNullableString.kt")
|
|
public void testBoxNullableString() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableString.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxNullableStringGeneric.kt")
|
|
public void testBoxNullableStringGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxNullableStringGeneric2.kt")
|
|
public void testBoxNullableStringGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxNullableStringNull.kt")
|
|
public void testBoxNullableStringNull() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxNullableStringNullGeneric.kt")
|
|
public void testBoxNullableStringNullGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxNullableStringNullGeneric2.kt")
|
|
public void testBoxNullableStringNullGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableStringNullGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxString.kt")
|
|
public void testBoxString() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxString.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxStringGeneric.kt")
|
|
public void testBoxStringGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxStringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
private void runTest(String testDataFilePath, java.util.function.Function<String, String> transformer) throws Exception {
|
|
KotlinTestUtils.runTest(path -> doTestWithTransformer(path, transformer), TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInBoxReturnValueOnOverride() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("boxReturnValueInDefaultMethod.kt")
|
|
public void testBoxReturnValueInDefaultMethod() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/boxReturnValueInDefaultMethod.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boxReturnValueInDefaultMethodGenericInt.kt")
|
|
public void testBoxReturnValueInDefaultMethodGenericInt() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/boxReturnValueInDefaultMethodGenericInt.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("covariantOverrideChainErasedToAny.kt")
|
|
public void testCovariantOverrideChainErasedToAny() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("covariantOverrideChainErasedToAnyGeneric.kt")
|
|
public void testCovariantOverrideChainErasedToAnyGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("covariantOverrideChainErasedToNullableAny.kt")
|
|
public void testCovariantOverrideChainErasedToNullableAny() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("covariantOverrideChainErasedToNullableAnyGeneric.kt")
|
|
public void testCovariantOverrideChainErasedToNullableAnyGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("covariantOverrideChainErasedToNullableAnyGeneric2.kt")
|
|
public void testCovariantOverrideChainErasedToNullableAnyGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAnyGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("covariantOverrideErasedToAny.kt")
|
|
public void testCovariantOverrideErasedToAny() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("covariantOverrideErasedToAnyGeneric.kt")
|
|
public void testCovariantOverrideErasedToAnyGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("covariantOverrideErasedToInterface.kt")
|
|
public void testCovariantOverrideErasedToInterface() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToInterface.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("covariantOverrideErasedToInterfaceGeneric.kt")
|
|
public void testCovariantOverrideErasedToInterfaceGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToInterfaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("covariantOverrideErasedToPrimitive.kt")
|
|
public void testCovariantOverrideErasedToPrimitive() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToPrimitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("covariantOverrideErasedToPrimitiveGeneric.kt")
|
|
public void testCovariantOverrideErasedToPrimitiveGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToPrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("covariantOverrideListVsMutableList.kt")
|
|
public void testCovariantOverrideListVsMutableList() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableList.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("covariantOverrideListVsMutableListGeneric.kt")
|
|
public void testCovariantOverrideListVsMutableListGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableListGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("covariantOverrideUnrelatedInterfaces.kt")
|
|
public void testCovariantOverrideUnrelatedInterfaces() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideUnrelatedInterfaces.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("covariantOverrideUnrelatedInterfacesGeneric.kt")
|
|
public void testCovariantOverrideUnrelatedInterfacesGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideUnrelatedInterfacesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("genericOverride.kt")
|
|
public void testGenericOverride() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("genericOverrideGeneric.kt")
|
|
public void testGenericOverrideGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("genericOverrideSpecialized.kt")
|
|
public void testGenericOverrideSpecialized() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideSpecialized.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("genericOverrideSpecializedGeneric.kt")
|
|
public void testGenericOverrideSpecializedGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverrideSpecializedGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassInOverriddenReturnTypes.kt")
|
|
public void testInlineClassInOverriddenReturnTypes() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/inlineClassInOverriddenReturnTypes.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassInOverriddenReturnTypesGeneric.kt")
|
|
public void testInlineClassInOverriddenReturnTypesGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/inlineClassInOverriddenReturnTypesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt28483.kt")
|
|
public void testKt28483() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt28483Generic.kt")
|
|
public void testKt28483Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt28483Generic2.kt")
|
|
public void testKt28483Generic2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483Generic2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt31585.kt")
|
|
public void testKt31585() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt31585Generic.kt")
|
|
public void testKt31585Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt35234.kt")
|
|
public void testKt35234() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt35234Generic.kt")
|
|
public void testKt35234Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt35234a.kt")
|
|
public void testKt35234a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234a.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overrideGenericWithInlineClass.kt")
|
|
public void testOverrideGenericWithInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overrideGenericWithInlineClassGeneric.kt")
|
|
public void testOverrideGenericWithInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullAny.kt")
|
|
public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullAny() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric.kt")
|
|
public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny.kt")
|
|
public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyG.kt")
|
|
public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyG() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyG.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyG2.kt")
|
|
public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyG2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyG2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNG.kt")
|
|
public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNG() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNG.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNG2.kt")
|
|
public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNG2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNG2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull.kt")
|
|
public void testOverrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithNullableInlineClassUpperBoundWithNonNullNullableAnyNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overrideNullableInlineClassWithNonNullAny.kt")
|
|
public void testOverrideNullableInlineClassWithNonNullAny() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overrideNullableInlineClassWithNonNullAnyGeneric.kt")
|
|
public void testOverrideNullableInlineClassWithNonNullAnyGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overrideNullableInlineClassWithNonNullNullableAny.kt")
|
|
public void testOverrideNullableInlineClassWithNonNullNullableAny() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAny.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyGeneric.kt")
|
|
public void testOverrideNullableInlineClassWithNonNullNullableAnyGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyGeneric2.kt")
|
|
public void testOverrideNullableInlineClassWithNonNullNullableAnyGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyNull.kt")
|
|
public void testOverrideNullableInlineClassWithNonNullNullableAnyNull() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyNull.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyNullGeneric.kt")
|
|
public void testOverrideNullableInlineClassWithNonNullNullableAnyNullGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyNullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overrideNullableInlineClassWithNonNullNullableAnyNullGeneric2.kt")
|
|
public void testOverrideNullableInlineClassWithNonNullNullableAnyNullGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideNullableInlineClassWithNonNullNullableAnyNullGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("relatedReturnTypes1a.kt")
|
|
public void testRelatedReturnTypes1a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1a.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("relatedReturnTypes1aGeneric.kt")
|
|
public void testRelatedReturnTypes1aGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1aGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("relatedReturnTypes1b.kt")
|
|
public void testRelatedReturnTypes1b() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1b.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("relatedReturnTypes1bGeneric.kt")
|
|
public void testRelatedReturnTypes1bGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1bGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("relatedReturnTypes2a.kt")
|
|
public void testRelatedReturnTypes2a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2a.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("relatedReturnTypes2aGeneric.kt")
|
|
public void testRelatedReturnTypes2aGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2aGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("relatedReturnTypes2b.kt")
|
|
public void testRelatedReturnTypes2b() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2b.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("relatedReturnTypes2bGeneric.kt")
|
|
public void testRelatedReturnTypes2bGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes2bGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("uncastInlineClassToAnyAndBack.kt")
|
|
public void testUncastInlineClassToAnyAndBack() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/uncastInlineClassToAnyAndBack.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("uncastInlineClassToAnyAndBackGeneric.kt")
|
|
public void testUncastInlineClassToAnyAndBackGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/uncastInlineClassToAnyAndBackGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("unrelatedGenerics.kt")
|
|
public void testUnrelatedGenerics() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/unrelatedGenerics.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("unrelatedGenericsGeneric.kt")
|
|
public void testUnrelatedGenericsGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/unrelatedGenericsGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
}
|
|
|
|
@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_IR, testDataFilePath);
|
|
}
|
|
|
|
private void runTest(String testDataFilePath, java.util.function.Function<String, String> transformer) throws Exception {
|
|
KotlinTestUtils.runTest(path -> doTestWithTransformer(path, transformer), TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInCallableReferences() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/callableReferences"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("boundInlineClassExtensionFun.kt")
|
|
public void testBoundInlineClassExtensionFun() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boundInlineClassExtensionFunGeneric.kt")
|
|
public void testBoundInlineClassExtensionFunGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boundInlineClassExtensionVal.kt")
|
|
public void testBoundInlineClassExtensionVal() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boundInlineClassExtensionValGeneric.kt")
|
|
public void testBoundInlineClassExtensionValGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassExtensionValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boundInlineClassMemberFun.kt")
|
|
public void testBoundInlineClassMemberFun() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boundInlineClassMemberFunGeneric.kt")
|
|
public void testBoundInlineClassMemberFunGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boundInlineClassMemberVal.kt")
|
|
public void testBoundInlineClassMemberVal() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boundInlineClassMemberValGeneric.kt")
|
|
public void testBoundInlineClassMemberValGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassMemberValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boundInlineClassPrimaryVal.kt")
|
|
public void testBoundInlineClassPrimaryVal() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("boundInlineClassPrimaryValGeneric.kt")
|
|
public void testBoundInlineClassPrimaryValGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("constructorWithInlineClassParameters.kt")
|
|
public void testConstructorWithInlineClassParameters() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("constructorWithInlineClassParametersGeneric.kt")
|
|
public void testConstructorWithInlineClassParametersGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalsHashCodeToString.kt")
|
|
public void testEqualsHashCodeToString() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/equalsHashCodeToString.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("equalsHashCodeToStringGeneric.kt")
|
|
public void testEqualsHashCodeToStringGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/equalsHashCodeToStringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("funWithInlineClassParameters.kt")
|
|
public void testFunWithInlineClassParameters() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("funWithInlineClassParametersGeneric.kt")
|
|
public void testFunWithInlineClassParametersGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassExtensionFun.kt")
|
|
public void testInlineClassExtensionFun() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassExtensionFunGeneric.kt")
|
|
public void testInlineClassExtensionFunGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassExtensionVal.kt")
|
|
public void testInlineClassExtensionVal() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassExtensionValGeneric.kt")
|
|
public void testInlineClassExtensionValGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassExtensionValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassInternalPrimaryVal.kt")
|
|
public void testInlineClassInternalPrimaryVal() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassInternalPrimaryVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassInternalPrimaryValGeneric.kt")
|
|
public void testInlineClassInternalPrimaryValGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassInternalPrimaryValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassMemberFun.kt")
|
|
public void testInlineClassMemberFun() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassMemberFunGeneric.kt")
|
|
public void testInlineClassMemberFunGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassMemberVal.kt")
|
|
public void testInlineClassMemberVal() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassMemberValGeneric.kt")
|
|
public void testInlineClassMemberValGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassMemberValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassPrimaryConstructor.kt")
|
|
public void testInlineClassPrimaryConstructor() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassPrimaryConstructorGeneric.kt")
|
|
public void testInlineClassPrimaryConstructorGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassPrimaryVal.kt")
|
|
public void testInlineClassPrimaryVal() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassPrimaryValGeneric.kt")
|
|
public void testInlineClassPrimaryValGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrimaryValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassPrivatePrimaryVal.kt")
|
|
public void testInlineClassPrivatePrimaryVal() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrivatePrimaryVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassPrivatePrimaryValGeneric.kt")
|
|
public void testInlineClassPrivatePrimaryValGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassPrivatePrimaryValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassTypeBoundMemberVar.kt")
|
|
public void testInlineClassTypeBoundMemberVar() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeBoundMemberVar.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassTypeBoundMemberVarGeneric.kt")
|
|
public void testInlineClassTypeBoundMemberVarGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeBoundMemberVarGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassTypeMemberVar.kt")
|
|
public void testInlineClassTypeMemberVar() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeMemberVar.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassTypeMemberVarGeneric.kt")
|
|
public void testInlineClassTypeMemberVarGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeMemberVarGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassTypeTopLevelVar.kt")
|
|
public void testInlineClassTypeTopLevelVar() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeTopLevelVar.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassTypeTopLevelVarGeneric.kt")
|
|
public void testInlineClassTypeTopLevelVarGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/inlineClassTypeTopLevelVarGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt37986.kt")
|
|
public void testKt37986() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/kt37986.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt37986Generic.kt")
|
|
public void testKt37986Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/kt37986Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@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_IR, testDataFilePath);
|
|
}
|
|
|
|
private void runTest(String testDataFilePath, java.util.function.Function<String, String> transformer) throws Exception {
|
|
KotlinTestUtils.runTest(path -> doTestWithTransformer(path, transformer), TargetBackend.JVM_IR, 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_IR, true);
|
|
}
|
|
|
|
@TestMetadata("any.kt")
|
|
public void testAny() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/any.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("anyGeneric.kt")
|
|
public void testAnyGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("anyN.kt")
|
|
public void testAnyN() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("anyNGeneric.kt")
|
|
public void testAnyNGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("anyNGeneric2.kt")
|
|
public void testAnyNGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/anyNGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("int.kt")
|
|
public void testInt() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/int.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("intGeneric.kt")
|
|
public void testIntGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("intN.kt")
|
|
public void testIntN() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("intNGeneric.kt")
|
|
public void testIntNGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("intNGeneric2.kt")
|
|
public void testIntNGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/intNGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("null.kt")
|
|
public void testNull() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/null.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("nullGeneric.kt")
|
|
public void testNullGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/nullGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@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", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("stringGeneric.kt")
|
|
public void testStringGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("stringN.kt")
|
|
public void testStringN() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("stringNGeneric.kt")
|
|
public void testStringNGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("stringNGeneric2.kt")
|
|
public void testStringNGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/let/stringNGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
}
|
|
}
|
|
|
|
@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_IR, testDataFilePath);
|
|
}
|
|
|
|
private void runTest(String testDataFilePath, java.util.function.Function<String, String> transformer) throws Exception {
|
|
KotlinTestUtils.runTest(path -> doTestWithTransformer(path, transformer), TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
@TestMetadata("accessPrivateInlineClassCompanionMethod.kt")
|
|
public void testAccessPrivateInlineClassCompanionMethod() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("accessPrivateInlineClassCompanionMethod2.kt")
|
|
public void testAccessPrivateInlineClassCompanionMethod2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("accessPrivateInlineClassCompanionMethod2Generic.kt")
|
|
public void testAccessPrivateInlineClassCompanionMethod2Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("accessPrivateInlineClassCompanionMethodGeneric.kt")
|
|
public void testAccessPrivateInlineClassCompanionMethodGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethodGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("accessPrivateInlineClassConstructorFromCompanion.kt")
|
|
public void testAccessPrivateInlineClassConstructorFromCompanion() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("accessPrivateInlineClassConstructorFromCompanionGeneric.kt")
|
|
public void testAccessPrivateInlineClassConstructorFromCompanionGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("accessPrivateInlineClassConstructorFromLambda.kt")
|
|
public void testAccessPrivateInlineClassConstructorFromLambda() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("accessPrivateInlineClassConstructorFromLambdaGeneric.kt")
|
|
public void testAccessPrivateInlineClassConstructorFromLambdaGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassConstructorFromLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("accessPrivateInlineClassMethodFromCompanion.kt")
|
|
public void testAccessPrivateInlineClassMethodFromCompanion() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("accessPrivateInlineClassMethodFromCompanion2.kt")
|
|
public void testAccessPrivateInlineClassMethodFromCompanion2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("accessPrivateInlineClassMethodFromCompanion2Generic.kt")
|
|
public void testAccessPrivateInlineClassMethodFromCompanion2Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("accessPrivateInlineClassMethodFromCompanionGeneric.kt")
|
|
public void testAccessPrivateInlineClassMethodFromCompanionGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanionGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("accessPrivateInlineClassMethodFromInlineLambda.kt")
|
|
public void testAccessPrivateInlineClassMethodFromInlineLambda() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("accessPrivateInlineClassMethodFromInlineLambda2.kt")
|
|
public void testAccessPrivateInlineClassMethodFromInlineLambda2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("accessPrivateInlineClassMethodFromInlineLambda2Generic.kt")
|
|
public void testAccessPrivateInlineClassMethodFromInlineLambda2Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("accessPrivateInlineClassMethodFromInlineLambdaGeneric.kt")
|
|
public void testAccessPrivateInlineClassMethodFromInlineLambdaGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("accessPrivateInlineClassMethodFromLambda.kt")
|
|
public void testAccessPrivateInlineClassMethodFromLambda() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("accessPrivateInlineClassMethodFromLambda2.kt")
|
|
public void testAccessPrivateInlineClassMethodFromLambda2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("accessPrivateInlineClassMethodFromLambda2Generic.kt")
|
|
public void testAccessPrivateInlineClassMethodFromLambda2Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("accessPrivateInlineClassMethodFromLambdaGeneric.kt")
|
|
public void testAccessPrivateInlineClassMethodFromLambdaGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("accessPrivateStaticInlineClassCompanionMethod.kt")
|
|
public void testAccessPrivateStaticInlineClassCompanionMethod() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateStaticInlineClassCompanionMethod.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("accessPrivateStaticInlineClassCompanionMethodGeneric.kt")
|
|
public void testAccessPrivateStaticInlineClassCompanionMethodGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateStaticInlineClassCompanionMethodGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
public void testAllFilesPresentInContextsAndAccessors() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("captureInlineClassInstanceInLambda.kt")
|
|
public void testCaptureInlineClassInstanceInLambda() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("captureInlineClassInstanceInLambda2.kt")
|
|
public void testCaptureInlineClassInstanceInLambda2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("captureInlineClassInstanceInLambda2Generic.kt")
|
|
public void testCaptureInlineClassInstanceInLambda2Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambda2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("captureInlineClassInstanceInLambdaGeneric.kt")
|
|
public void testCaptureInlineClassInstanceInLambdaGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInLambdaGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("captureInlineClassInstanceInObject.kt")
|
|
public void testCaptureInlineClassInstanceInObject() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInObject.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("captureInlineClassInstanceInObjectGeneric.kt")
|
|
public void testCaptureInlineClassInstanceInObjectGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInObjectGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineLambdaInInlineClassFun.kt")
|
|
public void testInlineLambdaInInlineClassFun() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineLambdaInInlineClassFunGeneric.kt")
|
|
public void testInlineLambdaInInlineClassFunGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt26858.kt")
|
|
public void testKt26858() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt26858Generic.kt")
|
|
public void testKt26858Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27513.kt")
|
|
public void testKt27513() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27513Generic.kt")
|
|
public void testKt27513Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt30780.kt")
|
|
public void testKt30780() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt30780.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt30780Generic.kt")
|
|
public void testKt30780Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt30780Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("lambdaInInlineClassFun.kt")
|
|
public void testLambdaInInlineClassFun() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("lambdaInInlineClassFunGeneric.kt")
|
|
public void testLambdaInInlineClassFunGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("objectInInlineClassFun.kt")
|
|
public void testObjectInInlineClassFun() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/objectInInlineClassFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("objectInInlineClassFunGeneric.kt")
|
|
public void testObjectInInlineClassFunGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/objectInInlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("toPrivateCompanionFun.kt")
|
|
public void testToPrivateCompanionFun() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("toPrivateCompanionFunGeneric.kt")
|
|
public void testToPrivateCompanionFunGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("toPrivateCompanionVal.kt")
|
|
public void testToPrivateCompanionVal() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionVal.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("toPrivateCompanionValGeneric.kt")
|
|
public void testToPrivateCompanionValGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionValGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
}
|
|
|
|
@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_IR, testDataFilePath);
|
|
}
|
|
|
|
private void runTest(String testDataFilePath, java.util.function.Function<String, String> transformer) throws Exception {
|
|
KotlinTestUtils.runTest(path -> doTestWithTransformer(path, transformer), TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInDefaultParameterValues() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/defaultParameterValues"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("defaultConstructorParameterValuesOfInlineClassType.kt")
|
|
public void testDefaultConstructorParameterValuesOfInlineClassType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultConstructorParameterValuesOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("defaultConstructorParameterValuesOfInlineClassTypeGeneric.kt")
|
|
public void testDefaultConstructorParameterValuesOfInlineClassTypeGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultConstructorParameterValuesOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("defaultInterfaceFunParameterValuesOfInlineClassType.kt")
|
|
public void testDefaultInterfaceFunParameterValuesOfInlineClassType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultInterfaceFunParameterValuesOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("defaultInterfaceFunParameterValuesOfInlineClassTypeGeneric.kt")
|
|
public void testDefaultInterfaceFunParameterValuesOfInlineClassTypeGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultInterfaceFunParameterValuesOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("defaultParameterValuesOfInlineClassType.kt")
|
|
public void testDefaultParameterValuesOfInlineClassType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultParameterValuesOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("defaultParameterValuesOfInlineClassTypeBoxing.kt")
|
|
public void testDefaultParameterValuesOfInlineClassTypeBoxing() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultParameterValuesOfInlineClassTypeBoxing.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("defaultParameterValuesOfInlineClassTypeBoxingGeneric.kt")
|
|
public void testDefaultParameterValuesOfInlineClassTypeBoxingGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultParameterValuesOfInlineClassTypeBoxingGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("defaultParameterValuesOfInlineClassTypeGeneric.kt")
|
|
public void testDefaultParameterValuesOfInlineClassTypeGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultParameterValuesOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("defaultValueOfInlineClassTypeInInlineFun.kt")
|
|
public void testDefaultValueOfInlineClassTypeInInlineFun() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultValueOfInlineClassTypeInInlineFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("defaultValueOfInlineClassTypeInInlineFunGeneric.kt")
|
|
public void testDefaultValueOfInlineClassTypeInInlineFunGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultValueOfInlineClassTypeInInlineFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("defaultValueOfInlineClassTypeInInlineFunInInlineClass.kt")
|
|
public void testDefaultValueOfInlineClassTypeInInlineFunInInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultValueOfInlineClassTypeInInlineFunInInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("defaultValueOfInlineClassTypeInInlineFunInInlineClassGeneric.kt")
|
|
public void testDefaultValueOfInlineClassTypeInInlineFunInInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultValueOfInlineClassTypeInInlineFunInInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassFun.kt")
|
|
public void testInlineClassFun() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/inlineClassFun.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassFunGeneric.kt")
|
|
public void testInlineClassFunGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/inlineClassFunGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassPrimaryConstructor.kt")
|
|
public void testInlineClassPrimaryConstructor() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/inlineClassPrimaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassPrimaryConstructorGeneric.kt")
|
|
public void testInlineClassPrimaryConstructorGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/inlineClassPrimaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassPrimaryConstructorWithInlineClassValue.kt")
|
|
public void testInlineClassPrimaryConstructorWithInlineClassValue() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/inlineClassPrimaryConstructorWithInlineClassValue.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassPrimaryConstructorWithInlineClassValueGeneric.kt")
|
|
public void testInlineClassPrimaryConstructorWithInlineClassValueGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/inlineClassPrimaryConstructorWithInlineClassValueGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassSecondaryConstructor.kt")
|
|
public void testInlineClassSecondaryConstructor() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/inlineClassSecondaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineClassSecondaryConstructorGeneric.kt")
|
|
public void testInlineClassSecondaryConstructorGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/inlineClassSecondaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt26554.kt")
|
|
public void testKt26554() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/kt26554.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27416.kt")
|
|
public void testKt27416() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/kt27416.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27416Generic.kt")
|
|
public void testKt27416Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/kt27416Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class DefaultWithDefaultParameter extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
private void runTest(String testDataFilePath, java.util.function.Function<String, String> transformer) throws Exception {
|
|
KotlinTestUtils.runTest(path -> doTestWithTransformer(path, transformer), TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
@TestMetadata("all.kt")
|
|
public void testAll() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/all.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
public void testAllFilesPresentInDefaultWithDefaultParameter() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("allGeneric.kt")
|
|
public void testAllGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/allGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("all-compatibility.kt")
|
|
public void testAll_compatibility() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/all-compatibility.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("all-compatibilityGeneric.kt")
|
|
public void testAll_compatibilityGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/all-compatibilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("default.kt")
|
|
public void testDefault() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/default.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("defaultGeneric.kt")
|
|
public void testDefaultGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/defaultWithDefaultParameter/defaultGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class OverrideFunctionWithDefaultParameter extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
private void runTest(String testDataFilePath, java.util.function.Function<String, String> transformer) throws Exception {
|
|
KotlinTestUtils.runTest(path -> doTestWithTransformer(path, transformer), TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
@TestMetadata("all.kt")
|
|
public void testAll() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/all.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
public void testAllFilesPresentInOverrideFunctionWithDefaultParameter() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("allGeneric.kt")
|
|
public void testAllGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/allGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("all-compatibility.kt")
|
|
public void testAll_compatibility() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/all-compatibility.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("all-compatibilityGeneric.kt")
|
|
public void testAll_compatibilityGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/all-compatibilityGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("default.kt")
|
|
public void testDefault() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/default.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("defaultGeneric.kt")
|
|
public void testDefaultGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/defaultParameterValues/overrideFunctionWithDefaultParameter/defaultGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class DelegationByUnderlyingType extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInDelegationByUnderlyingType() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("default.kt")
|
|
public void testDefault() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/default.kt");
|
|
}
|
|
|
|
@TestMetadata("defaultArgument.kt")
|
|
public void testDefaultArgument() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgument.kt");
|
|
}
|
|
|
|
@TestMetadata("defaultArgumentGeneric.kt")
|
|
public void testDefaultArgumentGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultArgumentGeneric.kt");
|
|
}
|
|
|
|
@TestMetadata("defaultGeneric.kt")
|
|
public void testDefaultGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/defaultGeneric.kt");
|
|
}
|
|
|
|
@TestMetadata("simple.kt")
|
|
public void testSimple() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/simple.kt");
|
|
}
|
|
|
|
@TestMetadata("simpleGeneric.kt")
|
|
public void testSimpleGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/delegationByUnderlyingType/simpleGeneric.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/inlineClasses/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_IR, testDataFilePath);
|
|
}
|
|
|
|
private void runTest(String testDataFilePath, java.util.function.Function<String, String> transformer) throws Exception {
|
|
KotlinTestUtils.runTest(path -> doTestWithTransformer(path, transformer), TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInFunInterface() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/funInterface"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("argumentIC.kt")
|
|
public void testArgumentIC() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/funInterface/argumentIC.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("argumentICGeneric.kt")
|
|
public void testArgumentICGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/funInterface/argumentICGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("argumentICGeneric2.kt")
|
|
public void testArgumentICGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/funInterface/argumentICGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("argumentResult.kt")
|
|
public void testArgumentResult() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/funInterface/argumentResult.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("kt51121.kt")
|
|
public void testKt51121() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/funInterface/kt51121.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt51121_2.kt")
|
|
public void testKt51121_2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/funInterface/kt51121_2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("mangledSamWrappers.kt")
|
|
public void testMangledSamWrappers() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/funInterface/mangledSamWrappers.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("mangledSamWrappersGeneric.kt")
|
|
public void testMangledSamWrappersGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/funInterface/mangledSamWrappersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("returnIC.kt")
|
|
public void testReturnIC() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/funInterface/returnIC.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("returnICGeneric.kt")
|
|
public void testReturnICGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/funInterface/returnICGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("returnICGeneric2.kt")
|
|
public void testReturnICGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/funInterface/returnICGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("returnResult.kt")
|
|
public void testReturnResult() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/funInterface/returnResult.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_IR, testDataFilePath);
|
|
}
|
|
|
|
private void runTest(String testDataFilePath, java.util.function.Function<String, String> transformer) throws Exception {
|
|
KotlinTestUtils.runTest(path -> doTestWithTransformer(path, transformer), TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInFunctionNameMangling() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/functionNameMangling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("anonymousObjectInFunctionWithMangledName.kt")
|
|
public void testAnonymousObjectInFunctionWithMangledName() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/anonymousObjectInFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("anonymousObjectInFunctionWithMangledNameGeneric.kt")
|
|
public void testAnonymousObjectInFunctionWithMangledNameGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/anonymousObjectInFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("extensionFunctionsDoNotClash.kt")
|
|
public void testExtensionFunctionsDoNotClash() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/extensionFunctionsDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("extensionFunctionsDoNotClashGeneric.kt")
|
|
public void testExtensionFunctionsDoNotClashGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/extensionFunctionsDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("functionsWithDifferentNullabilityDoNotClash.kt")
|
|
public void testFunctionsWithDifferentNullabilityDoNotClash() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/functionsWithDifferentNullabilityDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("functionsWithDifferentNullabilityDoNotClashGeneric.kt")
|
|
public void testFunctionsWithDifferentNullabilityDoNotClashGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/functionsWithDifferentNullabilityDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("genericFunctionsDoNotClash.kt")
|
|
public void testGenericFunctionsDoNotClash() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericFunctionsDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("genericFunctionsDoNotClashGeneric.kt")
|
|
public void testGenericFunctionsDoNotClashGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericFunctionsDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("genericSignatureOfFunctionWithMangledName.kt")
|
|
public void testGenericSignatureOfFunctionWithMangledName() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericSignatureOfFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("genericSignatureOfFunctionWithMangledNameGeneric.kt")
|
|
public void testGenericSignatureOfFunctionWithMangledNameGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericSignatureOfFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("localClassInFunctionWithMangledName.kt")
|
|
public void testLocalClassInFunctionWithMangledName() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/localClassInFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("localClassInFunctionWithMangledNameGeneric.kt")
|
|
public void testLocalClassInFunctionWithMangledNameGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/localClassInFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("mangledFunctionsCanBeOverridden.kt")
|
|
public void testMangledFunctionsCanBeOverridden() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsCanBeOverridden.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("mangledFunctionsCanBeOverriddenGeneric.kt")
|
|
public void testMangledFunctionsCanBeOverriddenGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsCanBeOverriddenGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("mangledFunctionsDoNotClash.kt")
|
|
public void testMangledFunctionsDoNotClash() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("mangledFunctionsDoNotClashGeneric.kt")
|
|
public void testMangledFunctionsDoNotClashGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("mangledFunctionsPresentInStackTrace.kt")
|
|
public void testMangledFunctionsPresentInStackTrace() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsPresentInStackTrace.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("mangledFunctionsPresentInStackTraceGeneric.kt")
|
|
public void testMangledFunctionsPresentInStackTraceGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mangledFunctionsPresentInStackTraceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("mixedSignatureFunctionsDoNotClash.kt")
|
|
public void testMixedSignatureFunctionsDoNotClash() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mixedSignatureFunctionsDoNotClash.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("mixedSignatureFunctionsDoNotClashGeneric.kt")
|
|
public void testMixedSignatureFunctionsDoNotClashGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/mixedSignatureFunctionsDoNotClashGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overridingMethodInGenericClass.kt")
|
|
public void testOverridingMethodInGenericClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overridingMethodInGenericClass2.kt")
|
|
public void testOverridingMethodInGenericClass2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overridingMethodInGenericClass2Generic.kt")
|
|
public void testOverridingMethodInGenericClass2Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overridingMethodInGenericClassGeneric.kt")
|
|
public void testOverridingMethodInGenericClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("propertySetterWithInlineClassTypeArgument.kt")
|
|
public void testPropertySetterWithInlineClassTypeArgument() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/propertySetterWithInlineClassTypeArgument.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("propertySetterWithInlineClassTypeArgumentGeneric.kt")
|
|
public void testPropertySetterWithInlineClassTypeArgumentGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/propertySetterWithInlineClassTypeArgumentGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("reflectionForFunctionWithMangledName.kt")
|
|
public void testReflectionForFunctionWithMangledName() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("reflectionForFunctionWithMangledNameGeneric.kt")
|
|
public void testReflectionForFunctionWithMangledNameGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("reflectionForLocalClassInFunctionWithMangledName.kt")
|
|
public void testReflectionForLocalClassInFunctionWithMangledName() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForLocalClassInFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("reflectionForLocalClassInFunctionWithMangledNameGeneric.kt")
|
|
public void testReflectionForLocalClassInFunctionWithMangledNameGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForLocalClassInFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("reflectionForPropertyOfInlineClassType.kt")
|
|
public void testReflectionForPropertyOfInlineClassType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForPropertyOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("reflectionForPropertyOfInlineClassTypeGeneric.kt")
|
|
public void testReflectionForPropertyOfInlineClassTypeGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/reflectionForPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("syntheticAccessorForFunctionWithMangledName.kt")
|
|
public void testSyntheticAccessorForFunctionWithMangledName() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorForFunctionWithMangledName.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("syntheticAccessorForFunctionWithMangledNameGeneric.kt")
|
|
public void testSyntheticAccessorForFunctionWithMangledNameGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorForFunctionWithMangledNameGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("syntheticAccessorsForPropertyOfInlineClassType.kt")
|
|
public void testSyntheticAccessorsForPropertyOfInlineClassType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorsForPropertyOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("syntheticAccessorsForPropertyOfInlineClassTypeGeneric.kt")
|
|
public void testSyntheticAccessorsForPropertyOfInlineClassTypeGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/functionNameMangling/syntheticAccessorsForPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class GenericUnderlyingValue extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInGenericUnderlyingValue() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("array.kt")
|
|
public void testArray() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/array.kt");
|
|
}
|
|
|
|
@TestMetadata("arrayIC.kt")
|
|
public void testArrayIC() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/arrayIC.kt");
|
|
}
|
|
|
|
@TestMetadata("primitive.kt")
|
|
public void testPrimitive() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/primitive.kt");
|
|
}
|
|
|
|
@TestMetadata("recursive.kt")
|
|
public void testRecursive() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/recursive.kt");
|
|
}
|
|
|
|
@TestMetadata("simple.kt")
|
|
public void testSimple() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/simple.kt");
|
|
}
|
|
|
|
@TestMetadata("simple2.kt")
|
|
public void testSimple2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/simple2.kt");
|
|
}
|
|
|
|
@TestMetadata("upperBound.kt")
|
|
public void testUpperBound() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/upperBound.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_IR, testDataFilePath);
|
|
}
|
|
|
|
private void runTest(String testDataFilePath, java.util.function.Function<String, String> transformer) throws Exception {
|
|
KotlinTestUtils.runTest(path -> doTestWithTransformer(path, transformer), TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInHiddenConstructor() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/hiddenConstructor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("constructorReferencedFromOtherFile1.kt")
|
|
public void testConstructorReferencedFromOtherFile1() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile1.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("constructorReferencedFromOtherFile1Generic.kt")
|
|
public void testConstructorReferencedFromOtherFile1Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile1Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("constructorReferencedFromOtherFile2.kt")
|
|
public void testConstructorReferencedFromOtherFile2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("constructorReferencedFromOtherFile2Generic.kt")
|
|
public void testConstructorReferencedFromOtherFile2Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorReferencedFromOtherFile2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("constructorWithDefaultParameters.kt")
|
|
public void testConstructorWithDefaultParameters() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorWithDefaultParameters.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("constructorWithDefaultParametersGeneric.kt")
|
|
public void testConstructorWithDefaultParametersGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/constructorWithDefaultParametersGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("delegatingSuperConstructorCall.kt")
|
|
public void testDelegatingSuperConstructorCall() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("delegatingSuperConstructorCallGeneric.kt")
|
|
public void testDelegatingSuperConstructorCallGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("delegatingSuperConstructorCallInSecondaryConstructor.kt")
|
|
public void testDelegatingSuperConstructorCallInSecondaryConstructor() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallInSecondaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("delegatingSuperConstructorCallInSecondaryConstructorGeneric.kt")
|
|
public void testDelegatingSuperConstructorCallInSecondaryConstructorGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingSuperConstructorCallInSecondaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("delegatingThisConstructorCall.kt")
|
|
public void testDelegatingThisConstructorCall() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingThisConstructorCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("delegatingThisConstructorCallGeneric.kt")
|
|
public void testDelegatingThisConstructorCallGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/delegatingThisConstructorCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("enumClassConstructor.kt")
|
|
public void testEnumClassConstructor() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/enumClassConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("enumClassConstructorGeneric.kt")
|
|
public void testEnumClassConstructorGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/enumClassConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("innerClassConstructor.kt")
|
|
public void testInnerClassConstructor() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/innerClassConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("innerClassConstructorGeneric.kt")
|
|
public void testInnerClassConstructorGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/innerClassConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@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", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("primaryConstructorGeneric.kt")
|
|
public void testPrimaryConstructorGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/primaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("privateConstructor.kt")
|
|
public void testPrivateConstructor() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/privateConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("privateConstructorGeneric.kt")
|
|
public void testPrivateConstructorGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/privateConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("sealedClassConstructor.kt")
|
|
public void testSealedClassConstructor() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/sealedClassConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("sealedClassConstructorGeneric.kt")
|
|
public void testSealedClassConstructorGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/sealedClassConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("secondaryConstructor.kt")
|
|
public void testSecondaryConstructor() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/secondaryConstructor.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("secondaryConstructorGeneric.kt")
|
|
public void testSecondaryConstructorGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/hiddenConstructor/secondaryConstructorGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
}
|
|
|
|
@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_IR, testDataFilePath);
|
|
}
|
|
|
|
private void runTest(String testDataFilePath, java.util.function.Function<String, String> transformer) throws Exception {
|
|
KotlinTestUtils.runTest(path -> doTestWithTransformer(path, transformer), TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInInlineClassCollection() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/inlineClassCollection"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("inlineCollectionOfInlineClass.kt")
|
|
public void testInlineCollectionOfInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineCollectionOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineCollectionOfInlineClassGeneric.kt")
|
|
public void testInlineCollectionOfInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineCollectionOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineListOfInlineClass.kt")
|
|
public void testInlineListOfInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineListOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineListOfInlineClassGeneric.kt")
|
|
public void testInlineListOfInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineListOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineMapOfInlineClass.kt")
|
|
public void testInlineMapOfInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineMapOfInlineClassGeneric.kt")
|
|
public void testInlineMapOfInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMapOfInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("inlineMutableCollectionBulkAdd.kt")
|
|
public void testInlineMutableCollectionBulkAdd() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineMutableCollectionBulkAdd.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
}
|
|
|
|
@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_IR, testDataFilePath);
|
|
}
|
|
|
|
private void runTest(String testDataFilePath, java.util.function.Function<String, String> transformer) throws Exception {
|
|
KotlinTestUtils.runTest(path -> doTestWithTransformer(path, transformer), TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInInterfaceDelegation() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/interfaceDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("interfaceImplementationByDelegation.kt")
|
|
public void testInterfaceImplementationByDelegation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegation.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("interfaceImplementationByDelegationGeneric.kt")
|
|
public void testInterfaceImplementationByDelegationGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegationGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt38337.kt")
|
|
public void testKt38337() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt38337Generic.kt")
|
|
public void testKt38337Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("memberExtValDelegationWithInlineClassParameterTypes.kt")
|
|
public void testMemberExtValDelegationWithInlineClassParameterTypes() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypes.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("memberExtValDelegationWithInlineClassParameterTypesGeneric.kt")
|
|
public void testMemberExtValDelegationWithInlineClassParameterTypesGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("memberExtVarDelegationWithInlineClassParameterTypes.kt")
|
|
public void testMemberExtVarDelegationWithInlineClassParameterTypes() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtVarDelegationWithInlineClassParameterTypes.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("memberFunDelegatedToInlineClassInt.kt")
|
|
public void testMemberFunDelegatedToInlineClassInt() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassInt.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("memberFunDelegatedToInlineClassIntGeneric.kt")
|
|
public void testMemberFunDelegatedToInlineClassIntGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassIntGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("memberFunDelegatedToInlineClassLong.kt")
|
|
public void testMemberFunDelegatedToInlineClassLong() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassLong.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("memberFunDelegatedToInlineClassLongGeneric.kt")
|
|
public void testMemberFunDelegatedToInlineClassLongGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegatedToInlineClassLongGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("memberFunDelegationToInlineClassWithInlineClassParameterTypes.kt")
|
|
public void testMemberFunDelegationToInlineClassWithInlineClassParameterTypes() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypes.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.kt")
|
|
public void testMemberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationToInlineClassWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("memberFunDelegationWithInlineClassParameterTypes.kt")
|
|
public void testMemberFunDelegationWithInlineClassParameterTypes() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypes.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("memberFunDelegationWithInlineClassParameterTypesGeneric.kt")
|
|
public void testMemberFunDelegationWithInlineClassParameterTypesGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberFunDelegationWithInlineClassParameterTypesGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
}
|
|
|
|
@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_IR, testDataFilePath);
|
|
}
|
|
|
|
private void runTest(String testDataFilePath, java.util.function.Function<String, String> transformer) throws Exception {
|
|
KotlinTestUtils.runTest(path -> doTestWithTransformer(path, transformer), TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInInterfaceMethodCalls() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("complexGenericMethodWithInlineClassOverride.kt")
|
|
public void testComplexGenericMethodWithInlineClassOverride() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("complexGenericMethodWithInlineClassOverride2.kt")
|
|
public void testComplexGenericMethodWithInlineClassOverride2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("complexGenericMethodWithInlineClassOverride2Generic.kt")
|
|
public void testComplexGenericMethodWithInlineClassOverride2Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride2Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("complexGenericMethodWithInlineClassOverride3.kt")
|
|
public void testComplexGenericMethodWithInlineClassOverride3() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride3.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("complexGenericMethodWithInlineClassOverride3Generic.kt")
|
|
public void testComplexGenericMethodWithInlineClassOverride3Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverride3Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("complexGenericMethodWithInlineClassOverrideGeneric.kt")
|
|
public void testComplexGenericMethodWithInlineClassOverrideGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/complexGenericMethodWithInlineClassOverrideGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("defaultInterfaceExtensionFunCall.kt")
|
|
public void testDefaultInterfaceExtensionFunCall() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceExtensionFunCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("defaultInterfaceExtensionFunCallGeneric.kt")
|
|
public void testDefaultInterfaceExtensionFunCallGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceExtensionFunCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("defaultInterfaceMethodCall.kt")
|
|
public void testDefaultInterfaceMethodCall() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceMethodCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("defaultInterfaceMethodCallGeneric.kt")
|
|
public void testDefaultInterfaceMethodCallGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/defaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("genericDefaultInterfaceExtensionFunCall.kt")
|
|
public void testGenericDefaultInterfaceExtensionFunCall() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceExtensionFunCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("genericDefaultInterfaceExtensionFunCallGeneric.kt")
|
|
public void testGenericDefaultInterfaceExtensionFunCallGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceExtensionFunCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("genericDefaultInterfaceMethodCall.kt")
|
|
public void testGenericDefaultInterfaceMethodCall() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceMethodCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("genericDefaultInterfaceMethodCallGeneric.kt")
|
|
public void testGenericDefaultInterfaceMethodCallGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericDefaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("genericInterfaceMethodCall.kt")
|
|
public void testGenericInterfaceMethodCall() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericInterfaceMethodCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("genericInterfaceMethodCallGeneric.kt")
|
|
public void testGenericInterfaceMethodCallGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericInterfaceMethodCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("genericMethodWithInlineClassOverride.kt")
|
|
public void testGenericMethodWithInlineClassOverride() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverride.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("genericMethodWithInlineClassOverrideGeneric.kt")
|
|
public void testGenericMethodWithInlineClassOverrideGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverrideGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("interfaceSuperCall.kt")
|
|
public void testInterfaceSuperCall() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/interfaceSuperCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("interfaceSuperCallGeneric.kt")
|
|
public void testInterfaceSuperCallGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/interfaceSuperCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overriddenDefaultInterfaceMethodCall.kt")
|
|
public void testOverriddenDefaultInterfaceMethodCall() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overriddenDefaultInterfaceMethodCallGeneric.kt")
|
|
public void testOverriddenDefaultInterfaceMethodCallGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
}
|
|
|
|
@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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInJavaInterop() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/javaInterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("kt55945.kt")
|
|
public void testKt55945() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/javaInterop/kt55945.kt");
|
|
}
|
|
|
|
@TestMetadata("methodWithInlineClassDeclaredInJava.kt")
|
|
public void testMethodWithInlineClassDeclaredInJava() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/javaInterop/methodWithInlineClassDeclaredInJava.kt");
|
|
}
|
|
|
|
@TestMetadata("methodWithInlineClassDeclaredInJavaOverriddenInKotlin.kt")
|
|
public void testMethodWithInlineClassDeclaredInJavaOverriddenInKotlin() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/javaInterop/methodWithInlineClassDeclaredInJavaOverriddenInKotlin.kt");
|
|
}
|
|
|
|
@TestMetadata("methodWithInlineClassInheritedBothFromJavaAndKotlin.kt")
|
|
public void testMethodWithInlineClassInheritedBothFromJavaAndKotlin() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/javaInterop/methodWithInlineClassInheritedBothFromJavaAndKotlin.kt");
|
|
}
|
|
|
|
@TestMetadata("methodWithInlineClassInheritedInJavaOverriddenInKotlin.kt")
|
|
public void testMethodWithInlineClassInheritedInJavaOverriddenInKotlin() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/javaInterop/methodWithInlineClassInheritedInJavaOverriddenInKotlin.kt");
|
|
}
|
|
|
|
@TestMetadata("oldFunctionMangling.kt")
|
|
public void testOldFunctionMangling() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/javaInterop/oldFunctionMangling.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_IR, testDataFilePath);
|
|
}
|
|
|
|
private void runTest(String testDataFilePath, java.util.function.Function<String, String> transformer) throws Exception {
|
|
KotlinTestUtils.runTest(path -> doTestWithTransformer(path, transformer), TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInJvm8DefaultInterfaceMethods() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("inlineClassInheritingDefaultMethod.kt")
|
|
public void testInlineClassInheritingDefaultMethod() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/inlineClassInheritingDefaultMethod.kt");
|
|
}
|
|
|
|
@TestMetadata("inlineClassInheritingDefaultMethodAll.kt")
|
|
public void testInlineClassInheritingDefaultMethodAll() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/inlineClassInheritingDefaultMethodAll.kt");
|
|
}
|
|
|
|
@TestMetadata("inlineClassInheritingDefaultMethodAllGeneric.kt")
|
|
public void testInlineClassInheritingDefaultMethodAllGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/inlineClassInheritingDefaultMethodAllGeneric.kt");
|
|
}
|
|
|
|
@TestMetadata("inlineClassInheritingDefaultMethodGeneric.kt")
|
|
public void testInlineClassInheritingDefaultMethodGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/inlineClassInheritingDefaultMethodGeneric.kt");
|
|
}
|
|
|
|
@TestMetadata("javaDefaultMethod.kt")
|
|
public void testJavaDefaultMethod() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethod.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("javaDefaultMethodGeneric.kt")
|
|
public void testJavaDefaultMethodGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethodGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("javaDefaultMethodOverriddenByKotlin.kt")
|
|
public void testJavaDefaultMethodOverriddenByKotlin() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethodOverriddenByKotlin.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("javaDefaultMethodOverriddenByKotlinGeneric.kt")
|
|
public void testJavaDefaultMethodOverriddenByKotlinGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/javaDefaultMethodOverriddenByKotlinGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("jvmDefaultAll.kt")
|
|
public void testJvmDefaultAll() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAll.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("jvmDefaultAllGeneric.kt")
|
|
public void testJvmDefaultAllGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("jvmDefaultAllPrimaryProperty.kt")
|
|
public void testJvmDefaultAllPrimaryProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllPrimaryProperty.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("jvmDefaultAllPrimaryPropertyGeneric.kt")
|
|
public void testJvmDefaultAllPrimaryPropertyGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllPrimaryPropertyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("jvmDefaultAllProperty.kt")
|
|
public void testJvmDefaultAllProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllProperty.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("jvmDefaultAllPropertyGeneric.kt")
|
|
public void testJvmDefaultAllPropertyGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultAllPropertyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("jvmDefaultGeneric.kt")
|
|
public void testJvmDefaultGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("jvmDefaultGenericGeneric.kt")
|
|
public void testJvmDefaultGenericGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultGenericGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("jvmDefaultSafeCall.kt")
|
|
public void testJvmDefaultSafeCall() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSafeCall.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("jvmDefaultSafeCallGeneric.kt")
|
|
public void testJvmDefaultSafeCallGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSafeCallGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("jvmDefaultSmartCast.kt")
|
|
public void testJvmDefaultSmartCast() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSmartCast.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("jvmDefaultSmartCastGeneric.kt")
|
|
public void testJvmDefaultSmartCastGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSmartCastGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("jvmDefaultSuspend.kt")
|
|
public void testJvmDefaultSuspend() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSuspend.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("jvmDefaultSuspendGeneric.kt")
|
|
public void testJvmDefaultSuspendGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSuspendGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
}
|
|
|
|
@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_IR, testDataFilePath);
|
|
}
|
|
|
|
private void runTest(String testDataFilePath, java.util.function.Function<String, String> transformer) throws Exception {
|
|
KotlinTestUtils.runTest(path -> doTestWithTransformer(path, transformer), TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInPropertyDelegation() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/propertyDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("captureLocalVarDelegatedToInlineClass.kt")
|
|
public void testCaptureLocalVarDelegatedToInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/captureLocalVarDelegatedToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("captureLocalVarDelegatedToInlineClassGeneric.kt")
|
|
public void testCaptureLocalVarDelegatedToInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/captureLocalVarDelegatedToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("delegateClassVarToInlineClass.kt")
|
|
public void testDelegateClassVarToInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("delegateClassVarToInlineClassGeneric.kt")
|
|
public void testDelegateClassVarToInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("delegateClassVarToInlineClassWithProvideDelegate.kt")
|
|
public void testDelegateClassVarToInlineClassWithProvideDelegate() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassWithProvideDelegate.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("delegateClassVarToInlineClassWithProvideDelegateGeneric.kt")
|
|
public void testDelegateClassVarToInlineClassWithProvideDelegateGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClassWithProvideDelegateGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("delegateCompanionVarToInlineClass.kt")
|
|
public void testDelegateCompanionVarToInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateCompanionVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("delegateCompanionVarToInlineClassGeneric.kt")
|
|
public void testDelegateCompanionVarToInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateCompanionVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("delegateJvmStaticCompanionVarToInlineClass.kt")
|
|
public void testDelegateJvmStaticCompanionVarToInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateJvmStaticCompanionVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("delegateJvmStaticCompanionVarToInlineClassGeneric.kt")
|
|
public void testDelegateJvmStaticCompanionVarToInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateJvmStaticCompanionVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("delegateLocalVarToInlineClass.kt")
|
|
public void testDelegateLocalVarToInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("delegateLocalVarToInlineClassGeneric.kt")
|
|
public void testDelegateLocalVarToInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("delegateObjectVarToInlineClass.kt")
|
|
public void testDelegateObjectVarToInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateObjectVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("delegateObjectVarToInlineClassGeneric.kt")
|
|
public void testDelegateObjectVarToInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateObjectVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("delegatePrivateCompanionVarToInlineClass.kt")
|
|
public void testDelegatePrivateCompanionVarToInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatePrivateCompanionVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("delegatePrivateCompanionVarToInlineClassGeneric.kt")
|
|
public void testDelegatePrivateCompanionVarToInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatePrivateCompanionVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("delegateTopLevelVarToInlineClass.kt")
|
|
public void testDelegateTopLevelVarToInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("delegateTopLevelVarToInlineClassGeneric.kt")
|
|
public void testDelegateTopLevelVarToInlineClassGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClassGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("delegatedPropertyOfInlineClassType.kt")
|
|
public void testDelegatedPropertyOfInlineClassType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatedPropertyOfInlineClassType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("delegatedPropertyOfInlineClassTypeGeneric.kt")
|
|
public void testDelegatedPropertyOfInlineClassTypeGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatedPropertyOfInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27070.kt")
|
|
public void testKt27070() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt27070.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt27070Generic.kt")
|
|
public void testKt27070Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt27070Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt42933.kt")
|
|
public void testKt42933() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("kt42933Generic.kt")
|
|
public void testKt42933Generic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933Generic.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/inlineClasses/result")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Result extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInResult() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/result"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("directCall1.kt")
|
|
public void testDirectCall1() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/result/directCall1.kt");
|
|
}
|
|
|
|
@TestMetadata("directCall2.kt")
|
|
public void testDirectCall2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/result/directCall2.kt");
|
|
}
|
|
|
|
@TestMetadata("doubleOverride.kt")
|
|
public void testDoubleOverride() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/result/doubleOverride.kt");
|
|
}
|
|
|
|
@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("returnGenericMultiModule.kt")
|
|
public void testReturnGenericMultiModule() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/result/returnGenericMultiModule.kt");
|
|
}
|
|
|
|
@TestMetadata("returnGenericSingleModule.kt")
|
|
public void testReturnGenericSingleModule() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/result/returnGenericSingleModule.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInReturnResult() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/returnResult"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInUnboxGenericParameter() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
private void runTest(String testDataFilePath, java.util.function.Function<String, String> transformer) throws Exception {
|
|
KotlinTestUtils.runTest(path -> doTestWithTransformer(path, transformer), TargetBackend.JVM_IR, 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_IR, true);
|
|
}
|
|
|
|
@TestMetadata("any.kt")
|
|
public void testAny() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/any.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("anyGeneric.kt")
|
|
public void testAnyGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("anyN.kt")
|
|
public void testAnyN() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("anyNGeneric.kt")
|
|
public void testAnyNGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("anyNGeneric2.kt")
|
|
public void testAnyNGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/anyNGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("iface.kt")
|
|
public void testIface() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/iface.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("ifaceChild.kt")
|
|
public void testIfaceChild() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceChild.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("ifaceChildGeneric.kt")
|
|
public void testIfaceChildGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceChildGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("ifaceGeneric.kt")
|
|
public void testIfaceGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/ifaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@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", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("primitiveGeneric.kt")
|
|
public void testPrimitiveGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/primitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@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", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("resultAnyGeneric.kt")
|
|
public void testResultAnyGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/resultAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("string.kt")
|
|
public void testString() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/string.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("stringGeneric.kt")
|
|
public void testStringGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/funInterface/stringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
}
|
|
|
|
@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_IR, testDataFilePath);
|
|
}
|
|
|
|
private void runTest(String testDataFilePath, java.util.function.Function<String, String> transformer) throws Exception {
|
|
KotlinTestUtils.runTest(path -> doTestWithTransformer(path, transformer), TargetBackend.JVM_IR, 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_IR, true);
|
|
}
|
|
|
|
@TestMetadata("any.kt")
|
|
public void testAny() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/any.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("anyGeneric.kt")
|
|
public void testAnyGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("anyN.kt")
|
|
public void testAnyN() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("anyNGeneric.kt")
|
|
public void testAnyNGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("anyNGeneric2.kt")
|
|
public void testAnyNGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/anyNGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("iface.kt")
|
|
public void testIface() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/iface.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("ifaceChild.kt")
|
|
public void testIfaceChild() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceChild.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("ifaceChildGeneric.kt")
|
|
public void testIfaceChildGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceChildGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("ifaceGeneric.kt")
|
|
public void testIfaceGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/ifaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@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", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("primitiveGeneric.kt")
|
|
public void testPrimitiveGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/primitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@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", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("resultAnyGeneric.kt")
|
|
public void testResultAnyGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/resultAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("string.kt")
|
|
public void testString() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/string.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("stringGeneric.kt")
|
|
public void testStringGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/lambda/stringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class ObjectLiteral extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
private void runTest(String testDataFilePath, java.util.function.Function<String, String> transformer) throws Exception {
|
|
KotlinTestUtils.runTest(path -> doTestWithTransformer(path, transformer), TargetBackend.JVM_IR, 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_IR, true);
|
|
}
|
|
|
|
@TestMetadata("any.kt")
|
|
public void testAny() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/any.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("anyGeneric.kt")
|
|
public void testAnyGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("anyN.kt")
|
|
public void testAnyN() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyN.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("anyNGeneric.kt")
|
|
public void testAnyNGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyNGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("anyNGeneric2.kt")
|
|
public void testAnyNGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/anyNGeneric2.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("iface.kt")
|
|
public void testIface() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/iface.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("ifaceChild.kt")
|
|
public void testIfaceChild() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChild.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("ifaceChildGeneric.kt")
|
|
public void testIfaceChildGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceChildGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("ifaceGeneric.kt")
|
|
public void testIfaceGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/ifaceGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("nullableResult.kt")
|
|
public void testNullableResult() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/nullableResult.kt");
|
|
}
|
|
|
|
@TestMetadata("primitive.kt")
|
|
public void testPrimitive() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/primitive.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("primitiveGeneric.kt")
|
|
public void testPrimitiveGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/primitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@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", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("resultAnyGeneric.kt")
|
|
public void testResultAnyGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/resultAnyGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("string.kt")
|
|
public void testString() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/string.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("stringGeneric.kt")
|
|
public void testStringGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/inlineClasses/unboxGenericParameter/objectLiteral/stringGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInInnerNested() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerNested"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("considerPropertyInitValueFromNestedClass.kt")
|
|
public void testConsiderPropertyInitValueFromNestedClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/innerNested/considerPropertyInitValueFromNestedClass.kt");
|
|
}
|
|
|
|
@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("kt46829.kt")
|
|
public void testKt46829() throws Exception {
|
|
runTest("compiler/testData/codegen/box/innerNested/kt46829.kt");
|
|
}
|
|
|
|
@TestMetadata("kt5363.kt")
|
|
public void testKt5363() throws Exception {
|
|
runTest("compiler/testData/codegen/box/innerNested/kt5363.kt");
|
|
}
|
|
|
|
@TestMetadata("kt63732.kt")
|
|
public void testKt63732() throws Exception {
|
|
runTest("compiler/testData/codegen/box/innerNested/kt63732.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInSuperConstructorCall() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerNested/superConstructorCall"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("objectExtendsInnerWithDelegatingConstructor.kt")
|
|
public void testObjectExtendsInnerWithDelegatingConstructor() throws Exception {
|
|
runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsInnerWithDelegatingConstructor.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInInstructions() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/instructions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInSwap() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/instructions/swap"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInIntrinsics() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/intrinsics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("kt52163_boolean.kt")
|
|
public void testKt52163_boolean() throws Exception {
|
|
runTest("compiler/testData/codegen/box/intrinsics/kt52163_boolean.kt");
|
|
}
|
|
|
|
@TestMetadata("kt52163_doubleCompareToInt.kt")
|
|
public void testKt52163_doubleCompareToInt() throws Exception {
|
|
runTest("compiler/testData/codegen/box/intrinsics/kt52163_doubleCompareToInt.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInInvokedynamic() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/invokedynamic/lambdas")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Lambdas extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInLambdas() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic/lambdas"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("anyAnnotationDisablesIndyLambdaGeneration.kt")
|
|
public void testAnyAnnotationDisablesIndyLambdaGeneration() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/anyAnnotationDisablesIndyLambdaGeneration.kt");
|
|
}
|
|
|
|
@TestMetadata("bigArityExtLambda.kt")
|
|
public void testBigArityExtLambda() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/bigArityExtLambda.kt");
|
|
}
|
|
|
|
@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("genericLambdaSignature.kt")
|
|
public void testGenericLambdaSignature() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/genericLambdaSignature.kt");
|
|
}
|
|
|
|
@TestMetadata("jvmSerializableLambda.kt")
|
|
public void testJvmSerializableLambda() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/jvmSerializableLambda.kt");
|
|
}
|
|
|
|
@TestMetadata("kt52875.kt")
|
|
public void testKt52875() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/kt52875.kt");
|
|
}
|
|
|
|
@TestMetadata("lambdaMetadataFactoryIsNotUsed.kt")
|
|
public void testLambdaMetadataFactoryIsNotUsed() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/lambdaMetadataFactoryIsNotUsed.kt");
|
|
}
|
|
|
|
@TestMetadata("lambdaMetafactoryIsUsed.kt")
|
|
public void testLambdaMetafactoryIsUsed() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/lambdaMetafactoryIsUsed.kt");
|
|
}
|
|
|
|
@TestMetadata("lambdaSerializable.kt")
|
|
public void testLambdaSerializable() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/lambdaSerializable.kt");
|
|
}
|
|
|
|
@TestMetadata("lambdaToSting.kt")
|
|
public void testLambdaToSting() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/lambdas/lambdaToSting.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_IR, 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_IR, 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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInSam() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("genericLambdaSignature.kt")
|
|
public void testGenericLambdaSignature() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/genericLambdaSignature.kt");
|
|
}
|
|
|
|
@TestMetadata("inlineFunWithPrivateMethod.kt")
|
|
public void testInlineFunWithPrivateMethod() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineFunWithPrivateMethod.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("kt51282.kt")
|
|
public void testKt51282() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/kt51282.kt");
|
|
}
|
|
|
|
@TestMetadata("kt512832_inherit_multifile_parts.kt")
|
|
public void testKt512832_inherit_multifile_parts() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/kt512832_inherit_multifile_parts.kt");
|
|
}
|
|
|
|
@TestMetadata("kt51868_contravariantGenericSam.kt")
|
|
public void testKt51868_contravariantGenericSam() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/kt51868_contravariantGenericSam.kt");
|
|
}
|
|
|
|
@TestMetadata("kt52040_severalProxyFunsInInit.kt")
|
|
public void testKt52040_severalProxyFunsInInit() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/kt52040_severalProxyFunsInInit.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("reifiedTypeParameter.kt")
|
|
public void testReifiedTypeParameter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/reifiedTypeParameter.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("starProjectionSam.kt")
|
|
public void testStarProjectionSam() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/starProjectionSam.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("suspendFunInterface.kt")
|
|
public void testSuspendFunInterface() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/suspendFunInterface.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_IR, 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_IR, 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_IR, 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_IR, 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("genericBoundInnerConstructorRef.kt")
|
|
public void testGenericBoundInnerConstructorRef() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/genericBoundInnerConstructorRef.kt");
|
|
}
|
|
|
|
@TestMetadata("genericFunRef.kt")
|
|
public void testGenericFunRef() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/genericFunRef.kt");
|
|
}
|
|
|
|
@TestMetadata("genericInnerConstructorRef.kt")
|
|
public void testGenericInnerConstructorRef() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/genericInnerConstructorRef.kt");
|
|
}
|
|
|
|
@TestMetadata("highOrderFunRef.kt")
|
|
public void testHighOrderFunRef() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/highOrderFunRef.kt");
|
|
}
|
|
|
|
@TestMetadata("inlineFunRef.kt")
|
|
public void testInlineFunRef() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/inlineFunRef.kt");
|
|
}
|
|
|
|
@TestMetadata("inlineFunWithReifiedTypeParameterRef.kt")
|
|
public void testInlineFunWithReifiedTypeParameterRef() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/inlineFunWithReifiedTypeParameterRef.kt");
|
|
}
|
|
|
|
@TestMetadata("inlineHighOrderFunRef.kt")
|
|
public void testInlineHighOrderFunRef() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/inlineHighOrderFunRef.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("kt49613.kt")
|
|
public void testKt49613() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/kt49613.kt");
|
|
}
|
|
|
|
@TestMetadata("kt50856.kt")
|
|
public void testKt50856() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/kt50856.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("multipleProxyWrappersForSameFunction.kt")
|
|
public void testMultipleProxyWrappersForSameFunction() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/multipleProxyWrappersForSameFunction.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_IR, 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_IR, 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("intArrayOf.kt")
|
|
public void testIntArrayOf() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/specialFunctions/intArrayOf.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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, 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_IR, 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("protectedCompanionObjectStaticMember.kt")
|
|
public void testProtectedCompanionObjectStaticMember() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/withAccessor/protectedCompanionObjectStaticMember.kt");
|
|
}
|
|
|
|
@TestMetadata("protectedMember.kt")
|
|
public void testProtectedMember() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/withAccessor/protectedMember.kt");
|
|
}
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/invokedynamic/sam/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_IR, 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_IR, true);
|
|
}
|
|
|
|
@TestMetadata("funInterfaceWithInlineAny.kt")
|
|
public void testFunInterfaceWithInlineAny() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/funInterfaceWithInlineAny.kt");
|
|
}
|
|
|
|
@TestMetadata("funInterfaceWithInlineInt.kt")
|
|
public void testFunInterfaceWithInlineInt() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/funInterfaceWithInlineInt.kt");
|
|
}
|
|
|
|
@TestMetadata("funInterfaceWithInlineNAny.kt")
|
|
public void testFunInterfaceWithInlineNAny() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/funInterfaceWithInlineNAny.kt");
|
|
}
|
|
|
|
@TestMetadata("funInterfaceWithInlineNInt.kt")
|
|
public void testFunInterfaceWithInlineNInt() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/funInterfaceWithInlineNInt.kt");
|
|
}
|
|
|
|
@TestMetadata("funInterfaceWithInlineNString.kt")
|
|
public void testFunInterfaceWithInlineNString() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/funInterfaceWithInlineNString.kt");
|
|
}
|
|
|
|
@TestMetadata("funInterfaceWithInlineString.kt")
|
|
public void testFunInterfaceWithInlineString() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/funInterfaceWithInlineString.kt");
|
|
}
|
|
|
|
@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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, 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_IR, 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("genericWithInProjectionWithIndyLambdas.kt")
|
|
public void testGenericWithInProjectionWithIndyLambdas() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/genericWithInProjectionWithIndyLambdas.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("mixPrimitiveAndBoxed.kt")
|
|
public void testMixPrimitiveAndBoxed() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/mixPrimitiveAndBoxed.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("specializedWithReifiedTypeParameter.kt")
|
|
public void testSpecializedWithReifiedTypeParameter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/specializedWithReifiedTypeParameter.kt");
|
|
}
|
|
|
|
@TestMetadata("specializedWithString.kt")
|
|
public void testSpecializedWithString() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/specializedWithString.kt");
|
|
}
|
|
|
|
@TestMetadata("voidReturnTypeAsGeneric.kt")
|
|
public void testVoidReturnTypeAsGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/voidReturnTypeAsGeneric.kt");
|
|
}
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/invokedynamic/serializable")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Serializable extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInSerializable() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic/serializable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("multipleTopLevelFunRefs.kt")
|
|
public void testMultipleTopLevelFunRefs() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/serializable/multipleTopLevelFunRefs.kt");
|
|
}
|
|
|
|
@TestMetadata("sameImplMethodDifferentInterfaces.kt")
|
|
public void testSameImplMethodDifferentInterfaces() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/serializable/sameImplMethodDifferentInterfaces.kt");
|
|
}
|
|
|
|
@TestMetadata("sameInterfaceDifferentCapturedValueTypes.kt")
|
|
public void testSameInterfaceDifferentCapturedValueTypes() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/serializable/sameInterfaceDifferentCapturedValueTypes.kt");
|
|
}
|
|
|
|
@TestMetadata("sameInterfaceDifferentCapturedValues.kt")
|
|
public void testSameInterfaceDifferentCapturedValues() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/serializable/sameInterfaceDifferentCapturedValues.kt");
|
|
}
|
|
|
|
@TestMetadata("serializableBoundClassMemberFunRef.kt")
|
|
public void testSerializableBoundClassMemberFunRef() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableBoundClassMemberFunRef.kt");
|
|
}
|
|
|
|
@TestMetadata("serializableBoundInnerConstructorRef.kt")
|
|
public void testSerializableBoundInnerConstructorRef() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableBoundInnerConstructorRef.kt");
|
|
}
|
|
|
|
@TestMetadata("serializableBoundInterfaceMemberFunRef.kt")
|
|
public void testSerializableBoundInterfaceMemberFunRef() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableBoundInterfaceMemberFunRef.kt");
|
|
}
|
|
|
|
@TestMetadata("serializableBoundTopLevelExtensionFunRef.kt")
|
|
public void testSerializableBoundTopLevelExtensionFunRef() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableBoundTopLevelExtensionFunRef.kt");
|
|
}
|
|
|
|
@TestMetadata("serializableBoundTopLevelExtensionFunRefPrimitiveReceiver.kt")
|
|
public void testSerializableBoundTopLevelExtensionFunRefPrimitiveReceiver() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableBoundTopLevelExtensionFunRefPrimitiveReceiver.kt");
|
|
}
|
|
|
|
@TestMetadata("serializableClassMemberFunRef.kt")
|
|
public void testSerializableClassMemberFunRef() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableClassMemberFunRef.kt");
|
|
}
|
|
|
|
@TestMetadata("serializableConstructorRef.kt")
|
|
public void testSerializableConstructorRef() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableConstructorRef.kt");
|
|
}
|
|
|
|
@TestMetadata("serializableFakeOverrideFunRef.kt")
|
|
public void testSerializableFakeOverrideFunRef() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableFakeOverrideFunRef.kt");
|
|
}
|
|
|
|
@TestMetadata("serializableInnerConstructorRef.kt")
|
|
public void testSerializableInnerConstructorRef() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableInnerConstructorRef.kt");
|
|
}
|
|
|
|
@TestMetadata("serializableInterfaceMemberFunRef.kt")
|
|
public void testSerializableInterfaceMemberFunRef() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableInterfaceMemberFunRef.kt");
|
|
}
|
|
|
|
@TestMetadata("serializableJavaStaticMethodRef.kt")
|
|
public void testSerializableJavaStaticMethodRef() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableJavaStaticMethodRef.kt");
|
|
}
|
|
|
|
@TestMetadata("serializableLambda.kt")
|
|
public void testSerializableLambda() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableLambda.kt");
|
|
}
|
|
|
|
@TestMetadata("serializableLambdaCapturingBoxedInlineClassAny.kt")
|
|
public void testSerializableLambdaCapturingBoxedInlineClassAny() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableLambdaCapturingBoxedInlineClassAny.kt");
|
|
}
|
|
|
|
@TestMetadata("serializableLambdaCapturingInlineClassAny.kt")
|
|
public void testSerializableLambdaCapturingInlineClassAny() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableLambdaCapturingInlineClassAny.kt");
|
|
}
|
|
|
|
@TestMetadata("serializableLambdaCapturingInlineClassInt.kt")
|
|
public void testSerializableLambdaCapturingInlineClassInt() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableLambdaCapturingInlineClassInt.kt");
|
|
}
|
|
|
|
@TestMetadata("serializableLambdaCapturingNullableInlineClassAny.kt")
|
|
public void testSerializableLambdaCapturingNullableInlineClassAny() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableLambdaCapturingNullableInlineClassAny.kt");
|
|
}
|
|
|
|
@TestMetadata("serializableLambdaToKotlinInterface.kt")
|
|
public void testSerializableLambdaToKotlinInterface() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableLambdaToKotlinInterface.kt");
|
|
}
|
|
|
|
@TestMetadata("serializableLambdaWithCapture.kt")
|
|
public void testSerializableLambdaWithCapture() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableLambdaWithCapture.kt");
|
|
}
|
|
|
|
@TestMetadata("serializableTopLevelFunRef.kt")
|
|
public void testSerializableTopLevelFunRef() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableTopLevelFunRef.kt");
|
|
}
|
|
|
|
@TestMetadata("serializableTopLevelFunRefAsGenericInterface.kt")
|
|
public void testSerializableTopLevelFunRefAsGenericInterface() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableTopLevelFunRefAsGenericInterface.kt");
|
|
}
|
|
|
|
@TestMetadata("serializableWithBridge.kt")
|
|
public void testSerializableWithBridge() throws Exception {
|
|
runTest("compiler/testData/codegen/box/invokedynamic/serializable/serializableWithBridge.kt");
|
|
}
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/involvesIrInterpreter")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class InvolvesIrInterpreter extends AbstractLightAnalysisModeTest {
|
|
@TestMetadata("kt55108.kt")
|
|
public void ignoreKt55108() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/kt55108.kt");
|
|
}
|
|
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInInvolvesIrInterpreter() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/involvesIrInterpreter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("annotationClassWithInner.kt")
|
|
public void testAnnotationClassWithInner() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/annotationClassWithInner.kt");
|
|
}
|
|
|
|
@TestMetadata("booleanOperations.kt")
|
|
public void testBooleanOperations() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/booleanOperations.kt");
|
|
}
|
|
|
|
@TestMetadata("byteOperations.kt")
|
|
public void testByteOperations() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/byteOperations.kt");
|
|
}
|
|
|
|
@TestMetadata("charOperations.kt")
|
|
public void testCharOperations() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/charOperations.kt");
|
|
}
|
|
|
|
@TestMetadata("complexBooleanConstant.kt")
|
|
public void testComplexBooleanConstant() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/complexBooleanConstant.kt");
|
|
}
|
|
|
|
@TestMetadata("doubleOperations.kt")
|
|
public void testDoubleOperations() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/doubleOperations.kt");
|
|
}
|
|
|
|
@TestMetadata("enumRecursiveName.kt")
|
|
public void testEnumRecursiveName() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/enumRecursiveName.kt");
|
|
}
|
|
|
|
@TestMetadata("floatOperations.kt")
|
|
public void testFloatOperations() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/floatOperations.kt");
|
|
}
|
|
|
|
@TestMetadata("inJavaPackage.kt")
|
|
public void testInJavaPackage() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/inJavaPackage.kt");
|
|
}
|
|
|
|
@TestMetadata("intOperations.kt")
|
|
public void testIntOperations() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/intOperations.kt");
|
|
}
|
|
|
|
@TestMetadata("jvmFloatDoubleToString.kt")
|
|
public void testJvmFloatDoubleToString() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/jvmFloatDoubleToString.kt");
|
|
}
|
|
|
|
@TestMetadata("kt53480.kt")
|
|
public void testKt53480() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/kt53480.kt");
|
|
}
|
|
|
|
@TestMetadata("kt55866.kt")
|
|
public void testKt55866() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/kt55866.kt");
|
|
}
|
|
|
|
@TestMetadata("kt55912.kt")
|
|
public void testKt55912() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/kt55912.kt");
|
|
}
|
|
|
|
@TestMetadata("kt56215.kt")
|
|
public void testKt56215() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/kt56215.kt");
|
|
}
|
|
|
|
@TestMetadata("kt57028.kt")
|
|
public void testKt57028() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/kt57028.kt");
|
|
}
|
|
|
|
@TestMetadata("kt57313.kt")
|
|
public void testKt57313() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/kt57313.kt");
|
|
}
|
|
|
|
@TestMetadata("kt58005.kt")
|
|
public void testKt58005() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/kt58005.kt");
|
|
}
|
|
|
|
@TestMetadata("longOperations.kt")
|
|
public void testLongOperations() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/longOperations.kt");
|
|
}
|
|
|
|
@TestMetadata("objectConstValInAnnotationArgument.kt")
|
|
public void testObjectConstValInAnnotationArgument() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/objectConstValInAnnotationArgument.kt");
|
|
}
|
|
|
|
@TestMetadata("referenceNameFromStaticInDifferentModule.kt")
|
|
public void testReferenceNameFromStaticInDifferentModule() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/referenceNameFromStaticInDifferentModule.kt");
|
|
}
|
|
|
|
@TestMetadata("shortOperations.kt")
|
|
public void testShortOperations() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/shortOperations.kt");
|
|
}
|
|
|
|
@TestMetadata("stdlibConst.kt")
|
|
public void testStdlibConst() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/stdlibConst.kt");
|
|
}
|
|
|
|
@TestMetadata("stringConcatenation.kt")
|
|
public void testStringConcatenation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/stringConcatenation.kt");
|
|
}
|
|
|
|
@TestMetadata("stringConcatenationWithObject.kt")
|
|
public void testStringConcatenationWithObject() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/stringConcatenationWithObject.kt");
|
|
}
|
|
|
|
@TestMetadata("stringOperations.kt")
|
|
public void testStringOperations() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/stringOperations.kt");
|
|
}
|
|
|
|
@TestMetadata("thisPlusString.kt")
|
|
public void testThisPlusString() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/thisPlusString.kt");
|
|
}
|
|
|
|
@TestMetadata("thisPlusStringWithObject.kt")
|
|
public void testThisPlusStringWithObject() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/thisPlusStringWithObject.kt");
|
|
}
|
|
|
|
@TestMetadata("unsignedConst.kt")
|
|
public void testUnsignedConst() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/unsignedConst.kt");
|
|
}
|
|
|
|
@TestMetadata("useCorrectToString.kt")
|
|
public void testUseCorrectToString() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/useCorrectToString.kt");
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/involvesIrInterpreter/constEvaluationFromJavaWorld")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class ConstEvaluationFromJavaWorld extends AbstractLightAnalysisModeTest {
|
|
@TestMetadata("accessComplexConst.kt")
|
|
public void ignoreAccessComplexConst() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/constEvaluationFromJavaWorld/accessComplexConst.kt");
|
|
}
|
|
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
@TestMetadata("accessTopLevelConst.kt")
|
|
public void testAccessTopLevelConst() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/constEvaluationFromJavaWorld/accessTopLevelConst.kt");
|
|
}
|
|
|
|
@TestMetadata("accessTopLevelConstWithCustomFileName.kt")
|
|
public void testAccessTopLevelConstWithCustomFileName() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/constEvaluationFromJavaWorld/accessTopLevelConstWithCustomFileName.kt");
|
|
}
|
|
|
|
public void testAllFilesPresentInConstEvaluationFromJavaWorld() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/involvesIrInterpreter/constEvaluationFromJavaWorld"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("differentTypes.kt")
|
|
public void testDifferentTypes() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/constEvaluationFromJavaWorld/differentTypes.kt");
|
|
}
|
|
|
|
@TestMetadata("kt57802_1.kt")
|
|
public void testKt57802_1() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/constEvaluationFromJavaWorld/kt57802_1.kt");
|
|
}
|
|
|
|
@TestMetadata("kt57802_2.kt")
|
|
public void testKt57802_2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/constEvaluationFromJavaWorld/kt57802_2.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class IntrinsicConst extends AbstractLightAnalysisModeTest {
|
|
@TestMetadata("constTrimIndent.kt")
|
|
public void ignoreConstTrimIndent() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/constTrimIndent.kt");
|
|
}
|
|
|
|
@TestMetadata("constTrimMargin.kt")
|
|
public void ignoreConstTrimMargin() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/constTrimMargin.kt");
|
|
}
|
|
|
|
@TestMetadata("enumName.kt")
|
|
public void ignoreEnumName() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/enumName.kt");
|
|
}
|
|
|
|
@TestMetadata("ifConstVal.kt")
|
|
public void ignoreIfConstVal() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/ifConstVal.kt");
|
|
}
|
|
|
|
@TestMetadata("kCallableName.kt")
|
|
public void ignoreKCallableName() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/kCallableName.kt");
|
|
}
|
|
|
|
@TestMetadata("kt53272.kt")
|
|
public void ignoreKt53272() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/kt53272.kt");
|
|
}
|
|
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInIntrinsicConst() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("enumNameWithInit.kt")
|
|
public void testEnumNameWithInit() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/enumNameWithInit.kt");
|
|
}
|
|
|
|
@TestMetadata("equals_after.kt")
|
|
public void testEquals_after() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/equals_after.kt");
|
|
}
|
|
|
|
@TestMetadata("kCallableNameWithSideEffect.kt")
|
|
public void testKCallableNameWithSideEffect() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/kCallableNameWithSideEffect.kt");
|
|
}
|
|
|
|
@TestMetadata("kt58717.kt")
|
|
public void testKt58717() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/kt58717.kt");
|
|
}
|
|
|
|
@TestMetadata("nullableEnumName.kt")
|
|
public void testNullableEnumName() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/nullableEnumName.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/involvesIrInterpreter/serialization")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Serialization extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInSerialization() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/involvesIrInterpreter/serialization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("annotationInArguments.kt")
|
|
public void testAnnotationInArguments() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/serialization/annotationInArguments.kt");
|
|
}
|
|
|
|
@TestMetadata("annotationSerialization.kt")
|
|
public void testAnnotationSerialization() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/serialization/annotationSerialization.kt");
|
|
}
|
|
|
|
@TestMetadata("annotationWithArray.kt")
|
|
public void testAnnotationWithArray() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/serialization/annotationWithArray.kt");
|
|
}
|
|
|
|
@TestMetadata("annotationWithDefaults.kt")
|
|
public void testAnnotationWithDefaults() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/serialization/annotationWithDefaults.kt");
|
|
}
|
|
|
|
@TestMetadata("nestedTypeAnnotation.kt")
|
|
public void testNestedTypeAnnotation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/serialization/nestedTypeAnnotation.kt");
|
|
}
|
|
|
|
@TestMetadata("typeAnnotation.kt")
|
|
public void testTypeAnnotation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/involvesIrInterpreter/serialization/typeAnnotation.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInIr() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("kt52677.kt")
|
|
public void testKt52677() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ir/kt52677.kt");
|
|
}
|
|
|
|
@TestMetadata("kt55318.kt")
|
|
public void testKt55318() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ir/kt55318.kt");
|
|
}
|
|
|
|
@TestMetadata("lambdaWithLoop.kt")
|
|
public void testLambdaWithLoop() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ir/lambdaWithLoop.kt");
|
|
}
|
|
|
|
@TestMetadata("objectClass.kt")
|
|
public void testObjectClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ir/objectClass.kt");
|
|
}
|
|
|
|
@TestMetadata("recursiveGeneric.kt")
|
|
public void testRecursiveGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ir/recursiveGeneric.kt");
|
|
}
|
|
|
|
@TestMetadata("recursiveGeneric2.kt")
|
|
public void testRecursiveGeneric2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ir/recursiveGeneric2.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInClosureConversion() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ir/closureConversion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInPrimitiveNumberComparisons() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ir/primitiveNumberComparisons"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInPrivateSignatures() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ir/privateSignatures"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInSerializationRegressions() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ir/serializationRegressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("anonFakeOverride.kt")
|
|
public void testAnonFakeOverride() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ir/serializationRegressions/anonFakeOverride.kt");
|
|
}
|
|
|
|
@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/javaFieldAndKotlinProperty")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class JavaFieldAndKotlinProperty extends AbstractLightAnalysisModeTest {
|
|
@TestMetadata("javaFieldAndCompanionProperty.kt")
|
|
public void ignoreJavaFieldAndCompanionProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndCompanionProperty.kt");
|
|
}
|
|
|
|
@TestMetadata("javaFieldAndKotlinInvisibleProperty.kt")
|
|
public void ignoreJavaFieldAndKotlinInvisibleProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinInvisibleProperty.kt");
|
|
}
|
|
|
|
@TestMetadata("javaFieldAndKotlinInvisiblePropertyViaTypeParameter.kt")
|
|
public void ignoreJavaFieldAndKotlinInvisiblePropertyViaTypeParameter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinInvisiblePropertyViaTypeParameter.kt");
|
|
}
|
|
|
|
@TestMetadata("javaFieldAndKotlinProperty.kt")
|
|
public void ignoreJavaFieldAndKotlinProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinProperty.kt");
|
|
}
|
|
|
|
@TestMetadata("javaFieldAndKotlinPropertyReference.kt")
|
|
public void ignoreJavaFieldAndKotlinPropertyReference() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPropertyReference.kt");
|
|
}
|
|
|
|
@TestMetadata("javaFieldAndKotlinPropertySuperAccess.kt")
|
|
public void ignoreJavaFieldAndKotlinPropertySuperAccess() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPropertySuperAccess.kt");
|
|
}
|
|
|
|
@TestMetadata("javaFieldAndKotlinPropertyWithComplexReceiver.kt")
|
|
public void ignoreJavaFieldAndKotlinPropertyWithComplexReceiver() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPropertyWithComplexReceiver.kt");
|
|
}
|
|
|
|
@TestMetadata("javaFieldAndKotlinPropertyWithSmartcast.kt")
|
|
public void ignoreJavaFieldAndKotlinPropertyWithSmartcast() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPropertyWithSmartcast.kt");
|
|
}
|
|
|
|
@TestMetadata("javaFieldKotlinPropertyJavaField.kt")
|
|
public void ignoreJavaFieldKotlinPropertyJavaField() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldKotlinPropertyJavaField.kt");
|
|
}
|
|
|
|
@TestMetadata("javaFieldKotlinPropertyJavaPackagePrivate.kt")
|
|
public void ignoreJavaFieldKotlinPropertyJavaPackagePrivate() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldKotlinPropertyJavaPackagePrivate.kt");
|
|
}
|
|
|
|
@TestMetadata("javaPackagePrivateClassAndPublicField.kt")
|
|
public void ignoreJavaPackagePrivateClassAndPublicField() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaPackagePrivateClassAndPublicField.kt");
|
|
}
|
|
|
|
@TestMetadata("javaPackagePrivateClassExposedViaProtectedStatic.kt")
|
|
public void ignoreJavaPackagePrivateClassExposedViaProtectedStatic() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaPackagePrivateClassExposedViaProtectedStatic.kt");
|
|
}
|
|
|
|
@TestMetadata("javaProtectedFieldAndKotlinInvisibleProperty.kt")
|
|
public void ignoreJavaProtectedFieldAndKotlinInvisibleProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaProtectedFieldAndKotlinInvisibleProperty.kt");
|
|
}
|
|
|
|
@TestMetadata("javaProtectedFieldAndKotlinInvisiblePropertyReference.kt")
|
|
public void ignoreJavaProtectedFieldAndKotlinInvisiblePropertyReference() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaProtectedFieldAndKotlinInvisiblePropertyReference.kt");
|
|
}
|
|
|
|
@TestMetadata("javaProtectedFieldAndKotlinPropertyReference.kt")
|
|
public void ignoreJavaProtectedFieldAndKotlinPropertyReference() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaProtectedFieldAndKotlinPropertyReference.kt");
|
|
}
|
|
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInJavaFieldAndKotlinProperty() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaFieldAndKotlinProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("javaCloseFieldAndKotlinProperty.kt")
|
|
public void testJavaCloseFieldAndKotlinProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaCloseFieldAndKotlinProperty.kt");
|
|
}
|
|
|
|
@TestMetadata("javaFieldAndKotlinInvisiblePropertyWithGetter.kt")
|
|
public void testJavaFieldAndKotlinInvisiblePropertyWithGetter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinInvisiblePropertyWithGetter.kt");
|
|
}
|
|
|
|
@TestMetadata("javaFieldAndKotlinLateinitProperty.kt")
|
|
public void testJavaFieldAndKotlinLateinitProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinLateinitProperty.kt");
|
|
}
|
|
|
|
@TestMetadata("javaFieldAndKotlinPrivateProperty.kt")
|
|
public void testJavaFieldAndKotlinPrivateProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPrivateProperty.kt");
|
|
}
|
|
|
|
@TestMetadata("javaFieldAndKotlinPropertyReferenceFromInner.kt")
|
|
public void testJavaFieldAndKotlinPropertyReferenceFromInner() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPropertyReferenceFromInner.kt");
|
|
}
|
|
|
|
@TestMetadata("javaInvisibleFieldAndKotlinProperty.kt")
|
|
public void testJavaInvisibleFieldAndKotlinProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaInvisibleFieldAndKotlinProperty.kt");
|
|
}
|
|
|
|
@TestMetadata("javaInvisibleFieldAndKotlinPropertyReference.kt")
|
|
public void testJavaInvisibleFieldAndKotlinPropertyReference() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaInvisibleFieldAndKotlinPropertyReference.kt");
|
|
}
|
|
|
|
@TestMetadata("javaProtectedFieldAnotherPackageReference.kt")
|
|
public void testJavaProtectedFieldAnotherPackageReference() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaProtectedFieldAnotherPackageReference.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/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_IR, testDataFilePath);
|
|
}
|
|
|
|
@TestMetadata("abstractMethodsOfAny.kt")
|
|
public void testAbstractMethodsOfAny() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/abstractMethodsOfAny.kt");
|
|
}
|
|
|
|
public void testAllFilesPresentInJavaInterop() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaInterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("ambiguousJavaVararg.kt")
|
|
public void testAmbiguousJavaVararg() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/ambiguousJavaVararg.kt");
|
|
}
|
|
|
|
@TestMetadata("conflictingOverloadsForThrowableInheritors.kt")
|
|
public void testConflictingOverloadsForThrowableInheritors() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/conflictingOverloadsForThrowableInheritors.kt");
|
|
}
|
|
|
|
@TestMetadata("conflictingOverloadsForThrowableInheritors2.kt")
|
|
public void testConflictingOverloadsForThrowableInheritors2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/conflictingOverloadsForThrowableInheritors2.kt");
|
|
}
|
|
|
|
@TestMetadata("delegationToJavaDnn.kt")
|
|
public void testDelegationToJavaDnn() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/delegationToJavaDnn.kt");
|
|
}
|
|
|
|
@TestMetadata("genericSamProjectedOut.kt")
|
|
public void testGenericSamProjectedOut() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/genericSamProjectedOut.kt");
|
|
}
|
|
|
|
@TestMetadata("genericSamSmartcast.kt")
|
|
public void testGenericSamSmartcast() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/genericSamSmartcast.kt");
|
|
}
|
|
|
|
@TestMetadata("inheritanceWithWildcard.kt")
|
|
public void testInheritanceWithWildcard() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/inheritanceWithWildcard.kt");
|
|
}
|
|
|
|
@TestMetadata("javaInterfaceFieldDirectAccess.kt")
|
|
public void testJavaInterfaceFieldDirectAccess() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/javaInterfaceFieldDirectAccess.kt");
|
|
}
|
|
|
|
@TestMetadata("javaOuterClassDependsOnInner.kt")
|
|
public void testJavaOuterClassDependsOnInner() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/javaOuterClassDependsOnInner.kt");
|
|
}
|
|
|
|
@TestMetadata("kt43217.kt")
|
|
public void testKt43217() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/kt43217.kt");
|
|
}
|
|
|
|
@TestMetadata("kt48590.kt")
|
|
public void testKt48590() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/kt48590.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("overrideWithArrayParameterType.kt")
|
|
public void testOverrideWithArrayParameterType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/overrideWithArrayParameterType.kt");
|
|
}
|
|
|
|
@TestMetadata("overrideWithArrayParameterType2.kt")
|
|
public void testOverrideWithArrayParameterType2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/overrideWithArrayParameterType2.kt");
|
|
}
|
|
|
|
@TestMetadata("overrideWithArrayParameterTypeNotNull.kt")
|
|
public void testOverrideWithArrayParameterTypeNotNull() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/overrideWithArrayParameterTypeNotNull.kt");
|
|
}
|
|
|
|
@TestMetadata("overrideWithGenericArrayParameterType.kt")
|
|
public void testOverrideWithGenericArrayParameterType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/overrideWithGenericArrayParameterType.kt");
|
|
}
|
|
|
|
@TestMetadata("overrideWithVarargParameterType.kt")
|
|
public void testOverrideWithVarargParameterType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/overrideWithVarargParameterType.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("syntheticPropClashingWithJvmField.kt")
|
|
public void testSyntheticPropClashingWithJvmField() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/syntheticPropClashingWithJvmField.kt");
|
|
}
|
|
|
|
@TestMetadata("syntheticPropOverriddenGetter.kt")
|
|
public void testSyntheticPropOverriddenGetter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/syntheticPropOverriddenGetter.kt");
|
|
}
|
|
|
|
@TestMetadata("unresolvedJavaClassInDifferentFile.kt")
|
|
public void testUnresolvedJavaClassInDifferentFile() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/unresolvedJavaClassInDifferentFile.kt");
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/javaInterop/foreignAnnotationsTests")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class ForeignAnnotationsTests extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInForeignAnnotationsTests() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaInterop/foreignAnnotationsTests"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/javaInterop/foreignAnnotationsTests/tests")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Tests extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInTests() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaInterop/foreignAnnotationsTests/tests"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("kt53041.kt")
|
|
public void testKt53041() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/foreignAnnotationsTests/tests/kt53041.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInGenerics() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaInterop/generics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInNotNullAssertions() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaInterop/notNullAssertions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("destructuringAssignmentWithNullabilityAssertionOnExtensionReceiver_lv12.kt")
|
|
public void testDestructuringAssignmentWithNullabilityAssertionOnExtensionReceiver_lv12() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/destructuringAssignmentWithNullabilityAssertionOnExtensionReceiver_lv12.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("kt24258.kt")
|
|
public void testKt24258() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/kt24258.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("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_IR, 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_IR, 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/expressionAssertionMessages")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class ExpressionAssertionMessages extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInExpressionAssertionMessages() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaInterop/notNullAssertions/expressionAssertionMessages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("field_after.kt")
|
|
public void testField_after() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/expressionAssertionMessages/field_after.kt");
|
|
}
|
|
|
|
@TestMetadata("field_before.kt")
|
|
public void testField_before() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/expressionAssertionMessages/field_before.kt");
|
|
}
|
|
|
|
@TestMetadata("localVariable_after.kt")
|
|
public void testLocalVariable_after() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/expressionAssertionMessages/localVariable_after.kt");
|
|
}
|
|
|
|
@TestMetadata("localVariable_before.kt")
|
|
public void testLocalVariable_before() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/expressionAssertionMessages/localVariable_before.kt");
|
|
}
|
|
|
|
@TestMetadata("simple_after.kt")
|
|
public void testSimple_after() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/expressionAssertionMessages/simple_after.kt");
|
|
}
|
|
|
|
@TestMetadata("simple_before.kt")
|
|
public void testSimple_before() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/expressionAssertionMessages/simple_before.kt");
|
|
}
|
|
|
|
@TestMetadata("staticCall_after.kt")
|
|
public void testStaticCall_after() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/expressionAssertionMessages/staticCall_after.kt");
|
|
}
|
|
|
|
@TestMetadata("staticCall_before.kt")
|
|
public void testStaticCall_before() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/expressionAssertionMessages/staticCall_before.kt");
|
|
}
|
|
|
|
@TestMetadata("syntheticProperty_after.kt")
|
|
public void testSyntheticProperty_after() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/expressionAssertionMessages/syntheticProperty_after.kt");
|
|
}
|
|
|
|
@TestMetadata("syntheticProperty_before.kt")
|
|
public void testSyntheticProperty_before() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/expressionAssertionMessages/syntheticProperty_before.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_IR, 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_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInObjectMethods() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaInterop/objectMethods"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInJavaVisibility() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaVisibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInPackage() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaVisibility/package"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("cannotAccessInterfaceMemberViaReceiver.kt")
|
|
public void testCannotAccessInterfaceMemberViaReceiver() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaVisibility/package/cannotAccessInterfaceMemberViaReceiver.kt");
|
|
}
|
|
|
|
@TestMetadata("cannotAccessStaticMemberViaReceiver.kt")
|
|
public void testCannotAccessStaticMemberViaReceiver() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaVisibility/package/cannotAccessStaticMemberViaReceiver.kt");
|
|
}
|
|
|
|
@TestMetadata("cannotAccessStaticMemberViaReceiver2.kt")
|
|
public void testCannotAccessStaticMemberViaReceiver2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaVisibility/package/cannotAccessStaticMemberViaReceiver2.kt");
|
|
}
|
|
|
|
@TestMetadata("cannotAccessStaticMemberViaTypeAlias.kt")
|
|
public void testCannotAccessStaticMemberViaTypeAlias() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaVisibility/package/cannotAccessStaticMemberViaTypeAlias.kt");
|
|
}
|
|
|
|
@TestMetadata("inheritedPackageStaticField.kt")
|
|
public void testInheritedPackageStaticField() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaVisibility/package/inheritedPackageStaticField.kt");
|
|
}
|
|
|
|
@TestMetadata("inheritedPackageStaticFunction.kt")
|
|
public void testInheritedPackageStaticFunction() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaVisibility/package/inheritedPackageStaticFunction.kt");
|
|
}
|
|
|
|
@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("publicInterfaceImplementedByPackagePrivateClass.kt")
|
|
public void testPublicInterfaceImplementedByPackagePrivateClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaVisibility/package/publicInterfaceImplementedByPackagePrivateClass.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/javaVisibility/protectedAndPackage")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class ProtectedAndPackage extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInProtectedAndPackage() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaVisibility/protectedAndPackage"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("kt42012.kt")
|
|
public void testKt42012() throws Exception {
|
|
runTest("compiler/testData/codegen/box/javaVisibility/protectedAndPackage/kt42012.kt");
|
|
}
|
|
|
|
@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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInProtectedStatic() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaVisibility/protectedStatic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInJdk() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jdk"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("noStringToCharArray.kt")
|
|
public void testNoStringToCharArray() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jdk/noStringToCharArray.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("useStream.kt")
|
|
public void testUseStream() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jdk/useStream.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInJs() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/js"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
}
|
|
|
|
@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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInJvm8() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInDefaults() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("builtInsInherited.kt")
|
|
public void testBuiltInsInherited() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/builtInsInherited.kt");
|
|
}
|
|
|
|
@TestMetadata("kt26360.kt")
|
|
public void testKt26360() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/kt26360.kt");
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/jvm8/defaults/allCompatibility")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class AllCompatibility extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, 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_IR, 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("callableReference.kt")
|
|
public void testCallableReference() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/callableReference.kt");
|
|
}
|
|
|
|
@TestMetadata("capturedSuperCall.kt")
|
|
public void testCapturedSuperCall() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/capturedSuperCall.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("deprecatedAnnotation.kt")
|
|
public void testDeprecatedAnnotation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/deprecatedAnnotation.kt");
|
|
}
|
|
|
|
@TestMetadata("deprecatedDefaultMethod.kt")
|
|
public void testDeprecatedDefaultMethod() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/deprecatedDefaultMethod.kt");
|
|
}
|
|
|
|
@TestMetadata("diamond.kt")
|
|
public void testDiamond() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/diamond.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("inline.kt")
|
|
public void testInline() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/inline.kt");
|
|
}
|
|
|
|
@TestMetadata("inlineProperty.kt")
|
|
public void testInlineProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/inlineProperty.kt");
|
|
}
|
|
|
|
@TestMetadata("interfaceExtension.kt")
|
|
public void testInterfaceExtension() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/interfaceExtension.kt");
|
|
}
|
|
|
|
@TestMetadata("kt11969.kt")
|
|
public void testKt11969() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/kt11969.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("kt14243_prop.kt")
|
|
public void testKt14243_prop() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/kt14243_prop.kt");
|
|
}
|
|
|
|
@TestMetadata("kt40920.kt")
|
|
public void testKt40920() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/kt40920.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("oneImplementation.kt")
|
|
public void testOneImplementation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/oneImplementation.kt");
|
|
}
|
|
|
|
@TestMetadata("oneImplementation2.kt")
|
|
public void testOneImplementation2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/oneImplementation2.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("privateSuspend.kt")
|
|
public void testPrivateSuspend() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/privateSuspend.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("suspendFunction.kt")
|
|
public void testSuspendFunction() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/allCompatibility/suspendFunction.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_IR, 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_IR, 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/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_IR, 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_IR, true);
|
|
}
|
|
|
|
@TestMetadata("javaDefaultMethod.kt")
|
|
public void testJavaDefaultMethod() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/delegationBy/javaDefaultMethod.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_IR, 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_IR, 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("callableReference.kt")
|
|
public void testCallableReference() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/callableReference.kt");
|
|
}
|
|
|
|
@TestMetadata("capturedSuperCall.kt")
|
|
public void testCapturedSuperCall() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/capturedSuperCall.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("diamond.kt")
|
|
public void testDiamond() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/diamond.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("inline.kt")
|
|
public void testInline() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/inline.kt");
|
|
}
|
|
|
|
@TestMetadata("inlineProperty.kt")
|
|
public void testInlineProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/inlineProperty.kt");
|
|
}
|
|
|
|
@TestMetadata("interfaceExtension.kt")
|
|
public void testInterfaceExtension() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/interfaceExtension.kt");
|
|
}
|
|
|
|
@TestMetadata("kt11969.kt")
|
|
public void testKt11969() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/kt11969.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("kt14243_prop.kt")
|
|
public void testKt14243_prop() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/kt14243_prop.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("kt42967_all.kt")
|
|
public void testKt42967_all() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/kt42967_all.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("oneImplementation.kt")
|
|
public void testOneImplementation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/oneImplementation.kt");
|
|
}
|
|
|
|
@TestMetadata("oneImplementation2.kt")
|
|
public void testOneImplementation2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/oneImplementation2.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("suspendSuperCall.kt")
|
|
public void testSuspendSuperCall() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/suspendSuperCall.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_IR, 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_IR, 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_IR, 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_IR, 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/noDefaultImpls/withCompatibility")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class WithCompatibility extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInWithCompatibility() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/withCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("defaultArgs.kt")
|
|
public void testDefaultArgs() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/withCompatibility/defaultArgs.kt");
|
|
}
|
|
|
|
@TestMetadata("differentCases.kt")
|
|
public void testDifferentCases() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/withCompatibility/differentCases.kt");
|
|
}
|
|
|
|
@TestMetadata("javaInheritance.kt")
|
|
public void testJavaInheritance() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/withCompatibility/javaInheritance.kt");
|
|
}
|
|
|
|
@TestMetadata("propertyAnnotation.kt")
|
|
public void testPropertyAnnotation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/withCompatibility/propertyAnnotation.kt");
|
|
}
|
|
|
|
@TestMetadata("simple.kt")
|
|
public void testSimple() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/withCompatibility/simple.kt");
|
|
}
|
|
|
|
@TestMetadata("suspend.kt")
|
|
public void testSuspend() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/noDefaultImpls/withCompatibility/suspend.kt");
|
|
}
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/jvm8/defaults/nonDefaultInheritance")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class NonDefaultInheritance extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInNonDefaultInheritance() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/defaults/nonDefaultInheritance"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("diamondWithJava.kt")
|
|
public void testDiamondWithJava() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/nonDefaultInheritance/diamondWithJava.kt");
|
|
}
|
|
|
|
@TestMetadata("simple.kt")
|
|
public void testSimple() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/nonDefaultInheritance/simple.kt");
|
|
}
|
|
|
|
@TestMetadata("simple2.kt")
|
|
public void testSimple2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/nonDefaultInheritance/simple2.kt");
|
|
}
|
|
|
|
@TestMetadata("specialization.kt")
|
|
public void testSpecialization() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/nonDefaultInheritance/specialization.kt");
|
|
}
|
|
|
|
@TestMetadata("superCall.kt")
|
|
public void testSuperCall() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/defaults/nonDefaultInheritance/superCall.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_IR, 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_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInInterfaceFlag() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/interfaceFlag"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInJavaDefaults() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvm8/javaDefaults"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("kt42967.kt")
|
|
public void testKt42967() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvm8/javaDefaults/kt42967.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInJvmField() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("kt12189_noClashOnDifferentCase.kt")
|
|
public void testKt12189_noClashOnDifferentCase() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvmField/kt12189_noClashOnDifferentCase.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("kt48295.kt")
|
|
public void testKt48295() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvmField/kt48295.kt");
|
|
}
|
|
|
|
@TestMetadata("kt48295a.kt")
|
|
public void testKt48295a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvmField/kt48295a.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInJvmName() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmName"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("fakeOverrideOfProperty.kt")
|
|
public void testFakeOverrideOfProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvmName/fakeOverrideOfProperty.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInFileFacades() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmName/fileFacades"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInJvmOverloads() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmOverloads"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInJvmPackageName() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmPackageName"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInJvmStatic() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmStatic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("extensionPropertyGetter.kt")
|
|
public void testExtensionPropertyGetter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvmStatic/extensionPropertyGetter.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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInProtectedInSuperClass() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmStatic/protectedInSuperClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("defaultArguments.kt")
|
|
public void testDefaultArguments() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvmStatic/protectedInSuperClass/defaultArguments.kt");
|
|
}
|
|
|
|
@TestMetadata("simpleFunction.kt")
|
|
public void testSimpleFunction() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvmStatic/protectedInSuperClass/simpleFunction.kt");
|
|
}
|
|
|
|
@TestMetadata("simpleProperty.kt")
|
|
public void testSimpleProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/jvmStatic/protectedInSuperClass/simpleProperty.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInLabels() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/labels"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInLazyCodegen() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lazyCodegen"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInOptimizations() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lazyCodegen/optimizations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInLocalClasses() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("capturingInDefaultConstructorParameter.kt")
|
|
public void testCapturingInDefaultConstructorParameter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/localClasses/capturingInDefaultConstructorParameter.kt");
|
|
}
|
|
|
|
@TestMetadata("closureOfInnerLocalClass.kt")
|
|
public void testClosureOfInnerLocalClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/localClasses/closureOfInnerLocalClass.kt");
|
|
}
|
|
|
|
@TestMetadata("closureOfLambdaInLocalClass.kt")
|
|
public void testClosureOfLambdaInLocalClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/localClasses/closureOfLambdaInLocalClass.kt");
|
|
}
|
|
|
|
@TestMetadata("closureWithSelfInstantiation.kt")
|
|
public void testClosureWithSelfInstantiation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/localClasses/closureWithSelfInstantiation.kt");
|
|
}
|
|
|
|
@TestMetadata("defaultParameterInConstructor.kt")
|
|
public void testDefaultParameterInConstructor() throws Exception {
|
|
runTest("compiler/testData/codegen/box/localClasses/defaultParameterInConstructor.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("kt10835.kt")
|
|
public void testKt10835() throws Exception {
|
|
runTest("compiler/testData/codegen/box/localClasses/kt10835.kt");
|
|
}
|
|
|
|
@TestMetadata("kt10835a.kt")
|
|
public void testKt10835a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/localClasses/kt10835a.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("kt45383.kt")
|
|
public void testKt45383() throws Exception {
|
|
runTest("compiler/testData/codegen/box/localClasses/kt45383.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("localClassUsedBeforeDeclaration.kt")
|
|
public void testLocalClassUsedBeforeDeclaration() throws Exception {
|
|
runTest("compiler/testData/codegen/box/localClasses/localClassUsedBeforeDeclaration.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("subclassingExtensionReceiverClass.kt")
|
|
public void testSubclassingExtensionReceiverClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/localClasses/subclassingExtensionReceiverClass.kt");
|
|
}
|
|
|
|
@TestMetadata("withclosure.kt")
|
|
public void testWithclosure() throws Exception {
|
|
runTest("compiler/testData/codegen/box/localClasses/withclosure.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/mangling")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Mangling extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInMangling() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/mangling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInMixedNamedPosition() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/mixedNamedPosition"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInMultiDecl() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInForIterator() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forIterator"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, 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_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInForRange() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forRange"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInMultifileClasses() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multifileClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInOptimized() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multifileClasses/optimized"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("callableReferencesToSamePropertiesFromDifferentPackages.kt")
|
|
public void testCallableReferencesToSamePropertiesFromDifferentPackages() throws Exception {
|
|
runTest("compiler/testData/codegen/box/multifileClasses/optimized/callableReferencesToSamePropertiesFromDifferentPackages.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 {
|
|
@TestMetadata("callToJavaSuper.kt")
|
|
public void ignoreCallToJavaSuper() throws Exception {
|
|
runTest("compiler/testData/codegen/box/multiplatform/callToJavaSuper.kt");
|
|
}
|
|
|
|
@TestMetadata("kt59613.kt")
|
|
public void ignoreKt59613() throws Exception {
|
|
runTest("compiler/testData/codegen/box/multiplatform/kt59613.kt");
|
|
}
|
|
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInMultiplatform() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true, "k2");
|
|
}
|
|
|
|
@TestMetadata("annotationsViaActualTypeAliasFromBinary.kt")
|
|
public void testAnnotationsViaActualTypeAliasFromBinary() throws Exception {
|
|
runTest("compiler/testData/codegen/box/multiplatform/annotationsViaActualTypeAliasFromBinary.kt");
|
|
}
|
|
|
|
@TestMetadata("annotationsViaActualTypeAliasFromBinary2.kt")
|
|
public void testAnnotationsViaActualTypeAliasFromBinary2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/multiplatform/annotationsViaActualTypeAliasFromBinary2.kt");
|
|
}
|
|
|
|
@TestMetadata("commonInternal.kt")
|
|
public void testCommonInternal() throws Exception {
|
|
runTest("compiler/testData/codegen/box/multiplatform/commonInternal.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("kt60854.kt")
|
|
public void testKt60854() throws Exception {
|
|
runTest("compiler/testData/codegen/box/multiplatform/kt60854.kt");
|
|
}
|
|
|
|
@TestMetadata("kt61166.kt")
|
|
public void testKt61166() throws Exception {
|
|
runTest("compiler/testData/codegen/box/multiplatform/kt61166.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/complexMatchings")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class ComplexMatchings extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInComplexMatchings() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/complexMatchings"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("expectCtorlessFinalToActualObject.kt")
|
|
public void testExpectCtorlessFinalToActualObject() throws Exception {
|
|
runTest("compiler/testData/codegen/box/multiplatform/complexMatchings/expectCtorlessFinalToActualObject.kt");
|
|
}
|
|
|
|
@TestMetadata("expectCtorlessFinalToActualUnit.kt")
|
|
public void testExpectCtorlessFinalToActualUnit() throws Exception {
|
|
runTest("compiler/testData/codegen/box/multiplatform/complexMatchings/expectCtorlessFinalToActualUnit.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");
|
|
}
|
|
|
|
@TestMetadata("typeAlias2.kt")
|
|
public void ignoreTypeAlias2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/typeAlias2.kt");
|
|
}
|
|
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInDefaultArguments() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("nestedEnumEntryValue.kt")
|
|
public void testNestedEnumEntryValue() throws Exception {
|
|
runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/nestedEnumEntryValue.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInExhaustiveness() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/exhaustiveness"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInHmpp() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/hmpp"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("simple.kt")
|
|
public void testSimple() throws Exception {
|
|
runTest("compiler/testData/codegen/box/multiplatform/hmpp/simple.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/multiplatform/migratedOldTests")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class MigratedOldTests extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInMigratedOldTests() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/migratedOldTests"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("mpp1.kt")
|
|
public void testMpp1() throws Exception {
|
|
runTest("compiler/testData/codegen/box/multiplatform/migratedOldTests/mpp1.kt");
|
|
}
|
|
|
|
@TestMetadata("mpp2.kt")
|
|
public void testMpp2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/multiplatform/migratedOldTests/mpp2.kt");
|
|
}
|
|
|
|
@TestMetadata("mpp_default_args.kt")
|
|
public void testMpp_default_args() throws Exception {
|
|
runTest("compiler/testData/codegen/box/multiplatform/migratedOldTests/mpp_default_args.kt");
|
|
}
|
|
|
|
@TestMetadata("remap_expect_property_ref.kt")
|
|
public void testRemap_expect_property_ref() throws Exception {
|
|
runTest("compiler/testData/codegen/box/multiplatform/migratedOldTests/remap_expect_property_ref.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInMultiModule() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/multiModule"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("expectInterfaceInheritance.kt")
|
|
public void testExpectInterfaceInheritance() throws Exception {
|
|
runTest("compiler/testData/codegen/box/multiplatform/multiModule/expectInterfaceInheritance.kt");
|
|
}
|
|
|
|
@TestMetadata("hmppSimple.kt")
|
|
public void testHmppSimple() throws Exception {
|
|
runTest("compiler/testData/codegen/box/multiplatform/multiModule/hmppSimple.kt");
|
|
}
|
|
}
|
|
}
|
|
|
|
@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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInNonLocalReturns() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/nonLocalReturns"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInNotNullAssertions() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/notNullAssertions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("callAssertions.kt")
|
|
public void testCallAssertions() throws Exception {
|
|
runTest("compiler/testData/codegen/box/notNullAssertions/callAssertions.kt");
|
|
}
|
|
|
|
@TestMetadata("constructorWithMangledParams.kt")
|
|
public void testConstructorWithMangledParams() throws Exception {
|
|
runTest("compiler/testData/codegen/box/notNullAssertions/constructorWithMangledParams.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("inFunctionWithExpressionBodyWithJavaGeneric.kt")
|
|
public void testInFunctionWithExpressionBodyWithJavaGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/notNullAssertions/inFunctionWithExpressionBodyWithJavaGeneric.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInNothingValue() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/nothingValue"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInNullCheckOptimization() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/nullCheckOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("kt49136.kt")
|
|
public void testKt49136() throws Exception {
|
|
runTest("compiler/testData/codegen/box/nullCheckOptimization/kt49136.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49136a.kt")
|
|
public void testKt49136a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/nullCheckOptimization/kt49136a.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInObjectIntrinsics() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objectIntrinsics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInObjects() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objects"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("anonymousObjectAndContrvariantProjection.kt")
|
|
public void testAnonymousObjectAndContrvariantProjection() throws Exception {
|
|
runTest("compiler/testData/codegen/box/objects/anonymousObjectAndContrvariantProjection.kt");
|
|
}
|
|
|
|
@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("initializationOrderConsts.kt")
|
|
public void testInitializationOrderConsts() throws Exception {
|
|
runTest("compiler/testData/codegen/box/objects/initializationOrderConsts.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("kt1047a.kt")
|
|
public void testKt1047a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/objects/kt1047a.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("kt32351.kt")
|
|
public void testKt32351() throws Exception {
|
|
runTest("compiler/testData/codegen/box/objects/kt32351.kt");
|
|
}
|
|
|
|
@TestMetadata("kt3238.kt")
|
|
public void testKt3238() throws Exception {
|
|
runTest("compiler/testData/codegen/box/objects/kt3238.kt");
|
|
}
|
|
|
|
@TestMetadata("kt32749.kt")
|
|
public void testKt32749() throws Exception {
|
|
runTest("compiler/testData/codegen/box/objects/kt32749.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("kt46136.kt")
|
|
public void testKt46136() throws Exception {
|
|
runTest("compiler/testData/codegen/box/objects/kt46136.kt");
|
|
}
|
|
|
|
@TestMetadata("kt52540.kt")
|
|
public void testKt52540() throws Exception {
|
|
runTest("compiler/testData/codegen/box/objects/kt52540.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInCompanionObjectAccess() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objects/companionObjectAccess"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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("augmentedAssigmentPlusLhsCount.kt")
|
|
public void ignoreAugmentedAssigmentPlusLhsCount() throws Exception {
|
|
runTest("compiler/testData/codegen/box/operatorConventions/augmentedAssigmentPlusLhsCount.kt");
|
|
}
|
|
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInOperatorConventions() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/operatorConventions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("annotatedAssignment.kt")
|
|
public void testAnnotatedAssignment() throws Exception {
|
|
runTest("compiler/testData/codegen/box/operatorConventions/annotatedAssignment.kt");
|
|
}
|
|
|
|
@TestMetadata("assignToDotQualifiedWithSideEffect.kt")
|
|
public void testAssignToDotQualifiedWithSideEffect() throws Exception {
|
|
runTest("compiler/testData/codegen/box/operatorConventions/assignToDotQualifiedWithSideEffect.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("kt44647.kt")
|
|
public void testKt44647() throws Exception {
|
|
runTest("compiler/testData/codegen/box/operatorConventions/kt44647.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("reassignmentLhsCaching.kt")
|
|
public void testReassignmentLhsCaching() throws Exception {
|
|
runTest("compiler/testData/codegen/box/operatorConventions/reassignmentLhsCaching.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("suspendOperators.kt")
|
|
public void testSuspendOperators() throws Exception {
|
|
runTest("compiler/testData/codegen/box/operatorConventions/suspendOperators.kt");
|
|
}
|
|
|
|
@TestMetadata("untilOperator.kt")
|
|
public void testUntilOperator() throws Exception {
|
|
runTest("compiler/testData/codegen/box/operatorConventions/untilOperator.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInCompareTo() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/operatorConventions/compareTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInOptimizations() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/optimizations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInPackage() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/package"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("kt57353.kt")
|
|
public void testKt57353() throws Exception {
|
|
runTest("compiler/testData/codegen/box/package/kt57353.kt");
|
|
}
|
|
|
|
@TestMetadata("kt62017.kt")
|
|
public void testKt62017() throws Exception {
|
|
runTest("compiler/testData/codegen/box/package/kt62017.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("packageOrNestedClass.kt")
|
|
public void testPackageOrNestedClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/package/packageOrNestedClass.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInParametersMetadata() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/parametersMetadata"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("jvmOverloads.kt")
|
|
public void testJvmOverloads() throws Exception {
|
|
runTest("compiler/testData/codegen/box/parametersMetadata/jvmOverloads.kt");
|
|
}
|
|
|
|
@TestMetadata("kt40857_parameterizedExtensionReceiver.kt")
|
|
public void testKt40857_parameterizedExtensionReceiver() throws Exception {
|
|
runTest("compiler/testData/codegen/box/parametersMetadata/kt40857_parameterizedExtensionReceiver.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInPlatformTypes() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/platformTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("kt49209.kt")
|
|
public void testKt49209() throws Exception {
|
|
runTest("compiler/testData/codegen/box/platformTypes/kt49209.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInPrimitives() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/platformTypes/primitives"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInPolymorphicSignature() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/polymorphicSignature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("anonymousSubclass.kt")
|
|
public void testAnonymousSubclass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/polymorphicSignature/anonymousSubclass.kt");
|
|
}
|
|
|
|
@TestMetadata("insideComplexExpression.kt")
|
|
public void testInsideComplexExpression() throws Exception {
|
|
runTest("compiler/testData/codegen/box/polymorphicSignature/insideComplexExpression.kt");
|
|
}
|
|
|
|
@TestMetadata("insideIf.kt")
|
|
public void testInsideIf() throws Exception {
|
|
runTest("compiler/testData/codegen/box/polymorphicSignature/insideIf.kt");
|
|
}
|
|
|
|
@TestMetadata("insideTry.kt")
|
|
public void testInsideTry() throws Exception {
|
|
runTest("compiler/testData/codegen/box/polymorphicSignature/insideTry.kt");
|
|
}
|
|
|
|
@TestMetadata("insideWhen.kt")
|
|
public void testInsideWhen() throws Exception {
|
|
runTest("compiler/testData/codegen/box/polymorphicSignature/insideWhen.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInPrimitiveTypes() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/primitiveTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("booleanHashCode.kt")
|
|
public void testBooleanHashCode() throws Exception {
|
|
runTest("compiler/testData/codegen/box/primitiveTypes/booleanHashCode.kt");
|
|
}
|
|
|
|
@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("kt36952_identityEqualsWithBooleanInLocalFunction.kt")
|
|
public void testKt36952_identityEqualsWithBooleanInLocalFunction() throws Exception {
|
|
runTest("compiler/testData/codegen/box/primitiveTypes/kt36952_identityEqualsWithBooleanInLocalFunction.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("kt42415_javaClassOfLongLiteral.kt")
|
|
public void testKt42415_javaClassOfLongLiteral() throws Exception {
|
|
runTest("compiler/testData/codegen/box/primitiveTypes/kt42415_javaClassOfLongLiteral.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("kt48659_identityEqualsWithCastToAny.kt")
|
|
public void testKt48659_identityEqualsWithCastToAny() throws Exception {
|
|
runTest("compiler/testData/codegen/box/primitiveTypes/kt48659_identityEqualsWithCastToAny.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInEqualityWithObject() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/primitiveTypes/equalityWithObject"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, 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_IR, 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/primitiveTypes/numberToChar")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class NumberToChar extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
@TestMetadata("abstractMethodInSuperinterface.kt")
|
|
public void testAbstractMethodInSuperinterface() throws Exception {
|
|
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/abstractMethodInSuperinterface.kt");
|
|
}
|
|
|
|
public void testAllFilesPresentInNumberToChar() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/primitiveTypes/numberToChar"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("fakeOverride.kt")
|
|
public void testFakeOverride() throws Exception {
|
|
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/fakeOverride.kt");
|
|
}
|
|
|
|
@TestMetadata("javaSubclass.kt")
|
|
public void testJavaSubclass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/javaSubclass.kt");
|
|
}
|
|
|
|
@TestMetadata("simple.kt")
|
|
public void testSimple() throws Exception {
|
|
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/simple.kt");
|
|
}
|
|
|
|
@TestMetadata("superCallToClass.kt")
|
|
public void testSuperCallToClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/superCallToClass.kt");
|
|
}
|
|
|
|
@TestMetadata("superCallToInterface.kt")
|
|
public void testSuperCallToInterface() throws Exception {
|
|
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/superCallToInterface.kt");
|
|
}
|
|
|
|
@TestMetadata("superCallToNumber.kt")
|
|
public void testSuperCallToNumber() throws Exception {
|
|
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/superCallToNumber.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInPrivate() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/private"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInPrivateConstructors() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/privateConstructors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("genericWithSameName.kt")
|
|
public void ignoreGenericWithSameName() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/genericWithSameName.kt");
|
|
}
|
|
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, 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_IR, true);
|
|
}
|
|
|
|
@TestMetadata("augmentedAssignmentsAndIncrements.kt")
|
|
public void testAugmentedAssignmentsAndIncrements() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/augmentedAssignmentsAndIncrements.kt");
|
|
}
|
|
|
|
@TestMetadata("classArtificialFieldInsideNested.kt")
|
|
public void testClassArtificialFieldInsideNested() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/classArtificialFieldInsideNested.kt");
|
|
}
|
|
|
|
@TestMetadata("classFieldInsideLambda.kt")
|
|
public void testClassFieldInsideLambda() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/classFieldInsideLambda.kt");
|
|
}
|
|
|
|
@TestMetadata("classFieldInsideLocalInSetter.kt")
|
|
public void testClassFieldInsideLocalInSetter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/classFieldInsideLocalInSetter.kt");
|
|
}
|
|
|
|
@TestMetadata("classFieldInsideNested.kt")
|
|
public void testClassFieldInsideNested() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/classFieldInsideNested.kt");
|
|
}
|
|
|
|
@TestMetadata("classFieldInsideNestedLambda.kt")
|
|
public void testClassFieldInsideNestedLambda() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/classFieldInsideNestedLambda.kt");
|
|
}
|
|
|
|
@TestMetadata("classFieldInsideNestedNestedLambda.kt")
|
|
public void testClassFieldInsideNestedNestedLambda() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/classFieldInsideNestedNestedLambda.kt");
|
|
}
|
|
|
|
@TestMetadata("classObjectProperties.kt")
|
|
public void testClassObjectProperties() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/classObjectProperties.kt");
|
|
}
|
|
|
|
@TestMetadata("classPrivateArtificialFieldInsideNested.kt")
|
|
public void testClassPrivateArtificialFieldInsideNested() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/classPrivateArtificialFieldInsideNested.kt");
|
|
}
|
|
|
|
@TestMetadata("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("initializerOfConstValWithConst.kt")
|
|
public void testInitializerOfConstValWithConst() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/initializerOfConstValWithConst.kt");
|
|
}
|
|
|
|
@TestMetadata("initializerOfConstValWithConstExpr.kt")
|
|
public void testInitializerOfConstValWithConstExpr() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/initializerOfConstValWithConstExpr.kt");
|
|
}
|
|
|
|
@TestMetadata("initializerOfValWithConstExpr.kt")
|
|
public void testInitializerOfValWithConstExpr() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/initializerOfValWithConstExpr.kt");
|
|
}
|
|
|
|
@TestMetadata("initializerOfValWithNonConstExpr.kt")
|
|
public void testInitializerOfValWithNonConstExpr() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/initializerOfValWithNonConstExpr.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("kt49203_lateinit.kt")
|
|
public void testKt49203_lateinit() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/kt49203_lateinit.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49203_var.kt")
|
|
public void testKt49203_var() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/kt49203_var.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("PrivatePropertyOfComplexGenericFunctionType.kt")
|
|
public void testPrivatePropertyOfComplexGenericFunctionType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/PrivatePropertyOfComplexGenericFunctionType.kt");
|
|
}
|
|
|
|
@TestMetadata("PrivatePropertyOfGenericContravariantFunctionType.kt")
|
|
public void testPrivatePropertyOfGenericContravariantFunctionType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/PrivatePropertyOfGenericContravariantFunctionType.kt");
|
|
}
|
|
|
|
@TestMetadata("PrivatePropertyOfGenericCovariantFunctionType.kt")
|
|
public void testPrivatePropertyOfGenericCovariantFunctionType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/PrivatePropertyOfGenericCovariantFunctionType.kt");
|
|
}
|
|
|
|
@TestMetadata("privatePropertyWithoutBackingField.kt")
|
|
public void testPrivatePropertyWithoutBackingField() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/privatePropertyWithoutBackingField.kt");
|
|
}
|
|
|
|
@TestMetadata("propertyInUpperCaseWithJava.kt")
|
|
public void testPropertyInUpperCaseWithJava() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/propertyInUpperCaseWithJava.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/backingField")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class BackingField extends AbstractLightAnalysisModeTest {
|
|
@TestMetadata("backingFieldVisibility.kt")
|
|
public void ignoreBackingFieldVisibility() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/backingField/backingFieldVisibility.kt");
|
|
}
|
|
|
|
@TestMetadata("backingFieldWithSmartTypeParameters.kt")
|
|
public void ignoreBackingFieldWithSmartTypeParameters() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/backingField/backingFieldWithSmartTypeParameters.kt");
|
|
}
|
|
|
|
@TestMetadata("charSequenceWithBackingField1.kt")
|
|
public void ignoreCharSequenceWithBackingField1() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField1.kt");
|
|
}
|
|
|
|
@TestMetadata("charSequenceWithBackingField2.kt")
|
|
public void ignoreCharSequenceWithBackingField2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField2.kt");
|
|
}
|
|
|
|
@TestMetadata("charSequenceWithBackingField3.kt")
|
|
public void ignoreCharSequenceWithBackingField3() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField3.kt");
|
|
}
|
|
|
|
@TestMetadata("charSequenceWithBackingField4.kt")
|
|
public void ignoreCharSequenceWithBackingField4() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField4.kt");
|
|
}
|
|
|
|
@TestMetadata("charSequenceWithBackingField5.kt")
|
|
public void ignoreCharSequenceWithBackingField5() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField5.kt");
|
|
}
|
|
|
|
@TestMetadata("explicitBackingFieldInAnonymous.kt")
|
|
public void ignoreExplicitBackingFieldInAnonymous() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/backingField/explicitBackingFieldInAnonymous.kt");
|
|
}
|
|
|
|
@TestMetadata("getterReturnTypeWithBackingField.kt")
|
|
public void ignoreGetterReturnTypeWithBackingField() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/backingField/getterReturnTypeWithBackingField.kt");
|
|
}
|
|
|
|
@TestMetadata("independentBackingFieldType.kt")
|
|
public void ignoreIndependentBackingFieldType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/backingField/independentBackingFieldType.kt");
|
|
}
|
|
|
|
@TestMetadata("lateinitBackingFields.kt")
|
|
public void ignoreLateinitBackingFields() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/backingField/lateinitBackingFields.kt");
|
|
}
|
|
|
|
@TestMetadata("overriddenPropertiesWithExplicitBackingFields.kt")
|
|
public void ignoreOverriddenPropertiesWithExplicitBackingFields() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/backingField/overriddenPropertiesWithExplicitBackingFields.kt");
|
|
}
|
|
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInBackingField() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
}
|
|
|
|
@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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInConst() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/const"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("intermoduleInlineConst.kt")
|
|
public void testIntermoduleInlineConst() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/const/intermoduleInlineConst.kt");
|
|
}
|
|
|
|
@TestMetadata("kt52970.kt")
|
|
public void testKt52970() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/const/kt52970.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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, 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_IR, 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("kt30548.kt")
|
|
public void testKt30548() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/lateinit/kt30548.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("privateVarInCompanion.kt")
|
|
public void testPrivateVarInCompanion() throws Exception {
|
|
runTest("compiler/testData/codegen/box/properties/lateinit/privateVarInCompanion.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_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInPublishedApi() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/publishedApi"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("inlineFromFriendModule.kt")
|
|
public void testInlineFromFriendModule() throws Exception {
|
|
runTest("compiler/testData/codegen/box/publishedApi/inlineFromFriendModule.kt");
|
|
}
|
|
|
|
@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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInRanges() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true, "stepped");
|
|
}
|
|
|
|
@TestMetadata("capturedLoopVar.kt")
|
|
public void testCapturedLoopVar() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/capturedLoopVar.kt");
|
|
}
|
|
|
|
@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("forInDoubleRangeWithCustomIterator.kt")
|
|
public void testForInDoubleRangeWithCustomIterator() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/forInDoubleRangeWithCustomIterator.kt");
|
|
}
|
|
|
|
@TestMetadata("forInFloatRangeWithCustomIterator.kt")
|
|
public void testForInFloatRangeWithCustomIterator() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/forInFloatRangeWithCustomIterator.kt");
|
|
}
|
|
|
|
@TestMetadata("forInIntRangeToConstWithBreak.kt")
|
|
public void testForInIntRangeToConstWithBreak() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/forInIntRangeToConstWithBreak.kt");
|
|
}
|
|
|
|
@TestMetadata("forInIntRangeToConstWithContinue.kt")
|
|
public void testForInIntRangeToConstWithContinue() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/forInIntRangeToConstWithContinue.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("forInRangeWithUpperBoundMinus1.kt")
|
|
public void testForInRangeWithUpperBoundMinus1() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/forInRangeWithUpperBoundMinus1.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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInContains() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/contains"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("charInCharRangeWithPossibleOverflow.kt")
|
|
public void testCharInCharRangeWithPossibleOverflow() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/charInCharRangeWithPossibleOverflow.kt");
|
|
}
|
|
|
|
@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("intInByteRangeWithPossibleOverflow.kt")
|
|
public void testIntInByteRangeWithPossibleOverflow() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/intInByteRangeWithPossibleOverflow.kt");
|
|
}
|
|
|
|
@TestMetadata("intInIntRangeWithPossibleOverflow.kt")
|
|
public void testIntInIntRangeWithPossibleOverflow() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/intInIntRangeWithPossibleOverflow.kt");
|
|
}
|
|
|
|
@TestMetadata("intInShortRangeWithPossibleOverflow.kt")
|
|
public void testIntInShortRangeWithPossibleOverflow() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/intInShortRangeWithPossibleOverflow.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("longInLongRangeWithPossibleOverflow.kt")
|
|
public void testLongInLongRangeWithPossibleOverflow() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/longInLongRangeWithPossibleOverflow.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("smartCastOnBothEnds.kt")
|
|
public void testSmartCastOnBothEnds() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/smartCastOnBothEnds.kt");
|
|
}
|
|
|
|
@TestMetadata("uintInUByteRangeWithPossibleOverflow.kt")
|
|
public void testUintInUByteRangeWithPossibleOverflow() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/uintInUByteRangeWithPossibleOverflow.kt");
|
|
}
|
|
|
|
@TestMetadata("uintInUIntRangeWithPossibleOverflow.kt")
|
|
public void testUintInUIntRangeWithPossibleOverflow() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/uintInUIntRangeWithPossibleOverflow.kt");
|
|
}
|
|
|
|
@TestMetadata("uintInUShortRangeWithPossibleOverflow.kt")
|
|
public void testUintInUShortRangeWithPossibleOverflow() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/uintInUShortRangeWithPossibleOverflow.kt");
|
|
}
|
|
|
|
@TestMetadata("ulongInULongRangeWithPossibleOverflow.kt")
|
|
public void testUlongInULongRangeWithPossibleOverflow() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/ulongInULongRangeWithPossibleOverflow.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_IR, 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_IR, 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("charRangeTo.kt")
|
|
public void testCharRangeTo() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/generated/charRangeTo.kt");
|
|
}
|
|
|
|
@TestMetadata("charRangeUntil.kt")
|
|
public void testCharRangeUntil() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/generated/charRangeUntil.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("doubleRangeTo.kt")
|
|
public void testDoubleRangeTo() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/generated/doubleRangeTo.kt");
|
|
}
|
|
|
|
@TestMetadata("doubleRangeUntil.kt")
|
|
public void testDoubleRangeUntil() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/generated/doubleRangeUntil.kt");
|
|
}
|
|
|
|
@TestMetadata("floatRangeTo.kt")
|
|
public void testFloatRangeTo() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/generated/floatRangeTo.kt");
|
|
}
|
|
|
|
@TestMetadata("floatRangeUntil.kt")
|
|
public void testFloatRangeUntil() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/generated/floatRangeUntil.kt");
|
|
}
|
|
|
|
@TestMetadata("intDownTo.kt")
|
|
public void testIntDownTo() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/generated/intDownTo.kt");
|
|
}
|
|
|
|
@TestMetadata("intRangeTo.kt")
|
|
public void testIntRangeTo() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/generated/intRangeTo.kt");
|
|
}
|
|
|
|
@TestMetadata("intRangeUntil.kt")
|
|
public void testIntRangeUntil() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/generated/intRangeUntil.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("longRangeTo.kt")
|
|
public void testLongRangeTo() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/generated/longRangeTo.kt");
|
|
}
|
|
|
|
@TestMetadata("longRangeUntil.kt")
|
|
public void testLongRangeUntil() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/generated/longRangeUntil.kt");
|
|
}
|
|
|
|
@TestMetadata("longUntil.kt")
|
|
public void testLongUntil() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/generated/longUntil.kt");
|
|
}
|
|
|
|
@TestMetadata("uintDownTo.kt")
|
|
public void testUintDownTo() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/generated/uintDownTo.kt");
|
|
}
|
|
|
|
@TestMetadata("uintRangeTo.kt")
|
|
public void testUintRangeTo() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/generated/uintRangeTo.kt");
|
|
}
|
|
|
|
@TestMetadata("uintRangeUntil.kt")
|
|
public void testUintRangeUntil() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/generated/uintRangeUntil.kt");
|
|
}
|
|
|
|
@TestMetadata("uintUntil.kt")
|
|
public void testUintUntil() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/generated/uintUntil.kt");
|
|
}
|
|
|
|
@TestMetadata("ulongDownTo.kt")
|
|
public void testUlongDownTo() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/generated/ulongDownTo.kt");
|
|
}
|
|
|
|
@TestMetadata("ulongRangeTo.kt")
|
|
public void testUlongRangeTo() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/generated/ulongRangeTo.kt");
|
|
}
|
|
|
|
@TestMetadata("ulongRangeUntil.kt")
|
|
public void testUlongRangeUntil() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/generated/ulongRangeUntil.kt");
|
|
}
|
|
|
|
@TestMetadata("ulongUntil.kt")
|
|
public void testUlongUntil() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/contains/generated/ulongUntil.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInEvaluationOrder() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/evaluationOrder"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInExpression() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/expression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("openRangeUntil.kt")
|
|
public void testOpenRangeUntil() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/expression/openRangeUntil.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInForInDownTo() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/forInDownTo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("forInDownToWithPossibleUnderflow.kt")
|
|
public void testForInDownToWithPossibleUnderflow() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/forInDownTo/forInDownToWithPossibleUnderflow.kt");
|
|
}
|
|
|
|
@TestMetadata("forInSumDownToSum.kt")
|
|
public void testForInSumDownToSum() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/forInDownTo/forInSumDownToSum.kt");
|
|
}
|
|
|
|
@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("kt49411.kt")
|
|
public void testKt49411() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/forInDownTo/kt49411.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInForInIndices() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/forInIndices"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("forInListIndices.kt")
|
|
public void testForInListIndices() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/forInIndices/forInListIndices.kt");
|
|
}
|
|
|
|
@TestMetadata("forInListIndicesBreak.kt")
|
|
public void testForInListIndicesBreak() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/forInIndices/forInListIndicesBreak.kt");
|
|
}
|
|
|
|
@TestMetadata("forInListIndicesContinue.kt")
|
|
public void testForInListIndicesContinue() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/forInIndices/forInListIndicesContinue.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInForInProgressionWithIndex() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/forInProgressionWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInForInReversed() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/forInReversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInForInUntil() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/forInUntil"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("kt42533.kt")
|
|
public void testKt42533() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/forInUntil/kt42533.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInForWithPossibleOverflow() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/forWithPossibleOverflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInJavaInterop() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/javaInterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, 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_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInLiteral() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/literal"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("openRangeUntil.kt")
|
|
public void testOpenRangeUntil() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/literal/openRangeUntil.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInNullableLoopParameter() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/nullableLoopParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInUnsigned() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/unsigned"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("bitShifting.kt")
|
|
public void testBitShifting() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/unsigned/bitShifting.kt");
|
|
}
|
|
|
|
@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_IR, 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_IR, 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("openRangeUntil.kt")
|
|
public void testOpenRangeUntil() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/unsigned/expression/openRangeUntil.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_IR, 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_IR, 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("openRangeUntil.kt")
|
|
public void testOpenRangeUntil() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/unsigned/literal/openRangeUntil.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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, 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_IR, true);
|
|
}
|
|
|
|
@TestMetadata("progressionExpression.kt")
|
|
public void testProgressionExpression() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/unsigned/nullableLoopParameter/progressionExpression.kt");
|
|
}
|
|
|
|
@TestMetadata("rangeExpression.kt")
|
|
public void testRangeExpression() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/unsigned/nullableLoopParameter/rangeExpression.kt");
|
|
}
|
|
|
|
@TestMetadata("rangeLiteral.kt")
|
|
public void testRangeLiteral() throws Exception {
|
|
runTest("compiler/testData/codegen/box/ranges/unsigned/nullableLoopParameter/rangeLiteral.kt");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInRecursiveRawTypes() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/recursiveRawTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInReflection() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("jvmKPackageCaching.kt")
|
|
public void testJvmKPackageCaching() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/jvmKPackageCaching.kt");
|
|
}
|
|
|
|
@TestMetadata("jvmKTypeCaching.kt")
|
|
public void testJvmKTypeCaching() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/jvmKTypeCaching.kt");
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/reflection/annotations")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Annotations extends AbstractLightAnalysisModeTest {
|
|
@TestMetadata("spread.kt")
|
|
public void ignoreSpread() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/annotations/spread.kt");
|
|
}
|
|
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInAnnotations() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, 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_IR, true);
|
|
}
|
|
|
|
@TestMetadata("arrayKClass.kt")
|
|
public void testArrayKClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/annotations/onTypes/arrayKClass.kt");
|
|
}
|
|
|
|
@TestMetadata("arrayTypeInDefaultPackage.kt")
|
|
public void testArrayTypeInDefaultPackage() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/annotations/onTypes/arrayTypeInDefaultPackage.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_IR, 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_IR, true);
|
|
}
|
|
|
|
@TestMetadata("javaAnnotation.kt")
|
|
public void testJavaAnnotation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/annotations/repeatable/javaAnnotation.kt");
|
|
}
|
|
|
|
@TestMetadata("jvmRepeatableKotlinAnnotation.kt")
|
|
public void testJvmRepeatableKotlinAnnotation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/annotations/repeatable/jvmRepeatableKotlinAnnotation.kt");
|
|
}
|
|
|
|
@TestMetadata("kotlinAnnotation.kt")
|
|
public void testKotlinAnnotation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/annotations/repeatable/kotlinAnnotation.kt");
|
|
}
|
|
|
|
@TestMetadata("kotlinAnnotationOnType.kt")
|
|
public void testKotlinAnnotationOnType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/annotations/repeatable/kotlinAnnotationOnType.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49335.kt")
|
|
public void testKt49335() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/annotations/repeatable/kt49335.kt");
|
|
}
|
|
|
|
@TestMetadata("kt53279_explicitContainer.kt")
|
|
public void testKt53279_explicitContainer() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/annotations/repeatable/kt53279_explicitContainer.kt");
|
|
}
|
|
|
|
@TestMetadata("kt53279_implicitContainer.kt")
|
|
public void testKt53279_implicitContainer() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/annotations/repeatable/kt53279_implicitContainer.kt");
|
|
}
|
|
|
|
@TestMetadata("nonRepeatedAnnotationWithItsContainer.kt")
|
|
public void testNonRepeatedAnnotationWithItsContainer() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/annotations/repeatable/nonRepeatedAnnotationWithItsContainer.kt");
|
|
}
|
|
}
|
|
}
|
|
|
|
@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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInBuiltins() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/builtins"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInCall() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/call"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, 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_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
private void runTest(String testDataFilePath, java.util.function.Function<String, String> transformer) throws Exception {
|
|
KotlinTestUtils.runTest(path -> doTestWithTransformer(path, transformer), TargetBackend.JVM_IR, 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_IR, true);
|
|
}
|
|
|
|
@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("kt58887.kt")
|
|
public void testKt58887() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/kt58887.kt");
|
|
}
|
|
|
|
@TestMetadata("primaryValOfInlineClass.kt")
|
|
public void testPrimaryValOfInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primaryValOfInlineClass.kt");
|
|
}
|
|
|
|
@TestMetadata("secondaryConstructorVisibilies.kt")
|
|
public void testSecondaryConstructorVisibilies() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/secondaryConstructorVisibilies.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("simpleConstructorWithInlineClassParameter.kt")
|
|
public void testSimpleConstructorWithInlineClassParameter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/simpleConstructorWithInlineClassParameter.kt");
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class NonNullObject extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInNonNullObject() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("constructorWithInlineClassParameters.kt")
|
|
public void testConstructorWithInlineClassParameters() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject/constructorWithInlineClassParameters.kt");
|
|
}
|
|
|
|
@TestMetadata("fieldAccessors.kt")
|
|
public void testFieldAccessors() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject/fieldAccessors.kt");
|
|
}
|
|
|
|
@TestMetadata("functionsWithInlineClassParameters.kt")
|
|
public void testFunctionsWithInlineClassParameters() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject/functionsWithInlineClassParameters.kt");
|
|
}
|
|
|
|
@TestMetadata("jvmStaticFieldInObject.kt")
|
|
public void testJvmStaticFieldInObject() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject/jvmStaticFieldInObject.kt");
|
|
}
|
|
|
|
@TestMetadata("jvmStaticFunction.kt")
|
|
public void testJvmStaticFunction() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject/jvmStaticFunction.kt");
|
|
}
|
|
|
|
@TestMetadata("nonOverridingFunOfInlineClass.kt")
|
|
public void testNonOverridingFunOfInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject/nonOverridingFunOfInlineClass.kt");
|
|
}
|
|
|
|
@TestMetadata("nonOverridingVarOfInlineClass.kt")
|
|
public void testNonOverridingVarOfInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject/nonOverridingVarOfInlineClass.kt");
|
|
}
|
|
|
|
@TestMetadata("overridingFunOfInlineClass.kt")
|
|
public void testOverridingFunOfInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject/overridingFunOfInlineClass.kt");
|
|
}
|
|
|
|
@TestMetadata("overridingVarOfInlineClass.kt")
|
|
public void testOverridingVarOfInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject/overridingVarOfInlineClass.kt");
|
|
}
|
|
|
|
@TestMetadata("properties.kt")
|
|
public void testProperties() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject/properties.kt");
|
|
}
|
|
|
|
@TestMetadata("suspendFunction.kt")
|
|
public void testSuspendFunction() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject/suspendFunction.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/reflection/call/inlineClasses/nullableObject")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class NullableObject extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInNullableObject() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/call/inlineClasses/nullableObject"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("constructorWithInlineClassParameters.kt")
|
|
public void testConstructorWithInlineClassParameters() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nullableObject/constructorWithInlineClassParameters.kt");
|
|
}
|
|
|
|
@TestMetadata("fieldAccessors.kt")
|
|
public void testFieldAccessors() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nullableObject/fieldAccessors.kt");
|
|
}
|
|
|
|
@TestMetadata("functionsWithInlineClassParameters.kt")
|
|
public void testFunctionsWithInlineClassParameters() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nullableObject/functionsWithInlineClassParameters.kt");
|
|
}
|
|
|
|
@TestMetadata("jvmStaticFieldInObject.kt")
|
|
public void testJvmStaticFieldInObject() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nullableObject/jvmStaticFieldInObject.kt");
|
|
}
|
|
|
|
@TestMetadata("jvmStaticFunction.kt")
|
|
public void testJvmStaticFunction() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nullableObject/jvmStaticFunction.kt");
|
|
}
|
|
|
|
@TestMetadata("nonOverridingFunOfInlineClass.kt")
|
|
public void testNonOverridingFunOfInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nullableObject/nonOverridingFunOfInlineClass.kt");
|
|
}
|
|
|
|
@TestMetadata("nonOverridingVarOfInlineClass.kt")
|
|
public void testNonOverridingVarOfInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nullableObject/nonOverridingVarOfInlineClass.kt");
|
|
}
|
|
|
|
@TestMetadata("overridingFunOfInlineClass.kt")
|
|
public void testOverridingFunOfInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nullableObject/overridingFunOfInlineClass.kt");
|
|
}
|
|
|
|
@TestMetadata("overridingVarOfInlineClass.kt")
|
|
public void testOverridingVarOfInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nullableObject/overridingVarOfInlineClass.kt");
|
|
}
|
|
|
|
@TestMetadata("properties.kt")
|
|
public void testProperties() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nullableObject/properties.kt");
|
|
}
|
|
|
|
@TestMetadata("suspendFunction.kt")
|
|
public void testSuspendFunction() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/nullableObject/suspendFunction.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/reflection/call/inlineClasses/primitive")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Primitive extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInPrimitive() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/call/inlineClasses/primitive"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("constructorWithInlineClassParameters.kt")
|
|
public void testConstructorWithInlineClassParameters() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primitive/constructorWithInlineClassParameters.kt");
|
|
}
|
|
|
|
@TestMetadata("fieldAccessors.kt")
|
|
public void testFieldAccessors() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primitive/fieldAccessors.kt");
|
|
}
|
|
|
|
@TestMetadata("functionsWithInlineClassParameters.kt")
|
|
public void testFunctionsWithInlineClassParameters() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primitive/functionsWithInlineClassParameters.kt");
|
|
}
|
|
|
|
@TestMetadata("jvmStaticFieldInObject.kt")
|
|
public void testJvmStaticFieldInObject() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primitive/jvmStaticFieldInObject.kt");
|
|
}
|
|
|
|
@TestMetadata("jvmStaticFunction.kt")
|
|
public void testJvmStaticFunction() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primitive/jvmStaticFunction.kt");
|
|
}
|
|
|
|
@TestMetadata("nonOverridingFunOfInlineClass.kt")
|
|
public void testNonOverridingFunOfInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primitive/nonOverridingFunOfInlineClass.kt");
|
|
}
|
|
|
|
@TestMetadata("nonOverridingVarOfInlineClass.kt")
|
|
public void testNonOverridingVarOfInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primitive/nonOverridingVarOfInlineClass.kt");
|
|
}
|
|
|
|
@TestMetadata("overridingFunOfInlineClass.kt")
|
|
public void testOverridingFunOfInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primitive/overridingFunOfInlineClass.kt");
|
|
}
|
|
|
|
@TestMetadata("overridingVarOfInlineClass.kt")
|
|
public void testOverridingVarOfInlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primitive/overridingVarOfInlineClass.kt");
|
|
}
|
|
|
|
@TestMetadata("properties.kt")
|
|
public void testProperties() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primitive/properties.kt");
|
|
}
|
|
|
|
@TestMetadata("suspendFunction.kt")
|
|
public void testSuspendFunction() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primitive/suspendFunction.kt");
|
|
}
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/reflection/call/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_IR, testDataFilePath);
|
|
}
|
|
|
|
private void runTest(String testDataFilePath, java.util.function.Function<String, String> transformer) throws Exception {
|
|
KotlinTestUtils.runTest(path -> doTestWithTransformer(path, transformer), TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInValueClasses() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/call/valueClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("constructorWithMfvcParameters.kt")
|
|
public void testConstructorWithMfvcParameters() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/valueClasses/constructorWithMfvcParameters.kt");
|
|
}
|
|
|
|
@TestMetadata("fieldAccessors.kt")
|
|
public void testFieldAccessors() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/valueClasses/fieldAccessors.kt");
|
|
}
|
|
|
|
@TestMetadata("functionsWithMfvcParameters.kt")
|
|
public void testFunctionsWithMfvcParameters() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/valueClasses/functionsWithMfvcParameters.kt");
|
|
}
|
|
|
|
@TestMetadata("internalPrimaryValOfMfvc.kt")
|
|
public void testInternalPrimaryValOfMfvc() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/valueClasses/internalPrimaryValOfMfvc.kt");
|
|
}
|
|
|
|
@TestMetadata("jvmStaticFieldInObject.kt")
|
|
public void testJvmStaticFieldInObject() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/valueClasses/jvmStaticFieldInObject.kt");
|
|
}
|
|
|
|
@TestMetadata("jvmStaticFunction.kt")
|
|
public void testJvmStaticFunction() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/valueClasses/jvmStaticFunction.kt");
|
|
}
|
|
|
|
@TestMetadata("mfvcConstructor.kt")
|
|
public void testMfvcConstructor() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/valueClasses/mfvcConstructor.kt");
|
|
}
|
|
|
|
@TestMetadata("nonOverridingFunOfMfvc.kt")
|
|
public void testNonOverridingFunOfMfvc() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/valueClasses/nonOverridingFunOfMfvc.kt");
|
|
}
|
|
|
|
@TestMetadata("nonOverridingVarOfMfvc.kt")
|
|
public void testNonOverridingVarOfMfvc() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/valueClasses/nonOverridingVarOfMfvc.kt");
|
|
}
|
|
|
|
@TestMetadata("overridingFunOfMfvc.kt")
|
|
public void testOverridingFunOfMfvc() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/valueClasses/overridingFunOfMfvc.kt");
|
|
}
|
|
|
|
@TestMetadata("overridingVarOfMfvc.kt")
|
|
public void testOverridingVarOfMfvc() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/valueClasses/overridingVarOfMfvc.kt");
|
|
}
|
|
|
|
@TestMetadata("primaryValOfMfvc.kt")
|
|
public void testPrimaryValOfMfvc() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/valueClasses/primaryValOfMfvc.kt");
|
|
}
|
|
|
|
@TestMetadata("properties.kt")
|
|
public void testProperties() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/valueClasses/properties.kt");
|
|
}
|
|
|
|
@TestMetadata("secondaryConstructorVisibilies.kt")
|
|
public void testSecondaryConstructorVisibilies() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/valueClasses/secondaryConstructorVisibilies.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("suspendFunction.kt")
|
|
public void testSuspendFunction() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/call/valueClasses/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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInCallBy() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/callBy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("kt60709.kt")
|
|
public void testKt60709() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/callBy/kt60709.kt");
|
|
}
|
|
|
|
@TestMetadata("kt61304.kt")
|
|
public void testKt61304() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/callBy/kt61304.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("mfvcDefaultArguments.kt")
|
|
public void testMfvcDefaultArguments() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/callBy/mfvcDefaultArguments.kt");
|
|
}
|
|
|
|
@TestMetadata("mfvcFunctionsAndConstructors.kt")
|
|
public void testMfvcFunctionsAndConstructors() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/callBy/mfvcFunctionsAndConstructors.kt");
|
|
}
|
|
|
|
@TestMetadata("mfvcKt61304.kt")
|
|
public void testMfvcKt61304() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/callBy/mfvcKt61304.kt");
|
|
}
|
|
|
|
@TestMetadata("mfvcMembers.kt")
|
|
public void testMfvcMembers() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/callBy/mfvcMembers.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInClassLiterals() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/classLiterals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInClasses() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/classes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInConstructors() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/constructors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInCreateAnnotation() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/createAnnotation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInEnclosing() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/enclosing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("kt45907.kt")
|
|
public void testKt45907() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/enclosing/kt45907.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInFunctions() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/functions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("parentheses.kt")
|
|
public void testParentheses() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/functions/parentheses.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInGenericSignature() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/genericSignature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("genericFunctionReferenceSignature.kt")
|
|
public void testGenericFunctionReferenceSignature() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/genericSignature/genericFunctionReferenceSignature.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInIsInstance() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/isInstance"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInKClassInAnnotation() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/kClassInAnnotation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInLambdaClasses() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/lambdaClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("lightweightLambdas.kt")
|
|
public void testLightweightLambdas() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/lambdaClasses/lightweightLambdas.kt");
|
|
}
|
|
|
|
@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("reflectOnDefaultWithMfvcArgument.kt")
|
|
public void testReflectOnDefaultWithMfvcArgument() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/lambdaClasses/reflectOnDefaultWithMfvcArgument.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/localClasses")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class LocalClasses extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInLocalClasses() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/localClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("localClassesAndAnonymousObjects.kt")
|
|
public void testLocalClassesAndAnonymousObjects() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/localClasses/localClassesAndAnonymousObjects.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInMapping() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/mapping"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("companionObjectProperty.kt")
|
|
public void testCompanionObjectProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/mapping/companionObjectProperty.kt");
|
|
}
|
|
|
|
@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("constructorWithMfvcParameters.kt")
|
|
public void testConstructorWithMfvcParameters() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/mapping/constructorWithMfvcParameters.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("nonTrivialFunctionNames.kt")
|
|
public void testNonTrivialFunctionNames() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/mapping/nonTrivialFunctionNames.kt");
|
|
}
|
|
|
|
@TestMetadata("nonTrivialPropertyNames.kt")
|
|
public void testNonTrivialPropertyNames() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/mapping/nonTrivialPropertyNames.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_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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("mfvcInSignature.kt")
|
|
public void testMfvcInSignature() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/mapping/types/mfvcInSignature.kt");
|
|
}
|
|
|
|
@TestMetadata("mfvcPrimaryVal.kt")
|
|
public void testMfvcPrimaryVal() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/mapping/types/mfvcPrimaryVal.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/mapping/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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInValueClasses() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/mapping/valueClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("mfvcPrimaryVal.kt")
|
|
public void testMfvcPrimaryVal() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/mapping/valueClasses/mfvcPrimaryVal.kt");
|
|
}
|
|
|
|
@TestMetadata("suspendFunctionWithMfvcInSignature.kt")
|
|
public void testSuspendFunctionWithMfvcInSignature() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/mapping/valueClasses/suspendFunctionWithMfvcInSignature.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_IR, 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_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInModifiers() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/modifiers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("mfvc.kt")
|
|
public void testMfvc() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/modifiers/mfvc.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInMultifileClasses() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/multifileClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInNoReflectAtRuntime() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/noReflectAtRuntime"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, 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_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInParameters() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/parameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInProperties() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("interfaceDelegation.kt")
|
|
public void testInterfaceDelegation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/properties/interfaceDelegation.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("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("propertyOrder.kt")
|
|
public void testPropertyOrder() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/properties/propertyOrder.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("syntheticJavaProperty.kt")
|
|
public void testSyntheticJavaProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/properties/syntheticJavaProperty.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_IR, 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_IR, 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_IR, 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_IR, 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("getExtensionDelegateForDelegatedToAnother.kt")
|
|
public void testGetExtensionDelegateForDelegatedToAnother() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/getExtensionDelegateForDelegatedToAnother.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/getDelegate/method")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Method extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInMethod() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/properties/getDelegate/method"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("delegateMethodIsNonOverridable.kt")
|
|
public void testDelegateMethodIsNonOverridable() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/method/delegateMethodIsNonOverridable.kt");
|
|
}
|
|
|
|
@TestMetadata("delegateToAnother.kt")
|
|
public void testDelegateToAnother() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/method/delegateToAnother.kt");
|
|
}
|
|
|
|
@TestMetadata("delegateToConst.kt")
|
|
public void testDelegateToConst() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/method/delegateToConst.kt");
|
|
}
|
|
|
|
@TestMetadata("delegateToConstProperty.kt")
|
|
public void testDelegateToConstProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/method/delegateToConstProperty.kt");
|
|
}
|
|
|
|
@TestMetadata("delegateToEnum.kt")
|
|
public void testDelegateToEnum() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/method/delegateToEnum.kt");
|
|
}
|
|
|
|
@TestMetadata("delegateToFinalObjectProperty.kt")
|
|
public void testDelegateToFinalObjectProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/method/delegateToFinalObjectProperty.kt");
|
|
}
|
|
|
|
@TestMetadata("delegateToFinalProperty.kt")
|
|
public void testDelegateToFinalProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/method/delegateToFinalProperty.kt");
|
|
}
|
|
|
|
@TestMetadata("delegateToSingleton.kt")
|
|
public void testDelegateToSingleton() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/properties/getDelegate/method/delegateToSingleton.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_IR, 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_IR, 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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, 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_IR, 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("inLambdaInInline.kt")
|
|
public void testInLambdaInInline() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/properties/localDelegated/inLambdaInInline.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInSupertypes() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/supertypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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/syntheticClasses")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class SyntheticClasses extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInSyntheticClasses() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/syntheticClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("syntheticClasses.kt")
|
|
public void testSyntheticClasses() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/syntheticClasses/syntheticClasses.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInTypeOf() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/typeOf"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("annotatedType.kt")
|
|
public void testAnnotatedType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/typeOf/annotatedType.kt");
|
|
}
|
|
|
|
@TestMetadata("arrayOfNullableReified.kt")
|
|
public void testArrayOfNullableReified() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/typeOf/arrayOfNullableReified.kt");
|
|
}
|
|
|
|
@TestMetadata("caching.kt")
|
|
public void testCaching() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/typeOf/caching.kt");
|
|
}
|
|
|
|
@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("mfvc.kt")
|
|
public void testMfvc() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/typeOf/mfvc.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("reifiedAsNestedArgument.kt")
|
|
public void testReifiedAsNestedArgument() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/typeOf/reifiedAsNestedArgument.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_IR, 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_IR, 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_IR, 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_IR, true);
|
|
}
|
|
|
|
@TestMetadata("annotatedType.kt")
|
|
public void testAnnotatedType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/annotatedType.kt");
|
|
}
|
|
|
|
@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("mfvc.kt")
|
|
public void testMfvc() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reflection/typeOf/noReflect/mfvc.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_IR, 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_IR, 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_IR, 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_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInTypeParameters() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInTypes() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reflection/types"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, 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_IR, 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_IR, 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_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInRegressions() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/regressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("kt344Runnable.kt")
|
|
public void testKt344Runnable() throws Exception {
|
|
runTest("compiler/testData/codegen/box/regressions/kt344Runnable.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("kt47279.kt")
|
|
public void testKt47279() throws Exception {
|
|
runTest("compiler/testData/codegen/box/regressions/kt47279.kt");
|
|
}
|
|
|
|
@TestMetadata("kt5056.kt")
|
|
public void testKt5056() throws Exception {
|
|
runTest("compiler/testData/codegen/box/regressions/kt5056.kt");
|
|
}
|
|
|
|
@TestMetadata("kt51171.kt")
|
|
public void testKt51171() throws Exception {
|
|
runTest("compiler/testData/codegen/box/regressions/kt51171.kt");
|
|
}
|
|
|
|
@TestMetadata("kt51265.kt")
|
|
public void testKt51265() throws Exception {
|
|
runTest("compiler/testData/codegen/box/regressions/kt51265.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("kt57487.kt")
|
|
public void testKt57487() throws Exception {
|
|
runTest("compiler/testData/codegen/box/regressions/kt57487.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("recursiveDnnTypeInLambda.kt")
|
|
public void testRecursiveDnnTypeInLambda() throws Exception {
|
|
runTest("compiler/testData/codegen/box/regressions/recursiveDnnTypeInLambda.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInReified() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reified"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("callableReferenceInlinedFun.kt")
|
|
public void testCallableReferenceInlinedFun() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reified/callableReferenceInlinedFun.kt");
|
|
}
|
|
|
|
@TestMetadata("callableReferenceInlinedFunFromOtherModule.kt")
|
|
public void testCallableReferenceInlinedFunFromOtherModule() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reified/callableReferenceInlinedFunFromOtherModule.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("kt36237.kt")
|
|
public void testKt36237() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reified/kt36237.kt");
|
|
}
|
|
|
|
@TestMetadata("kt39256_privateInlineWithAnonymousObject.kt")
|
|
public void testKt39256_privateInlineWithAnonymousObject() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reified/kt39256_privateInlineWithAnonymousObject.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("typeTokenWrapper.kt")
|
|
public void testTypeTokenWrapper() throws Exception {
|
|
runTest("compiler/testData/codegen/box/reified/typeTokenWrapper.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInArraysReification() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/reified/arraysReification"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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 {
|
|
@TestMetadata("augmentedAssigmentPlus.kt")
|
|
public void ignoreAugmentedAssigmentPlus() throws Exception {
|
|
runTest("compiler/testData/codegen/box/safeCall/augmentedAssigmentPlus.kt");
|
|
}
|
|
|
|
@TestMetadata("augmentedAssigmentPlusAssign.kt")
|
|
public void ignoreAugmentedAssigmentPlusAssign() throws Exception {
|
|
runTest("compiler/testData/codegen/box/safeCall/augmentedAssigmentPlusAssign.kt");
|
|
}
|
|
|
|
@TestMetadata("incrementPostfix.kt")
|
|
public void ignoreIncrementPostfix() throws Exception {
|
|
runTest("compiler/testData/codegen/box/safeCall/incrementPostfix.kt");
|
|
}
|
|
|
|
@TestMetadata("incrementPrefix.kt")
|
|
public void ignoreIncrementPrefix() throws Exception {
|
|
runTest("compiler/testData/codegen/box/safeCall/incrementPrefix.kt");
|
|
}
|
|
|
|
@TestMetadata("withAssignment.kt")
|
|
public void ignoreWithAssignment() throws Exception {
|
|
runTest("compiler/testData/codegen/box/safeCall/withAssignment.kt");
|
|
}
|
|
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInSafeCall() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/safeCall"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("kt52580.kt")
|
|
public void testKt52580() throws Exception {
|
|
runTest("compiler/testData/codegen/box/safeCall/kt52580.kt");
|
|
}
|
|
|
|
@TestMetadata("kt52743.kt")
|
|
public void testKt52743() throws Exception {
|
|
runTest("compiler/testData/codegen/box/safeCall/kt52743.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("safeCallIOnUninitializedNonNullValue.kt")
|
|
public void testSafeCallIOnUninitializedNonNullValue() throws Exception {
|
|
runTest("compiler/testData/codegen/box/safeCall/safeCallIOnUninitializedNonNullValue.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("safeCallSimplificationEnhancedNullabilityType.kt")
|
|
public void testSafeCallSimplificationEnhancedNullabilityType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/safeCall/safeCallSimplificationEnhancedNullabilityType.kt");
|
|
}
|
|
|
|
@TestMetadata("safeCallSimplificationFlexibleType.kt")
|
|
public void testSafeCallSimplificationFlexibleType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/safeCall/safeCallSimplificationFlexibleType.kt");
|
|
}
|
|
|
|
@TestMetadata("safeCallWithElvisFolding.kt")
|
|
public void testSafeCallWithElvisFolding() throws Exception {
|
|
runTest("compiler/testData/codegen/box/safeCall/safeCallWithElvisFolding.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/sam")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Sam extends AbstractLightAnalysisModeTest {
|
|
@TestMetadata("samAsIndexInArrayAssignment.kt")
|
|
public void ignoreSamAsIndexInArrayAssignment() throws Exception {
|
|
runTest("compiler/testData/codegen/box/sam/samAsIndexInArrayAssignment.kt");
|
|
}
|
|
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInSam() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("kt17765.kt")
|
|
public void testKt17765() throws Exception {
|
|
runTest("compiler/testData/codegen/box/sam/kt17765.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("kt49226.kt")
|
|
public void testKt49226() throws Exception {
|
|
runTest("compiler/testData/codegen/box/sam/kt49226.kt");
|
|
}
|
|
|
|
@TestMetadata("kt50108.kt")
|
|
public void testKt50108() throws Exception {
|
|
runTest("compiler/testData/codegen/box/sam/kt50108.kt");
|
|
}
|
|
|
|
@TestMetadata("kt50108_java.kt")
|
|
public void testKt50108_java() throws Exception {
|
|
runTest("compiler/testData/codegen/box/sam/kt50108_java.kt");
|
|
}
|
|
|
|
@TestMetadata("kt50171.kt")
|
|
public void testKt50171() throws Exception {
|
|
runTest("compiler/testData/codegen/box/sam/kt50171.kt");
|
|
}
|
|
|
|
@TestMetadata("kt50477Enabled.kt")
|
|
public void testKt50477Enabled() throws Exception {
|
|
runTest("compiler/testData/codegen/box/sam/kt50477Enabled.kt");
|
|
}
|
|
|
|
@TestMetadata("kt51821.kt")
|
|
public void testKt51821() throws Exception {
|
|
runTest("compiler/testData/codegen/box/sam/kt51821.kt");
|
|
}
|
|
|
|
@TestMetadata("kt52417.kt")
|
|
public void testKt52417() throws Exception {
|
|
runTest("compiler/testData/codegen/box/sam/kt52417.kt");
|
|
}
|
|
|
|
@TestMetadata("kt54600.kt")
|
|
public void testKt54600() throws Exception {
|
|
runTest("compiler/testData/codegen/box/sam/kt54600.kt");
|
|
}
|
|
|
|
@TestMetadata("kt56188.kt")
|
|
public void testKt56188() throws Exception {
|
|
runTest("compiler/testData/codegen/box/sam/kt56188.kt");
|
|
}
|
|
|
|
@TestMetadata("kt59858.kt")
|
|
public void testKt59858() throws Exception {
|
|
runTest("compiler/testData/codegen/box/sam/kt59858.kt");
|
|
}
|
|
|
|
@TestMetadata("kt63564.kt")
|
|
public void testKt63564() throws Exception {
|
|
runTest("compiler/testData/codegen/box/sam/kt63564.kt");
|
|
}
|
|
|
|
@TestMetadata("noConversionFromSamToSam.kt")
|
|
public void testNoConversionFromSamToSam() throws Exception {
|
|
runTest("compiler/testData/codegen/box/sam/noConversionFromSamToSam.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInAdapters() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sam/adapters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, 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_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInApproximation() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sam/approximation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInConstructors() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sam/constructors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("sameWrapperClass2.kt")
|
|
public void testSameWrapperClass2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/sam/constructors/sameWrapperClass2.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInEquality() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sam/equality"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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/sam/javaSamWithEqualsHashCode")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class JavaSamWithEqualsHashCode extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInJavaSamWithEqualsHashCode() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sam/javaSamWithEqualsHashCode"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("classImplementingFunctionInterface.kt")
|
|
public void testClassImplementingFunctionInterface() throws Exception {
|
|
runTest("compiler/testData/codegen/box/sam/javaSamWithEqualsHashCode/classImplementingFunctionInterface.kt");
|
|
}
|
|
|
|
@TestMetadata("functionReference.kt")
|
|
public void testFunctionReference() throws Exception {
|
|
runTest("compiler/testData/codegen/box/sam/javaSamWithEqualsHashCode/functionReference.kt");
|
|
}
|
|
|
|
@TestMetadata("functionalExpression.kt")
|
|
public void testFunctionalExpression() throws Exception {
|
|
runTest("compiler/testData/codegen/box/sam/javaSamWithEqualsHashCode/functionalExpression.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInSameFileInSourceAndDependencies() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sameFileInSourceAndDependencies"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("classDeclaration.kt")
|
|
public void testClassDeclaration() throws Exception {
|
|
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/classDeclaration.kt");
|
|
}
|
|
|
|
@TestMetadata("differingNumberOfGenericTypeParameters.kt")
|
|
public void testDifferingNumberOfGenericTypeParameters() throws Exception {
|
|
runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/differingNumberOfGenericTypeParameters.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInScript() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/script"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("classReference.kt")
|
|
public void testClassReference() throws Exception {
|
|
runTest("compiler/testData/codegen/box/script/classReference.kt");
|
|
}
|
|
|
|
@TestMetadata("localCaptureTests.kt")
|
|
public void testLocalCaptureTests() throws Exception {
|
|
runTest("compiler/testData/codegen/box/script/localCaptureTests.kt");
|
|
}
|
|
|
|
@TestMetadata("scripInstance.kt")
|
|
public void testScripInstance() throws Exception {
|
|
runTest("compiler/testData/codegen/box/script/scripInstance.kt");
|
|
}
|
|
|
|
@TestMetadata("scriptNestedClassInstance.kt")
|
|
public void testScriptNestedClassInstance() throws Exception {
|
|
runTest("compiler/testData/codegen/box/script/scriptNestedClassInstance.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInSealed() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sealed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("kt49752.kt")
|
|
public void testKt49752() throws Exception {
|
|
runTest("compiler/testData/codegen/box/sealed/kt49752.kt");
|
|
}
|
|
|
|
@TestMetadata("kt54028.kt")
|
|
public void testKt54028() throws Exception {
|
|
runTest("compiler/testData/codegen/box/sealed/kt54028.kt");
|
|
}
|
|
|
|
@TestMetadata("kt54028_cursed.kt")
|
|
public void testKt54028_cursed() throws Exception {
|
|
runTest("compiler/testData/codegen/box/sealed/kt54028_cursed.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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, 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_IR, 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/size")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Size extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInSize() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/size"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
}
|
|
|
|
@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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInSmap() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/smap"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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 {
|
|
@TestMetadata("resolveToMemberOfSuperclass_overrideWithDifferentType.kt")
|
|
public void ignoreResolveToMemberOfSuperclass_overrideWithDifferentType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/smartCasts/resolveToMemberOfSuperclass_overrideWithDifferentType.kt");
|
|
}
|
|
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInSmartCasts() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/smartCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("avoidSmartCastToDerivedForPrivate.kt")
|
|
public void testAvoidSmartCastToDerivedForPrivate() throws Exception {
|
|
runTest("compiler/testData/codegen/box/smartCasts/avoidSmartCastToDerivedForPrivate.kt");
|
|
}
|
|
|
|
@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("genericInheritanceWithNonGenericNoAmbiguity.kt")
|
|
public void testGenericInheritanceWithNonGenericNoAmbiguity() throws Exception {
|
|
runTest("compiler/testData/codegen/box/smartCasts/genericInheritanceWithNonGenericNoAmbiguity.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("invokeRecieverSmartcastK1.kt")
|
|
public void testInvokeRecieverSmartcastK1() throws Exception {
|
|
runTest("compiler/testData/codegen/box/smartCasts/invokeRecieverSmartcastK1.kt");
|
|
}
|
|
|
|
@TestMetadata("invokeRecieverSmartcastK2.kt")
|
|
public void testInvokeRecieverSmartcastK2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/smartCasts/invokeRecieverSmartcastK2.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("kt52432.kt")
|
|
public void testKt52432() throws Exception {
|
|
runTest("compiler/testData/codegen/box/smartCasts/kt52432.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("NullableFunctionTypeAsMemberImmutableProperty.kt")
|
|
public void testNullableFunctionTypeAsMemberImmutableProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutableProperty.kt");
|
|
}
|
|
|
|
@TestMetadata("NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt")
|
|
public void testNullableFunctionTypeAsMemberImmutablePropertyFromConstructor() throws Exception {
|
|
runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt");
|
|
}
|
|
|
|
@TestMetadata("NullableFunctionTypeAsPrimaryConstructorParameter.kt")
|
|
public void testNullableFunctionTypeAsPrimaryConstructorParameter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsPrimaryConstructorParameter.kt");
|
|
}
|
|
|
|
@TestMetadata("NullableFunctionTypeAsSecondaryConstructorParameter.kt")
|
|
public void testNullableFunctionTypeAsSecondaryConstructorParameter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsSecondaryConstructorParameter.kt");
|
|
}
|
|
|
|
@TestMetadata("propertyInitializationAfterSmartCast.kt")
|
|
public void testPropertyInitializationAfterSmartCast() throws Exception {
|
|
runTest("compiler/testData/codegen/box/smartCasts/propertyInitializationAfterSmartCast.kt");
|
|
}
|
|
|
|
@TestMetadata("resolveToMemberOfSuperclass_overrideWithSameType.kt")
|
|
public void testResolveToMemberOfSuperclass_overrideWithSameType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/smartCasts/resolveToMemberOfSuperclass_overrideWithSameType.kt");
|
|
}
|
|
|
|
@TestMetadata("smartCastInsideIf.kt")
|
|
public void testSmartCastInsideIf() throws Exception {
|
|
runTest("compiler/testData/codegen/box/smartCasts/smartCastInsideIf.kt");
|
|
}
|
|
|
|
@TestMetadata("smartcastFromGenericToString.kt")
|
|
public void testSmartcastFromGenericToString() throws Exception {
|
|
runTest("compiler/testData/codegen/box/smartCasts/smartcastFromGenericToString.kt");
|
|
}
|
|
|
|
@TestMetadata("smartcastOnImplicitDispatchReceiver.kt")
|
|
public void testSmartcastOnImplicitDispatchReceiver() throws Exception {
|
|
runTest("compiler/testData/codegen/box/smartCasts/smartcastOnImplicitDispatchReceiver.kt");
|
|
}
|
|
|
|
@TestMetadata("smartcastToStarType.kt")
|
|
public void testSmartcastToStarType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/smartCasts/smartcastToStarType.kt");
|
|
}
|
|
|
|
@TestMetadata("toStringOnReceiverWIthSmartcast.kt")
|
|
public void testToStringOnReceiverWIthSmartcast() throws Exception {
|
|
runTest("compiler/testData/codegen/box/smartCasts/toStringOnReceiverWIthSmartcast.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInSpecialBuiltins() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/specialBuiltins"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("bridgesJVM.kt")
|
|
public void testBridgesJVM() throws Exception {
|
|
runTest("compiler/testData/codegen/box/specialBuiltins/bridgesJVM.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("weirdCharBuffers.kt")
|
|
public void testWeirdCharBuffers() throws Exception {
|
|
runTest("compiler/testData/codegen/box/specialBuiltins/weirdCharBuffers.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/statics")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Statics extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInStatics() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/statics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("enumWithInheritedStaticField.kt")
|
|
public void testEnumWithInheritedStaticField() throws Exception {
|
|
runTest("compiler/testData/codegen/box/statics/enumWithInheritedStaticField.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("inlineCallsStaticMethodFromOtherPackage.kt")
|
|
public void testInlineCallsStaticMethodFromOtherPackage() throws Exception {
|
|
runTest("compiler/testData/codegen/box/statics/inlineCallsStaticMethodFromOtherPackage.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInStoreStackBeforeInline() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/storeStackBeforeInline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInStrings() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/strings"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("concatGenericWithNullablePrimitiveUpperBound.kt")
|
|
public void testConcatGenericWithNullablePrimitiveUpperBound() throws Exception {
|
|
runTest("compiler/testData/codegen/box/strings/concatGenericWithNullablePrimitiveUpperBound.kt");
|
|
}
|
|
|
|
@TestMetadata("concatGenericWithPrimitiveUpperBound.kt")
|
|
public void testConcatGenericWithPrimitiveUpperBound() throws Exception {
|
|
runTest("compiler/testData/codegen/box/strings/concatGenericWithPrimitiveUpperBound.kt");
|
|
}
|
|
|
|
@TestMetadata("concatGenericWithStringUpperBound.kt")
|
|
public void testConcatGenericWithStringUpperBound() throws Exception {
|
|
runTest("compiler/testData/codegen/box/strings/concatGenericWithStringUpperBound.kt");
|
|
}
|
|
|
|
@TestMetadata("concatNullableGenericWithPrimitiveUpperBound.kt")
|
|
public void testConcatNullableGenericWithPrimitiveUpperBound() throws Exception {
|
|
runTest("compiler/testData/codegen/box/strings/concatNullableGenericWithPrimitiveUpperBound.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("kt13213.kt")
|
|
public void testKt13213() throws Exception {
|
|
runTest("compiler/testData/codegen/box/strings/kt13213.kt");
|
|
}
|
|
|
|
@TestMetadata("kt13213a.kt")
|
|
public void testKt13213a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/strings/kt13213a.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("kt47917.kt")
|
|
public void testKt47917() throws Exception {
|
|
runTest("compiler/testData/codegen/box/strings/kt47917.kt");
|
|
}
|
|
|
|
@TestMetadata("kt50140.kt")
|
|
public void testKt50140() throws Exception {
|
|
runTest("compiler/testData/codegen/box/strings/kt50140.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("surrogatePair.kt")
|
|
public void testSurrogatePair() throws Exception {
|
|
runTest("compiler/testData/codegen/box/strings/surrogatePair.kt");
|
|
}
|
|
|
|
@TestMetadata("trimOptimization.kt")
|
|
public void testTrimOptimization() throws Exception {
|
|
runTest("compiler/testData/codegen/box/strings/trimOptimization.kt");
|
|
}
|
|
|
|
@TestMetadata("twoArgumentNullableStringOperatorPlus.kt")
|
|
public void testTwoArgumentNullableStringOperatorPlus() throws Exception {
|
|
runTest("compiler/testData/codegen/box/strings/twoArgumentNullableStringOperatorPlus.kt");
|
|
}
|
|
|
|
@TestMetadata("twoArgumentNullableStringPlus.kt")
|
|
public void testTwoArgumentNullableStringPlus() throws Exception {
|
|
runTest("compiler/testData/codegen/box/strings/twoArgumentNullableStringPlus.kt");
|
|
}
|
|
|
|
@TestMetadata("twoArgumentStringTemplate.kt")
|
|
public void testTwoArgumentStringTemplate() throws Exception {
|
|
runTest("compiler/testData/codegen/box/strings/twoArgumentStringTemplate.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInSuper() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/super"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInSuperConstructor() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/super/superConstructor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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/suppressions")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Suppressions extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInSuppressions() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/suppressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("suppressInvisible.kt")
|
|
public void testSuppressInvisible() throws Exception {
|
|
runTest("compiler/testData/codegen/box/suppressions/suppressInvisible.kt");
|
|
}
|
|
|
|
@TestMetadata("suppressInvisibleCtor.kt")
|
|
public void testSuppressInvisibleCtor() throws Exception {
|
|
runTest("compiler/testData/codegen/box/suppressions/suppressInvisibleCtor.kt");
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInSuspendConversion() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/suspendConversion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("basicSuspendConversion.kt")
|
|
public void testBasicSuspendConversion() throws Exception {
|
|
runTest("compiler/testData/codegen/box/suspendConversion/basicSuspendConversion.kt");
|
|
}
|
|
|
|
@TestMetadata("basicSuspendConversionDefault.kt")
|
|
public void testBasicSuspendConversionDefault() throws Exception {
|
|
runTest("compiler/testData/codegen/box/suspendConversion/basicSuspendConversionDefault.kt");
|
|
}
|
|
|
|
@TestMetadata("basicSuspendConversionForCallableReference.kt")
|
|
public void testBasicSuspendConversionForCallableReference() throws Exception {
|
|
runTest("compiler/testData/codegen/box/suspendConversion/basicSuspendConversionForCallableReference.kt");
|
|
}
|
|
|
|
@TestMetadata("basicSuspendConversionGenerics.kt")
|
|
public void testBasicSuspendConversionGenerics() throws Exception {
|
|
runTest("compiler/testData/codegen/box/suspendConversion/basicSuspendConversionGenerics.kt");
|
|
}
|
|
|
|
@TestMetadata("chainedFunSuspendConversionForSimpleExpression.kt")
|
|
public void testChainedFunSuspendConversionForSimpleExpression() throws Exception {
|
|
runTest("compiler/testData/codegen/box/suspendConversion/chainedFunSuspendConversionForSimpleExpression.kt");
|
|
}
|
|
|
|
@TestMetadata("kt50949_suspendConversionForExtensionFunction.kt")
|
|
public void testKt50949_suspendConversionForExtensionFunction() throws Exception {
|
|
runTest("compiler/testData/codegen/box/suspendConversion/kt50949_suspendConversionForExtensionFunction.kt");
|
|
}
|
|
|
|
@TestMetadata("overloadResolutionBySuspendModifier.kt")
|
|
public void testOverloadResolutionBySuspendModifier() throws Exception {
|
|
runTest("compiler/testData/codegen/box/suspendConversion/overloadResolutionBySuspendModifier.kt");
|
|
}
|
|
|
|
@TestMetadata("severalConversionsInOneCall.kt")
|
|
public void testSeveralConversionsInOneCall() throws Exception {
|
|
runTest("compiler/testData/codegen/box/suspendConversion/severalConversionsInOneCall.kt");
|
|
}
|
|
|
|
@TestMetadata("suspendAndFunConversionInDisabledMode.kt")
|
|
public void testSuspendAndFunConversionInDisabledMode() throws Exception {
|
|
runTest("compiler/testData/codegen/box/suspendConversion/suspendAndFunConversionInDisabledMode.kt");
|
|
}
|
|
|
|
@TestMetadata("suspendConversionCompatibility.kt")
|
|
public void testSuspendConversionCompatibility() throws Exception {
|
|
runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionCompatibility.kt");
|
|
}
|
|
|
|
@TestMetadata("suspendConversionOnVarargElements.kt")
|
|
public void testSuspendConversionOnVarargElements() throws Exception {
|
|
runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionOnVarargElements.kt");
|
|
}
|
|
|
|
@TestMetadata("suspendConversionWithFunInterfaces.kt")
|
|
public void testSuspendConversionWithFunInterfaces() throws Exception {
|
|
runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionWithFunInterfaces.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInSynchronized() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/synchronized"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, 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_IR, 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("kt48331.kt")
|
|
public void testKt48331() throws Exception {
|
|
runTest("compiler/testData/codegen/box/syntheticAccessors/kt48331.kt");
|
|
}
|
|
|
|
@TestMetadata("kt48954.kt")
|
|
public void testKt48954() throws Exception {
|
|
runTest("compiler/testData/codegen/box/syntheticAccessors/kt48954.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49316.kt")
|
|
public void testKt49316() throws Exception {
|
|
runTest("compiler/testData/codegen/box/syntheticAccessors/kt49316.kt");
|
|
}
|
|
|
|
@TestMetadata("kt49316a.kt")
|
|
public void testKt49316a() throws Exception {
|
|
runTest("compiler/testData/codegen/box/syntheticAccessors/kt49316a.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("packagePrivate.kt")
|
|
public void testPackagePrivate() throws Exception {
|
|
runTest("compiler/testData/codegen/box/syntheticAccessors/packagePrivate.kt");
|
|
}
|
|
|
|
@TestMetadata("packagePrivateInPrivateInline.kt")
|
|
public void testPackagePrivateInPrivateInline() throws Exception {
|
|
runTest("compiler/testData/codegen/box/syntheticAccessors/packagePrivateInPrivateInline.kt");
|
|
}
|
|
|
|
@TestMetadata("protectedFromLambda.kt")
|
|
public void testProtectedFromLambda() throws Exception {
|
|
runTest("compiler/testData/codegen/box/syntheticAccessors/protectedFromLambda.kt");
|
|
}
|
|
|
|
@TestMetadata("protectedSuper.kt")
|
|
public void testProtectedSuper() throws Exception {
|
|
runTest("compiler/testData/codegen/box/syntheticAccessors/protectedSuper.kt");
|
|
}
|
|
|
|
@TestMetadata("protectedSuperclassCompanionObjectMember.kt")
|
|
public void testProtectedSuperclassCompanionObjectMember() throws Exception {
|
|
runTest("compiler/testData/codegen/box/syntheticAccessors/protectedSuperclassCompanionObjectMember.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 {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInProtectedJavaFieldAccessor() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("kt44855.kt")
|
|
public void testKt44855() throws Exception {
|
|
runTest("compiler/testData/codegen/box/syntheticAccessors/protectedJavaFieldAccessor/kt44855.kt");
|
|
}
|
|
|
|
@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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInProtectedMemberReferenceAccessor() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/syntheticAccessors/protectedMemberReferenceAccessor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInSyntheticExtensions() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/syntheticExtensions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("kt56072.kt")
|
|
public void testKt56072() throws Exception {
|
|
runTest("compiler/testData/codegen/box/syntheticExtensions/kt56072.kt");
|
|
}
|
|
|
|
@TestMetadata("kt56154.kt")
|
|
public void testKt56154() throws Exception {
|
|
runTest("compiler/testData/codegen/box/syntheticExtensions/kt56154.kt");
|
|
}
|
|
|
|
@TestMetadata("kt57103.kt")
|
|
public void testKt57103() throws Exception {
|
|
runTest("compiler/testData/codegen/box/syntheticExtensions/kt57103.kt");
|
|
}
|
|
|
|
@TestMetadata("overrideKotlinPropertyByJavaMethod.kt")
|
|
public void testOverrideKotlinPropertyByJavaMethod() throws Exception {
|
|
runTest("compiler/testData/codegen/box/syntheticExtensions/overrideKotlinPropertyByJavaMethod.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("syntheticJavaProperty.kt")
|
|
public void testSyntheticJavaProperty() throws Exception {
|
|
runTest("compiler/testData/codegen/box/syntheticExtensions/syntheticJavaProperty.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInThrows() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/throws"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInToArray() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/toArray"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("kt44152.kt")
|
|
public void testKt44152() throws Exception {
|
|
runTest("compiler/testData/codegen/box/toArray/kt44152.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/topLevelInitializtion")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class TopLevelInitializtion extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInTopLevelInitializtion() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/topLevelInitializtion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("failInInitializer1.kt")
|
|
public void testFailInInitializer1() throws Exception {
|
|
runTest("compiler/testData/codegen/box/topLevelInitializtion/failInInitializer1.kt");
|
|
}
|
|
|
|
@TestMetadata("failInInitializer2.kt")
|
|
public void testFailInInitializer2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/topLevelInitializtion/failInInitializer2.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInTopLevelPrivate() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/topLevelPrivate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInTrailingComma() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/trailingComma"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, 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_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInTypeInfo() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/typeInfo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInTypeMapping() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/typeMapping"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInTypealias() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/typealias"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("deserializedAbbreviationWithRedundantArgument.kt")
|
|
public void testDeserializedAbbreviationWithRedundantArgument() throws Exception {
|
|
runTest("compiler/testData/codegen/box/typealias/deserializedAbbreviationWithRedundantArgument.kt");
|
|
}
|
|
|
|
@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("incorrectTypeOfTypealiasForSuspendFTMM.kt")
|
|
public void testIncorrectTypeOfTypealiasForSuspendFTMM() throws Exception {
|
|
runTest("compiler/testData/codegen/box/typealias/incorrectTypeOfTypealiasForSuspendFTMM.kt");
|
|
}
|
|
|
|
@TestMetadata("incorrectTypeOfTypealiasForSuspendFunctionalType.kt")
|
|
public void testIncorrectTypeOfTypealiasForSuspendFunctionalType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/typealias/incorrectTypeOfTypealiasForSuspendFunctionalType.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("typeAliasOnTypeAlias.kt")
|
|
public void testTypeAliasOnTypeAlias() throws Exception {
|
|
runTest("compiler/testData/codegen/box/typealias/typeAliasOnTypeAlias.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInUnaryOp() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/unaryOp"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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/underscoredTypeArguments")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class UnderscoredTypeArguments extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInUnderscoredTypeArguments() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/underscoredTypeArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("backTicked.kt")
|
|
public void testBackTicked() throws Exception {
|
|
runTest("compiler/testData/codegen/box/underscoredTypeArguments/backTicked.kt");
|
|
}
|
|
|
|
@TestMetadata("dependentTypeParameters.kt")
|
|
public void testDependentTypeParameters() throws Exception {
|
|
runTest("compiler/testData/codegen/box/underscoredTypeArguments/dependentTypeParameters.kt");
|
|
}
|
|
|
|
@TestMetadata("lambdaInputType.kt")
|
|
public void testLambdaInputType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/underscoredTypeArguments/lambdaInputType.kt");
|
|
}
|
|
|
|
@TestMetadata("react.kt")
|
|
public void testReact() throws Exception {
|
|
runTest("compiler/testData/codegen/box/underscoredTypeArguments/react.kt");
|
|
}
|
|
|
|
@TestMetadata("simple.kt")
|
|
public void testSimple() throws Exception {
|
|
runTest("compiler/testData/codegen/box/underscoredTypeArguments/simple.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInUnit() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/unit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("kt51036.kt")
|
|
public void testKt51036() throws Exception {
|
|
runTest("compiler/testData/codegen/box/unit/kt51036.kt");
|
|
}
|
|
|
|
@TestMetadata("kt56723.kt")
|
|
public void testKt56723() throws Exception {
|
|
runTest("compiler/testData/codegen/box/unit/kt56723.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("sillyThings.kt")
|
|
public void testSillyThings() throws Exception {
|
|
runTest("compiler/testData/codegen/box/unit/sillyThings.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInUnsignedTypes() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/unsignedTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("implicitIntegerCoercionNamedArg.kt")
|
|
public void testImplicitIntegerCoercionNamedArg() throws Exception {
|
|
runTest("compiler/testData/codegen/box/unsignedTypes/implicitIntegerCoercionNamedArg.kt");
|
|
}
|
|
|
|
@TestMetadata("implicitIntegerCoercionOverloadResolutionAmbiguity.kt")
|
|
public void testImplicitIntegerCoercionOverloadResolutionAmbiguity() throws Exception {
|
|
runTest("compiler/testData/codegen/box/unsignedTypes/implicitIntegerCoercionOverloadResolutionAmbiguity.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("kt61418.kt")
|
|
public void testKt61418() throws Exception {
|
|
runTest("compiler/testData/codegen/box/unsignedTypes/kt61418.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("signedToUnsignedConversions.kt")
|
|
public void testSignedToUnsignedConversions() throws Exception {
|
|
runTest("compiler/testData/codegen/box/unsignedTypes/signedToUnsignedConversions.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInJvm8Intrinsics() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/unsignedTypes/jvm8Intrinsics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
private void runTest(String testDataFilePath, java.util.function.Function<String, String> transformer) throws Exception {
|
|
KotlinTestUtils.runTest(path -> doTestWithTransformer(path, transformer), TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInValueClasses() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/valueClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("classFlattening.kt")
|
|
public void testClassFlattening() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/classFlattening.kt");
|
|
}
|
|
|
|
@TestMetadata("complex.kt")
|
|
public void testComplex() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/complex.kt");
|
|
}
|
|
|
|
@TestMetadata("conditionalExpressions.kt")
|
|
public void testConditionalExpressions() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/conditionalExpressions.kt");
|
|
}
|
|
|
|
@TestMetadata("defaultParameters.kt")
|
|
public void testDefaultParameters() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/defaultParameters.kt");
|
|
}
|
|
|
|
@TestMetadata("delegating.kt")
|
|
public void testDelegating() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/delegating.kt");
|
|
}
|
|
|
|
@TestMetadata("delegatingConstructors.kt")
|
|
public void testDelegatingConstructors() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/delegatingConstructors.kt");
|
|
}
|
|
|
|
@TestMetadata("equality.kt")
|
|
public void testEquality() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/equality.kt");
|
|
}
|
|
|
|
@TestMetadata("fakeOverrideCall.kt")
|
|
public void testFakeOverrideCall() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/fakeOverrideCall.kt");
|
|
}
|
|
|
|
@TestMetadata("forStatement.kt")
|
|
public void testForStatement() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/forStatement.kt");
|
|
}
|
|
|
|
@TestMetadata("functionReferences.kt")
|
|
public void testFunctionReferences() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/functionReferences.kt");
|
|
}
|
|
|
|
@TestMetadata("inlineFunctions.kt")
|
|
public void testInlineFunctions() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/inlineFunctions.kt");
|
|
}
|
|
|
|
@TestMetadata("kt59079.kt")
|
|
public void testKt59079() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/kt59079.kt");
|
|
}
|
|
|
|
@TestMetadata("mfvcAndIcInsideConstructorsOfEachOther.kt")
|
|
public void testMfvcAndIcInsideConstructorsOfEachOther() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/mfvcAndIcInsideConstructorsOfEachOther.kt");
|
|
}
|
|
|
|
@TestMetadata("mfvcBothEqualsOverride.kt")
|
|
public void testMfvcBothEqualsOverride() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/mfvcBothEqualsOverride.kt");
|
|
}
|
|
|
|
@TestMetadata("mfvcEqualsConsistency.kt")
|
|
public void testMfvcEqualsConsistency() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/mfvcEqualsConsistency.kt");
|
|
}
|
|
|
|
@TestMetadata("mfvcEqualsOverriddenForCollections.kt")
|
|
public void testMfvcEqualsOverriddenForCollections() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/mfvcEqualsOverriddenForCollections.kt");
|
|
}
|
|
|
|
@TestMetadata("mfvcEqualsOverride.kt")
|
|
public void testMfvcEqualsOverride() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/mfvcEqualsOverride.kt");
|
|
}
|
|
|
|
@TestMetadata("mfvcFieldInitializationOrder.kt")
|
|
public void testMfvcFieldInitializationOrder() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/mfvcFieldInitializationOrder.kt");
|
|
}
|
|
|
|
@TestMetadata("mfvcHashCodeOverride.kt")
|
|
public void testMfvcHashCodeOverride() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/mfvcHashCodeOverride.kt");
|
|
}
|
|
|
|
@TestMetadata("mfvcTypedEqualsGenerics.kt")
|
|
public void testMfvcTypedEqualsGenerics() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/mfvcTypedEqualsGenerics.kt");
|
|
}
|
|
|
|
@TestMetadata("mfvcUntypedEqualsOverriden.kt")
|
|
public void testMfvcUntypedEqualsOverriden() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/mfvcUntypedEqualsOverriden.kt");
|
|
}
|
|
|
|
@TestMetadata("multiModules.kt")
|
|
public void testMultiModules() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/multiModules.kt");
|
|
}
|
|
|
|
@TestMetadata("mutableSharedMfvcVar.kt")
|
|
public void testMutableSharedMfvcVar() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/mutableSharedMfvcVar.kt");
|
|
}
|
|
|
|
@TestMetadata("nestedLoweringStart.kt")
|
|
public void testNestedLoweringStart() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/nestedLoweringStart.kt");
|
|
}
|
|
|
|
@TestMetadata("nothingAsParameterType.kt")
|
|
public void testNothingAsParameterType() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/nothingAsParameterType.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overrideFunctionWithDefaultParameter.kt")
|
|
public void testOverrideFunctionWithDefaultParameter() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/overrideFunctionWithDefaultParameter.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overrideFunctionWithDefaultParameterGeneric.kt")
|
|
public void testOverrideFunctionWithDefaultParameterGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/overrideFunctionWithDefaultParameterGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("overrides.kt")
|
|
public void testOverrides() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/overrides.kt");
|
|
}
|
|
|
|
@TestMetadata("overrides_inlineClass.kt")
|
|
public void testOverrides_inlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/overrides_inlineClass.kt");
|
|
}
|
|
|
|
@TestMetadata("overrides_typeParameters.kt")
|
|
public void testOverrides_typeParameters() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/overrides_typeParameters.kt");
|
|
}
|
|
|
|
@TestMetadata("regularClassSecondaryConstructorWithMfvc.kt")
|
|
public void testRegularClassSecondaryConstructorWithMfvc() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/regularClassSecondaryConstructorWithMfvc.kt");
|
|
}
|
|
|
|
@TestMetadata("secondaryConstructorExpectActual.kt")
|
|
public void testSecondaryConstructorExpectActual() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/secondaryConstructorExpectActual.kt");
|
|
}
|
|
|
|
@TestMetadata("secondaryConstructorVisibilies.kt")
|
|
public void testSecondaryConstructorVisibilies() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/secondaryConstructorVisibilies.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("secondaryConstructorWithVararg.kt")
|
|
public void testSecondaryConstructorWithVararg() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/secondaryConstructorWithVararg.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("secondaryConstructorWithVarargGeneric.kt")
|
|
public void testSecondaryConstructorWithVarargGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/secondaryConstructorWithVarargGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
|
}
|
|
|
|
@TestMetadata("secondaryConstructorsWithBody.kt")
|
|
public void testSecondaryConstructorsWithBody() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/secondaryConstructorsWithBody.kt");
|
|
}
|
|
|
|
@TestMetadata("throwingMFVCReassignments.kt")
|
|
public void testThrowingMFVCReassignments() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/throwingMFVCReassignments.kt");
|
|
}
|
|
|
|
@TestMetadata("tryExpressions.kt")
|
|
public void testTryExpressions() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/tryExpressions.kt");
|
|
}
|
|
|
|
@TestMetadata("visibility.kt")
|
|
public void testVisibility() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/visibility.kt");
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/codegen/box/valueClasses/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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInJavaInterop() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/valueClasses/javaInterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("methodWithValueClassDeclaredInJava.kt")
|
|
public void testMethodWithValueClassDeclaredInJava() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/javaInterop/methodWithValueClassDeclaredInJava.kt");
|
|
}
|
|
|
|
@TestMetadata("methodWithValueClassDeclaredInJavaOverriddenInKotlin.kt")
|
|
public void testMethodWithValueClassDeclaredInJavaOverriddenInKotlin() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/javaInterop/methodWithValueClassDeclaredInJavaOverriddenInKotlin.kt");
|
|
}
|
|
|
|
@TestMetadata("methodWithValueClassInheritedBothFromJavaAndKotlin.kt")
|
|
public void testMethodWithValueClassInheritedBothFromJavaAndKotlin() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/javaInterop/methodWithValueClassInheritedBothFromJavaAndKotlin.kt");
|
|
}
|
|
|
|
@TestMetadata("methodWithValueClassInheritedInJavaOverriddenInKotlin.kt")
|
|
public void testMethodWithValueClassInheritedInJavaOverriddenInKotlin() throws Exception {
|
|
runTest("compiler/testData/codegen/box/valueClasses/javaInterop/methodWithValueClassInheritedInJavaOverriddenInKotlin.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInVararg() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/vararg"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("assigningArrayToVarargInAnnotation.kt")
|
|
public void testAssigningArrayToVarargInAnnotation() throws Exception {
|
|
runTest("compiler/testData/codegen/box/vararg/assigningArrayToVarargInAnnotation.kt");
|
|
}
|
|
|
|
@TestMetadata("boxingArgumentsForVararg.kt")
|
|
public void testBoxingArgumentsForVararg() throws Exception {
|
|
runTest("compiler/testData/codegen/box/vararg/boxingArgumentsForVararg.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("inlineClassArraysAsNamedArgumentInVararg.kt")
|
|
public void testInlineClassArraysAsNamedArgumentInVararg() throws Exception {
|
|
runTest("compiler/testData/codegen/box/vararg/inlineClassArraysAsNamedArgumentInVararg.kt");
|
|
}
|
|
|
|
@TestMetadata("kt10926.kt")
|
|
public void testKt10926() throws Exception {
|
|
runTest("compiler/testData/codegen/box/vararg/kt10926.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("kt52146_samWithSelfTypeAndStarProjection.kt")
|
|
public void testKt52146_samWithSelfTypeAndStarProjection() throws Exception {
|
|
runTest("compiler/testData/codegen/box/vararg/kt52146_samWithSelfTypeAndStarProjection.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("useSuspendFunResultAsVararg.kt")
|
|
public void testUseSuspendFunResultAsVararg() throws Exception {
|
|
runTest("compiler/testData/codegen/box/vararg/useSuspendFunResultAsVararg.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("varargInTailrec.kt")
|
|
public void testVarargInTailrec() throws Exception {
|
|
runTest("compiler/testData/codegen/box/vararg/varargInTailrec.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/volatile")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Volatile extends AbstractLightAnalysisModeTest {
|
|
private void runTest(String testDataFilePath) throws Exception {
|
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInVolatile() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/volatile"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
|
}
|
|
|
|
@TestMetadata("volatileBool.kt")
|
|
public void testVolatileBool() throws Exception {
|
|
runTest("compiler/testData/codegen/box/volatile/volatileBool.kt");
|
|
}
|
|
|
|
@TestMetadata("volatileByte.kt")
|
|
public void testVolatileByte() throws Exception {
|
|
runTest("compiler/testData/codegen/box/volatile/volatileByte.kt");
|
|
}
|
|
|
|
@TestMetadata("volatileDouble.kt")
|
|
public void testVolatileDouble() throws Exception {
|
|
runTest("compiler/testData/codegen/box/volatile/volatileDouble.kt");
|
|
}
|
|
|
|
@TestMetadata("volatileFloat.kt")
|
|
public void testVolatileFloat() throws Exception {
|
|
runTest("compiler/testData/codegen/box/volatile/volatileFloat.kt");
|
|
}
|
|
|
|
@TestMetadata("volatileGeneric.kt")
|
|
public void testVolatileGeneric() throws Exception {
|
|
runTest("compiler/testData/codegen/box/volatile/volatileGeneric.kt");
|
|
}
|
|
|
|
@TestMetadata("volatileInt.kt")
|
|
public void testVolatileInt() throws Exception {
|
|
runTest("compiler/testData/codegen/box/volatile/volatileInt.kt");
|
|
}
|
|
|
|
@TestMetadata("volatileLong.kt")
|
|
public void testVolatileLong() throws Exception {
|
|
runTest("compiler/testData/codegen/box/volatile/volatileLong.kt");
|
|
}
|
|
|
|
@TestMetadata("volatileShort.kt")
|
|
public void testVolatileShort() throws Exception {
|
|
runTest("compiler/testData/codegen/box/volatile/volatileShort.kt");
|
|
}
|
|
|
|
@TestMetadata("volatileString.kt")
|
|
public void testVolatileString() throws Exception {
|
|
runTest("compiler/testData/codegen/box/volatile/volatileString.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInWhen() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/when"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("integralWhenWithNoInlinedConstants2.kt")
|
|
public void testIntegralWhenWithNoInlinedConstants2() throws Exception {
|
|
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants2.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("kt47475.kt")
|
|
public void testKt47475() throws Exception {
|
|
runTest("compiler/testData/codegen/box/when/kt47475.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("kt55993.kt")
|
|
public void testKt55993() throws Exception {
|
|
runTest("compiler/testData/codegen/box/when/kt55993.kt");
|
|
}
|
|
|
|
@TestMetadata("kt59346.kt")
|
|
public void testKt59346() throws Exception {
|
|
runTest("compiler/testData/codegen/box/when/kt59346.kt");
|
|
}
|
|
|
|
@TestMetadata("kt60212.kt")
|
|
public void testKt60212() throws Exception {
|
|
runTest("compiler/testData/codegen/box/when/kt60212.kt");
|
|
}
|
|
|
|
@TestMetadata("longCondition.kt")
|
|
public void testLongCondition() throws Exception {
|
|
runTest("compiler/testData/codegen/box/when/longCondition.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("nothingTyped.kt")
|
|
public void testNothingTyped() throws Exception {
|
|
runTest("compiler/testData/codegen/box/when/nothingTyped.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInEnumOptimization() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/when/enumOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("kt50258.kt")
|
|
public void testKt50258() throws Exception {
|
|
runTest("compiler/testData/codegen/box/when/enumOptimization/kt50258.kt");
|
|
}
|
|
|
|
@TestMetadata("manyWhensWithinClass.kt")
|
|
public void testManyWhensWithinClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/when/enumOptimization/manyWhensWithinClass.kt");
|
|
}
|
|
|
|
@TestMetadata("nestedWhenInCondition.kt")
|
|
public void testNestedWhenInCondition() throws Exception {
|
|
runTest("compiler/testData/codegen/box/when/enumOptimization/nestedWhenInCondition.kt");
|
|
}
|
|
|
|
@TestMetadata("nestedWhenInResult.kt")
|
|
public void testNestedWhenInResult() throws Exception {
|
|
runTest("compiler/testData/codegen/box/when/enumOptimization/nestedWhenInResult.kt");
|
|
}
|
|
|
|
@TestMetadata("nonConstantEnum.kt")
|
|
public void testNonConstantEnum() throws Exception {
|
|
runTest("compiler/testData/codegen/box/when/enumOptimization/nonConstantEnum.kt");
|
|
}
|
|
|
|
@TestMetadata("notAllConditionsAreEqEqExceptElse.kt")
|
|
public void testNotAllConditionsAreEqEqExceptElse() throws Exception {
|
|
runTest("compiler/testData/codegen/box/when/enumOptimization/notAllConditionsAreEqEqExceptElse.kt");
|
|
}
|
|
|
|
@TestMetadata("notAllEntriesAreConstants.kt")
|
|
public void testNotAllEntriesAreConstants() throws Exception {
|
|
runTest("compiler/testData/codegen/box/when/enumOptimization/notAllEntriesAreConstants.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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInStringOptimization() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/when/stringOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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_IR, testDataFilePath);
|
|
}
|
|
|
|
public void testAllFilesPresentInWhenSubjectVariable() throws Exception {
|
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/when/whenSubjectVariable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, 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("kt33641_inlineClass.kt")
|
|
public void testKt33641_inlineClass() throws Exception {
|
|
runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt33641_inlineClass.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");
|
|
}
|
|
}
|
|
}
|
|
}
|