4016254fd4
Default parameter values of primary constructor of an annotation class are required to generate default values of annotation properties.
1357 lines
64 KiB
Java
Generated
1357 lines
64 KiB
Java
Generated
/*
|
|
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
|
* that can be found in the license/LICENSE.txt file.
|
|
*/
|
|
|
|
package org.jetbrains.kotlin.ir;
|
|
|
|
import com.intellij.testFramework.TestDataPath;
|
|
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
|
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
|
import org.jetbrains.kotlin.test.TargetBackend;
|
|
import org.jetbrains.kotlin.test.TestMetadata;
|
|
import org.junit.runner.RunWith;
|
|
|
|
import java.io.File;
|
|
import java.util.regex.Pattern;
|
|
|
|
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
|
@SuppressWarnings("all")
|
|
@TestMetadata("compiler/testData/ir/irText")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public class IrTextTestCaseGenerated extends AbstractIrTextTestCase {
|
|
public void testAllFilesPresentInIrText() throws Exception {
|
|
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/ir/irText"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/ir/irText/classes")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Classes extends AbstractIrTextTestCase {
|
|
@TestMetadata("abstractMembers.kt")
|
|
public void testAbstractMembers() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/abstractMembers.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
public void testAllFilesPresentInClasses() throws Exception {
|
|
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/ir/irText/classes"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
|
}
|
|
|
|
@TestMetadata("annotationClasses.kt")
|
|
public void testAnnotationClasses() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/annotationClasses.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("argumentReorderingInDelegatingConstructorCall.kt")
|
|
public void testArgumentReorderingInDelegatingConstructorCall() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("classMembers.kt")
|
|
public void testClassMembers() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/classMembers.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("classes.kt")
|
|
public void testClasses() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/classes.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("companionObject.kt")
|
|
public void testCompanionObject() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/companionObject.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("dataClassWithArrayMembers.kt")
|
|
public void testDataClassWithArrayMembers() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/dataClassWithArrayMembers.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("dataClasses.kt")
|
|
public void testDataClasses() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/dataClasses.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("dataClassesGeneric.kt")
|
|
public void testDataClassesGeneric() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/dataClassesGeneric.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("delegatedImplementation.kt")
|
|
public void testDelegatedImplementation() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/delegatedImplementation.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("delegatedImplementationWithExplicitOverride.kt")
|
|
public void testDelegatedImplementationWithExplicitOverride() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/delegatedImplementationWithExplicitOverride.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("delegatingConstructorCallToTypeAliasConstructor.kt")
|
|
public void testDelegatingConstructorCallToTypeAliasConstructor() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/delegatingConstructorCallToTypeAliasConstructor.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("delegatingConstructorCallsInSecondaryConstructors.kt")
|
|
public void testDelegatingConstructorCallsInSecondaryConstructors() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/delegatingConstructorCallsInSecondaryConstructors.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("enum.kt")
|
|
public void testEnum() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/enum.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("enumWithSecondaryCtor.kt")
|
|
public void testEnumWithSecondaryCtor() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/enumWithSecondaryCtor.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("initBlock.kt")
|
|
public void testInitBlock() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/initBlock.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("initVal.kt")
|
|
public void testInitVal() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/initVal.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("initVar.kt")
|
|
public void testInitVar() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/initVar.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("innerClass.kt")
|
|
public void testInnerClass() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/innerClass.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("innerClassWithDelegatingConstructor.kt")
|
|
public void testInnerClassWithDelegatingConstructor() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/innerClassWithDelegatingConstructor.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("lambdaInDataClassDefaultParameter.kt")
|
|
public void testLambdaInDataClassDefaultParameter() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("localClasses.kt")
|
|
public void testLocalClasses() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/localClasses.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("objectLiteralExpressions.kt")
|
|
public void testObjectLiteralExpressions() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/objectLiteralExpressions.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("objectWithInitializers.kt")
|
|
public void testObjectWithInitializers() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/objectWithInitializers.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("outerClassAccess.kt")
|
|
public void testOuterClassAccess() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/outerClassAccess.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("primaryConstructor.kt")
|
|
public void testPrimaryConstructor() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/primaryConstructor.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("primaryConstructorWithSuperConstructorCall.kt")
|
|
public void testPrimaryConstructorWithSuperConstructorCall() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/primaryConstructorWithSuperConstructorCall.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("qualifiedSuperCalls.kt")
|
|
public void testQualifiedSuperCalls() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/qualifiedSuperCalls.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("sealedClasses.kt")
|
|
public void testSealedClasses() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/sealedClasses.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("secondaryConstructorWithInitializersFromClassBody.kt")
|
|
public void testSecondaryConstructorWithInitializersFromClassBody() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/secondaryConstructorWithInitializersFromClassBody.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("secondaryConstructors.kt")
|
|
public void testSecondaryConstructors() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/secondaryConstructors.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("superCalls.kt")
|
|
public void testSuperCalls() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/superCalls.kt");
|
|
doTest(fileName);
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/ir/irText/declarations")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Declarations extends AbstractIrTextTestCase {
|
|
public void testAllFilesPresentInDeclarations() throws Exception {
|
|
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/ir/irText/declarations"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
|
}
|
|
|
|
@TestMetadata("catchParameterInTopLevelProperty.kt")
|
|
public void testCatchParameterInTopLevelProperty() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/catchParameterInTopLevelProperty.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("classLevelProperties.kt")
|
|
public void testClassLevelProperties() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/classLevelProperties.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("defaultArguments.kt")
|
|
public void testDefaultArguments() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/defaultArguments.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("delegatedProperties.kt")
|
|
public void testDelegatedProperties() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/delegatedProperties.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("extensionProperties.kt")
|
|
public void testExtensionProperties() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/extensionProperties.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("fakeOverrides.kt")
|
|
public void testFakeOverrides() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/fakeOverrides.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("fileWithAnnotations.kt")
|
|
public void testFileWithAnnotations() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/fileWithAnnotations.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("interfaceProperties.kt")
|
|
public void testInterfaceProperties() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/interfaceProperties.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("localClassWithOverrides.kt")
|
|
public void testLocalClassWithOverrides() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/localClassWithOverrides.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("localDelegatedProperties.kt")
|
|
public void testLocalDelegatedProperties() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/localDelegatedProperties.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("localDelegatedPropertyWithSuspendOperators.kt")
|
|
public void testLocalDelegatedPropertyWithSuspendOperators() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/localDelegatedPropertyWithSuspendOperators.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("localVarInDoWhile.kt")
|
|
public void testLocalVarInDoWhile() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/localVarInDoWhile.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("packageLevelProperties.kt")
|
|
public void testPackageLevelProperties() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/packageLevelProperties.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("primaryCtorDefaultArguments.kt")
|
|
public void testPrimaryCtorDefaultArguments() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/primaryCtorDefaultArguments.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("primaryCtorProperties.kt")
|
|
public void testPrimaryCtorProperties() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/primaryCtorProperties.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("typeAlias.kt")
|
|
public void testTypeAlias() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/typeAlias.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Multiplatform extends AbstractIrTextTestCase {
|
|
public void testAllFilesPresentInMultiplatform() throws Exception {
|
|
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
|
}
|
|
|
|
@TestMetadata("expectClassInherited.kt")
|
|
public void testExpectClassInherited() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/multiplatform/expectClassInherited.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("expectedEnumClass.kt")
|
|
public void testExpectedEnumClass() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/multiplatform/expectedEnumClass.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("expectedSealedClass.kt")
|
|
public void testExpectedSealedClass() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/multiplatform/expectedSealedClass.kt");
|
|
doTest(fileName);
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/ir/irText/declarations/parameters")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Parameters extends AbstractIrTextTestCase {
|
|
public void testAllFilesPresentInParameters() throws Exception {
|
|
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/ir/irText/declarations/parameters"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
|
}
|
|
|
|
@TestMetadata("class.kt")
|
|
public void testClass() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/parameters/class.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("constructor.kt")
|
|
public void testConstructor() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/parameters/constructor.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("dataClassMembers.kt")
|
|
public void testDataClassMembers() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/parameters/dataClassMembers.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("defaultPropertyAccessors.kt")
|
|
public void testDefaultPropertyAccessors() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/parameters/defaultPropertyAccessors.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("delegatedMembers.kt")
|
|
public void testDelegatedMembers() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/parameters/delegatedMembers.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("fun.kt")
|
|
public void testFun() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/parameters/fun.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("genericInnerClass.kt")
|
|
public void testGenericInnerClass() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/parameters/genericInnerClass.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("lambdas.kt")
|
|
public void testLambdas() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/parameters/lambdas.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("localFun.kt")
|
|
public void testLocalFun() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/parameters/localFun.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("propertyAccessors.kt")
|
|
public void testPropertyAccessors() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/parameters/propertyAccessors.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("typeParameterBeforeBound.kt")
|
|
public void testTypeParameterBeforeBound() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/parameters/typeParameterBeforeBound.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("typeParameterBoundedBySubclass.kt")
|
|
public void testTypeParameterBoundedBySubclass() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/parameters/typeParameterBoundedBySubclass.kt");
|
|
doTest(fileName);
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/ir/irText/declarations/provideDelegate")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class ProvideDelegate extends AbstractIrTextTestCase {
|
|
public void testAllFilesPresentInProvideDelegate() throws Exception {
|
|
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/ir/irText/declarations/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
|
}
|
|
|
|
@TestMetadata("differentReceivers.kt")
|
|
public void testDifferentReceivers() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/provideDelegate/differentReceivers.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("local.kt")
|
|
public void testLocal() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/provideDelegate/local.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("localDifferentReceivers.kt")
|
|
public void testLocalDifferentReceivers() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/provideDelegate/localDifferentReceivers.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("member.kt")
|
|
public void testMember() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/provideDelegate/member.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("memberExtension.kt")
|
|
public void testMemberExtension() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/provideDelegate/memberExtension.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("topLevel.kt")
|
|
public void testTopLevel() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/declarations/provideDelegate/topLevel.kt");
|
|
doTest(fileName);
|
|
}
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/ir/irText/errors")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Errors extends AbstractIrTextTestCase {
|
|
public void testAllFilesPresentInErrors() throws Exception {
|
|
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/ir/irText/errors"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
|
}
|
|
|
|
@TestMetadata("suppressedNonPublicCall.kt")
|
|
public void testSuppressedNonPublicCall() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/errors/suppressedNonPublicCall.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("unresolvedReference.kt")
|
|
public void testUnresolvedReference() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/errors/unresolvedReference.kt");
|
|
doTest(fileName);
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/ir/irText/expressions")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Expressions extends AbstractIrTextTestCase {
|
|
public void testAllFilesPresentInExpressions() throws Exception {
|
|
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/ir/irText/expressions"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
|
}
|
|
|
|
@TestMetadata("argumentMappedWithError.kt")
|
|
public void testArgumentMappedWithError() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/argumentMappedWithError.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("arrayAccess.kt")
|
|
public void testArrayAccess() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/arrayAccess.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("arrayAssignment.kt")
|
|
public void testArrayAssignment() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/arrayAssignment.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("arrayAugmentedAssignment1.kt")
|
|
public void testArrayAugmentedAssignment1() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("arrayAugmentedAssignment2.kt")
|
|
public void testArrayAugmentedAssignment2() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/arrayAugmentedAssignment2.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("assignments.kt")
|
|
public void testAssignments() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/assignments.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("augmentedAssignment1.kt")
|
|
public void testAugmentedAssignment1() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/augmentedAssignment1.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("augmentedAssignment2.kt")
|
|
public void testAugmentedAssignment2() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/augmentedAssignment2.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("augmentedAssignmentWithExpression.kt")
|
|
public void testAugmentedAssignmentWithExpression() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/augmentedAssignmentWithExpression.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("badBreakContinue.kt")
|
|
public void testBadBreakContinue() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/badBreakContinue.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("bangbang.kt")
|
|
public void testBangbang() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/bangbang.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("booleanConstsInAndAndOrOr.kt")
|
|
public void testBooleanConstsInAndAndOrOr() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/booleanConstsInAndAndOrOr.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("booleanOperators.kt")
|
|
public void testBooleanOperators() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/booleanOperators.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("boundCallableReferences.kt")
|
|
public void testBoundCallableReferences() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/boundCallableReferences.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("boxOk.kt")
|
|
public void testBoxOk() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/boxOk.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("breakContinue.kt")
|
|
public void testBreakContinue() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/breakContinue.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("breakContinueInLoopHeader.kt")
|
|
public void testBreakContinueInLoopHeader() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("callWithReorderedArguments.kt")
|
|
public void testCallWithReorderedArguments() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/callWithReorderedArguments.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("callableRefToGenericMember.kt")
|
|
public void testCallableRefToGenericMember() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/callableRefToGenericMember.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("callableReferenceToImportedFromObject.kt")
|
|
public void testCallableReferenceToImportedFromObject() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/callableReferenceToImportedFromObject.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("calls.kt")
|
|
public void testCalls() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/calls.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("castToTypeParameter.kt")
|
|
public void testCastToTypeParameter() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/castToTypeParameter.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("catchParameterAccess.kt")
|
|
public void testCatchParameterAccess() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/catchParameterAccess.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("chainOfSafeCalls.kt")
|
|
public void testChainOfSafeCalls() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/chainOfSafeCalls.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("classReference.kt")
|
|
public void testClassReference() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/classReference.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("coercionToUnit.kt")
|
|
public void testCoercionToUnit() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/coercionToUnit.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("complexAugmentedAssignment.kt")
|
|
public void testComplexAugmentedAssignment() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/complexAugmentedAssignment.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("contructorCall.kt")
|
|
public void testContructorCall() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/contructorCall.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("conventionComparisons.kt")
|
|
public void testConventionComparisons() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/conventionComparisons.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("destructuring1.kt")
|
|
public void testDestructuring1() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/destructuring1.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("destructuringWithUnderscore.kt")
|
|
public void testDestructuringWithUnderscore() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/destructuringWithUnderscore.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("dotQualified.kt")
|
|
public void testDotQualified() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/dotQualified.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("elvis.kt")
|
|
public void testElvis() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/elvis.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("enumEntryAsReceiver.kt")
|
|
public void testEnumEntryAsReceiver() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/enumEntryAsReceiver.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("equality.kt")
|
|
public void testEquality() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/equality.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("extFunInvokeAsFun.kt")
|
|
public void testExtFunInvokeAsFun() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/extFunInvokeAsFun.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("extFunSafeInvoke.kt")
|
|
public void testExtFunSafeInvoke() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/extFunSafeInvoke.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("extensionPropertyGetterCall.kt")
|
|
public void testExtensionPropertyGetterCall() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/extensionPropertyGetterCall.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("field.kt")
|
|
public void testField() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/field.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("for.kt")
|
|
public void testFor() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/for.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("forWithBreakContinue.kt")
|
|
public void testForWithBreakContinue() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/forWithBreakContinue.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("forWithImplicitReceivers.kt")
|
|
public void testForWithImplicitReceivers() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/forWithImplicitReceivers.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("funImportedFromObject.kt")
|
|
public void testFunImportedFromObject() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/funImportedFromObject.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("genericPropertyCall.kt")
|
|
public void testGenericPropertyCall() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/genericPropertyCall.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("identity.kt")
|
|
public void testIdentity() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/identity.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("ifElseIf.kt")
|
|
public void testIfElseIf() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/ifElseIf.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("implicitCastOnPlatformType.kt")
|
|
public void testImplicitCastOnPlatformType() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/implicitCastOnPlatformType.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("implicitCastToTypeParameter.kt")
|
|
public void testImplicitCastToTypeParameter() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/implicitCastToTypeParameter.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("in.kt")
|
|
public void testIn() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/in.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("incrementDecrement.kt")
|
|
public void testIncrementDecrement() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/incrementDecrement.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("interfaceThisRef.kt")
|
|
public void testInterfaceThisRef() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/interfaceThisRef.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("jvmInstanceFieldReference.kt")
|
|
public void testJvmInstanceFieldReference() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/jvmInstanceFieldReference.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("jvmStaticFieldReference.kt")
|
|
public void testJvmStaticFieldReference() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/jvmStaticFieldReference.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("kt16904.kt")
|
|
public void testKt16904() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/kt16904.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("kt16905.kt")
|
|
public void testKt16905() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/kt16905.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("kt23030.kt")
|
|
public void testKt23030() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/kt23030.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("lambdaInCAO.kt")
|
|
public void testLambdaInCAO() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/lambdaInCAO.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("literals.kt")
|
|
public void testLiterals() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/literals.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("memberTypeArguments.kt")
|
|
public void testMemberTypeArguments() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/memberTypeArguments.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("membersImportedFromObject.kt")
|
|
public void testMembersImportedFromObject() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/membersImportedFromObject.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("multipleThisReferences.kt")
|
|
public void testMultipleThisReferences() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/multipleThisReferences.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("objectAsCallable.kt")
|
|
public void testObjectAsCallable() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/objectAsCallable.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("objectClassReference.kt")
|
|
public void testObjectClassReference() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/objectClassReference.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("outerClassInstanceReference.kt")
|
|
public void testOuterClassInstanceReference() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/outerClassInstanceReference.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("primitiveComparisons.kt")
|
|
public void testPrimitiveComparisons() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/primitiveComparisons.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("primitivesImplicitConversions.kt")
|
|
public void testPrimitivesImplicitConversions() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/primitivesImplicitConversions.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("references.kt")
|
|
public void testReferences() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/references.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("reflectionLiterals.kt")
|
|
public void testReflectionLiterals() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/reflectionLiterals.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("safeAssignment.kt")
|
|
public void testSafeAssignment() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/safeAssignment.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("safeCallWithIncrementDecrement.kt")
|
|
public void testSafeCallWithIncrementDecrement() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("safeCalls.kt")
|
|
public void testSafeCalls() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/safeCalls.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("setFieldWithImplicitCast.kt")
|
|
public void testSetFieldWithImplicitCast() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/setFieldWithImplicitCast.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("simpleOperators.kt")
|
|
public void testSimpleOperators() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/simpleOperators.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("simpleUnaryOperators.kt")
|
|
public void testSimpleUnaryOperators() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/simpleUnaryOperators.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("smartCasts.kt")
|
|
public void testSmartCasts() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/smartCasts.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("smartCastsWithDestructuring.kt")
|
|
public void testSmartCastsWithDestructuring() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/smartCastsWithDestructuring.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("specializedTypeAliasConstructorCall.kt")
|
|
public void testSpecializedTypeAliasConstructorCall() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/specializedTypeAliasConstructorCall.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("stringComparisons.kt")
|
|
public void testStringComparisons() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/stringComparisons.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("stringPlus.kt")
|
|
public void testStringPlus() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/stringPlus.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("stringTemplates.kt")
|
|
public void testStringTemplates() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/stringTemplates.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("thisOfGenericOuterClass.kt")
|
|
public void testThisOfGenericOuterClass() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("throw.kt")
|
|
public void testThrow() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/throw.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("tryCatch.kt")
|
|
public void testTryCatch() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/tryCatch.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("tryCatchWithImplicitCast.kt")
|
|
public void testTryCatchWithImplicitCast() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/tryCatchWithImplicitCast.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("typeArguments.kt")
|
|
public void testTypeArguments() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/typeArguments.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("typeOperators.kt")
|
|
public void testTypeOperators() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/typeOperators.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("typeParameterClassLiteral.kt")
|
|
public void testTypeParameterClassLiteral() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/typeParameterClassLiteral.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("useImportedMember.kt")
|
|
public void testUseImportedMember() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/useImportedMember.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("values.kt")
|
|
public void testValues() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/values.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("vararg.kt")
|
|
public void testVararg() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/vararg.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("varargWithImplicitCast.kt")
|
|
public void testVarargWithImplicitCast() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/varargWithImplicitCast.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("variableAsFunctionCall.kt")
|
|
public void testVariableAsFunctionCall() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/variableAsFunctionCall.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("when.kt")
|
|
public void testWhen() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/when.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("whenCoercedToUnit.kt")
|
|
public void testWhenCoercedToUnit() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/whenCoercedToUnit.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("whenElse.kt")
|
|
public void testWhenElse() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/whenElse.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("whenReturn.kt")
|
|
public void testWhenReturn() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/whenReturn.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("whileDoWhile.kt")
|
|
public void testWhileDoWhile() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/whileDoWhile.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/ir/irText/expressions/floatingPointComparisons")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class FloatingPointComparisons extends AbstractIrTextTestCase {
|
|
public void testAllFilesPresentInFloatingPointComparisons() throws Exception {
|
|
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/ir/irText/expressions/floatingPointComparisons"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
|
}
|
|
|
|
@TestMetadata("comparableWithDoubleOrFloat.kt")
|
|
public void testComparableWithDoubleOrFloat() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/floatingPointComparisons/comparableWithDoubleOrFloat.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("eqeqRhsConditionPossiblyAffectingLhs.kt")
|
|
public void testEqeqRhsConditionPossiblyAffectingLhs() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/floatingPointComparisons/eqeqRhsConditionPossiblyAffectingLhs.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("floatingPointCompareTo.kt")
|
|
public void testFloatingPointCompareTo() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointCompareTo.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("floatingPointEqeq.kt")
|
|
public void testFloatingPointEqeq() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointEqeq.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("floatingPointEquals.kt")
|
|
public void testFloatingPointEquals() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointEquals.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("floatingPointExcleq.kt")
|
|
public void testFloatingPointExcleq() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointExcleq.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("floatingPointLess.kt")
|
|
public void testFloatingPointLess() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointLess.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("nullableAnyAsIntToDouble.kt")
|
|
public void testNullableAnyAsIntToDouble() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableAnyAsIntToDouble.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("nullableFloatingPointEqeq.kt")
|
|
public void testNullableFloatingPointEqeq() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableFloatingPointEqeq.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("typeParameterWithPrimitiveNumericSupertype.kt")
|
|
public void testTypeParameterWithPrimitiveNumericSupertype() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/floatingPointComparisons/typeParameterWithPrimitiveNumericSupertype.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("whenByFloatingPoint.kt")
|
|
public void testWhenByFloatingPoint() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.kt");
|
|
doTest(fileName);
|
|
}
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/ir/irText/lambdas")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Lambdas extends AbstractIrTextTestCase {
|
|
public void testAllFilesPresentInLambdas() throws Exception {
|
|
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/ir/irText/lambdas"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
|
}
|
|
|
|
@TestMetadata("anonymousFunction.kt")
|
|
public void testAnonymousFunction() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/lambdas/anonymousFunction.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("destructuringInLambda.kt")
|
|
public void testDestructuringInLambda() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/lambdas/destructuringInLambda.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("extensionLambda.kt")
|
|
public void testExtensionLambda() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/lambdas/extensionLambda.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("justLambda.kt")
|
|
public void testJustLambda() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/lambdas/justLambda.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("localFunction.kt")
|
|
public void testLocalFunction() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/lambdas/localFunction.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("multipleImplicitReceivers.kt")
|
|
public void testMultipleImplicitReceivers() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("nonLocalReturn.kt")
|
|
public void testNonLocalReturn() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/lambdas/nonLocalReturn.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("samAdapter.kt")
|
|
public void testSamAdapter() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/lambdas/samAdapter.kt");
|
|
doTest(fileName);
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/ir/irText/regressions")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Regressions extends AbstractIrTextTestCase {
|
|
public void testAllFilesPresentInRegressions() throws Exception {
|
|
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/ir/irText/regressions"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
|
}
|
|
|
|
@TestMetadata("coercionInLoop.kt")
|
|
public void testCoercionInLoop() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/regressions/coercionInLoop.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("integerCoercionToT.kt")
|
|
public void testIntegerCoercionToT() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/regressions/integerCoercionToT.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("typeAliasCtorForGenericClass.kt")
|
|
public void testTypeAliasCtorForGenericClass() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/regressions/typeAliasCtorForGenericClass.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/ir/irText/regressions/newInference")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class NewInference extends AbstractIrTextTestCase {
|
|
public void testAllFilesPresentInNewInference() throws Exception {
|
|
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/ir/irText/regressions/newInference"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
|
}
|
|
|
|
@TestMetadata("fixationOrder1.kt")
|
|
public void testFixationOrder1() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/regressions/newInference/fixationOrder1.kt");
|
|
doTest(fileName);
|
|
}
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/ir/irText/singletons")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Singletons extends AbstractIrTextTestCase {
|
|
public void testAllFilesPresentInSingletons() throws Exception {
|
|
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/ir/irText/singletons"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
|
}
|
|
|
|
@TestMetadata("companion.kt")
|
|
public void testCompanion() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/singletons/companion.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("enumEntry.kt")
|
|
public void testEnumEntry() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/singletons/enumEntry.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("object.kt")
|
|
public void testObject() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/singletons/object.kt");
|
|
doTest(fileName);
|
|
}
|
|
}
|
|
|
|
@TestMetadata("compiler/testData/ir/irText/stubs")
|
|
@TestDataPath("$PROJECT_ROOT")
|
|
@RunWith(JUnit3RunnerWithInners.class)
|
|
public static class Stubs extends AbstractIrTextTestCase {
|
|
public void testAllFilesPresentInStubs() throws Exception {
|
|
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/ir/irText/stubs"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
|
}
|
|
|
|
@TestMetadata("builtinMap.kt")
|
|
public void testBuiltinMap() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/stubs/builtinMap.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("javaEnum.kt")
|
|
public void testJavaEnum() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/stubs/javaEnum.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("javaInnerClass.kt")
|
|
public void testJavaInnerClass() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/stubs/javaInnerClass.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("javaMethod.kt")
|
|
public void testJavaMethod() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/stubs/javaMethod.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("javaNestedClass.kt")
|
|
public void testJavaNestedClass() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/stubs/javaNestedClass.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("javaStaticMethod.kt")
|
|
public void testJavaStaticMethod() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/stubs/javaStaticMethod.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("kotlinInnerClass.kt")
|
|
public void testKotlinInnerClass() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/stubs/kotlinInnerClass.kt");
|
|
doTest(fileName);
|
|
}
|
|
|
|
@TestMetadata("simple.kt")
|
|
public void testSimple() throws Exception {
|
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/stubs/simple.kt");
|
|
doTest(fileName);
|
|
}
|
|
}
|
|
}
|