[TEST] Move generated compiler tests to test-gen directory
This commit is contained in:
-486
@@ -1,486 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.asJava;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/asJava/lightClasses")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class CompilerLightClassTestGenerated extends AbstractCompilerLightClassTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInLightClasses() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/asJava/lightClasses"), Pattern.compile("^([^.]+)\\.(kt|kts)$"), null, true, "local", "ideRegression");
|
||||
}
|
||||
|
||||
@TestMetadata("AnnotatedParameterInEnumConstructor.kt")
|
||||
public void testAnnotatedParameterInEnumConstructor() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/AnnotatedParameterInEnumConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AnnotatedParameterInInnerClassConstructor.kt")
|
||||
public void testAnnotatedParameterInInnerClassConstructor() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/AnnotatedParameterInInnerClassConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AnnotatedPropertyWithSites.kt")
|
||||
public void testAnnotatedPropertyWithSites() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/AnnotatedPropertyWithSites.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AnnotationClass.kt")
|
||||
public void testAnnotationClass() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/AnnotationClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("DataClassWithCustomImplementedMembers.kt")
|
||||
public void testDataClassWithCustomImplementedMembers() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/DataClassWithCustomImplementedMembers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("DelegatedNested.kt")
|
||||
public void testDelegatedNested() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/DelegatedNested.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Delegation.kt")
|
||||
public void testDelegation() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/Delegation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("DeprecatedEnumEntry.kt")
|
||||
public void testDeprecatedEnumEntry() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/DeprecatedEnumEntry.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("DeprecatedNotHiddenInClass.kt")
|
||||
public void testDeprecatedNotHiddenInClass() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/DeprecatedNotHiddenInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("DollarsInName.kt")
|
||||
public void testDollarsInName() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/DollarsInName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("DollarsInNameNoPackage.kt")
|
||||
public void testDollarsInNameNoPackage() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/DollarsInNameNoPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ExtendingInterfaceWithDefaultImpls.kt")
|
||||
public void testExtendingInterfaceWithDefaultImpls() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/ExtendingInterfaceWithDefaultImpls.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("HiddenDeprecated.kt")
|
||||
public void testHiddenDeprecated() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/HiddenDeprecated.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("HiddenDeprecatedInClass.kt")
|
||||
public void testHiddenDeprecatedInClass() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/HiddenDeprecatedInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritingInterfaceDefaultImpls.kt")
|
||||
public void testInheritingInterfaceDefaultImpls() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/InheritingInterfaceDefaultImpls.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InlineReified.kt")
|
||||
public void testInlineReified() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/InlineReified.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("JvmNameOnMember.kt")
|
||||
public void testJvmNameOnMember() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/JvmNameOnMember.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("JvmStatic.kt")
|
||||
public void testJvmStatic() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/JvmStatic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("NestedObjects.kt")
|
||||
public void testNestedObjects() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/NestedObjects.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("NonDataClassWithComponentFunctions.kt")
|
||||
public void testNonDataClassWithComponentFunctions() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/NonDataClassWithComponentFunctions.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("PublishedApi.kt")
|
||||
public void testPublishedApi() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/PublishedApi.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SpecialAnnotationsOnAnnotationClass.kt")
|
||||
public void testSpecialAnnotationsOnAnnotationClass() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/SpecialAnnotationsOnAnnotationClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("StubOrderForOverloads.kt")
|
||||
public void testStubOrderForOverloads() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/StubOrderForOverloads.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("TypePararametersInClass.kt")
|
||||
public void testTypePararametersInClass() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/TypePararametersInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("VarArgs.kt")
|
||||
public void testVarArgs() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/VarArgs.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/asJava/lightClasses/compilationErrors")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CompilationErrors extends AbstractCompilerLightClassTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("ActualClass.kt")
|
||||
public void testActualClass() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/compilationErrors/ActualClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ActualTypeAlias.kt")
|
||||
public void testActualTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/compilationErrors/ActualTypeAlias.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ActualTypeAliasCustomJvmPackageName.kt")
|
||||
public void testActualTypeAliasCustomJvmPackageName() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/compilationErrors/ActualTypeAliasCustomJvmPackageName.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCompilationErrors() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/asJava/lightClasses/compilationErrors"), Pattern.compile("^([^.]+)\\.(kt|kts)$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("AllInlineOnly.kt")
|
||||
public void testAllInlineOnly() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/compilationErrors/AllInlineOnly.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AnnotationModifiers.kt")
|
||||
public void testAnnotationModifiers() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/compilationErrors/AnnotationModifiers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("EnumNameOverride.kt")
|
||||
public void testEnumNameOverride() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/compilationErrors/EnumNameOverride.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ExpectClass.kt")
|
||||
public void testExpectClass() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/compilationErrors/ExpectClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ExpectObject.kt")
|
||||
public void testExpectObject() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/compilationErrors/ExpectObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ExpectedNestedClass.kt")
|
||||
public void testExpectedNestedClass() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/compilationErrors/ExpectedNestedClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ExpectedNestedClassInObject.kt")
|
||||
public void testExpectedNestedClassInObject() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/compilationErrors/ExpectedNestedClassInObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("JvmPackageName.kt")
|
||||
public void testJvmPackageName() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/compilationErrors/JvmPackageName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("LocalInAnnotation.kt")
|
||||
public void testLocalInAnnotation() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/compilationErrors/LocalInAnnotation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("PrivateInTrait.kt")
|
||||
public void testPrivateInTrait() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/compilationErrors/PrivateInTrait.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("RepetableAnnotations.kt")
|
||||
public void testRepetableAnnotations() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/compilationErrors/RepetableAnnotations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SameName.kt")
|
||||
public void testSameName() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/compilationErrors/SameName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("TopLevelDestructuring.kt")
|
||||
public void testTopLevelDestructuring() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/compilationErrors/TopLevelDestructuring.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("TraitClassObjectField.kt")
|
||||
public void testTraitClassObjectField() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/compilationErrors/TraitClassObjectField.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("TwoOverrides.kt")
|
||||
public void testTwoOverrides() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/compilationErrors/TwoOverrides.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("WrongAnnotations.kt")
|
||||
public void testWrongAnnotations() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/compilationErrors/WrongAnnotations.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/asJava/lightClasses/delegation")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Delegation extends AbstractCompilerLightClassTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDelegation() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/asJava/lightClasses/delegation"), Pattern.compile("^([^.]+)\\.(kt|kts)$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("Function.kt")
|
||||
public void testFunction() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/delegation/Function.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Property.kt")
|
||||
public void testProperty() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/delegation/Property.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/asJava/lightClasses/facades")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Facades extends AbstractCompilerLightClassTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFacades() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/asJava/lightClasses/facades"), Pattern.compile("^([^.]+)\\.(kt|kts)$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("AllPrivate.kt")
|
||||
public void testAllPrivate() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/facades/AllPrivate.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MultiFile.kt")
|
||||
public void testMultiFile() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/facades/MultiFile.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SingleFile.kt")
|
||||
public void testSingleFile() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/facades/SingleFile.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SingleJvmClassName.kt")
|
||||
public void testSingleJvmClassName() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/facades/SingleJvmClassName.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/asJava/lightClasses/nullabilityAnnotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class NullabilityAnnotations extends AbstractCompilerLightClassTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInNullabilityAnnotations() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/asJava/lightClasses/nullabilityAnnotations"), Pattern.compile("^([^.]+)\\.(kt|kts)$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("Class.kt")
|
||||
public void testClass() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/nullabilityAnnotations/Class.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassObjectField.kt")
|
||||
public void testClassObjectField() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/nullabilityAnnotations/ClassObjectField.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassWithConstructor.kt")
|
||||
public void testClassWithConstructor() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/nullabilityAnnotations/ClassWithConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassWithConstructorAndProperties.kt")
|
||||
public void testClassWithConstructorAndProperties() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/nullabilityAnnotations/ClassWithConstructorAndProperties.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("FileFacade.kt")
|
||||
public void testFileFacade() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/nullabilityAnnotations/FileFacade.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Generic.kt")
|
||||
public void testGeneric() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/nullabilityAnnotations/Generic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("IntOverridesAny.kt")
|
||||
public void testIntOverridesAny() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/nullabilityAnnotations/IntOverridesAny.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("JvmOverloads.kt")
|
||||
public void testJvmOverloads() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/nullabilityAnnotations/JvmOverloads.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("NullableUnitReturn.kt")
|
||||
public void testNullableUnitReturn() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/nullabilityAnnotations/NullableUnitReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("OverrideAnyWithUnit.kt")
|
||||
public void testOverrideAnyWithUnit() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/nullabilityAnnotations/OverrideAnyWithUnit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("PlatformTypes.kt")
|
||||
public void testPlatformTypes() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/nullabilityAnnotations/PlatformTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Primitives.kt")
|
||||
public void testPrimitives() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/nullabilityAnnotations/Primitives.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("PrivateInClass.kt")
|
||||
public void testPrivateInClass() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/nullabilityAnnotations/PrivateInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Synthetic.kt")
|
||||
public void testSynthetic() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/nullabilityAnnotations/Synthetic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Trait.kt")
|
||||
public void testTrait() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/nullabilityAnnotations/Trait.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("UnitAsGenericArgument.kt")
|
||||
public void testUnitAsGenericArgument() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/nullabilityAnnotations/UnitAsGenericArgument.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("UnitParameter.kt")
|
||||
public void testUnitParameter() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/nullabilityAnnotations/UnitParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("VoidReturn.kt")
|
||||
public void testVoidReturn() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/nullabilityAnnotations/VoidReturn.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/asJava/lightClasses/object")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Object extends AbstractCompilerLightClassTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInObject() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/asJava/lightClasses/object"), Pattern.compile("^([^.]+)\\.(kt|kts)$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("SimpleObject.kt")
|
||||
public void testSimpleObject() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/object/SimpleObject.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/asJava/lightClasses/publicField")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class PublicField extends AbstractCompilerLightClassTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInPublicField() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/asJava/lightClasses/publicField"), Pattern.compile("^([^.]+)\\.(kt|kts)$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("CompanionObject.kt")
|
||||
public void testCompanionObject() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/publicField/CompanionObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/publicField/Simple.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/asJava/lightClasses/script")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Script extends AbstractCompilerLightClassTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInScript() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/asJava/lightClasses/script"), Pattern.compile("^([^.]+)\\.(kt|kts)$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("HelloWorld.kts")
|
||||
public void testHelloWorld() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/script/HelloWorld.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerClasses.kts")
|
||||
public void testInnerClasses() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/script/InnerClasses.kts");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,840 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.cfg;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class ControlFlowTestGenerated extends AbstractControlFlowTest {
|
||||
@TestMetadata("compiler/testData/cfg")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Cfg extends AbstractControlFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCfg() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfg/arrays")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Arrays extends AbstractControlFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInArrays() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg/arrays"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("ArrayAccess.kt")
|
||||
public void testArrayAccess() throws Exception {
|
||||
runTest("compiler/testData/cfg/arrays/ArrayAccess.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("arrayAccessExpression.kt")
|
||||
public void testArrayAccessExpression() throws Exception {
|
||||
runTest("compiler/testData/cfg/arrays/arrayAccessExpression.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("arrayInc.kt")
|
||||
public void testArrayInc() throws Exception {
|
||||
runTest("compiler/testData/cfg/arrays/arrayInc.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("arrayIncUnresolved.kt")
|
||||
public void testArrayIncUnresolved() throws Exception {
|
||||
runTest("compiler/testData/cfg/arrays/arrayIncUnresolved.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ArrayOfFunctions.kt")
|
||||
public void testArrayOfFunctions() throws Exception {
|
||||
runTest("compiler/testData/cfg/arrays/ArrayOfFunctions.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("arraySet.kt")
|
||||
public void testArraySet() throws Exception {
|
||||
runTest("compiler/testData/cfg/arrays/arraySet.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("arraySetNoRHS.kt")
|
||||
public void testArraySetNoRHS() throws Exception {
|
||||
runTest("compiler/testData/cfg/arrays/arraySetNoRHS.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("arraySetPlusAssign.kt")
|
||||
public void testArraySetPlusAssign() throws Exception {
|
||||
runTest("compiler/testData/cfg/arrays/arraySetPlusAssign.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("arraySetPlusAssignUnresolved.kt")
|
||||
public void testArraySetPlusAssignUnresolved() throws Exception {
|
||||
runTest("compiler/testData/cfg/arrays/arraySetPlusAssignUnresolved.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("arraySetUnresolved.kt")
|
||||
public void testArraySetUnresolved() throws Exception {
|
||||
runTest("compiler/testData/cfg/arrays/arraySetUnresolved.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfg/basic")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Basic extends AbstractControlFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInBasic() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg/basic"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("Basic.kt")
|
||||
public void testBasic() throws Exception {
|
||||
runTest("compiler/testData/cfg/basic/Basic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("EmptyFunction.kt")
|
||||
public void testEmptyFunction() throws Exception {
|
||||
runTest("compiler/testData/cfg/basic/EmptyFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ShortFunction.kt")
|
||||
public void testShortFunction() throws Exception {
|
||||
runTest("compiler/testData/cfg/basic/ShortFunction.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfg/bugs")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Bugs extends AbstractControlFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInBugs() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg/bugs"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("functionalCallInEnumEntry.kt")
|
||||
public void testFunctionalCallInEnumEntry() throws Exception {
|
||||
runTest("compiler/testData/cfg/bugs/functionalCallInEnumEntry.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jumpToOuterScope.kt")
|
||||
public void testJumpToOuterScope() throws Exception {
|
||||
runTest("compiler/testData/cfg/bugs/jumpToOuterScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt10105.kt")
|
||||
public void testKt10105() throws Exception {
|
||||
runTest("compiler/testData/cfg/bugs/kt10105.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt37447.kt")
|
||||
public void testKt37447() throws Exception {
|
||||
runTest("compiler/testData/cfg/bugs/kt37447.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt7761.kt")
|
||||
public void testKt7761() throws Exception {
|
||||
runTest("compiler/testData/cfg/bugs/kt7761.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("setWithTypeMismatch.kt")
|
||||
public void testSetWithTypeMismatch() throws Exception {
|
||||
runTest("compiler/testData/cfg/bugs/setWithTypeMismatch.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unresolvedInvokeOnResolvedVar.kt")
|
||||
public void testUnresolvedInvokeOnResolvedVar() throws Exception {
|
||||
runTest("compiler/testData/cfg/bugs/unresolvedInvokeOnResolvedVar.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfg/controlStructures")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ControlStructures extends AbstractControlFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInControlStructures() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg/controlStructures"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("breakContinueInTryFinally.kt")
|
||||
public void testBreakContinueInTryFinally() throws Exception {
|
||||
runTest("compiler/testData/cfg/controlStructures/breakContinueInTryFinally.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("breakInsideLocal.kt")
|
||||
public void testBreakInsideLocal() throws Exception {
|
||||
runTest("compiler/testData/cfg/controlStructures/breakInsideLocal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("continueInDoWhile.kt")
|
||||
public void testContinueInDoWhile() throws Exception {
|
||||
runTest("compiler/testData/cfg/controlStructures/continueInDoWhile.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("continueInFor.kt")
|
||||
public void testContinueInFor() throws Exception {
|
||||
runTest("compiler/testData/cfg/controlStructures/continueInFor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("continueInWhile.kt")
|
||||
public void testContinueInWhile() throws Exception {
|
||||
runTest("compiler/testData/cfg/controlStructures/continueInWhile.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Finally.kt")
|
||||
public void testFinally() throws Exception {
|
||||
runTest("compiler/testData/cfg/controlStructures/Finally.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("FinallyTestCopy.kt")
|
||||
public void testFinallyTestCopy() throws Exception {
|
||||
runTest("compiler/testData/cfg/controlStructures/FinallyTestCopy.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("For.kt")
|
||||
public void testFor() throws Exception {
|
||||
runTest("compiler/testData/cfg/controlStructures/For.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("If.kt")
|
||||
public void testIf() throws Exception {
|
||||
runTest("compiler/testData/cfg/controlStructures/If.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("incorrectIndex_After.kt")
|
||||
public void testIncorrectIndex_After() throws Exception {
|
||||
runTest("compiler/testData/cfg/controlStructures/incorrectIndex_After.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("incorrectIndex_Before.kt")
|
||||
public void testIncorrectIndex_Before() throws Exception {
|
||||
runTest("compiler/testData/cfg/controlStructures/incorrectIndex_Before.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InfiniteLoops.kt")
|
||||
public void testInfiniteLoops() throws Exception {
|
||||
runTest("compiler/testData/cfg/controlStructures/InfiniteLoops.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localAndNonlocalReturnsWithFinally.kt")
|
||||
public void testLocalAndNonlocalReturnsWithFinally() throws Exception {
|
||||
runTest("compiler/testData/cfg/controlStructures/localAndNonlocalReturnsWithFinally.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localFunctionInFinally.kt")
|
||||
public void testLocalFunctionInFinally() throws Exception {
|
||||
runTest("compiler/testData/cfg/controlStructures/localFunctionInFinally.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("OnlyWhileInFunctionBody.kt")
|
||||
public void testOnlyWhileInFunctionBody() throws Exception {
|
||||
runTest("compiler/testData/cfg/controlStructures/OnlyWhileInFunctionBody.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("returnsInWhen.kt")
|
||||
public void testReturnsInWhen() throws Exception {
|
||||
runTest("compiler/testData/cfg/controlStructures/returnsInWhen.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("whenConditions.kt")
|
||||
public void testWhenConditions() throws Exception {
|
||||
runTest("compiler/testData/cfg/controlStructures/whenConditions.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("whenExhaustive.kt")
|
||||
public void testWhenExhaustive() throws Exception {
|
||||
runTest("compiler/testData/cfg/controlStructures/whenExhaustive.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfg/conventions")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Conventions extends AbstractControlFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInConventions() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg/conventions"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("bothReceivers.kt")
|
||||
public void testBothReceivers() throws Exception {
|
||||
runTest("compiler/testData/cfg/conventions/bothReceivers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("equals.kt")
|
||||
public void testEquals() throws Exception {
|
||||
runTest("compiler/testData/cfg/conventions/equals.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("incrementAtTheEnd.kt")
|
||||
public void testIncrementAtTheEnd() throws Exception {
|
||||
runTest("compiler/testData/cfg/conventions/incrementAtTheEnd.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invoke.kt")
|
||||
public void testInvoke() throws Exception {
|
||||
runTest("compiler/testData/cfg/conventions/invoke.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("notEqual.kt")
|
||||
public void testNotEqual() throws Exception {
|
||||
runTest("compiler/testData/cfg/conventions/notEqual.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfg/deadCode")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class DeadCode extends AbstractControlFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDeadCode() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg/deadCode"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("DeadCode.kt")
|
||||
public void testDeadCode() throws Exception {
|
||||
runTest("compiler/testData/cfg/deadCode/DeadCode.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("notLocalReturn_after.kt")
|
||||
public void testNotLocalReturn_after() throws Exception {
|
||||
runTest("compiler/testData/cfg/deadCode/notLocalReturn_after.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("notLocalReturn_before.kt")
|
||||
public void testNotLocalReturn_before() throws Exception {
|
||||
runTest("compiler/testData/cfg/deadCode/notLocalReturn_before.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("returnInElvis.kt")
|
||||
public void testReturnInElvis() throws Exception {
|
||||
runTest("compiler/testData/cfg/deadCode/returnInElvis.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("stringTemplate.kt")
|
||||
public void testStringTemplate() throws Exception {
|
||||
runTest("compiler/testData/cfg/deadCode/stringTemplate.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("throwInLambda.kt")
|
||||
public void testThrowInLambda() throws Exception {
|
||||
runTest("compiler/testData/cfg/deadCode/throwInLambda.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfg/declarations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Declarations extends AbstractControlFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDeclarations() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg/declarations"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfg/declarations/classesAndObjects")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ClassesAndObjects extends AbstractControlFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInClassesAndObjects() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg/declarations/classesAndObjects"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("AnonymousInitializers.kt")
|
||||
public void testAnonymousInitializers() throws Exception {
|
||||
runTest("compiler/testData/cfg/declarations/classesAndObjects/AnonymousInitializers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationByExpression.kt")
|
||||
public void testDelegationByExpression() throws Exception {
|
||||
runTest("compiler/testData/cfg/declarations/classesAndObjects/delegationByExpression.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationBySuperCall.kt")
|
||||
public void testDelegationBySuperCall() throws Exception {
|
||||
runTest("compiler/testData/cfg/declarations/classesAndObjects/delegationBySuperCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("EnumEntryRefersCompanion.kt")
|
||||
public void testEnumEntryRefersCompanion() throws Exception {
|
||||
runTest("compiler/testData/cfg/declarations/classesAndObjects/EnumEntryRefersCompanion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ObjectEnumQualifiers.kt")
|
||||
public void testObjectEnumQualifiers() throws Exception {
|
||||
runTest("compiler/testData/cfg/declarations/classesAndObjects/ObjectEnumQualifiers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("QualifierReceiverWithOthers.kt")
|
||||
public void testQualifierReceiverWithOthers() throws Exception {
|
||||
runTest("compiler/testData/cfg/declarations/classesAndObjects/QualifierReceiverWithOthers.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfg/declarations/functionLiterals")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class FunctionLiterals extends AbstractControlFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFunctionLiterals() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg/declarations/functionLiterals"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("unusedFunctionLiteral.kt")
|
||||
public void testUnusedFunctionLiteral() throws Exception {
|
||||
runTest("compiler/testData/cfg/declarations/functionLiterals/unusedFunctionLiteral.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfg/declarations/functions")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Functions extends AbstractControlFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFunctions() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg/declarations/functions"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("anonymousFunctionInBlock.kt")
|
||||
public void testAnonymousFunctionInBlock() throws Exception {
|
||||
runTest("compiler/testData/cfg/declarations/functions/anonymousFunctionInBlock.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("FailFunction.kt")
|
||||
public void testFailFunction() throws Exception {
|
||||
runTest("compiler/testData/cfg/declarations/functions/FailFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionAsExpression.kt")
|
||||
public void testFunctionAsExpression() throws Exception {
|
||||
runTest("compiler/testData/cfg/declarations/functions/functionAsExpression.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("namedFunctionInBlock.kt")
|
||||
public void testNamedFunctionInBlock() throws Exception {
|
||||
runTest("compiler/testData/cfg/declarations/functions/namedFunctionInBlock.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeParameter.kt")
|
||||
public void testTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/cfg/declarations/functions/typeParameter.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfg/declarations/local")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Local extends AbstractControlFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInLocal() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg/declarations/local"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("localClass.kt")
|
||||
public void testLocalClass() throws Exception {
|
||||
runTest("compiler/testData/cfg/declarations/local/localClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("LocalDeclarations.kt")
|
||||
public void testLocalDeclarations() throws Exception {
|
||||
runTest("compiler/testData/cfg/declarations/local/LocalDeclarations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegatedVal.kt")
|
||||
public void testLocalDelegatedVal() throws Exception {
|
||||
runTest("compiler/testData/cfg/declarations/local/localDelegatedVal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localFunction.kt")
|
||||
public void testLocalFunction() throws Exception {
|
||||
runTest("compiler/testData/cfg/declarations/local/localFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localProperty.kt")
|
||||
public void testLocalProperty() throws Exception {
|
||||
runTest("compiler/testData/cfg/declarations/local/localProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ObjectExpression.kt")
|
||||
public void testObjectExpression() throws Exception {
|
||||
runTest("compiler/testData/cfg/declarations/local/ObjectExpression.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfg/declarations/multiDeclaration")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class MultiDeclaration extends AbstractControlFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInMultiDeclaration() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg/declarations/multiDeclaration"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("MultiDecl.kt")
|
||||
public void testMultiDecl() throws Exception {
|
||||
runTest("compiler/testData/cfg/declarations/multiDeclaration/MultiDecl.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multiDeclarationWithError.kt")
|
||||
public void testMultiDeclarationWithError() throws Exception {
|
||||
runTest("compiler/testData/cfg/declarations/multiDeclaration/multiDeclarationWithError.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfg/declarations/properties")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Properties extends AbstractControlFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInProperties() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg/declarations/properties"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("DelegatedProperty.kt")
|
||||
public void testDelegatedProperty() throws Exception {
|
||||
runTest("compiler/testData/cfg/declarations/properties/DelegatedProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unreachableDelegation.kt")
|
||||
public void testUnreachableDelegation() throws Exception {
|
||||
runTest("compiler/testData/cfg/declarations/properties/unreachableDelegation.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfg/expressions")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Expressions extends AbstractControlFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInExpressions() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg/expressions"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("assignmentToThis.kt")
|
||||
public void testAssignmentToThis() throws Exception {
|
||||
runTest("compiler/testData/cfg/expressions/assignmentToThis.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Assignments.kt")
|
||||
public void testAssignments() throws Exception {
|
||||
runTest("compiler/testData/cfg/expressions/Assignments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("callableReferences.kt")
|
||||
public void testCallableReferences() throws Exception {
|
||||
runTest("compiler/testData/cfg/expressions/callableReferences.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("casts.kt")
|
||||
public void testCasts() throws Exception {
|
||||
runTest("compiler/testData/cfg/expressions/casts.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("chainedQualifiedExpression.kt")
|
||||
public void testChainedQualifiedExpression() throws Exception {
|
||||
runTest("compiler/testData/cfg/expressions/chainedQualifiedExpression.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expressionAsFunction.kt")
|
||||
public void testExpressionAsFunction() throws Exception {
|
||||
runTest("compiler/testData/cfg/expressions/expressionAsFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("incdec.kt")
|
||||
public void testIncdec() throws Exception {
|
||||
runTest("compiler/testData/cfg/expressions/incdec.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invalidVariableCall.kt")
|
||||
public void testInvalidVariableCall() throws Exception {
|
||||
runTest("compiler/testData/cfg/expressions/invalidVariableCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("labeledExpression.kt")
|
||||
public void testLabeledExpression() throws Exception {
|
||||
runTest("compiler/testData/cfg/expressions/labeledExpression.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("LazyBooleans.kt")
|
||||
public void testLazyBooleans() throws Exception {
|
||||
runTest("compiler/testData/cfg/expressions/LazyBooleans.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nothingExpr.kt")
|
||||
public void testNothingExpr() throws Exception {
|
||||
runTest("compiler/testData/cfg/expressions/nothingExpr.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parenthesizedSelector.kt")
|
||||
public void testParenthesizedSelector() throws Exception {
|
||||
runTest("compiler/testData/cfg/expressions/parenthesizedSelector.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertySafeCall.kt")
|
||||
public void testPropertySafeCall() throws Exception {
|
||||
runTest("compiler/testData/cfg/expressions/propertySafeCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("qualifiedExpressionWithoutSelector.kt")
|
||||
public void testQualifiedExpressionWithoutSelector() throws Exception {
|
||||
runTest("compiler/testData/cfg/expressions/qualifiedExpressionWithoutSelector.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnFromExpression.kt")
|
||||
public void testReturnFromExpression() throws Exception {
|
||||
runTest("compiler/testData/cfg/expressions/ReturnFromExpression.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("thisExpression.kt")
|
||||
public void testThisExpression() throws Exception {
|
||||
runTest("compiler/testData/cfg/expressions/thisExpression.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unresolvedCall.kt")
|
||||
public void testUnresolvedCall() throws Exception {
|
||||
runTest("compiler/testData/cfg/expressions/unresolvedCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unresolvedCalls.kt")
|
||||
public void testUnresolvedCalls() throws Exception {
|
||||
runTest("compiler/testData/cfg/expressions/unresolvedCalls.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unresolvedCallsWithReceiver.kt")
|
||||
public void testUnresolvedCallsWithReceiver() throws Exception {
|
||||
runTest("compiler/testData/cfg/expressions/unresolvedCallsWithReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unresolvedProperty.kt")
|
||||
public void testUnresolvedProperty() throws Exception {
|
||||
runTest("compiler/testData/cfg/expressions/unresolvedProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unresolvedWriteLHS.kt")
|
||||
public void testUnresolvedWriteLHS() throws Exception {
|
||||
runTest("compiler/testData/cfg/expressions/unresolvedWriteLHS.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsupportedReturns.kt")
|
||||
public void testUnsupportedReturns() throws Exception {
|
||||
runTest("compiler/testData/cfg/expressions/unsupportedReturns.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unusedExpressionSimpleName.kt")
|
||||
public void testUnusedExpressionSimpleName() throws Exception {
|
||||
runTest("compiler/testData/cfg/expressions/unusedExpressionSimpleName.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfg/functions")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Functions extends AbstractControlFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFunctions() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg/functions"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("DefaultValuesForArguments.kt")
|
||||
public void testDefaultValuesForArguments() throws Exception {
|
||||
runTest("compiler/testData/cfg/functions/DefaultValuesForArguments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unmappedArgs.kt")
|
||||
public void testUnmappedArgs() throws Exception {
|
||||
runTest("compiler/testData/cfg/functions/unmappedArgs.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfg/secondaryConstructors")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class SecondaryConstructors extends AbstractControlFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSecondaryConstructors() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg/secondaryConstructors"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("withPrimary.kt")
|
||||
public void testWithPrimary() throws Exception {
|
||||
runTest("compiler/testData/cfg/secondaryConstructors/withPrimary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("withPrimarySuper.kt")
|
||||
public void testWithPrimarySuper() throws Exception {
|
||||
runTest("compiler/testData/cfg/secondaryConstructors/withPrimarySuper.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("withReturn.kt")
|
||||
public void testWithReturn() throws Exception {
|
||||
runTest("compiler/testData/cfg/secondaryConstructors/withReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("withoutPrimary.kt")
|
||||
public void testWithoutPrimary() throws Exception {
|
||||
runTest("compiler/testData/cfg/secondaryConstructors/withoutPrimary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("withoutPrimarySuper.kt")
|
||||
public void testWithoutPrimarySuper() throws Exception {
|
||||
runTest("compiler/testData/cfg/secondaryConstructors/withoutPrimarySuper.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfg/tailCalls")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TailCalls extends AbstractControlFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTailCalls() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg/tailCalls"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("finally.kt")
|
||||
public void testFinally() throws Exception {
|
||||
runTest("compiler/testData/cfg/tailCalls/finally.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("finallyWithReturn.kt")
|
||||
public void testFinallyWithReturn() throws Exception {
|
||||
runTest("compiler/testData/cfg/tailCalls/finallyWithReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("sum.kt")
|
||||
public void testSum() throws Exception {
|
||||
runTest("compiler/testData/cfg/tailCalls/sum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("try.kt")
|
||||
public void testTry() throws Exception {
|
||||
runTest("compiler/testData/cfg/tailCalls/try.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("tryCatchFinally.kt")
|
||||
public void testTryCatchFinally() throws Exception {
|
||||
runTest("compiler/testData/cfg/tailCalls/tryCatchFinally.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfgWithStdLib")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CfgWithStdLib extends AbstractControlFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestWithStdLib, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCfgWithStdLib() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfgWithStdLib"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfgWithStdLib/contracts")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Contracts extends AbstractControlFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestWithStdLib, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInContracts() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfgWithStdLib/contracts"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("labeledReturns.kt")
|
||||
public void testLabeledReturns() throws Exception {
|
||||
runTest("compiler/testData/cfgWithStdLib/contracts/labeledReturns.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonReturningInlinedLambda.kt")
|
||||
public void testNonReturningInlinedLambda() throws Exception {
|
||||
runTest("compiler/testData/cfgWithStdLib/contracts/nonReturningInlinedLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("returnsAndCalls.kt")
|
||||
public void testReturnsAndCalls() throws Exception {
|
||||
runTest("compiler/testData/cfgWithStdLib/contracts/returnsAndCalls.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("safeCallAndInPlaceReturn.kt")
|
||||
public void testSafeCallAndInPlaceReturn() throws Exception {
|
||||
runTest("compiler/testData/cfgWithStdLib/contracts/safeCallAndInPlaceReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("throwIfNotCalled.kt")
|
||||
public void testThrowIfNotCalled() throws Exception {
|
||||
runTest("compiler/testData/cfgWithStdLib/contracts/throwIfNotCalled.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("tryCatchFinally.kt")
|
||||
public void testTryCatchFinally() throws Exception {
|
||||
runTest("compiler/testData/cfgWithStdLib/contracts/tryCatchFinally.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,298 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.cfg;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class DataFlowTestGenerated extends AbstractDataFlowTest {
|
||||
@TestMetadata("compiler/testData/cfg-variables")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Cfg_variables extends AbstractDataFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCfg_variables() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg-variables"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfg-variables/basic")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Basic extends AbstractDataFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInBasic() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg-variables/basic"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("ExhaustiveInitialization.kt")
|
||||
public void testExhaustiveInitialization() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/basic/ExhaustiveInitialization.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("IfWithUninitialized.kt")
|
||||
public void testIfWithUninitialized() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/basic/IfWithUninitialized.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InitializedNotDeclared.kt")
|
||||
public void testInitializedNotDeclared() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/basic/InitializedNotDeclared.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("UsageInFunctionLiteral.kt")
|
||||
public void testUsageInFunctionLiteral() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/basic/UsageInFunctionLiteral.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("UseUninitializedInLambda.kt")
|
||||
public void testUseUninitializedInLambda() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/basic/UseUninitializedInLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("VariablesInitialization.kt")
|
||||
public void testVariablesInitialization() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/basic/VariablesInitialization.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("VariablesUsage.kt")
|
||||
public void testVariablesUsage() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/basic/VariablesUsage.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfg-variables/bugs")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Bugs extends AbstractDataFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInBugs() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg-variables/bugs"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("doWhileAssignment.kt")
|
||||
public void testDoWhileAssignment() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/bugs/doWhileAssignment.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("doWhileNotDefined.kt")
|
||||
public void testDoWhileNotDefined() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/bugs/doWhileNotDefined.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("initializationInLocalClass.kt")
|
||||
public void testInitializationInLocalClass() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/bugs/initializationInLocalClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt10243.kt")
|
||||
public void testKt10243() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/bugs/kt10243.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt4764.kt")
|
||||
public void testKt4764() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/bugs/kt4764.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt5469.kt")
|
||||
public void testKt5469() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/bugs/kt5469.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt9825.kt")
|
||||
public void testKt9825() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/bugs/kt9825.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localObjectInConstructor.kt")
|
||||
public void testLocalObjectInConstructor() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/bugs/localObjectInConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("referenceToPropertyInitializer.kt")
|
||||
public void testReferenceToPropertyInitializer() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/bugs/referenceToPropertyInitializer.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("varInitializationInIf.kt")
|
||||
public void testVarInitializationInIf() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/bugs/varInitializationInIf.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("varInitializationInIfInCycle.kt")
|
||||
public void testVarInitializationInIfInCycle() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/bugs/varInitializationInIfInCycle.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfg-variables/lexicalScopes")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class LexicalScopes extends AbstractDataFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInLexicalScopes() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg-variables/lexicalScopes"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("doWhileScope.kt")
|
||||
public void testDoWhileScope() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/doWhileScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forScope.kt")
|
||||
public void testForScope() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/forScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionLiteralScope.kt")
|
||||
public void testFunctionLiteralScope() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/functionLiteralScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ifScope.kt")
|
||||
public void testIfScope() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/ifScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localClass.kt")
|
||||
public void testLocalClass() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/localClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localFunctionScope.kt")
|
||||
public void testLocalFunctionScope() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/localFunctionScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localFunctionScopeWithoutBody.kt")
|
||||
public void testLocalFunctionScopeWithoutBody() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/localFunctionScopeWithoutBody.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localObject.kt")
|
||||
public void testLocalObject() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/localObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("objectLiteralScope.kt")
|
||||
public void testObjectLiteralScope() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/objectLiteralScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyAccessorScope.kt")
|
||||
public void testPropertyAccessorScope() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/propertyAccessorScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("tryScope.kt")
|
||||
public void testTryScope() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/tryScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("whileScope.kt")
|
||||
public void testWhileScope() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/whileScope.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfgVariablesWithStdLib")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CfgVariablesWithStdLib extends AbstractDataFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestWithStdLib, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCfgVariablesWithStdLib() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfgVariablesWithStdLib"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfgVariablesWithStdLib/contracts")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Contracts extends AbstractDataFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestWithStdLib, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInContracts() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfgVariablesWithStdLib/contracts"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("breakContinuesInInlinedLambda.kt")
|
||||
public void testBreakContinuesInInlinedLambda() throws Exception {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/breakContinuesInInlinedLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlinedLambdaAlwaysThrows.kt")
|
||||
public void testInlinedLambdaAlwaysThrows() throws Exception {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/inlinedLambdaAlwaysThrows.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("irrelevantUnknownClosure.kt")
|
||||
public void testIrrelevantUnknownClosure() throws Exception {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/irrelevantUnknownClosure.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedTryCatchFinally.kt")
|
||||
public void testNestedTryCatchFinally() throws Exception {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/nestedTryCatchFinally.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedTryCatchs.kt")
|
||||
public void testNestedTryCatchs() throws Exception {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/nestedTryCatchs.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonReturningInlinedLambda.kt")
|
||||
public void testNonReturningInlinedLambda() throws Exception {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/nonReturningInlinedLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("returnsAndCalls.kt")
|
||||
public void testReturnsAndCalls() throws Exception {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/returnsAndCalls.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("throwIfNotCalled.kt")
|
||||
public void testThrowIfNotCalled() throws Exception {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/throwIfNotCalled.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("tryCatch.kt")
|
||||
public void testTryCatch() throws Exception {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/tryCatch.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("tryCatchFinally.kt")
|
||||
public void testTryCatchFinally() throws Exception {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/tryCatchFinally.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
-45
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.cfg;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/diagnostics/testWithModifiedMockJdk")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class DiagnosticsWithModifiedMockJdkTestGenerated extends AbstractDiagnosticsWithModifiedMockJdkTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTestWithModifiedMockJdk() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testWithModifiedMockJdk"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("newStringMethods.kt")
|
||||
public void testNewStringMethods() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testWithModifiedMockJdk/newStringMethods.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("notConsideredMethod.kt")
|
||||
public void testNotConsideredMethod() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testWithModifiedMockJdk/notConsideredMethod.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("throwableConstructor.kt")
|
||||
public void testThrowableConstructor() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testWithModifiedMockJdk/throwableConstructor.kt");
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
-55
@@ -1,55 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.checkers;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/diagnostics/nativeTests")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class DiagnosticsNativeTestGenerated extends AbstractDiagnosticsNativeTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInNativeTests() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/nativeTests"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("sharedImmutable.kt")
|
||||
public void testSharedImmutable() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/nativeTests/sharedImmutable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("threadLocal.kt")
|
||||
public void testThreadLocal() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/nativeTests/threadLocal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("throws.kt")
|
||||
public void testThrows() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/nativeTests/throws.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("throwsClash.kt")
|
||||
public void testThrowsClash() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/nativeTests/throwsClash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelSingleton.kt")
|
||||
public void testTopLevelSingleton() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/nativeTests/topLevelSingleton.kt");
|
||||
}
|
||||
}
|
||||
-26162
File diff suppressed because it is too large
Load Diff
-81
@@ -1,81 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.checkers;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/diagnostics/testsWithJsStdLibAndBackendCompilation")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class DiagnosticsTestWithJsStdLibAndBackendCompilationGenerated extends AbstractDiagnosticsTestWithJsStdLibAndBackendCompilation {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTestsWithJsStdLibAndBackendCompilation() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/inline")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Inline extends AbstractDiagnosticsTestWithJsStdLibAndBackendCompilation {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInInline() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/inline"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("recursionCycle.kt")
|
||||
public void testRecursionCycle() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/inline/recursionCycle.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("recursionCycleLambda.kt")
|
||||
public void testRecursionCycleLambda() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/inline/recursionCycleLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("recursionCycleWithPublicFun.kt")
|
||||
public void testRecursionCycleWithPublicFun() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/inline/recursionCycleWithPublicFun.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("recursionCycleWithStdlibCall.kt")
|
||||
public void testRecursionCycleWithStdlibCall() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/inline/recursionCycleWithStdlibCall.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/unsupportedFeatures")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class UnsupportedFeatures extends AbstractDiagnosticsTestWithJsStdLibAndBackendCompilation {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInUnsupportedFeatures() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/unsupportedFeatures"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("annotations.kt")
|
||||
public void testAnnotations() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/unsupportedFeatures/annotations.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
-1126
File diff suppressed because it is too large
Load Diff
Generated
-576
@@ -1,576 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.checkers;
|
||||
|
||||
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/diagnostics/testsWithJvmBackend")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class DiagnosticsTestWithJvmIrBackendGenerated extends AbstractDiagnosticsTestWithJvmIrBackend {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTestsWithJvmBackend() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJvmBackend"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("indirectInlineCycle_ir.kt")
|
||||
public void testIndirectInlineCycle_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/indirectInlineCycle_ir.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineCycle_ir.kt")
|
||||
public void testInlineCycle_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/inlineCycle_ir.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendInlineCycle_ir.kt")
|
||||
public void testSuspendInlineCycle_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/suspendInlineCycle_ir.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class DuplicateJvmSignature extends AbstractDiagnosticsTestWithJvmIrBackend {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDuplicateJvmSignature() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("caseInProperties.kt")
|
||||
public void testCaseInProperties() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/caseInProperties.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("changingNullabilityOfOrdinaryClassIsBinaryCompatibleChange.kt")
|
||||
public void testChangingNullabilityOfOrdinaryClassIsBinaryCompatibleChange() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/changingNullabilityOfOrdinaryClassIsBinaryCompatibleChange.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("vararg.kt")
|
||||
public void testVararg() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/vararg.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class AccidentalOverrides extends AbstractDiagnosticsTestWithJvmIrBackend {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("accidentalOverrideFromGrandparent.kt")
|
||||
public void testAccidentalOverrideFromGrandparent() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides/accidentalOverrideFromGrandparent.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInAccidentalOverrides() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classFunctionOverriddenByProperty.kt")
|
||||
public void testClassFunctionOverriddenByProperty() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classFunctionOverriddenByPropertyInConstructor.kt")
|
||||
public void testClassFunctionOverriddenByPropertyInConstructor() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByPropertyInConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classFunctionOverriddenByPropertyNoGetter.kt")
|
||||
public void testClassFunctionOverriddenByPropertyNoGetter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByPropertyNoGetter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classPropertyOverriddenByFunction.kt")
|
||||
public void testClassPropertyOverriddenByFunction() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides/classPropertyOverriddenByFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultFunction_ir.kt")
|
||||
public void testDefaultFunction_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides/defaultFunction_ir.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegatedFunctionOverriddenByProperty_ir.kt")
|
||||
public void testDelegatedFunctionOverriddenByProperty_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides/delegatedFunctionOverriddenByProperty_ir.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("genericClassFunction.kt")
|
||||
public void testGenericClassFunction() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides/genericClassFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overridesNothing_ir.kt")
|
||||
public void testOverridesNothing_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides/overridesNothing_ir.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overridesNothing_old.kt")
|
||||
public void testOverridesNothing_old() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides/overridesNothing_old.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateClassFunctionOverriddenByProperty.kt")
|
||||
public void testPrivateClassFunctionOverriddenByProperty() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides/privateClassFunctionOverriddenByProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("traitFunctionOverriddenByPropertyNoImpl.kt")
|
||||
public void testTraitFunctionOverriddenByPropertyNoImpl() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides/traitFunctionOverriddenByPropertyNoImpl.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("traitFunctionOverriddenByProperty_ir.kt")
|
||||
public void testTraitFunctionOverriddenByProperty_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides/traitFunctionOverriddenByProperty_ir.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("traitPropertyOverriddenByFunctionNoImpl.kt")
|
||||
public void testTraitPropertyOverriddenByFunctionNoImpl() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides/traitPropertyOverriddenByFunctionNoImpl.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("traitPropertyOverriddenByFunction_ir.kt")
|
||||
public void testTraitPropertyOverriddenByFunction_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides/traitPropertyOverriddenByFunction_ir.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/bridges")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Bridges extends AbstractDiagnosticsTestWithJvmIrBackend {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInBridges() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/bridges"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("class_ir.kt")
|
||||
public void testClass_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/bridges/class_ir.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("fakeOverrideTrait_ir.kt")
|
||||
public void testFakeOverrideTrait_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/bridges/fakeOverrideTrait_ir.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("trait_ir.kt")
|
||||
public void testTrait_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/bridges/trait_ir.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Erasure extends AbstractDiagnosticsTestWithJvmIrBackend {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInErasure() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("clashFromInterfaceAndSuperClass_ir.kt")
|
||||
public void testClashFromInterfaceAndSuperClass_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/clashFromInterfaceAndSuperClass_ir.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("collections.kt")
|
||||
public void testCollections() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/collections.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegateToTwoTraits.kt")
|
||||
public void testDelegateToTwoTraits() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/delegateToTwoTraits.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationAndOwnMethod.kt")
|
||||
public void testDelegationAndOwnMethod() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/delegationAndOwnMethod.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationToTraitImplAndOwnMethod.kt")
|
||||
public void testDelegationToTraitImplAndOwnMethod() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/delegationToTraitImplAndOwnMethod.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionProperties.kt")
|
||||
public void testExtensionProperties() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/extensionProperties.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("genericType.kt")
|
||||
public void testGenericType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/genericType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inheritFromTwoTraits_ir.kt")
|
||||
public void testInheritFromTwoTraits_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/inheritFromTwoTraits_ir.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kotlinAndJavaCollections.kt")
|
||||
public void testKotlinAndJavaCollections() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/kotlinAndJavaCollections.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullableType.kt")
|
||||
public void testNullableType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/nullableType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superTraitAndDelegationToTraitImpl_ir.kt")
|
||||
public void testSuperTraitAndDelegationToTraitImpl_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/superTraitAndDelegationToTraitImpl_ir.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("twoTraitsAndOwnFunction_ir.kt")
|
||||
public void testTwoTraitsAndOwnFunction_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/twoTraitsAndOwnFunction_ir.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeMappedToJava.kt")
|
||||
public void testTypeMappedToJava() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/typeMappedToJava.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeParameter.kt")
|
||||
public void testTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/typeParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeParameterWithBound.kt")
|
||||
public void testTypeParameterWithBound() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/typeParameterWithBound.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeParameterWithTwoBounds.kt")
|
||||
public void testTypeParameterWithTwoBounds() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/typeParameterWithTwoBounds.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeParameterWithTwoBoundsInWhere.kt")
|
||||
public void testTypeParameterWithTwoBoundsInWhere() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/typeParameterWithTwoBoundsInWhere.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/finalMembersFromBuiltIns")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class FinalMembersFromBuiltIns extends AbstractDiagnosticsTestWithJvmIrBackend {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFinalMembersFromBuiltIns() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/finalMembersFromBuiltIns"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("enumMembers.kt")
|
||||
public void testEnumMembers() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/finalMembersFromBuiltIns/enumMembers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("waitNotifyGetClass_ir.kt")
|
||||
public void testWaitNotifyGetClass_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/finalMembersFromBuiltIns/waitNotifyGetClass_ir.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class FunctionAndProperty extends AbstractDiagnosticsTestWithJvmIrBackend {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFunctionAndProperty() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("class.kt")
|
||||
public void testClass() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/class.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classObject.kt")
|
||||
public void testClassObject() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/classObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classPropertyInConstructor.kt")
|
||||
public void testClassPropertyInConstructor() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/classPropertyInConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionFunctionAndNormalFunction.kt")
|
||||
public void testExtensionFunctionAndNormalFunction() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/extensionFunctionAndNormalFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionPropertyAndFunction.kt")
|
||||
public void testExtensionPropertyAndFunction() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/extensionPropertyAndFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionAndSetter.kt")
|
||||
public void testFunctionAndSetter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/functionAndSetter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionAndVar.kt")
|
||||
public void testFunctionAndVar() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/functionAndVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localClass.kt")
|
||||
public void testLocalClass() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/localClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localClassInClass.kt")
|
||||
public void testLocalClassInClass() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/localClassInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedClass.kt")
|
||||
public void testNestedClass() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/nestedClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("object.kt")
|
||||
public void testObject() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/object.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("objectExpression.kt")
|
||||
public void testObjectExpression() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/objectExpression.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("objectExpressionInConstructor.kt")
|
||||
public void testObjectExpressionInConstructor() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/objectExpressionInConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateClassPropertyNoClash.kt")
|
||||
public void testPrivateClassPropertyNoClash() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/privateClassPropertyNoClash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevel.kt")
|
||||
public void testTopLevel() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/topLevel.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelDifferentFiles.kt")
|
||||
public void testTopLevelDifferentFiles() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/topLevelDifferentFiles.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelGetter.kt")
|
||||
public void testTopLevelGetter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/topLevelGetter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("trait_ir.kt")
|
||||
public void testTrait_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/trait_ir.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/specialNames")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class SpecialNames extends AbstractDiagnosticsTestWithJvmIrBackend {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSpecialNames() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/specialNames"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classObjectCopiedField.kt")
|
||||
public void testClassObjectCopiedField() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/specialNames/classObjectCopiedField.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classObjectCopiedFieldObject_ir.kt")
|
||||
public void testClassObjectCopiedFieldObject_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/specialNames/classObjectCopiedFieldObject_ir.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classObject_ir.kt")
|
||||
public void testClassObject_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/specialNames/classObject_ir.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dataClassCopy.kt")
|
||||
public void testDataClassCopy() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/specialNames/dataClassCopy.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaults_ir.kt")
|
||||
public void testDefaults_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/specialNames/defaults_ir.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationBy_ir.kt")
|
||||
public void testDelegationBy_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/specialNames/delegationBy_ir.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("enum.kt")
|
||||
public void testEnum() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/specialNames/enum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClassField_ir.kt")
|
||||
public void testInnerClassField_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/specialNames/innerClassField_ir.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("instance_ir.kt")
|
||||
public void testInstance_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/specialNames/instance_ir.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyMetadataCache_ir.kt")
|
||||
public void testPropertyMetadataCache_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/specialNames/propertyMetadataCache_ir.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/statics")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Statics extends AbstractDiagnosticsTestWithJvmIrBackend {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInStatics() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/statics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("jkjk.kt")
|
||||
public void testJkjk() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/statics/jkjk.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kotlinClassExtendsJavaClass.kt")
|
||||
public void testKotlinClassExtendsJavaClass() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/statics/kotlinClassExtendsJavaClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kotlinClassExtendsJavaClassExtendsJavaClass.kt")
|
||||
public void testKotlinClassExtendsJavaClassExtendsJavaClass() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/statics/kotlinClassExtendsJavaClassExtendsJavaClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kotlinClassImplementsJavaInterface.kt")
|
||||
public void testKotlinClassImplementsJavaInterface() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/statics/kotlinClassImplementsJavaInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kotlinClassImplementsJavaInterfaceExtendsJavaInteface.kt")
|
||||
public void testKotlinClassImplementsJavaInterfaceExtendsJavaInteface() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/statics/kotlinClassImplementsJavaInterfaceExtendsJavaInteface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kotlinMembersVsJavaNonVisibleStatics.kt")
|
||||
public void testKotlinMembersVsJavaNonVisibleStatics() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/statics/kotlinMembersVsJavaNonVisibleStatics.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/synthesized")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Synthesized extends AbstractDiagnosticsTestWithJvmIrBackend {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSynthesized() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/synthesized"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("enumValuesValueOf.kt")
|
||||
public void testEnumValuesValueOf() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/synthesized/enumValuesValueOf.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/traitImpl")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TraitImpl extends AbstractDiagnosticsTestWithJvmIrBackend {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTraitImpl() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/traitImpl"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("defaultVsNonDefault_ir.kt")
|
||||
public void testDefaultVsNonDefault_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/traitImpl/defaultVsNonDefault_ir.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("oneTrait_ir.kt")
|
||||
public void testOneTrait_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/traitImpl/oneTrait_ir.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("traitFunctionOverriddenByPropertyInTrait_ir.kt")
|
||||
public void testTraitFunctionOverriddenByPropertyInTrait_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/traitImpl/traitFunctionOverriddenByPropertyInTrait_ir.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("traitPropertyOverriddenByFunctionInTrait_ir.kt")
|
||||
public void testTraitPropertyOverriddenByFunctionInTrait_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/traitImpl/traitPropertyOverriddenByFunctionInTrait_ir.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("twoTraits_ir.kt")
|
||||
public void testTwoTraits_ir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/traitImpl/twoTraits_ir.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
-566
@@ -1,566 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.checkers;
|
||||
|
||||
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/diagnostics/testsWithJvmBackend")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class DiagnosticsTestWithOldJvmBackendGenerated extends AbstractDiagnosticsTestWithOldJvmBackend {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_OLD, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTestsWithJvmBackend() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJvmBackend"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_OLD, true);
|
||||
}
|
||||
|
||||
@TestMetadata("indirectInlineCycle.kt")
|
||||
public void testIndirectInlineCycle() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/indirectInlineCycle.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineCycle.kt")
|
||||
public void testInlineCycle() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/inlineCycle.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendInlineCycle.kt")
|
||||
public void testSuspendInlineCycle() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/suspendInlineCycle.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class DuplicateJvmSignature extends AbstractDiagnosticsTestWithOldJvmBackend {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_OLD, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDuplicateJvmSignature() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_OLD, true);
|
||||
}
|
||||
|
||||
@TestMetadata("caseInProperties.kt")
|
||||
public void testCaseInProperties() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/caseInProperties.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("changingNullabilityOfOrdinaryClassIsBinaryCompatibleChange.kt")
|
||||
public void testChangingNullabilityOfOrdinaryClassIsBinaryCompatibleChange() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/changingNullabilityOfOrdinaryClassIsBinaryCompatibleChange.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("vararg.kt")
|
||||
public void testVararg() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/vararg.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class AccidentalOverrides extends AbstractDiagnosticsTestWithOldJvmBackend {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_OLD, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("accidentalOverrideFromGrandparent.kt")
|
||||
public void testAccidentalOverrideFromGrandparent() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides/accidentalOverrideFromGrandparent.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInAccidentalOverrides() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_OLD, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classFunctionOverriddenByProperty.kt")
|
||||
public void testClassFunctionOverriddenByProperty() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classFunctionOverriddenByPropertyInConstructor.kt")
|
||||
public void testClassFunctionOverriddenByPropertyInConstructor() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByPropertyInConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classFunctionOverriddenByPropertyNoGetter.kt")
|
||||
public void testClassFunctionOverriddenByPropertyNoGetter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByPropertyNoGetter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classPropertyOverriddenByFunction.kt")
|
||||
public void testClassPropertyOverriddenByFunction() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides/classPropertyOverriddenByFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultFunction_old.kt")
|
||||
public void testDefaultFunction_old() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides/defaultFunction_old.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegatedFunctionOverriddenByProperty_old.kt")
|
||||
public void testDelegatedFunctionOverriddenByProperty_old() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides/delegatedFunctionOverriddenByProperty_old.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("genericClassFunction.kt")
|
||||
public void testGenericClassFunction() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides/genericClassFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateClassFunctionOverriddenByProperty.kt")
|
||||
public void testPrivateClassFunctionOverriddenByProperty() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides/privateClassFunctionOverriddenByProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("traitFunctionOverriddenByPropertyNoImpl.kt")
|
||||
public void testTraitFunctionOverriddenByPropertyNoImpl() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides/traitFunctionOverriddenByPropertyNoImpl.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("traitFunctionOverriddenByProperty_old.kt")
|
||||
public void testTraitFunctionOverriddenByProperty_old() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides/traitFunctionOverriddenByProperty_old.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("traitPropertyOverriddenByFunctionNoImpl.kt")
|
||||
public void testTraitPropertyOverriddenByFunctionNoImpl() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides/traitPropertyOverriddenByFunctionNoImpl.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("traitPropertyOverriddenByFunction_old.kt")
|
||||
public void testTraitPropertyOverriddenByFunction_old() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/accidentalOverrides/traitPropertyOverriddenByFunction_old.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/bridges")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Bridges extends AbstractDiagnosticsTestWithOldJvmBackend {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_OLD, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInBridges() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/bridges"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_OLD, true);
|
||||
}
|
||||
|
||||
@TestMetadata("class_old.kt")
|
||||
public void testClass_old() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/bridges/class_old.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("fakeOverrideTrait_old.kt")
|
||||
public void testFakeOverrideTrait_old() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/bridges/fakeOverrideTrait_old.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("trait_old.kt")
|
||||
public void testTrait_old() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/bridges/trait_old.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Erasure extends AbstractDiagnosticsTestWithOldJvmBackend {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_OLD, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInErasure() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_OLD, true);
|
||||
}
|
||||
|
||||
@TestMetadata("clashFromInterfaceAndSuperClass_old.kt")
|
||||
public void testClashFromInterfaceAndSuperClass_old() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/clashFromInterfaceAndSuperClass_old.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("collections.kt")
|
||||
public void testCollections() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/collections.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegateToTwoTraits.kt")
|
||||
public void testDelegateToTwoTraits() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/delegateToTwoTraits.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationAndOwnMethod.kt")
|
||||
public void testDelegationAndOwnMethod() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/delegationAndOwnMethod.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationToTraitImplAndOwnMethod.kt")
|
||||
public void testDelegationToTraitImplAndOwnMethod() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/delegationToTraitImplAndOwnMethod.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionProperties.kt")
|
||||
public void testExtensionProperties() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/extensionProperties.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("genericType.kt")
|
||||
public void testGenericType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/genericType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inheritFromTwoTraits_old.kt")
|
||||
public void testInheritFromTwoTraits_old() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/inheritFromTwoTraits_old.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kotlinAndJavaCollections.kt")
|
||||
public void testKotlinAndJavaCollections() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/kotlinAndJavaCollections.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullableType.kt")
|
||||
public void testNullableType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/nullableType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superTraitAndDelegationToTraitImpl_old.kt")
|
||||
public void testSuperTraitAndDelegationToTraitImpl_old() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/superTraitAndDelegationToTraitImpl_old.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("twoTraitsAndOwnFunction_old.kt")
|
||||
public void testTwoTraitsAndOwnFunction_old() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/twoTraitsAndOwnFunction_old.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeMappedToJava.kt")
|
||||
public void testTypeMappedToJava() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/typeMappedToJava.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeParameter.kt")
|
||||
public void testTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/typeParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeParameterWithBound.kt")
|
||||
public void testTypeParameterWithBound() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/typeParameterWithBound.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeParameterWithTwoBounds.kt")
|
||||
public void testTypeParameterWithTwoBounds() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/typeParameterWithTwoBounds.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeParameterWithTwoBoundsInWhere.kt")
|
||||
public void testTypeParameterWithTwoBoundsInWhere() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/erasure/typeParameterWithTwoBoundsInWhere.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/finalMembersFromBuiltIns")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class FinalMembersFromBuiltIns extends AbstractDiagnosticsTestWithOldJvmBackend {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_OLD, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFinalMembersFromBuiltIns() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/finalMembersFromBuiltIns"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_OLD, true);
|
||||
}
|
||||
|
||||
@TestMetadata("enumMembers.kt")
|
||||
public void testEnumMembers() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/finalMembersFromBuiltIns/enumMembers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("waitNotifyGetClass_old.kt")
|
||||
public void testWaitNotifyGetClass_old() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/finalMembersFromBuiltIns/waitNotifyGetClass_old.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class FunctionAndProperty extends AbstractDiagnosticsTestWithOldJvmBackend {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_OLD, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFunctionAndProperty() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_OLD, true);
|
||||
}
|
||||
|
||||
@TestMetadata("class.kt")
|
||||
public void testClass() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/class.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classObject.kt")
|
||||
public void testClassObject() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/classObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classPropertyInConstructor.kt")
|
||||
public void testClassPropertyInConstructor() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/classPropertyInConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionFunctionAndNormalFunction.kt")
|
||||
public void testExtensionFunctionAndNormalFunction() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/extensionFunctionAndNormalFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionPropertyAndFunction.kt")
|
||||
public void testExtensionPropertyAndFunction() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/extensionPropertyAndFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionAndSetter.kt")
|
||||
public void testFunctionAndSetter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/functionAndSetter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionAndVar.kt")
|
||||
public void testFunctionAndVar() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/functionAndVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localClass.kt")
|
||||
public void testLocalClass() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/localClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localClassInClass.kt")
|
||||
public void testLocalClassInClass() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/localClassInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedClass.kt")
|
||||
public void testNestedClass() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/nestedClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("object.kt")
|
||||
public void testObject() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/object.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("objectExpression.kt")
|
||||
public void testObjectExpression() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/objectExpression.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("objectExpressionInConstructor.kt")
|
||||
public void testObjectExpressionInConstructor() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/objectExpressionInConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateClassPropertyNoClash.kt")
|
||||
public void testPrivateClassPropertyNoClash() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/privateClassPropertyNoClash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevel.kt")
|
||||
public void testTopLevel() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/topLevel.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelDifferentFiles.kt")
|
||||
public void testTopLevelDifferentFiles() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/topLevelDifferentFiles.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelGetter.kt")
|
||||
public void testTopLevelGetter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/topLevelGetter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("trait_old.kt")
|
||||
public void testTrait_old() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/functionAndProperty/trait_old.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/specialNames")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class SpecialNames extends AbstractDiagnosticsTestWithOldJvmBackend {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_OLD, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSpecialNames() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/specialNames"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_OLD, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classObjectCopiedField.kt")
|
||||
public void testClassObjectCopiedField() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/specialNames/classObjectCopiedField.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classObjectCopiedFieldObject_old.kt")
|
||||
public void testClassObjectCopiedFieldObject_old() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/specialNames/classObjectCopiedFieldObject_old.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classObject_old.kt")
|
||||
public void testClassObject_old() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/specialNames/classObject_old.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dataClassCopy.kt")
|
||||
public void testDataClassCopy() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/specialNames/dataClassCopy.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaults_old.kt")
|
||||
public void testDefaults_old() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/specialNames/defaults_old.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationBy_old.kt")
|
||||
public void testDelegationBy_old() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/specialNames/delegationBy_old.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("enum.kt")
|
||||
public void testEnum() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/specialNames/enum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClassField_old.kt")
|
||||
public void testInnerClassField_old() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/specialNames/innerClassField_old.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("instance_old.kt")
|
||||
public void testInstance_old() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/specialNames/instance_old.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyMetadataCache_old.kt")
|
||||
public void testPropertyMetadataCache_old() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/specialNames/propertyMetadataCache_old.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/statics")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Statics extends AbstractDiagnosticsTestWithOldJvmBackend {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_OLD, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInStatics() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/statics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_OLD, true);
|
||||
}
|
||||
|
||||
@TestMetadata("jkjk.kt")
|
||||
public void testJkjk() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/statics/jkjk.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kotlinClassExtendsJavaClass.kt")
|
||||
public void testKotlinClassExtendsJavaClass() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/statics/kotlinClassExtendsJavaClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kotlinClassExtendsJavaClassExtendsJavaClass.kt")
|
||||
public void testKotlinClassExtendsJavaClassExtendsJavaClass() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/statics/kotlinClassExtendsJavaClassExtendsJavaClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kotlinClassImplementsJavaInterface.kt")
|
||||
public void testKotlinClassImplementsJavaInterface() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/statics/kotlinClassImplementsJavaInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kotlinClassImplementsJavaInterfaceExtendsJavaInteface.kt")
|
||||
public void testKotlinClassImplementsJavaInterfaceExtendsJavaInteface() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/statics/kotlinClassImplementsJavaInterfaceExtendsJavaInteface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kotlinMembersVsJavaNonVisibleStatics.kt")
|
||||
public void testKotlinMembersVsJavaNonVisibleStatics() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/statics/kotlinMembersVsJavaNonVisibleStatics.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/synthesized")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Synthesized extends AbstractDiagnosticsTestWithOldJvmBackend {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_OLD, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSynthesized() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/synthesized"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_OLD, true);
|
||||
}
|
||||
|
||||
@TestMetadata("enumValuesValueOf.kt")
|
||||
public void testEnumValuesValueOf() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/synthesized/enumValuesValueOf.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/traitImpl")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TraitImpl extends AbstractDiagnosticsTestWithOldJvmBackend {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_OLD, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTraitImpl() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/traitImpl"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_OLD, true);
|
||||
}
|
||||
|
||||
@TestMetadata("defaultVsNonDefault_old.kt")
|
||||
public void testDefaultVsNonDefault_old() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/traitImpl/defaultVsNonDefault_old.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("oneTrait_old.kt")
|
||||
public void testOneTrait_old() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/traitImpl/oneTrait_old.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("traitFunctionOverriddenByPropertyInTrait_old.kt")
|
||||
public void testTraitFunctionOverriddenByPropertyInTrait_old() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/traitImpl/traitFunctionOverriddenByPropertyInTrait_old.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("traitPropertyOverriddenByFunctionInTrait_old.kt")
|
||||
public void testTraitPropertyOverriddenByFunctionInTrait_old() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/traitImpl/traitPropertyOverriddenByFunctionInTrait_old.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("twoTraits_old.kt")
|
||||
public void testTwoTraits_old() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/traitImpl/twoTraits_old.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
-4349
File diff suppressed because it is too large
Load Diff
-80
@@ -1,80 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.checkers;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/diagnostics/testsWithExplicitApi")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class DiagnosticsWithExplicitApiGenerated extends AbstractDiagnosticsWithExplicitApi {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTestsWithExplicitApi() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithExplicitApi"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("annotations.kt")
|
||||
public void testAnnotations() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithExplicitApi/annotations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classes.kt")
|
||||
public void testClasses() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithExplicitApi/classes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("companionObject.kt")
|
||||
public void testCompanionObject() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithExplicitApi/companionObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constructors.kt")
|
||||
public void testConstructors() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithExplicitApi/constructors.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClasses.kt")
|
||||
public void testInlineClasses() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithExplicitApi/inlineClasses.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("interfaces.kt")
|
||||
public void testInterfaces() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithExplicitApi/interfaces.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mustBeEffectivelyPublic.kt")
|
||||
public void testMustBeEffectivelyPublic() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithExplicitApi/mustBeEffectivelyPublic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("properties.kt")
|
||||
public void testProperties() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithExplicitApi/properties.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("publishedApi.kt")
|
||||
public void testPublishedApi() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithExplicitApi/publishedApi.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("toplevel.kt")
|
||||
public void testToplevel() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithExplicitApi/toplevel.kt");
|
||||
}
|
||||
}
|
||||
-35
@@ -1,35 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.checkers;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/diagnostics/testsWithJava9")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class DiagnosticsWithJdk9TestGenerated extends AbstractDiagnosticsWithJdk9Test {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTestsWithJava9() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJava9"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("kt11167.kt")
|
||||
public void testKt11167() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJava9/kt11167.kt");
|
||||
}
|
||||
}
|
||||
-128
@@ -1,128 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.checkers;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/diagnostics/testsWithUnsignedTypes")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class DiagnosticsWithUnsignedTypesGenerated extends AbstractDiagnosticsWithUnsignedTypes {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTestsWithUnsignedTypes() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithUnsignedTypes"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("allowedVarargsOfUnsignedTypes.kt")
|
||||
public void testAllowedVarargsOfUnsignedTypes() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithUnsignedTypes/allowedVarargsOfUnsignedTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("callDefaultConstructorOfUnsignedType.kt")
|
||||
public void testCallDefaultConstructorOfUnsignedType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithUnsignedTypes/callDefaultConstructorOfUnsignedType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("explicitUnsignedLongTypeCheck.kt")
|
||||
public void testExplicitUnsignedLongTypeCheck() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithUnsignedTypes/explicitUnsignedLongTypeCheck.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forbiddenEqualsOnUnsignedTypes.kt")
|
||||
public void testForbiddenEqualsOnUnsignedTypes() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithUnsignedTypes/forbiddenEqualsOnUnsignedTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lateinitUnsignedType.kt")
|
||||
public void testLateinitUnsignedType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithUnsignedTypes/lateinitUnsignedType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overloadResolutionOfBasicOperations.kt")
|
||||
public void testOverloadResolutionOfBasicOperations() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithUnsignedTypes/overloadResolutionOfBasicOperations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedLiteralsInsideConstVals.kt")
|
||||
public void testUnsignedLiteralsInsideConstVals() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithUnsignedTypes/unsignedLiteralsInsideConstVals.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedLiteralsOn1_2.kt")
|
||||
public void testUnsignedLiteralsOn1_2() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithUnsignedTypes/unsignedLiteralsOn1_2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedLiteralsOverflowSignedBorder.kt")
|
||||
public void testUnsignedLiteralsOverflowSignedBorder() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithUnsignedTypes/unsignedLiteralsOverflowSignedBorder.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedLiteralsTypeCheck.kt")
|
||||
public void testUnsignedLiteralsTypeCheck() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithUnsignedTypes/unsignedLiteralsTypeCheck.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("varargTypeToArrayTypeCheck.kt")
|
||||
public void testVarargTypeToArrayTypeCheck() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithUnsignedTypes/varargTypeToArrayTypeCheck.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("wrongLongSuffixForULong.kt")
|
||||
public void testWrongLongSuffixForULong() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithUnsignedTypes/wrongLongSuffixForULong.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithUnsignedTypes/conversions")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Conversions extends AbstractDiagnosticsWithUnsignedTypes {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInConversions() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithUnsignedTypes/conversions"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("conversionOfSignedToUnsigned.kt")
|
||||
public void testConversionOfSignedToUnsigned() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithUnsignedTypes/conversions/conversionOfSignedToUnsigned.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inferenceForSignedAndUnsignedTypes.kt")
|
||||
public void testInferenceForSignedAndUnsignedTypes() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithUnsignedTypes/conversions/inferenceForSignedAndUnsignedTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noConversionForUnsignedTypesOnReceiver.kt")
|
||||
public void testNoConversionForUnsignedTypesOnReceiver() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithUnsignedTypes/conversions/noConversionForUnsignedTypesOnReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overloadResolutionForSignedAndUnsignedTypes.kt")
|
||||
public void testOverloadResolutionForSignedAndUnsignedTypes() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithUnsignedTypes/conversions/overloadResolutionForSignedAndUnsignedTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("signedToUnsignedConversionWithExpectedType.kt")
|
||||
public void testSignedToUnsignedConversionWithExpectedType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithUnsignedTypes/conversions/signedToUnsignedConversionWithExpectedType.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
-497
@@ -1,497 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.checkers;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/foreignAnnotations/tests")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class ForeignAnnotationsNoAnnotationInClasspathTestGenerated extends AbstractForeignAnnotationsNoAnnotationInClasspathTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTests() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("androidRecently.kt")
|
||||
public void testAndroidRecently() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/androidRecently.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("androidSdk.kt")
|
||||
public void testAndroidSdk() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/androidSdk.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("android_support.kt")
|
||||
public void testAndroid_support() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/android_support.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("androidx.kt")
|
||||
public void testAndroidx() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/androidx.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("aosp.kt")
|
||||
public void testAosp() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/aosp.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("checkerFramework.kt")
|
||||
public void testCheckerFramework() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/checkerFramework.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("eclipse.kt")
|
||||
public void testEclipse() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/eclipse.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("findBugsSimple.kt")
|
||||
public void testFindBugsSimple() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/findBugsSimple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("irrelevantQualifierNicknames.kt")
|
||||
public void testIrrelevantQualifierNicknames() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/irrelevantQualifierNicknames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lombokSimple.kt")
|
||||
public void testLombokSimple() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/lombokSimple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("rxjava.kt")
|
||||
public void testRxjava() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/rxjava.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Jsr305 extends AbstractForeignAnnotationsNoAnnotationInClasspathTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJsr305() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("nonNullNever.kt")
|
||||
public void testNonNullNever() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nonNullNever.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullabilityNicknames.kt")
|
||||
public void testNullabilityNicknames() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityNicknames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("strange.kt")
|
||||
public void testStrange() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/strange.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305/ignore")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Ignore extends AbstractForeignAnnotationsNoAnnotationInClasspathTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInIgnore() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305/ignore"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("parametersAreNonnullByDefault.kt")
|
||||
public void testParametersAreNonnullByDefault() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/ignore/parametersAreNonnullByDefault.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class NullabilityWarnings extends AbstractForeignAnnotationsNoAnnotationInClasspathTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInNullabilityWarnings() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("elvis.kt")
|
||||
public void testElvis() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/elvis.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localInference.kt")
|
||||
public void testLocalInference() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/localInference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullabilityGenerics.kt")
|
||||
public void testNullabilityGenerics() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/nullabilityGenerics.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullabilityNicknames.kt")
|
||||
public void testNullabilityNicknames() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/nullabilityNicknames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("safeCalls.kt")
|
||||
public void testSafeCalls() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/safeCalls.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("strange.kt")
|
||||
public void testStrange() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/strange.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class FromPlatformTypes extends AbstractForeignAnnotationsNoAnnotationInClasspathTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFromPlatformTypes() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("arithmetic.kt")
|
||||
public void testArithmetic() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/arithmetic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("array.kt")
|
||||
public void testArray() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/array.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("assignToVar.kt")
|
||||
public void testAssignToVar() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/assignToVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("conditions.kt")
|
||||
public void testConditions() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/conditions.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dataFlowInfo.kt")
|
||||
public void testDataFlowInfo() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/dataFlowInfo.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultParameters.kt")
|
||||
public void testDefaultParameters() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/defaultParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegatedProperties.kt")
|
||||
public void testDelegatedProperties() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/delegatedProperties.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegation.kt")
|
||||
public void testDelegation() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/delegation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("derefenceExtension.kt")
|
||||
public void testDerefenceExtension() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/derefenceExtension.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("derefenceMember.kt")
|
||||
public void testDerefenceMember() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/derefenceMember.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectedType.kt")
|
||||
public void testExpectedType() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/expectedType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("for.kt")
|
||||
public void testFor() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/for.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionArguments.kt")
|
||||
public void testFunctionArguments() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/functionArguments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invoke.kt")
|
||||
public void testInvoke() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/invoke.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt6829.kt")
|
||||
public void testKt6829() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/kt6829.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multiDeclaration.kt")
|
||||
public void testMultiDeclaration() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/multiDeclaration.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("passToJava.kt")
|
||||
public void testPassToJava() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/passToJava.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("primitiveArray.kt")
|
||||
public void testPrimitiveArray() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/primitiveArray.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("throw.kt")
|
||||
public void testThrow() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/throw.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("uselessElvisRightIsNull.kt")
|
||||
public void testUselessElvisRightIsNull() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/uselessElvisRightIsNull.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TypeQualifierDefault extends AbstractForeignAnnotationsNoAnnotationInClasspathTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTypeQualifierDefault() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("equalsOnNonNull.kt")
|
||||
public void testEqualsOnNonNull() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/equalsOnNonNull.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("fieldsAreNullable.kt")
|
||||
public void testFieldsAreNullable() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/fieldsAreNullable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullabilityFromOverridden.kt")
|
||||
public void testNullabilityFromOverridden() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/nullabilityFromOverridden.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overridingDefaultQualifier.kt")
|
||||
public void testOverridingDefaultQualifier() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/overridingDefaultQualifier.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parametersAreNonnullByDefault.kt")
|
||||
public void testParametersAreNonnullByDefault() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/parametersAreNonnullByDefault.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parametersAreNonnullByDefaultPackage.kt")
|
||||
public void testParametersAreNonnullByDefaultPackage() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/parametersAreNonnullByDefaultPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("springNullable.kt")
|
||||
public void testSpringNullable() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/springNullable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("springNullablePackage.kt")
|
||||
public void testSpringNullablePackage() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/springNullablePackage.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TypeQualifierDefault extends AbstractForeignAnnotationsNoAnnotationInClasspathTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTypeQualifierDefault() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("fieldsAreNullable.kt")
|
||||
public void testFieldsAreNullable() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/fieldsAreNullable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forceFlexibility.kt")
|
||||
public void testForceFlexibility() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/forceFlexibility.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forceFlexibleOverOverrides.kt")
|
||||
public void testForceFlexibleOverOverrides() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/forceFlexibleOverOverrides.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullabilityFromOverridden.kt")
|
||||
public void testNullabilityFromOverridden() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/nullabilityFromOverridden.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overridingDefaultQualifier.kt")
|
||||
public void testOverridingDefaultQualifier() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/overridingDefaultQualifier.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parametersAreNonnullByDefault.kt")
|
||||
public void testParametersAreNonnullByDefault() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/parametersAreNonnullByDefault.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parametersAreNonnullByDefaultPackage.kt")
|
||||
public void testParametersAreNonnullByDefaultPackage() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/parametersAreNonnullByDefaultPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("springNullable.kt")
|
||||
public void testSpringNullable() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/springNullable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("springNullablePackage.kt")
|
||||
public void testSpringNullablePackage() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/springNullablePackage.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Jsr305NullabilityWarnings extends AbstractForeignAnnotationsNoAnnotationInClasspathTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJsr305NullabilityWarnings() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Migration extends AbstractForeignAnnotationsNoAnnotationInClasspathTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInMigration() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("customMigration.kt")
|
||||
public void testCustomMigration() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/customMigration.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("globalIgnore.kt")
|
||||
public void testGlobalIgnore() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/globalIgnore.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("globalWarningMigrationIgnore.kt")
|
||||
public void testGlobalWarningMigrationIgnore() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/globalWarningMigrationIgnore.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("migrationError.kt")
|
||||
public void testMigrationError() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/migrationError.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("migrationIgnore.kt")
|
||||
public void testMigrationIgnore() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/migrationIgnore.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("migrationWarning.kt")
|
||||
public void testMigrationWarning() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/migrationWarning.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overrideConflicts.kt")
|
||||
public void testOverrideConflicts() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/overrideConflicts.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("specialCollision.kt")
|
||||
public void testSpecialCollision() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/specialCollision.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("stateRefinement.kt")
|
||||
public void testStateRefinement() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/stateRefinement.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/typeQualifierDefault")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TypeQualifierDefault extends AbstractForeignAnnotationsNoAnnotationInClasspathTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTypeQualifierDefault() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/typeQualifierDefault"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("defaultAndNicknameMigrationPolicy.kt")
|
||||
public void testDefaultAndNicknameMigrationPolicy() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/typeQualifierDefault/defaultAndNicknameMigrationPolicy.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
-497
@@ -1,497 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.checkers;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/foreignAnnotations/tests")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class ForeignAnnotationsNoAnnotationInClasspathWithPsiClassReadingTestGenerated extends AbstractForeignAnnotationsNoAnnotationInClasspathWithPsiClassReadingTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTests() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("androidRecently.kt")
|
||||
public void testAndroidRecently() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/androidRecently.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("androidSdk.kt")
|
||||
public void testAndroidSdk() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/androidSdk.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("android_support.kt")
|
||||
public void testAndroid_support() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/android_support.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("androidx.kt")
|
||||
public void testAndroidx() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/androidx.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("aosp.kt")
|
||||
public void testAosp() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/aosp.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("checkerFramework.kt")
|
||||
public void testCheckerFramework() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/checkerFramework.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("eclipse.kt")
|
||||
public void testEclipse() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/eclipse.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("findBugsSimple.kt")
|
||||
public void testFindBugsSimple() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/findBugsSimple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("irrelevantQualifierNicknames.kt")
|
||||
public void testIrrelevantQualifierNicknames() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/irrelevantQualifierNicknames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lombokSimple.kt")
|
||||
public void testLombokSimple() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/lombokSimple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("rxjava.kt")
|
||||
public void testRxjava() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/rxjava.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Jsr305 extends AbstractForeignAnnotationsNoAnnotationInClasspathWithPsiClassReadingTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJsr305() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("nonNullNever.kt")
|
||||
public void testNonNullNever() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nonNullNever.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullabilityNicknames.kt")
|
||||
public void testNullabilityNicknames() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityNicknames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("strange.kt")
|
||||
public void testStrange() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/strange.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305/ignore")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Ignore extends AbstractForeignAnnotationsNoAnnotationInClasspathWithPsiClassReadingTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInIgnore() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305/ignore"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("parametersAreNonnullByDefault.kt")
|
||||
public void testParametersAreNonnullByDefault() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/ignore/parametersAreNonnullByDefault.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class NullabilityWarnings extends AbstractForeignAnnotationsNoAnnotationInClasspathWithPsiClassReadingTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInNullabilityWarnings() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("elvis.kt")
|
||||
public void testElvis() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/elvis.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localInference.kt")
|
||||
public void testLocalInference() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/localInference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullabilityGenerics.kt")
|
||||
public void testNullabilityGenerics() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/nullabilityGenerics.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullabilityNicknames.kt")
|
||||
public void testNullabilityNicknames() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/nullabilityNicknames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("safeCalls.kt")
|
||||
public void testSafeCalls() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/safeCalls.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("strange.kt")
|
||||
public void testStrange() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/strange.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class FromPlatformTypes extends AbstractForeignAnnotationsNoAnnotationInClasspathWithPsiClassReadingTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFromPlatformTypes() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("arithmetic.kt")
|
||||
public void testArithmetic() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/arithmetic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("array.kt")
|
||||
public void testArray() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/array.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("assignToVar.kt")
|
||||
public void testAssignToVar() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/assignToVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("conditions.kt")
|
||||
public void testConditions() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/conditions.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dataFlowInfo.kt")
|
||||
public void testDataFlowInfo() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/dataFlowInfo.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultParameters.kt")
|
||||
public void testDefaultParameters() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/defaultParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegatedProperties.kt")
|
||||
public void testDelegatedProperties() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/delegatedProperties.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegation.kt")
|
||||
public void testDelegation() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/delegation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("derefenceExtension.kt")
|
||||
public void testDerefenceExtension() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/derefenceExtension.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("derefenceMember.kt")
|
||||
public void testDerefenceMember() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/derefenceMember.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectedType.kt")
|
||||
public void testExpectedType() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/expectedType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("for.kt")
|
||||
public void testFor() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/for.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionArguments.kt")
|
||||
public void testFunctionArguments() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/functionArguments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invoke.kt")
|
||||
public void testInvoke() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/invoke.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt6829.kt")
|
||||
public void testKt6829() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/kt6829.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multiDeclaration.kt")
|
||||
public void testMultiDeclaration() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/multiDeclaration.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("passToJava.kt")
|
||||
public void testPassToJava() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/passToJava.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("primitiveArray.kt")
|
||||
public void testPrimitiveArray() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/primitiveArray.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("throw.kt")
|
||||
public void testThrow() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/throw.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("uselessElvisRightIsNull.kt")
|
||||
public void testUselessElvisRightIsNull() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/uselessElvisRightIsNull.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TypeQualifierDefault extends AbstractForeignAnnotationsNoAnnotationInClasspathWithPsiClassReadingTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTypeQualifierDefault() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("equalsOnNonNull.kt")
|
||||
public void testEqualsOnNonNull() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/equalsOnNonNull.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("fieldsAreNullable.kt")
|
||||
public void testFieldsAreNullable() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/fieldsAreNullable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullabilityFromOverridden.kt")
|
||||
public void testNullabilityFromOverridden() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/nullabilityFromOverridden.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overridingDefaultQualifier.kt")
|
||||
public void testOverridingDefaultQualifier() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/overridingDefaultQualifier.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parametersAreNonnullByDefault.kt")
|
||||
public void testParametersAreNonnullByDefault() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/parametersAreNonnullByDefault.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parametersAreNonnullByDefaultPackage.kt")
|
||||
public void testParametersAreNonnullByDefaultPackage() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/parametersAreNonnullByDefaultPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("springNullable.kt")
|
||||
public void testSpringNullable() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/springNullable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("springNullablePackage.kt")
|
||||
public void testSpringNullablePackage() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/springNullablePackage.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TypeQualifierDefault extends AbstractForeignAnnotationsNoAnnotationInClasspathWithPsiClassReadingTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTypeQualifierDefault() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("fieldsAreNullable.kt")
|
||||
public void testFieldsAreNullable() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/fieldsAreNullable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forceFlexibility.kt")
|
||||
public void testForceFlexibility() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/forceFlexibility.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forceFlexibleOverOverrides.kt")
|
||||
public void testForceFlexibleOverOverrides() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/forceFlexibleOverOverrides.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullabilityFromOverridden.kt")
|
||||
public void testNullabilityFromOverridden() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/nullabilityFromOverridden.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overridingDefaultQualifier.kt")
|
||||
public void testOverridingDefaultQualifier() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/overridingDefaultQualifier.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parametersAreNonnullByDefault.kt")
|
||||
public void testParametersAreNonnullByDefault() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/parametersAreNonnullByDefault.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parametersAreNonnullByDefaultPackage.kt")
|
||||
public void testParametersAreNonnullByDefaultPackage() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/parametersAreNonnullByDefaultPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("springNullable.kt")
|
||||
public void testSpringNullable() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/springNullable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("springNullablePackage.kt")
|
||||
public void testSpringNullablePackage() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/springNullablePackage.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Jsr305NullabilityWarnings extends AbstractForeignAnnotationsNoAnnotationInClasspathWithPsiClassReadingTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJsr305NullabilityWarnings() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Migration extends AbstractForeignAnnotationsNoAnnotationInClasspathWithPsiClassReadingTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInMigration() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("customMigration.kt")
|
||||
public void testCustomMigration() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/customMigration.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("globalIgnore.kt")
|
||||
public void testGlobalIgnore() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/globalIgnore.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("globalWarningMigrationIgnore.kt")
|
||||
public void testGlobalWarningMigrationIgnore() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/globalWarningMigrationIgnore.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("migrationError.kt")
|
||||
public void testMigrationError() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/migrationError.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("migrationIgnore.kt")
|
||||
public void testMigrationIgnore() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/migrationIgnore.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("migrationWarning.kt")
|
||||
public void testMigrationWarning() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/migrationWarning.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overrideConflicts.kt")
|
||||
public void testOverrideConflicts() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/overrideConflicts.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("specialCollision.kt")
|
||||
public void testSpecialCollision() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/specialCollision.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("stateRefinement.kt")
|
||||
public void testStateRefinement() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/stateRefinement.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/typeQualifierDefault")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TypeQualifierDefault extends AbstractForeignAnnotationsNoAnnotationInClasspathWithPsiClassReadingTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTypeQualifierDefault() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/typeQualifierDefault"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("defaultAndNicknameMigrationPolicy.kt")
|
||||
public void testDefaultAndNicknameMigrationPolicy() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/typeQualifierDefault/defaultAndNicknameMigrationPolicy.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
-497
@@ -1,497 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.checkers;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/foreignAnnotations/tests")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class ForeignAnnotationsTestGenerated extends AbstractForeignAnnotationsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTests() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("androidRecently.kt")
|
||||
public void testAndroidRecently() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/androidRecently.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("androidSdk.kt")
|
||||
public void testAndroidSdk() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/androidSdk.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("android_support.kt")
|
||||
public void testAndroid_support() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/android_support.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("androidx.kt")
|
||||
public void testAndroidx() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/androidx.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("aosp.kt")
|
||||
public void testAosp() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/aosp.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("checkerFramework.kt")
|
||||
public void testCheckerFramework() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/checkerFramework.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("eclipse.kt")
|
||||
public void testEclipse() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/eclipse.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("findBugsSimple.kt")
|
||||
public void testFindBugsSimple() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/findBugsSimple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("irrelevantQualifierNicknames.kt")
|
||||
public void testIrrelevantQualifierNicknames() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/irrelevantQualifierNicknames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lombokSimple.kt")
|
||||
public void testLombokSimple() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/lombokSimple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("rxjava.kt")
|
||||
public void testRxjava() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/rxjava.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Jsr305 extends AbstractForeignAnnotationsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJsr305() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("nonNullNever.kt")
|
||||
public void testNonNullNever() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nonNullNever.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullabilityNicknames.kt")
|
||||
public void testNullabilityNicknames() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityNicknames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("strange.kt")
|
||||
public void testStrange() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/strange.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305/ignore")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Ignore extends AbstractForeignAnnotationsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInIgnore() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305/ignore"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("parametersAreNonnullByDefault.kt")
|
||||
public void testParametersAreNonnullByDefault() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/ignore/parametersAreNonnullByDefault.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class NullabilityWarnings extends AbstractForeignAnnotationsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInNullabilityWarnings() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("elvis.kt")
|
||||
public void testElvis() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/elvis.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localInference.kt")
|
||||
public void testLocalInference() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/localInference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullabilityGenerics.kt")
|
||||
public void testNullabilityGenerics() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/nullabilityGenerics.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullabilityNicknames.kt")
|
||||
public void testNullabilityNicknames() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/nullabilityNicknames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("safeCalls.kt")
|
||||
public void testSafeCalls() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/safeCalls.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("strange.kt")
|
||||
public void testStrange() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/strange.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class FromPlatformTypes extends AbstractForeignAnnotationsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFromPlatformTypes() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("arithmetic.kt")
|
||||
public void testArithmetic() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/arithmetic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("array.kt")
|
||||
public void testArray() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/array.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("assignToVar.kt")
|
||||
public void testAssignToVar() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/assignToVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("conditions.kt")
|
||||
public void testConditions() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/conditions.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dataFlowInfo.kt")
|
||||
public void testDataFlowInfo() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/dataFlowInfo.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultParameters.kt")
|
||||
public void testDefaultParameters() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/defaultParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegatedProperties.kt")
|
||||
public void testDelegatedProperties() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/delegatedProperties.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegation.kt")
|
||||
public void testDelegation() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/delegation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("derefenceExtension.kt")
|
||||
public void testDerefenceExtension() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/derefenceExtension.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("derefenceMember.kt")
|
||||
public void testDerefenceMember() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/derefenceMember.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectedType.kt")
|
||||
public void testExpectedType() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/expectedType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("for.kt")
|
||||
public void testFor() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/for.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionArguments.kt")
|
||||
public void testFunctionArguments() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/functionArguments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invoke.kt")
|
||||
public void testInvoke() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/invoke.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt6829.kt")
|
||||
public void testKt6829() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/kt6829.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multiDeclaration.kt")
|
||||
public void testMultiDeclaration() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/multiDeclaration.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("passToJava.kt")
|
||||
public void testPassToJava() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/passToJava.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("primitiveArray.kt")
|
||||
public void testPrimitiveArray() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/primitiveArray.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("throw.kt")
|
||||
public void testThrow() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/throw.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("uselessElvisRightIsNull.kt")
|
||||
public void testUselessElvisRightIsNull() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/uselessElvisRightIsNull.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TypeQualifierDefault extends AbstractForeignAnnotationsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTypeQualifierDefault() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("equalsOnNonNull.kt")
|
||||
public void testEqualsOnNonNull() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/equalsOnNonNull.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("fieldsAreNullable.kt")
|
||||
public void testFieldsAreNullable() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/fieldsAreNullable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullabilityFromOverridden.kt")
|
||||
public void testNullabilityFromOverridden() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/nullabilityFromOverridden.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overridingDefaultQualifier.kt")
|
||||
public void testOverridingDefaultQualifier() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/overridingDefaultQualifier.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parametersAreNonnullByDefault.kt")
|
||||
public void testParametersAreNonnullByDefault() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/parametersAreNonnullByDefault.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parametersAreNonnullByDefaultPackage.kt")
|
||||
public void testParametersAreNonnullByDefaultPackage() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/parametersAreNonnullByDefaultPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("springNullable.kt")
|
||||
public void testSpringNullable() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/springNullable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("springNullablePackage.kt")
|
||||
public void testSpringNullablePackage() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/springNullablePackage.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TypeQualifierDefault extends AbstractForeignAnnotationsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTypeQualifierDefault() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("fieldsAreNullable.kt")
|
||||
public void testFieldsAreNullable() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/fieldsAreNullable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forceFlexibility.kt")
|
||||
public void testForceFlexibility() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/forceFlexibility.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forceFlexibleOverOverrides.kt")
|
||||
public void testForceFlexibleOverOverrides() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/forceFlexibleOverOverrides.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullabilityFromOverridden.kt")
|
||||
public void testNullabilityFromOverridden() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/nullabilityFromOverridden.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overridingDefaultQualifier.kt")
|
||||
public void testOverridingDefaultQualifier() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/overridingDefaultQualifier.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parametersAreNonnullByDefault.kt")
|
||||
public void testParametersAreNonnullByDefault() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/parametersAreNonnullByDefault.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parametersAreNonnullByDefaultPackage.kt")
|
||||
public void testParametersAreNonnullByDefaultPackage() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/parametersAreNonnullByDefaultPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("springNullable.kt")
|
||||
public void testSpringNullable() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/springNullable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("springNullablePackage.kt")
|
||||
public void testSpringNullablePackage() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/springNullablePackage.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Jsr305NullabilityWarnings extends AbstractForeignAnnotationsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJsr305NullabilityWarnings() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Migration extends AbstractForeignAnnotationsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInMigration() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("customMigration.kt")
|
||||
public void testCustomMigration() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/customMigration.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("globalIgnore.kt")
|
||||
public void testGlobalIgnore() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/globalIgnore.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("globalWarningMigrationIgnore.kt")
|
||||
public void testGlobalWarningMigrationIgnore() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/globalWarningMigrationIgnore.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("migrationError.kt")
|
||||
public void testMigrationError() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/migrationError.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("migrationIgnore.kt")
|
||||
public void testMigrationIgnore() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/migrationIgnore.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("migrationWarning.kt")
|
||||
public void testMigrationWarning() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/migrationWarning.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overrideConflicts.kt")
|
||||
public void testOverrideConflicts() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/overrideConflicts.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("specialCollision.kt")
|
||||
public void testSpecialCollision() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/specialCollision.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("stateRefinement.kt")
|
||||
public void testStateRefinement() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/stateRefinement.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/typeQualifierDefault")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TypeQualifierDefault extends AbstractForeignAnnotationsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTypeQualifierDefault() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/typeQualifierDefault"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("defaultAndNicknameMigrationPolicy.kt")
|
||||
public void testDefaultAndNicknameMigrationPolicy() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/typeQualifierDefault/defaultAndNicknameMigrationPolicy.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsTestWithStdLibUsingJavacGenerated.java
Generated
-4349
File diff suppressed because it is too large
Load Diff
Generated
-26082
File diff suppressed because it is too large
Load Diff
-736
@@ -1,736 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.checkers.javac;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class JavacDiagnosticsTestGenerated extends AbstractJavacDiagnosticsTest {
|
||||
@TestMetadata("compiler/testData/javac/diagnostics/tests")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Tests extends AbstractJavacDiagnosticsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTests() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/javac/diagnostics/tests"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("Annotations.kt")
|
||||
public void testAnnotations() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/Annotations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/javac/diagnostics/tests/imports")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Imports extends AbstractJavacDiagnosticsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInImports() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/javac/diagnostics/tests/imports"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("AllUnderImportsAmbiguity.kt")
|
||||
public void testAllUnderImportsAmbiguity() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/AllUnderImportsAmbiguity.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AllUnderImportsLessPriority.kt")
|
||||
public void testAllUnderImportsLessPriority() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/AllUnderImportsLessPriority.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassImportsConflicting.kt")
|
||||
public void testClassImportsConflicting() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/ClassImportsConflicting.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("CurrentPackageAndAllUnderImport.kt")
|
||||
public void testCurrentPackageAndAllUnderImport() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/CurrentPackageAndAllUnderImport.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("CurrentPackageAndExplicitImport.kt")
|
||||
public void testCurrentPackageAndExplicitImport() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/CurrentPackageAndExplicitImport.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("CurrentPackageAndExplicitNestedImport.kt")
|
||||
public void testCurrentPackageAndExplicitNestedImport() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/CurrentPackageAndExplicitNestedImport.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("CurrentPackageAndNestedAsteriskImport.kt")
|
||||
public void testCurrentPackageAndNestedAsteriskImport() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/CurrentPackageAndNestedAsteriskImport.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportGenericVsPackage.kt")
|
||||
public void testImportGenericVsPackage() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/ImportGenericVsPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportProtectedClass.kt")
|
||||
public void testImportProtectedClass() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/ImportProtectedClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportTwoTimes.kt")
|
||||
public void testImportTwoTimes() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/ImportTwoTimes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportTwoTimesStar.kt")
|
||||
public void testImportTwoTimesStar() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/ImportTwoTimesStar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("NestedAndTopLevelClassClash.kt")
|
||||
public void testNestedAndTopLevelClassClash() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/NestedAndTopLevelClassClash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("NestedClassClash.kt")
|
||||
public void testNestedClassClash() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/NestedClassClash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("PackageExplicitAndStartImport.kt")
|
||||
public void testPackageExplicitAndStartImport() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/PackageExplicitAndStartImport.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("PackagePrivateAndPublicNested.kt")
|
||||
public void testPackagePrivateAndPublicNested() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/PackagePrivateAndPublicNested.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("TopLevelClassVsPackage.kt")
|
||||
public void testTopLevelClassVsPackage() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/TopLevelClassVsPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("TopLevelClassVsPackage2.kt")
|
||||
public void testTopLevelClassVsPackage2() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/TopLevelClassVsPackage2.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/javac/diagnostics/tests/inheritance")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Inheritance extends AbstractJavacDiagnosticsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInInheritance() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/javac/diagnostics/tests/inheritance"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("IheritanceOfInner.kt")
|
||||
public void testIheritanceOfInner() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/IheritanceOfInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritanceAmbiguity.kt")
|
||||
public void testInheritanceAmbiguity() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/InheritanceAmbiguity.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritanceAmbiguity2.kt")
|
||||
public void testInheritanceAmbiguity2() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/InheritanceAmbiguity2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritanceAmbiguity3.kt")
|
||||
public void testInheritanceAmbiguity3() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/InheritanceAmbiguity3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritanceAmbiguity4.kt")
|
||||
public void testInheritanceAmbiguity4() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/InheritanceAmbiguity4.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritanceWithKotlin.kt")
|
||||
public void testInheritanceWithKotlin() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/InheritanceWithKotlin.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritanceWithKotlinClasses.kt")
|
||||
public void testInheritanceWithKotlinClasses() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/InheritanceWithKotlinClasses.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritedInner.kt")
|
||||
public void testInheritedInner() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/InheritedInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritedInner2.kt")
|
||||
public void testInheritedInner2() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/InheritedInner2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritedInnerAndSupertypeWithSameName.kt")
|
||||
public void testInheritedInnerAndSupertypeWithSameName() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/InheritedInnerAndSupertypeWithSameName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritedInnerUsageInInner.kt")
|
||||
public void testInheritedInnerUsageInInner() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/InheritedInnerUsageInInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritedKotlinInner.kt")
|
||||
public void testInheritedKotlinInner() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/InheritedKotlinInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerAndInheritedInner.kt")
|
||||
public void testInnerAndInheritedInner() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/InnerAndInheritedInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ManyInheritedClasses.kt")
|
||||
public void testManyInheritedClasses() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/ManyInheritedClasses.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("NoAmbiguity.kt")
|
||||
public void testNoAmbiguity() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/NoAmbiguity.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("NoAmbiguity2.kt")
|
||||
public void testNoAmbiguity2() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/NoAmbiguity2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SameInnersInSupertypeAndSupertypesSupertype.kt")
|
||||
public void testSameInnersInSupertypeAndSupertypesSupertype() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/SameInnersInSupertypeAndSupertypesSupertype.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SuperTypeWithSameInner.kt")
|
||||
public void testSuperTypeWithSameInner() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/SuperTypeWithSameInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SupertypeInnerAndTypeParameterWithSameNames.kt")
|
||||
public void testSupertypeInnerAndTypeParameterWithSameNames() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/SupertypeInnerAndTypeParameterWithSameNames.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/javac/diagnostics/tests/inners")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Inners extends AbstractJavacDiagnosticsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInInners() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/javac/diagnostics/tests/inners"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("ComplexCase.kt")
|
||||
public void testComplexCase() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inners/ComplexCase.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ComplexCase2.kt")
|
||||
public void testComplexCase2() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inners/ComplexCase2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("CurrentPackageAndInner.kt")
|
||||
public void testCurrentPackageAndInner() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inners/CurrentPackageAndInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportThriceNestedClass.kt")
|
||||
public void testImportThriceNestedClass() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inners/ImportThriceNestedClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerInInner.kt")
|
||||
public void testInnerInInner() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inners/InnerInInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Nested.kt")
|
||||
public void testNested() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inners/Nested.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ThriceNestedClass.kt")
|
||||
public void testThriceNestedClass() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inners/ThriceNestedClass.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/javac/diagnostics/tests/qualifiedExpression")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class QualifiedExpression extends AbstractJavacDiagnosticsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInQualifiedExpression() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/javac/diagnostics/tests/qualifiedExpression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("GenericClassVsPackage.kt")
|
||||
public void testGenericClassVsPackage() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/qualifiedExpression/GenericClassVsPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("PackageVsClass.kt")
|
||||
public void testPackageVsClass() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/qualifiedExpression/PackageVsClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("PackageVsClass2.kt")
|
||||
public void testPackageVsClass2() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/qualifiedExpression/PackageVsClass2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("PackageVsRootClass.kt")
|
||||
public void testPackageVsRootClass() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/qualifiedExpression/PackageVsRootClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("visibleClassVsQualifiedClass.kt")
|
||||
public void testVisibleClassVsQualifiedClass() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/qualifiedExpression/visibleClassVsQualifiedClass.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/javac/diagnostics/tests/typeParameters")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TypeParameters extends AbstractJavacDiagnosticsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/javac/diagnostics/tests/typeParameters"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("Clash.kt")
|
||||
public void testClash() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/typeParameters/Clash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ComplexCase.kt")
|
||||
public void testComplexCase() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/typeParameters/ComplexCase.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritedInnerAndTypeParameterWithSameNames.kt")
|
||||
public void testInheritedInnerAndTypeParameterWithSameNames() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/typeParameters/InheritedInnerAndTypeParameterWithSameNames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerWithTypeParameter.kt")
|
||||
public void testInnerWithTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/typeParameters/InnerWithTypeParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("NestedWithInner.kt")
|
||||
public void testNestedWithInner() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/typeParameters/NestedWithInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SeveralInnersWithTypeParameters.kt")
|
||||
public void testSeveralInnersWithTypeParameters() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/typeParameters/SeveralInnersWithTypeParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("TypeParametersInInnerAndOuterWithSameNames.kt")
|
||||
public void testTypeParametersInInnerAndOuterWithSameNames() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/typeParameters/TypeParametersInInnerAndOuterWithSameNames.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/javac/diagnostics/tests")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TestsWithoutJavac extends AbstractJavacDiagnosticsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestWithoutJavacWrapper, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTestsWithoutJavac() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/javac/diagnostics/tests"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("Annotations.kt")
|
||||
public void testAnnotations() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/Annotations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/javac/diagnostics/tests/imports")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Imports extends AbstractJavacDiagnosticsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestWithoutJavacWrapper, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInImports() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/javac/diagnostics/tests/imports"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("AllUnderImportsAmbiguity.kt")
|
||||
public void testAllUnderImportsAmbiguity() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/AllUnderImportsAmbiguity.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AllUnderImportsLessPriority.kt")
|
||||
public void testAllUnderImportsLessPriority() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/AllUnderImportsLessPriority.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassImportsConflicting.kt")
|
||||
public void testClassImportsConflicting() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/ClassImportsConflicting.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("CurrentPackageAndAllUnderImport.kt")
|
||||
public void testCurrentPackageAndAllUnderImport() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/CurrentPackageAndAllUnderImport.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("CurrentPackageAndExplicitImport.kt")
|
||||
public void testCurrentPackageAndExplicitImport() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/CurrentPackageAndExplicitImport.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("CurrentPackageAndExplicitNestedImport.kt")
|
||||
public void testCurrentPackageAndExplicitNestedImport() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/CurrentPackageAndExplicitNestedImport.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("CurrentPackageAndNestedAsteriskImport.kt")
|
||||
public void testCurrentPackageAndNestedAsteriskImport() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/CurrentPackageAndNestedAsteriskImport.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportGenericVsPackage.kt")
|
||||
public void testImportGenericVsPackage() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/ImportGenericVsPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportProtectedClass.kt")
|
||||
public void testImportProtectedClass() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/ImportProtectedClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportTwoTimes.kt")
|
||||
public void testImportTwoTimes() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/ImportTwoTimes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportTwoTimesStar.kt")
|
||||
public void testImportTwoTimesStar() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/ImportTwoTimesStar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("NestedAndTopLevelClassClash.kt")
|
||||
public void testNestedAndTopLevelClassClash() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/NestedAndTopLevelClassClash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("NestedClassClash.kt")
|
||||
public void testNestedClassClash() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/NestedClassClash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("PackageExplicitAndStartImport.kt")
|
||||
public void testPackageExplicitAndStartImport() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/PackageExplicitAndStartImport.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("PackagePrivateAndPublicNested.kt")
|
||||
public void testPackagePrivateAndPublicNested() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/PackagePrivateAndPublicNested.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("TopLevelClassVsPackage.kt")
|
||||
public void testTopLevelClassVsPackage() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/TopLevelClassVsPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("TopLevelClassVsPackage2.kt")
|
||||
public void testTopLevelClassVsPackage2() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/imports/TopLevelClassVsPackage2.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/javac/diagnostics/tests/inheritance")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Inheritance extends AbstractJavacDiagnosticsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestWithoutJavacWrapper, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInInheritance() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/javac/diagnostics/tests/inheritance"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("IheritanceOfInner.kt")
|
||||
public void testIheritanceOfInner() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/IheritanceOfInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritanceAmbiguity.kt")
|
||||
public void testInheritanceAmbiguity() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/InheritanceAmbiguity.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritanceAmbiguity2.kt")
|
||||
public void testInheritanceAmbiguity2() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/InheritanceAmbiguity2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritanceAmbiguity3.kt")
|
||||
public void testInheritanceAmbiguity3() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/InheritanceAmbiguity3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritanceAmbiguity4.kt")
|
||||
public void testInheritanceAmbiguity4() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/InheritanceAmbiguity4.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritanceWithKotlin.kt")
|
||||
public void testInheritanceWithKotlin() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/InheritanceWithKotlin.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritanceWithKotlinClasses.kt")
|
||||
public void testInheritanceWithKotlinClasses() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/InheritanceWithKotlinClasses.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritedInner.kt")
|
||||
public void testInheritedInner() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/InheritedInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritedInner2.kt")
|
||||
public void testInheritedInner2() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/InheritedInner2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritedInnerAndSupertypeWithSameName.kt")
|
||||
public void testInheritedInnerAndSupertypeWithSameName() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/InheritedInnerAndSupertypeWithSameName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritedInnerUsageInInner.kt")
|
||||
public void testInheritedInnerUsageInInner() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/InheritedInnerUsageInInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritedKotlinInner.kt")
|
||||
public void testInheritedKotlinInner() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/InheritedKotlinInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerAndInheritedInner.kt")
|
||||
public void testInnerAndInheritedInner() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/InnerAndInheritedInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ManyInheritedClasses.kt")
|
||||
public void testManyInheritedClasses() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/ManyInheritedClasses.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("NoAmbiguity.kt")
|
||||
public void testNoAmbiguity() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/NoAmbiguity.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("NoAmbiguity2.kt")
|
||||
public void testNoAmbiguity2() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/NoAmbiguity2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SameInnersInSupertypeAndSupertypesSupertype.kt")
|
||||
public void testSameInnersInSupertypeAndSupertypesSupertype() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/SameInnersInSupertypeAndSupertypesSupertype.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SuperTypeWithSameInner.kt")
|
||||
public void testSuperTypeWithSameInner() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/SuperTypeWithSameInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SupertypeInnerAndTypeParameterWithSameNames.kt")
|
||||
public void testSupertypeInnerAndTypeParameterWithSameNames() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inheritance/SupertypeInnerAndTypeParameterWithSameNames.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/javac/diagnostics/tests/inners")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Inners extends AbstractJavacDiagnosticsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestWithoutJavacWrapper, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInInners() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/javac/diagnostics/tests/inners"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("ComplexCase.kt")
|
||||
public void testComplexCase() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inners/ComplexCase.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ComplexCase2.kt")
|
||||
public void testComplexCase2() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inners/ComplexCase2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("CurrentPackageAndInner.kt")
|
||||
public void testCurrentPackageAndInner() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inners/CurrentPackageAndInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportThriceNestedClass.kt")
|
||||
public void testImportThriceNestedClass() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inners/ImportThriceNestedClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerInInner.kt")
|
||||
public void testInnerInInner() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inners/InnerInInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Nested.kt")
|
||||
public void testNested() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inners/Nested.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ThriceNestedClass.kt")
|
||||
public void testThriceNestedClass() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/inners/ThriceNestedClass.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/javac/diagnostics/tests/qualifiedExpression")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class QualifiedExpression extends AbstractJavacDiagnosticsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestWithoutJavacWrapper, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInQualifiedExpression() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/javac/diagnostics/tests/qualifiedExpression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("GenericClassVsPackage.kt")
|
||||
public void testGenericClassVsPackage() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/qualifiedExpression/GenericClassVsPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("PackageVsClass.kt")
|
||||
public void testPackageVsClass() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/qualifiedExpression/PackageVsClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("PackageVsClass2.kt")
|
||||
public void testPackageVsClass2() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/qualifiedExpression/PackageVsClass2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("PackageVsRootClass.kt")
|
||||
public void testPackageVsRootClass() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/qualifiedExpression/PackageVsRootClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("visibleClassVsQualifiedClass.kt")
|
||||
public void testVisibleClassVsQualifiedClass() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/qualifiedExpression/visibleClassVsQualifiedClass.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/javac/diagnostics/tests/typeParameters")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TypeParameters extends AbstractJavacDiagnosticsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestWithoutJavacWrapper, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/javac/diagnostics/tests/typeParameters"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("Clash.kt")
|
||||
public void testClash() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/typeParameters/Clash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ComplexCase.kt")
|
||||
public void testComplexCase() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/typeParameters/ComplexCase.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritedInnerAndTypeParameterWithSameNames.kt")
|
||||
public void testInheritedInnerAndTypeParameterWithSameNames() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/typeParameters/InheritedInnerAndTypeParameterWithSameNames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerWithTypeParameter.kt")
|
||||
public void testInnerWithTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/typeParameters/InnerWithTypeParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("NestedWithInner.kt")
|
||||
public void testNestedWithInner() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/typeParameters/NestedWithInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SeveralInnersWithTypeParameters.kt")
|
||||
public void testSeveralInnersWithTypeParameters() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/typeParameters/SeveralInnersWithTypeParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("TypeParametersInInnerAndOuterWithSameNames.kt")
|
||||
public void testTypeParametersInInnerAndOuterWithSameNames() throws Exception {
|
||||
runTest("compiler/testData/javac/diagnostics/tests/typeParameters/TypeParametersInInnerAndOuterWithSameNames.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
-166
@@ -1,166 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.checkers.javac;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class JavacFieldResolutionTestGenerated extends AbstractJavacFieldResolutionTest {
|
||||
@TestMetadata("compiler/testData/javac/fieldsResolution/tests")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Tests extends AbstractJavacFieldResolutionTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTests() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/javac/fieldsResolution/tests"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("AsteriskStaticImportsAmbiguity.kt")
|
||||
public void testAsteriskStaticImportsAmbiguity() throws Exception {
|
||||
runTest("compiler/testData/javac/fieldsResolution/tests/AsteriskStaticImportsAmbiguity.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("BinaryInitializers.kt")
|
||||
public void testBinaryInitializers() throws Exception {
|
||||
runTest("compiler/testData/javac/fieldsResolution/tests/BinaryInitializers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ConstantByFqName.kt")
|
||||
public void testConstantByFqName() throws Exception {
|
||||
runTest("compiler/testData/javac/fieldsResolution/tests/ConstantByFqName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ConstantValues.kt")
|
||||
public void testConstantValues() throws Exception {
|
||||
runTest("compiler/testData/javac/fieldsResolution/tests/ConstantValues.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ConstantValuesFromKtFile.kt")
|
||||
public void testConstantValuesFromKtFile() throws Exception {
|
||||
runTest("compiler/testData/javac/fieldsResolution/tests/ConstantValuesFromKtFile.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("FieldFromOuterClass.kt")
|
||||
public void testFieldFromOuterClass() throws Exception {
|
||||
runTest("compiler/testData/javac/fieldsResolution/tests/FieldFromOuterClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritedField.kt")
|
||||
public void testInheritedField() throws Exception {
|
||||
runTest("compiler/testData/javac/fieldsResolution/tests/InheritedField.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MultipleOuters.kt")
|
||||
public void testMultipleOuters() throws Exception {
|
||||
runTest("compiler/testData/javac/fieldsResolution/tests/MultipleOuters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ResolutionPriority.kt")
|
||||
public void testResolutionPriority() throws Exception {
|
||||
runTest("compiler/testData/javac/fieldsResolution/tests/ResolutionPriority.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SameFieldInSupertypes.kt")
|
||||
public void testSameFieldInSupertypes() throws Exception {
|
||||
runTest("compiler/testData/javac/fieldsResolution/tests/SameFieldInSupertypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("StaticImport.kt")
|
||||
public void testStaticImport() throws Exception {
|
||||
runTest("compiler/testData/javac/fieldsResolution/tests/StaticImport.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("StaticImportsAmbiguity.kt")
|
||||
public void testStaticImportsAmbiguity() throws Exception {
|
||||
runTest("compiler/testData/javac/fieldsResolution/tests/StaticImportsAmbiguity.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/javac/fieldsResolution/tests")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TestsWithoutJavac extends AbstractJavacFieldResolutionTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestWithoutJavacWrapper, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTestsWithoutJavac() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/javac/fieldsResolution/tests"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("AsteriskStaticImportsAmbiguity.kt")
|
||||
public void testAsteriskStaticImportsAmbiguity() throws Exception {
|
||||
runTest("compiler/testData/javac/fieldsResolution/tests/AsteriskStaticImportsAmbiguity.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("BinaryInitializers.kt")
|
||||
public void testBinaryInitializers() throws Exception {
|
||||
runTest("compiler/testData/javac/fieldsResolution/tests/BinaryInitializers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ConstantByFqName.kt")
|
||||
public void testConstantByFqName() throws Exception {
|
||||
runTest("compiler/testData/javac/fieldsResolution/tests/ConstantByFqName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ConstantValues.kt")
|
||||
public void testConstantValues() throws Exception {
|
||||
runTest("compiler/testData/javac/fieldsResolution/tests/ConstantValues.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ConstantValuesFromKtFile.kt")
|
||||
public void testConstantValuesFromKtFile() throws Exception {
|
||||
runTest("compiler/testData/javac/fieldsResolution/tests/ConstantValuesFromKtFile.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("FieldFromOuterClass.kt")
|
||||
public void testFieldFromOuterClass() throws Exception {
|
||||
runTest("compiler/testData/javac/fieldsResolution/tests/FieldFromOuterClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritedField.kt")
|
||||
public void testInheritedField() throws Exception {
|
||||
runTest("compiler/testData/javac/fieldsResolution/tests/InheritedField.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MultipleOuters.kt")
|
||||
public void testMultipleOuters() throws Exception {
|
||||
runTest("compiler/testData/javac/fieldsResolution/tests/MultipleOuters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ResolutionPriority.kt")
|
||||
public void testResolutionPriority() throws Exception {
|
||||
runTest("compiler/testData/javac/fieldsResolution/tests/ResolutionPriority.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SameFieldInSupertypes.kt")
|
||||
public void testSameFieldInSupertypes() throws Exception {
|
||||
runTest("compiler/testData/javac/fieldsResolution/tests/SameFieldInSupertypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("StaticImport.kt")
|
||||
public void testStaticImport() throws Exception {
|
||||
runTest("compiler/testData/javac/fieldsResolution/tests/StaticImport.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("StaticImportsAmbiguity.kt")
|
||||
public void testStaticImportsAmbiguity() throws Exception {
|
||||
runTest("compiler/testData/javac/fieldsResolution/tests/StaticImportsAmbiguity.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
-497
@@ -1,497 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.checkers.javac;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/foreignAnnotations/tests")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class JavacForeignAnnotationsTestGenerated extends AbstractJavacForeignAnnotationsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTests() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("androidRecently.kt")
|
||||
public void testAndroidRecently() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/androidRecently.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("androidSdk.kt")
|
||||
public void testAndroidSdk() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/androidSdk.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("android_support.kt")
|
||||
public void testAndroid_support() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/android_support.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("androidx.kt")
|
||||
public void testAndroidx() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/androidx.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("aosp.kt")
|
||||
public void testAosp() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/aosp.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("checkerFramework.kt")
|
||||
public void testCheckerFramework() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/checkerFramework.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("eclipse.kt")
|
||||
public void testEclipse() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/eclipse.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("findBugsSimple.kt")
|
||||
public void testFindBugsSimple() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/findBugsSimple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("irrelevantQualifierNicknames.kt")
|
||||
public void testIrrelevantQualifierNicknames() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/irrelevantQualifierNicknames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lombokSimple.kt")
|
||||
public void testLombokSimple() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/lombokSimple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("rxjava.kt")
|
||||
public void testRxjava() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/rxjava.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Jsr305 extends AbstractJavacForeignAnnotationsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJsr305() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("nonNullNever.kt")
|
||||
public void testNonNullNever() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nonNullNever.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullabilityNicknames.kt")
|
||||
public void testNullabilityNicknames() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityNicknames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("strange.kt")
|
||||
public void testStrange() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/strange.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305/ignore")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Ignore extends AbstractJavacForeignAnnotationsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInIgnore() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305/ignore"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("parametersAreNonnullByDefault.kt")
|
||||
public void testParametersAreNonnullByDefault() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/ignore/parametersAreNonnullByDefault.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class NullabilityWarnings extends AbstractJavacForeignAnnotationsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInNullabilityWarnings() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("elvis.kt")
|
||||
public void testElvis() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/elvis.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localInference.kt")
|
||||
public void testLocalInference() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/localInference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullabilityGenerics.kt")
|
||||
public void testNullabilityGenerics() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/nullabilityGenerics.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullabilityNicknames.kt")
|
||||
public void testNullabilityNicknames() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/nullabilityNicknames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("safeCalls.kt")
|
||||
public void testSafeCalls() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/safeCalls.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("strange.kt")
|
||||
public void testStrange() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/strange.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class FromPlatformTypes extends AbstractJavacForeignAnnotationsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFromPlatformTypes() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("arithmetic.kt")
|
||||
public void testArithmetic() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/arithmetic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("array.kt")
|
||||
public void testArray() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/array.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("assignToVar.kt")
|
||||
public void testAssignToVar() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/assignToVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("conditions.kt")
|
||||
public void testConditions() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/conditions.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dataFlowInfo.kt")
|
||||
public void testDataFlowInfo() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/dataFlowInfo.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultParameters.kt")
|
||||
public void testDefaultParameters() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/defaultParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegatedProperties.kt")
|
||||
public void testDelegatedProperties() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/delegatedProperties.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegation.kt")
|
||||
public void testDelegation() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/delegation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("derefenceExtension.kt")
|
||||
public void testDerefenceExtension() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/derefenceExtension.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("derefenceMember.kt")
|
||||
public void testDerefenceMember() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/derefenceMember.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectedType.kt")
|
||||
public void testExpectedType() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/expectedType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("for.kt")
|
||||
public void testFor() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/for.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionArguments.kt")
|
||||
public void testFunctionArguments() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/functionArguments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invoke.kt")
|
||||
public void testInvoke() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/invoke.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt6829.kt")
|
||||
public void testKt6829() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/kt6829.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multiDeclaration.kt")
|
||||
public void testMultiDeclaration() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/multiDeclaration.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("passToJava.kt")
|
||||
public void testPassToJava() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/passToJava.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("primitiveArray.kt")
|
||||
public void testPrimitiveArray() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/primitiveArray.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("throw.kt")
|
||||
public void testThrow() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/throw.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("uselessElvisRightIsNull.kt")
|
||||
public void testUselessElvisRightIsNull() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/fromPlatformTypes/uselessElvisRightIsNull.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TypeQualifierDefault extends AbstractJavacForeignAnnotationsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTypeQualifierDefault() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("equalsOnNonNull.kt")
|
||||
public void testEqualsOnNonNull() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/equalsOnNonNull.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("fieldsAreNullable.kt")
|
||||
public void testFieldsAreNullable() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/fieldsAreNullable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullabilityFromOverridden.kt")
|
||||
public void testNullabilityFromOverridden() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/nullabilityFromOverridden.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overridingDefaultQualifier.kt")
|
||||
public void testOverridingDefaultQualifier() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/overridingDefaultQualifier.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parametersAreNonnullByDefault.kt")
|
||||
public void testParametersAreNonnullByDefault() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/parametersAreNonnullByDefault.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parametersAreNonnullByDefaultPackage.kt")
|
||||
public void testParametersAreNonnullByDefaultPackage() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/parametersAreNonnullByDefaultPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("springNullable.kt")
|
||||
public void testSpringNullable() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/springNullable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("springNullablePackage.kt")
|
||||
public void testSpringNullablePackage() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/nullabilityWarnings/typeQualifierDefault/springNullablePackage.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TypeQualifierDefault extends AbstractJavacForeignAnnotationsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTypeQualifierDefault() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("fieldsAreNullable.kt")
|
||||
public void testFieldsAreNullable() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/fieldsAreNullable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forceFlexibility.kt")
|
||||
public void testForceFlexibility() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/forceFlexibility.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forceFlexibleOverOverrides.kt")
|
||||
public void testForceFlexibleOverOverrides() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/forceFlexibleOverOverrides.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullabilityFromOverridden.kt")
|
||||
public void testNullabilityFromOverridden() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/nullabilityFromOverridden.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overridingDefaultQualifier.kt")
|
||||
public void testOverridingDefaultQualifier() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/overridingDefaultQualifier.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parametersAreNonnullByDefault.kt")
|
||||
public void testParametersAreNonnullByDefault() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/parametersAreNonnullByDefault.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parametersAreNonnullByDefaultPackage.kt")
|
||||
public void testParametersAreNonnullByDefaultPackage() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/parametersAreNonnullByDefaultPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("springNullable.kt")
|
||||
public void testSpringNullable() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/springNullable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("springNullablePackage.kt")
|
||||
public void testSpringNullablePackage() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305/typeQualifierDefault/springNullablePackage.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Jsr305NullabilityWarnings extends AbstractJavacForeignAnnotationsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJsr305NullabilityWarnings() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Migration extends AbstractJavacForeignAnnotationsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInMigration() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("customMigration.kt")
|
||||
public void testCustomMigration() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/customMigration.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("globalIgnore.kt")
|
||||
public void testGlobalIgnore() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/globalIgnore.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("globalWarningMigrationIgnore.kt")
|
||||
public void testGlobalWarningMigrationIgnore() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/globalWarningMigrationIgnore.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("migrationError.kt")
|
||||
public void testMigrationError() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/migrationError.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("migrationIgnore.kt")
|
||||
public void testMigrationIgnore() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/migrationIgnore.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("migrationWarning.kt")
|
||||
public void testMigrationWarning() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/migrationWarning.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overrideConflicts.kt")
|
||||
public void testOverrideConflicts() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/overrideConflicts.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("specialCollision.kt")
|
||||
public void testSpecialCollision() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/specialCollision.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("stateRefinement.kt")
|
||||
public void testStateRefinement() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/jsr305NullabilityWarnings/migration/stateRefinement.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/foreignAnnotations/tests/typeQualifierDefault")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TypeQualifierDefault extends AbstractJavacForeignAnnotationsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTypeQualifierDefault() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/foreignAnnotations/tests/typeQualifierDefault"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("defaultAndNicknameMigrationPolicy.kt")
|
||||
public void testDefaultAndNicknameMigrationPolicy() throws Exception {
|
||||
runTest("compiler/testData/foreignAnnotations/tests/typeQualifierDefault/defaultAndNicknameMigrationPolicy.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
-192
@@ -1,192 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.codegen;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/codegen/asmLike")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class AsmLikeInstructionListingTestGenerated extends AbstractAsmLikeInstructionListingTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInAsmLike() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/asmLike"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/asmLike/receiverMangling")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ReceiverMangling extends AbstractAsmLikeInstructionListingTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInReceiverMangling() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/asmLike/receiverMangling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("deepInline.kt")
|
||||
public void testDeepInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/receiverMangling/deepInline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("deepInlineWithLabels.kt")
|
||||
public void testDeepInlineWithLabels() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/receiverMangling/deepInlineWithLabels.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("deepNoinlineWithLabels_after.kt")
|
||||
public void testDeepNoinlineWithLabels_after() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/receiverMangling/deepNoinlineWithLabels_after.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("deepNoinlineWithLabels_before.kt")
|
||||
public void testDeepNoinlineWithLabels_before() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/receiverMangling/deepNoinlineWithLabels_before.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("deepNoinline_after.kt")
|
||||
public void testDeepNoinline_after() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/receiverMangling/deepNoinline_after.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("deepNoinline_before.kt")
|
||||
public void testDeepNoinline_before() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/receiverMangling/deepNoinline_before.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassCapture.kt")
|
||||
public void testInlineClassCapture() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/receiverMangling/inlineClassCapture.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineReceivers.kt")
|
||||
public void testInlineReceivers() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/receiverMangling/inlineReceivers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localFunctions.kt")
|
||||
public void testLocalFunctions() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/receiverMangling/localFunctions.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mangledNames.kt")
|
||||
public void testMangledNames() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/receiverMangling/mangledNames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonInlineReceivers_after.kt")
|
||||
public void testNonInlineReceivers_after() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/receiverMangling/nonInlineReceivers_after.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonInlineReceivers_before.kt")
|
||||
public void testNonInlineReceivers_before() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/receiverMangling/nonInlineReceivers_before.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/asmLike/typeAnnotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TypeAnnotations extends AbstractAsmLikeInstructionListingTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTypeAnnotations() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/asmLike/typeAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("complex.kt")
|
||||
public void testComplex() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/complex.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constructor.kt")
|
||||
public void testConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/constructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultArgs.kt")
|
||||
public void testDefaultArgs() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/defaultArgs.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("enumClassConstructor.kt")
|
||||
public void testEnumClassConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/enumClassConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extension.kt")
|
||||
public void testExtension() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/extension.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("implicit.kt")
|
||||
public void testImplicit() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/implicit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClassConstructor.kt")
|
||||
public void testInnerClassConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/innerClassConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmOverload.kt")
|
||||
public void testJvmOverload() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/jvmOverload.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmStatic.kt")
|
||||
public void testJvmStatic() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/jvmStatic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("notYetSupported.kt")
|
||||
public void testNotYetSupported() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/notYetSupported.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("property.kt")
|
||||
public void testProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/property.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple2Params.kt")
|
||||
public void testSimple2Params() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/simple2Params.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("staticNested.kt")
|
||||
public void testStaticNested() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/staticNested.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("syntheticAccessors.kt")
|
||||
public void testSyntheticAccessors() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/syntheticAccessors.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
-1298
File diff suppressed because it is too large
Load Diff
-34545
File diff suppressed because it is too large
Load Diff
-4893
File diff suppressed because it is too large
Load Diff
-1561
File diff suppressed because it is too large
Load Diff
-5099
File diff suppressed because it is too large
Load Diff
-192
@@ -1,192 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.codegen;
|
||||
|
||||
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/checkLocalVariablesTable")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class CheckLocalVariablesTableTestGenerated extends AbstractCheckLocalVariablesTableTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCheckLocalVariablesTable() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/checkLocalVariablesTable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("copyFunction.kt")
|
||||
public void testCopyFunction() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/copyFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringInFor.kt")
|
||||
public void testDestructuringInFor() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/destructuringInFor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringInLambdas.kt")
|
||||
public void testDestructuringInLambdas() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/destructuringInLambdas.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringInlineLambda.kt")
|
||||
public void testDestructuringInlineLambda() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/destructuringInlineLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineLambdaWithItParam.kt")
|
||||
public void testInlineLambdaWithItParam() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineLambdaWithItParam.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineLambdaWithParam.kt")
|
||||
public void testInlineLambdaWithParam() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineLambdaWithParam.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSimple.kt")
|
||||
public void testInlineSimple() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineSimple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSimpleChain.kt")
|
||||
public void testInlineSimpleChain() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineSimpleChain.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("itInLambda.kt")
|
||||
public void testItInLambda() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/itInLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("itInReturnedLambda.kt")
|
||||
public void testItInReturnedLambda() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/itInReturnedLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt11117.kt")
|
||||
public void testKt11117() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/kt11117.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaAsVar.kt")
|
||||
public void testLambdaAsVar() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/lambdaAsVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localFun.kt")
|
||||
public void testLocalFun() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/localFun.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("objectInLocalPropertyDelegate.kt")
|
||||
public void testObjectInLocalPropertyDelegate() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/objectInLocalPropertyDelegate.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("underscoreNames.kt")
|
||||
public void testUnderscoreNames() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/underscoreNames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/checkLocalVariablesTable/completionInSuspendFunction")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CompletionInSuspendFunction extends AbstractCheckLocalVariablesTableTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCompletionInSuspendFunction() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/checkLocalVariablesTable/completionInSuspendFunction"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("nonStaticSimple.kt")
|
||||
public void testNonStaticSimple() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/completionInSuspendFunction/nonStaticSimple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonStaticStateMachine.kt")
|
||||
public void testNonStaticStateMachine() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/completionInSuspendFunction/nonStaticStateMachine.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("staticSimple.kt")
|
||||
public void testStaticSimple() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/completionInSuspendFunction/staticSimple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("staticSimpleReceiver.kt")
|
||||
public void testStaticSimpleReceiver() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/completionInSuspendFunction/staticSimpleReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("staticStateMachine.kt")
|
||||
public void testStaticStateMachine() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/completionInSuspendFunction/staticStateMachine.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("staticStateMachineReceiver.kt")
|
||||
public void testStaticStateMachineReceiver() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/completionInSuspendFunction/staticStateMachineReceiver.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ParametersInSuspendLambda extends AbstractCheckLocalVariablesTableTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInParametersInSuspendLambda() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("dataClass.kt")
|
||||
public void testDataClass() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/dataClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionComponents.kt")
|
||||
public void testExtensionComponents() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/extensionComponents.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("generic.kt")
|
||||
public void testGeneric() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/generic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inline.kt")
|
||||
public void testInline() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/inline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("otherParameters.kt")
|
||||
public void testOtherParameters() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/otherParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parameters.kt")
|
||||
public void testParameters() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/parameters.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
-4893
File diff suppressed because it is too large
Load Diff
-697
@@ -1,697 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.codegen;
|
||||
|
||||
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/compileKotlinAgainstKotlin")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class CompileKotlinAgainstKotlinTestGenerated extends AbstractCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception {
|
||||
KotlinTestUtils.runTest(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCompileKotlinAgainstKotlin() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("annotationInInterface.kt")
|
||||
public void testAnnotationInInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/annotationInInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("annotationOnTypeUseInTypeAlias.kt")
|
||||
public void testAnnotationOnTypeUseInTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("annotationsOnTypeAliases.kt")
|
||||
public void testAnnotationsOnTypeAliases() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/annotationsOnTypeAliases.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("callDeserializedPropertyOnInlineClassType.kt")
|
||||
public void testCallDeserializedPropertyOnInlineClassType() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("callsToMultifileClassFromOtherPackage.kt")
|
||||
public void testCallsToMultifileClassFromOtherPackage() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/callsToMultifileClassFromOtherPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classInObject.kt")
|
||||
public void testClassInObject() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/classInObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("companionObjectInEnum.kt")
|
||||
public void testCompanionObjectInEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/companionObjectInEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("companionObjectMember.kt")
|
||||
public void testCompanionObjectMember() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/companionObjectMember.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constPropertyReferenceFromMultifileClass.kt")
|
||||
public void testConstPropertyReferenceFromMultifileClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/constPropertyReferenceFromMultifileClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constructorVararg.kt")
|
||||
public void testConstructorVararg() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/constructorVararg.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constructorWithInlineClassParametersInBinaryDependencies.kt")
|
||||
public void testConstructorWithInlineClassParametersInBinaryDependencies() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependencies.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("copySamOnInline.kt")
|
||||
public void testCopySamOnInline() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/copySamOnInline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("copySamOnInline2.kt")
|
||||
public void testCopySamOnInline2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/copySamOnInline2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("coroutinesBinary.kt")
|
||||
public void testCoroutinesBinary_1_2() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/compileKotlinAgainstKotlin/coroutinesBinary.kt", "kotlin.coroutines.experimental");
|
||||
}
|
||||
|
||||
@TestMetadata("coroutinesBinary.kt")
|
||||
public void testCoroutinesBinary_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/compileKotlinAgainstKotlin/coroutinesBinary.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultConstructor.kt")
|
||||
public void testDefaultConstructor() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/defaultConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultLambdaRegeneration.kt")
|
||||
public void testDefaultLambdaRegeneration() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/defaultLambdaRegeneration.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultLambdaRegeneration2.kt")
|
||||
public void testDefaultLambdaRegeneration2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/defaultLambdaRegeneration2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultWithInlineClassAndReceivers.kt")
|
||||
public void testDefaultWithInlineClassAndReceivers() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceivers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegatedDefault.kt")
|
||||
public void testDelegatedDefault() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/delegatedDefault.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationAndAnnotations.kt")
|
||||
public void testDelegationAndAnnotations() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/delegationAndAnnotations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("doublyNestedClass.kt")
|
||||
public void testDoublyNestedClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/doublyNestedClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("enum.kt")
|
||||
public void testEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/enum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectClassActualTypeAlias.kt")
|
||||
public void testExpectClassActualTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/expectClassActualTypeAlias.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassFromBinaryDependencies.kt")
|
||||
public void testInlineClassFromBinaryDependencies() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFromBinaryDependencies.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassInlineProperty.kt")
|
||||
public void testInlineClassInlineProperty() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassesOldMangling.kt")
|
||||
public void testInlineClassesOldMangling() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlinedConstants.kt")
|
||||
public void testInlinedConstants() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlinedConstants.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClassConstructor.kt")
|
||||
public void testInnerClassConstructor() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/innerClassConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("interfaceDelegationAndBridgesProcessing.kt")
|
||||
public void testInterfaceDelegationAndBridgesProcessing() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/interfaceDelegationAndBridgesProcessing.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("internalSetterOverridden.kt")
|
||||
public void testInternalSetterOverridden() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/internalSetterOverridden.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("internalWithDefaultArgs.kt")
|
||||
public void testInternalWithDefaultArgs() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithDefaultArgs.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("internalWithOtherModuleName.kt")
|
||||
public void testInternalWithOtherModuleName() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithOtherModuleName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmField.kt")
|
||||
public void testJvmField() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmField.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmFieldInAnnotationCompanion.kt")
|
||||
public void testJvmFieldInAnnotationCompanion() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInAnnotationCompanion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmFieldInConstructor.kt")
|
||||
public void testJvmFieldInConstructor() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmFieldInInterfaceCompanion.kt")
|
||||
public void testJvmFieldInInterfaceCompanion() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInInterfaceCompanion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmNames.kt")
|
||||
public void testJvmNames() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmNames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmPackageName.kt")
|
||||
public void testJvmPackageName() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmPackageNameInRootPackage.kt")
|
||||
public void testJvmPackageNameInRootPackage() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameInRootPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmPackageNameMultifileClass.kt")
|
||||
public void testJvmPackageNameMultifileClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameMultifileClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmPackageNameWithJvmName.kt")
|
||||
public void testJvmPackageNameWithJvmName() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameWithJvmName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmStaticInObject.kt")
|
||||
public void testJvmStaticInObject() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmStaticInObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kotlinPropertyAsAnnotationParameter.kt")
|
||||
public void testKotlinPropertyAsAnnotationParameter() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/kotlinPropertyAsAnnotationParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt14012.kt")
|
||||
public void testKt14012() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/kt14012.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt14012_multi.kt")
|
||||
public void testKt14012_multi() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/kt14012_multi.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt21775.kt")
|
||||
public void testKt21775() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/kt21775.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("metadataForMembersInLocalClassInInitializer.kt")
|
||||
public void testMetadataForMembersInLocalClassInInitializer() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/metadataForMembersInLocalClassInInitializer.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multifileClassInlineFunctionAccessingProperty.kt")
|
||||
public void testMultifileClassInlineFunctionAccessingProperty() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/multifileClassInlineFunctionAccessingProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multifileClassWithTypealias.kt")
|
||||
public void testMultifileClassWithTypealias() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/multifileClassWithTypealias.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedClass.kt")
|
||||
public void testNestedClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedClassInAnnotationArgument.kt")
|
||||
public void testNestedClassInAnnotationArgument() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedClassInAnnotationArgument.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedEnum.kt")
|
||||
public void testNestedEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedFunctionTypeAliasExpansion.kt")
|
||||
public void testNestedFunctionTypeAliasExpansion() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedObject.kt")
|
||||
public void testNestedObject() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedTypeAliasExpansion.kt")
|
||||
public void testNestedTypeAliasExpansion() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("optionalAnnotation.kt")
|
||||
public void testOptionalAnnotation() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/optionalAnnotation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("platformTypes.kt")
|
||||
public void testPlatformTypes() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/platformTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateCompanionObjectValInDifferentModule.kt")
|
||||
public void testPrivateCompanionObjectValInDifferentModule() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateTopLevelValInDifferentModule.kt")
|
||||
public void testPrivateTopLevelValInDifferentModule() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyReference.kt")
|
||||
public void testPropertyReference() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/propertyReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("recursiveGeneric.kt")
|
||||
public void testRecursiveGeneric() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/recursiveGeneric.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("reflectTopLevelFunctionOtherFile.kt")
|
||||
public void testReflectTopLevelFunctionOtherFile() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/reflectTopLevelFunctionOtherFile.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("sealedClass.kt")
|
||||
public void testSealedClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/sealedClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("secondaryConstructors.kt")
|
||||
public void testSecondaryConstructors() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/secondaryConstructors.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleValAnonymousObject.kt")
|
||||
public void testSimpleValAnonymousObject() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/simpleValAnonymousObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("specialBridgesInDependencies.kt")
|
||||
public void testSpecialBridgesInDependencies() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/specialBridgesInDependencies.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("starImportEnum.kt")
|
||||
public void testStarImportEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/starImportEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendFunWithDefaultMangling.kt")
|
||||
public void testSuspendFunWithDefaultMangling() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("targetedJvmName.kt")
|
||||
public void testTargetedJvmName() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/targetedJvmName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeAliasesKt13181.kt")
|
||||
public void testTypeAliasesKt13181() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/typeAliasesKt13181.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedTypesInAnnotations.kt")
|
||||
public void testUnsignedTypesInAnnotations() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/unsignedTypesInAnnotations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("useDeserializedFunInterface.kt")
|
||||
public void testUseDeserializedFunInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/useDeserializedFunInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/fir")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Fir extends AbstractCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFir() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/fir"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("AnonymousObjectInProperty.kt")
|
||||
public void testAnonymousObjectInProperty() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ExistingSymbolInFakeOverride.kt")
|
||||
public void testExistingSymbolInFakeOverride() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/fir/ExistingSymbolInFakeOverride.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("LibraryProperty.kt")
|
||||
public void testLibraryProperty() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/fir/LibraryProperty.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Jvm8 extends AbstractCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJvm8() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Defaults extends AbstractCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDefaults() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("superCall.kt")
|
||||
public void testSuperCall() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCallFromInterface.kt")
|
||||
public void testSuperCallFromInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCallFromInterface2.kt")
|
||||
public void testSuperCallFromInterface2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccess.kt")
|
||||
public void testSuperPropAccess() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccess.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccessFromInterface.kt")
|
||||
public void testSuperPropAccessFromInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccessFromInterface2.kt")
|
||||
public void testSuperPropAccessFromInterface2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class AllCompatibility extends AbstractCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInAllCompatibility() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("callStackTrace.kt")
|
||||
public void testCallStackTrace() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/callStackTrace.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCall.kt")
|
||||
public void testSuperCall() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCallFromInterface.kt")
|
||||
public void testSuperCallFromInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCallFromInterface2.kt")
|
||||
public void testSuperCallFromInterface2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccess.kt")
|
||||
public void testSuperPropAccess() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccess.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccessFromInterface.kt")
|
||||
public void testSuperPropAccessFromInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccessFromInterface2.kt")
|
||||
public void testSuperPropAccessFromInterface2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class DelegationBy extends AbstractCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDelegationBy() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleProperty.kt")
|
||||
public void testSimpleProperty() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Interop extends AbstractCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInInterop() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("likeMemberClash.kt")
|
||||
public void testLikeMemberClash() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeMemberClash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("likeSpecialization.kt")
|
||||
public void testLikeSpecialization() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeSpecialization.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("newAndOldSchemes.kt")
|
||||
public void testNewAndOldSchemes() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("newAndOldSchemes2.kt")
|
||||
public void testNewAndOldSchemes2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("newAndOldSchemes2Compatibility.kt")
|
||||
public void testNewAndOldSchemes2Compatibility() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2Compatibility.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("newAndOldSchemes3.kt")
|
||||
public void testNewAndOldSchemes3() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("newSchemeWithJvmDefault.kt")
|
||||
public void testNewSchemeWithJvmDefault() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newSchemeWithJvmDefault.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Jvm8against6 extends AbstractCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJvm8against6() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("jdk8Against6.kt")
|
||||
public void testJdk8Against6() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/jdk8Against6.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleCall.kt")
|
||||
public void testSimpleCall() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleCallWithBigHierarchy.kt")
|
||||
public void testSimpleCallWithBigHierarchy() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithBigHierarchy.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleCallWithHierarchy.kt")
|
||||
public void testSimpleCallWithHierarchy() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithHierarchy.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleProp.kt")
|
||||
public void testSimpleProp() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleProp.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simplePropWithHierarchy.kt")
|
||||
public void testSimplePropWithHierarchy() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simplePropWithHierarchy.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Delegation extends AbstractCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDelegation() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("diamond.kt")
|
||||
public void testDiamond() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("diamond2.kt")
|
||||
public void testDiamond2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("diamond3.kt")
|
||||
public void testDiamond3() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond3.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TypeAnnotations extends AbstractCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTypeAnnotations() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("implicitReturn.kt")
|
||||
public void testImplicitReturn() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations/implicitReturn.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
-50
@@ -1,50 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.codegen;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/codegen/customScript")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class CustomScriptCodegenTestGenerated extends AbstractCustomScriptCodegenTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCustomScript() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/customScript"), Pattern.compile("^(.*)$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("pathPattern5.kts")
|
||||
public void testPathPattern5_kts() throws Exception {
|
||||
runTest("compiler/testData/codegen/customScript/pathPattern5.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleEnvVars.kts")
|
||||
public void testSimpleEnvVars_kts() throws Exception {
|
||||
runTest("compiler/testData/codegen/customScript/simpleEnvVars.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.customext")
|
||||
public void testSimple_customext() throws Exception {
|
||||
runTest("compiler/testData/codegen/customScript/simple.customext");
|
||||
}
|
||||
|
||||
@TestMetadata("stringReceiver.kts")
|
||||
public void testStringReceiver_kts() throws Exception {
|
||||
runTest("compiler/testData/codegen/customScript/stringReceiver.kts");
|
||||
}
|
||||
}
|
||||
-80
@@ -1,80 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.codegen;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/codegen/dumpDeclarations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class DumpDeclarationsTestGenerated extends AbstractDumpDeclarationsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDumpDeclarations() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/dumpDeclarations"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("annotation.kt")
|
||||
public void testAnnotation() throws Exception {
|
||||
runTest("compiler/testData/codegen/dumpDeclarations/annotation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classMembers.kt")
|
||||
public void testClassMembers() throws Exception {
|
||||
runTest("compiler/testData/codegen/dumpDeclarations/classMembers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classes.kt")
|
||||
public void testClasses() throws Exception {
|
||||
runTest("compiler/testData/codegen/dumpDeclarations/classes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("interfaces.kt")
|
||||
public void testInterfaces() throws Exception {
|
||||
runTest("compiler/testData/codegen/dumpDeclarations/interfaces.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intermediateAbstractSuspendFunction.kt")
|
||||
public void testIntermediateAbstractSuspendFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/dumpDeclarations/intermediateAbstractSuspendFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localClasses.kt")
|
||||
public void testLocalClasses() throws Exception {
|
||||
runTest("compiler/testData/codegen/dumpDeclarations/localClasses.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multifileFacadeMembers.kt")
|
||||
public void testMultifileFacadeMembers() throws Exception {
|
||||
runTest("compiler/testData/codegen/dumpDeclarations/multifileFacadeMembers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendLambda.kt")
|
||||
public void testSuspendLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/dumpDeclarations/suspendLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendOverride.kt")
|
||||
public void testSuspendOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/dumpDeclarations/suspendOverride.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelMembers.kt")
|
||||
public void testTopLevelMembers() throws Exception {
|
||||
runTest("compiler/testData/codegen/dumpDeclarations/topLevelMembers.kt");
|
||||
}
|
||||
}
|
||||
Generated
-66
@@ -1,66 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.codegen;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/codegen/kapt")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class Kapt3BuilderModeBytecodeShapeTestGenerated extends AbstractKapt3BuilderModeBytecodeShapeTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInKapt() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/kapt"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("dataClass.kt")
|
||||
public void testDataClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/kapt/dataClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("errorTypes.kt")
|
||||
public void testErrorTypes() throws Exception {
|
||||
runTest("compiler/testData/codegen/kapt/errorTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClasses.kt")
|
||||
public void testInnerClasses() throws Exception {
|
||||
runTest("compiler/testData/codegen/kapt/innerClasses.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("interfaceImpls.kt")
|
||||
public void testInterfaceImpls() throws Exception {
|
||||
runTest("compiler/testData/codegen/kapt/interfaceImpls.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmOverloads.kt")
|
||||
public void testJvmOverloads() throws Exception {
|
||||
runTest("compiler/testData/codegen/kapt/jvmOverloads.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdas.kt")
|
||||
public void testLambdas() throws Exception {
|
||||
runTest("compiler/testData/codegen/kapt/lambdas.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/kapt/simple.kt");
|
||||
}
|
||||
}
|
||||
-32179
File diff suppressed because it is too large
Load Diff
-175
@@ -1,175 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.codegen;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/codegen/script")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class ScriptCodegenTestGenerated extends AbstractScriptCodegenTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("adder.kts")
|
||||
public void testAdder() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/adder.kts");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInScript() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/script"), Pattern.compile("^(.+)\\.kts$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classLiteralInsideFunction.kts")
|
||||
public void testClassLiteralInsideFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/classLiteralInsideFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringDeclaration.kts")
|
||||
public void testDestructuringDeclaration() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/destructuringDeclaration.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringDeclarationUnderscore.kts")
|
||||
public void testDestructuringDeclarationUnderscore() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/destructuringDeclarationUnderscore.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("empty.kts")
|
||||
public void testEmpty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/empty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("helloWorld.kts")
|
||||
public void testHelloWorld() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/helloWorld.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("inline.kts")
|
||||
public void testInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/inline.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("kt20707.kts")
|
||||
public void testKt20707() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/kt20707.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("kt22029.kts")
|
||||
public void testKt22029() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/kt22029.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegatedProperty.kts")
|
||||
public void testLocalDelegatedProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/localDelegatedProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegatedPropertyNoExplicitType.kts")
|
||||
public void testLocalDelegatedPropertyNoExplicitType() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/localDelegatedPropertyNoExplicitType.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localFunction.kts")
|
||||
public void testLocalFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/localFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("outerCapture.kts")
|
||||
public void testOuterCapture() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/outerCapture.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameter.kts")
|
||||
public void testParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/parameter.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterArray.kts")
|
||||
public void testParameterArray() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/parameterArray.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterClosure.kts")
|
||||
public void testParameterClosure() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/parameterClosure.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterLong.kts")
|
||||
public void testParameterLong() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/parameterLong.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("secondLevelFunction.kts")
|
||||
public void testSecondLevelFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/secondLevelFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("secondLevelFunctionClosure.kts")
|
||||
public void testSecondLevelFunctionClosure() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/secondLevelFunctionClosure.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("secondLevelVal.kts")
|
||||
public void testSecondLevelVal() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/secondLevelVal.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleClass.kts")
|
||||
public void testSimpleClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/simpleClass.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("string.kts")
|
||||
public void testString() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/string.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelFunction.kts")
|
||||
public void testTopLevelFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelFunctionClosure.kts")
|
||||
public void testTopLevelFunctionClosure() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelFunctionClosure.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelLocalDelegatedProperty.kts")
|
||||
public void testTopLevelLocalDelegatedProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelLocalDelegatedProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelPropertiesWithGetSet.kts")
|
||||
public void testTopLevelPropertiesWithGetSet() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelPropertiesWithGetSet.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelProperty.kts")
|
||||
public void testTopLevelProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelPropertyWithProvideDelegate.kts")
|
||||
public void testTopLevelPropertyWithProvideDelegate() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelPropertyWithProvideDelegate.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelTypealias.kts")
|
||||
public void testTopLevelTypealias() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelTypealias.kts");
|
||||
}
|
||||
}
|
||||
-65
@@ -1,65 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.codegen;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/codegen/topLevelMemberInvocation")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class TopLevelMembersInvocationTestGenerated extends AbstractTopLevelMembersInvocationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTopLevelMemberInvocation() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/topLevelMemberInvocation"), Pattern.compile("^([^\\.]+)$"), null, false);
|
||||
}
|
||||
|
||||
@TestMetadata("extensionFunction")
|
||||
public void testExtensionFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/topLevelMemberInvocation/extensionFunction/");
|
||||
}
|
||||
|
||||
@TestMetadata("functionDifferentPackage")
|
||||
public void testFunctionDifferentPackage() throws Exception {
|
||||
runTest("compiler/testData/codegen/topLevelMemberInvocation/functionDifferentPackage/");
|
||||
}
|
||||
|
||||
@TestMetadata("functionInMultiFilePackage")
|
||||
public void testFunctionInMultiFilePackage() throws Exception {
|
||||
runTest("compiler/testData/codegen/topLevelMemberInvocation/functionInMultiFilePackage/");
|
||||
}
|
||||
|
||||
@TestMetadata("functionSamePackage")
|
||||
public void testFunctionSamePackage() throws Exception {
|
||||
runTest("compiler/testData/codegen/topLevelMemberInvocation/functionSamePackage/");
|
||||
}
|
||||
|
||||
@TestMetadata("property")
|
||||
public void testProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/topLevelMemberInvocation/property/");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyWithGetter")
|
||||
public void testPropertyWithGetter() throws Exception {
|
||||
runTest("compiler/testData/codegen/topLevelMemberInvocation/propertyWithGetter/");
|
||||
}
|
||||
|
||||
@TestMetadata("twoModules")
|
||||
public void testTwoModules() throws Exception {
|
||||
runTest("compiler/testData/codegen/topLevelMemberInvocation/twoModules/");
|
||||
}
|
||||
}
|
||||
Generated
-169
@@ -1,169 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.codegen.debugInformation;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.BlockJUnit4ClassRunner;
|
||||
import org.junit.Test;
|
||||
|
||||
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/debug/localVariables")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(BlockJUnit4ClassRunner.class)
|
||||
public class IrLocalVariableTestGenerated extends AbstractIrLocalVariableTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInLocalVariables() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/debug/localVariables"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("catchClause.kt")
|
||||
public void testCatchClause() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/catchClause.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("copyFunction.kt")
|
||||
public void testCopyFunction() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/copyFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("destructuringInFor.kt")
|
||||
public void testDestructuringInFor() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/destructuringInFor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("destructuringInLambdas.kt")
|
||||
public void testDestructuringInLambdas() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/destructuringInLambdas.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineProperty.kt")
|
||||
public void testInlineProperty() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/inlineProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmOverloads.kt")
|
||||
public void testJvmOverloads() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/jvmOverloads.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localFun.kt")
|
||||
public void testLocalFun() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/localFun.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("underscoreNames.kt")
|
||||
public void testUnderscoreNames() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/underscoreNames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/debug/localVariables/receiverMangling")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(BlockJUnit4ClassRunner.class)
|
||||
public static class ReceiverMangling extends AbstractIrLocalVariableTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInReceiverMangling() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/debug/localVariables/receiverMangling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("capturedThisField.kt")
|
||||
public void testCapturedThisField() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/receiverMangling/capturedThisField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("labeledThisParameterLabel.kt")
|
||||
public void testLabeledThisParameterLabel() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/receiverMangling/labeledThisParameterLabel.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaWithExtensionReceiver.kt")
|
||||
public void testLambdaWithExtensionReceiver() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/receiverMangling/lambdaWithExtensionReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("receiverParameter.kt")
|
||||
public void testReceiverParameter() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/receiverMangling/receiverParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/receiverMangling/simple.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleCapturedReceiver.kt")
|
||||
public void testSimpleCapturedReceiver() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/receiverMangling/simpleCapturedReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleCapturedReceiverWithLabel.kt")
|
||||
public void testSimpleCapturedReceiverWithLabel() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/receiverMangling/simpleCapturedReceiverWithLabel.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleCapturedReceiverWithParenthesis.kt")
|
||||
public void testSimpleCapturedReceiverWithParenthesis() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/receiverMangling/simpleCapturedReceiverWithParenthesis.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/debug/localVariables/suspend")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(BlockJUnit4ClassRunner.class)
|
||||
public static class Suspend extends AbstractIrLocalVariableTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInSuspend() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/debug/localVariables/suspend"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/suspend/simple.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("underscoreNames.kt")
|
||||
public void testUnderscoreNames() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/suspend/underscoreNames.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
-513
@@ -1,513 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.codegen.debugInformation;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.BlockJUnit4ClassRunner;
|
||||
import org.junit.Test;
|
||||
|
||||
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/debug/stepping")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(BlockJUnit4ClassRunner.class)
|
||||
public class IrSteppingTestGenerated extends AbstractIrSteppingTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInStepping() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/debug/stepping"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousFunction.kt")
|
||||
public void testAnonymousFunction() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/anonymousFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("assertion.kt")
|
||||
public void testAssertion() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/assertion.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("beforeGotoToWhileStart.kt")
|
||||
public void testBeforeGotoToWhileStart() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/beforeGotoToWhileStart.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callWithCallInArguments.kt")
|
||||
public void testCallWithCallInArguments() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/callWithCallInArguments.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callWithReceiver.kt")
|
||||
public void testCallWithReceiver() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/callWithReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callableReference.kt")
|
||||
public void testCallableReference() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/callableReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("chainCall.kt")
|
||||
public void testChainCall() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/chainCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("class.kt")
|
||||
public void testClass() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/class.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classObject.kt")
|
||||
public void testClassObject() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/classObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("compileTimeConstant.kt")
|
||||
public void testCompileTimeConstant() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/compileTimeConstant.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("conjunction.kt")
|
||||
public void testConjunction() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/conjunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("constructorCall.kt")
|
||||
public void testConstructorCall() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/constructorCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("constructors.kt")
|
||||
public void testConstructors() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/constructors.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("dataClass.kt")
|
||||
public void testDataClass() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/dataClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("defaultParameter.kt")
|
||||
public void testDefaultParameter() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/defaultParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enum.kt")
|
||||
public void testEnum() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/enum.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("for.kt")
|
||||
public void testFor() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/for.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionCallWithDefault.kt")
|
||||
public void testFunctionCallWithDefault() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/functionCallWithDefault.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionCallWithInlinedLambdaParam.kt")
|
||||
public void testFunctionCallWithInlinedLambdaParam() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/functionCallWithInlinedLambdaParam.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionCallWithLambdaParam.kt")
|
||||
public void testFunctionCallWithLambdaParam() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/functionCallWithLambdaParam.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionInAnotherFile.kt")
|
||||
public void testFunctionInAnotherFile() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/functionInAnotherFile.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("if.kt")
|
||||
public void testIf() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/if.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("if2.kt")
|
||||
public void testIf2() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/if2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifThen.kt")
|
||||
public void testIfThen() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/ifThen.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifThenElse.kt")
|
||||
public void testIfThenElse() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/ifThenElse.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifThenElseFalse.kt")
|
||||
public void testIfThenElseFalse() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/ifThenElseFalse.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("IfTrueThenFalse.kt")
|
||||
public void testIfTrueThenFalse() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/IfTrueThenFalse.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithInlineInCondition.kt")
|
||||
public void testIfWithInlineInCondition() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/ifWithInlineInCondition.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("iincStepping.kt")
|
||||
public void testIincStepping() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/iincStepping.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inTheEndOfLambdaArgumentOfInlineCall.kt")
|
||||
public void testInTheEndOfLambdaArgumentOfInlineCall() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/inTheEndOfLambdaArgumentOfInlineCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("initBlocks.kt")
|
||||
public void testInitBlocks() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/initBlocks.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("initBlocksCompanion.kt")
|
||||
public void testInitBlocksCompanion() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/initBlocksCompanion.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineCallableReference.kt")
|
||||
public void testInlineCallableReference() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/inlineCallableReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineNamedCallableReference.kt")
|
||||
public void testInlineNamedCallableReference() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/inlineNamedCallableReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineSimpleCall.kt")
|
||||
public void testInlineSimpleCall() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/inlineSimpleCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaStepInline.kt")
|
||||
public void testLambdaStepInline() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/lambdaStepInline.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaStepInlineWithDefaults.kt")
|
||||
public void testLambdaStepInlineWithDefaults() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/lambdaStepInlineWithDefaults.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lineNumberAfterInline.kt")
|
||||
public void testLineNumberAfterInline() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/lineNumberAfterInline.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localFunction.kt")
|
||||
public void testLocalFunction() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/localFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multilineFunctionCall.kt")
|
||||
public void testMultilineFunctionCall() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/multilineFunctionCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multilineInfixCall.kt")
|
||||
public void testMultilineInfixCall() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/multilineInfixCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("namedCallableReference.kt")
|
||||
public void testNamedCallableReference() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/namedCallableReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedInline.kt")
|
||||
public void testNestedInline() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/nestedInline.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noParametersArgumentCallInExpression.kt")
|
||||
public void testNoParametersArgumentCallInExpression() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/noParametersArgumentCallInExpression.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("primitiveNullChecks.kt")
|
||||
public void testPrimitiveNullChecks() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/primitiveNullChecks.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyAccessor.kt")
|
||||
public void testPropertyAccessor() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/propertyAccessor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("psvm.kt")
|
||||
public void testPsvm() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/psvm.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("recursion.kt")
|
||||
public void testRecursion() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/recursion.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleDefaultArg.kt")
|
||||
public void testSimpleDefaultArg() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/simpleDefaultArg.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleDefaultArgWithInline.kt")
|
||||
public void testSimpleDefaultArgWithInline() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/simpleDefaultArgWithInline.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleInlineDefaultArg.kt")
|
||||
public void testSimpleInlineDefaultArg() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/simpleInlineDefaultArg.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleSmap.kt")
|
||||
public void testSimpleSmap() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/simpleSmap.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smapInlineAsArgument.kt")
|
||||
public void testSmapInlineAsArgument() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/smapInlineAsArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smapInlineAsInfixArgument.kt")
|
||||
public void testSmapInlineAsInfixArgument() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/smapInlineAsInfixArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smapInlineAsInlineArgument.kt")
|
||||
public void testSmapInlineAsInlineArgument() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/smapInlineAsInlineArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smapInlineInIntrinsicArgument.kt")
|
||||
public void testSmapInlineInIntrinsicArgument() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/smapInlineInIntrinsicArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stringSwitches.kt")
|
||||
public void testStringSwitches() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/stringSwitches.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stringSwitchesSmall.kt")
|
||||
public void testStringSwitchesSmall() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/stringSwitchesSmall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("suspendFunWithLambdaParameter.kt")
|
||||
public void testSuspendFunWithLambdaParameter() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/suspendFunWithLambdaParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("suspendFunWithSuspendLambdaParameter.kt")
|
||||
public void testSuspendFunWithSuspendLambdaParameter() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/suspendFunWithSuspendLambdaParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("throwException.kt")
|
||||
public void testThrowException() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/throwException.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("topLevel.kt")
|
||||
public void testTopLevel() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/topLevel.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("trait.kt")
|
||||
public void testTrait() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/trait.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("tryCatch.kt")
|
||||
public void testTryCatch() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/tryCatch.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("tryCatchExpression.kt")
|
||||
public void testTryCatchExpression() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/tryCatchExpression.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("tryCatchFinally.kt")
|
||||
public void testTryCatchFinally() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/tryCatchFinally.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("tryFinally.kt")
|
||||
public void testTryFinally() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/tryFinally.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("variablesWithoutInitializer.kt")
|
||||
public void testVariablesWithoutInitializer() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/variablesWithoutInitializer.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("voidLambdaStepInline.kt")
|
||||
public void testVoidLambdaStepInline() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/voidLambdaStepInline.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("when.kt")
|
||||
public void testWhen() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/when.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whenComplicatedSubject.kt")
|
||||
public void testWhenComplicatedSubject() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/whenComplicatedSubject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whenConstant.kt")
|
||||
public void testWhenConstant() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/whenConstant.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whenIsChecks.kt")
|
||||
public void testWhenIsChecks() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/whenIsChecks.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whenMultiLine.kt")
|
||||
public void testWhenMultiLine() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/whenMultiLine.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whenMultiLineSubject.kt")
|
||||
public void testWhenMultiLineSubject() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/whenMultiLineSubject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whenNullalbeSubject.kt")
|
||||
public void testWhenNullalbeSubject() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/whenNullalbeSubject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whenSubject.kt")
|
||||
public void testWhenSubject() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/whenSubject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whenSubject2.kt")
|
||||
public void testWhenSubject2() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/whenSubject2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whenWithInlineInCondition.kt")
|
||||
public void testWhenWithInlineInCondition() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/whenWithInlineInCondition.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("while.kt")
|
||||
public void testWhile() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/while.kt");
|
||||
}
|
||||
}
|
||||
Generated
-169
@@ -1,169 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.codegen.debugInformation;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.BlockJUnit4ClassRunner;
|
||||
import org.junit.Test;
|
||||
|
||||
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/debug/localVariables")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(BlockJUnit4ClassRunner.class)
|
||||
public class LocalVariableTestGenerated extends AbstractLocalVariableTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInLocalVariables() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/debug/localVariables"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("catchClause.kt")
|
||||
public void testCatchClause() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/catchClause.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("copyFunction.kt")
|
||||
public void testCopyFunction() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/copyFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("destructuringInFor.kt")
|
||||
public void testDestructuringInFor() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/destructuringInFor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("destructuringInLambdas.kt")
|
||||
public void testDestructuringInLambdas() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/destructuringInLambdas.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineProperty.kt")
|
||||
public void testInlineProperty() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/inlineProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmOverloads.kt")
|
||||
public void testJvmOverloads() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/jvmOverloads.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localFun.kt")
|
||||
public void testLocalFun() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/localFun.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("underscoreNames.kt")
|
||||
public void testUnderscoreNames() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/underscoreNames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/debug/localVariables/receiverMangling")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(BlockJUnit4ClassRunner.class)
|
||||
public static class ReceiverMangling extends AbstractLocalVariableTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInReceiverMangling() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/debug/localVariables/receiverMangling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("capturedThisField.kt")
|
||||
public void testCapturedThisField() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/receiverMangling/capturedThisField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("labeledThisParameterLabel.kt")
|
||||
public void testLabeledThisParameterLabel() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/receiverMangling/labeledThisParameterLabel.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaWithExtensionReceiver.kt")
|
||||
public void testLambdaWithExtensionReceiver() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/receiverMangling/lambdaWithExtensionReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("receiverParameter.kt")
|
||||
public void testReceiverParameter() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/receiverMangling/receiverParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/receiverMangling/simple.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleCapturedReceiver.kt")
|
||||
public void testSimpleCapturedReceiver() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/receiverMangling/simpleCapturedReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleCapturedReceiverWithLabel.kt")
|
||||
public void testSimpleCapturedReceiverWithLabel() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/receiverMangling/simpleCapturedReceiverWithLabel.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleCapturedReceiverWithParenthesis.kt")
|
||||
public void testSimpleCapturedReceiverWithParenthesis() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/receiverMangling/simpleCapturedReceiverWithParenthesis.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/debug/localVariables/suspend")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(BlockJUnit4ClassRunner.class)
|
||||
public static class Suspend extends AbstractLocalVariableTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInSuspend() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/debug/localVariables/suspend"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/suspend/simple.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("underscoreNames.kt")
|
||||
public void testUnderscoreNames() throws Exception {
|
||||
runTest("compiler/testData/debug/localVariables/suspend/underscoreNames.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
-513
@@ -1,513 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.codegen.debugInformation;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.BlockJUnit4ClassRunner;
|
||||
import org.junit.Test;
|
||||
|
||||
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/debug/stepping")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(BlockJUnit4ClassRunner.class)
|
||||
public class SteppingTestGenerated extends AbstractSteppingTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInStepping() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/debug/stepping"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousFunction.kt")
|
||||
public void testAnonymousFunction() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/anonymousFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("assertion.kt")
|
||||
public void testAssertion() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/assertion.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("beforeGotoToWhileStart.kt")
|
||||
public void testBeforeGotoToWhileStart() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/beforeGotoToWhileStart.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callWithCallInArguments.kt")
|
||||
public void testCallWithCallInArguments() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/callWithCallInArguments.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callWithReceiver.kt")
|
||||
public void testCallWithReceiver() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/callWithReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callableReference.kt")
|
||||
public void testCallableReference() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/callableReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("chainCall.kt")
|
||||
public void testChainCall() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/chainCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("class.kt")
|
||||
public void testClass() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/class.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classObject.kt")
|
||||
public void testClassObject() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/classObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("compileTimeConstant.kt")
|
||||
public void testCompileTimeConstant() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/compileTimeConstant.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("conjunction.kt")
|
||||
public void testConjunction() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/conjunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("constructorCall.kt")
|
||||
public void testConstructorCall() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/constructorCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("constructors.kt")
|
||||
public void testConstructors() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/constructors.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("dataClass.kt")
|
||||
public void testDataClass() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/dataClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("defaultParameter.kt")
|
||||
public void testDefaultParameter() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/defaultParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enum.kt")
|
||||
public void testEnum() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/enum.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("for.kt")
|
||||
public void testFor() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/for.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionCallWithDefault.kt")
|
||||
public void testFunctionCallWithDefault() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/functionCallWithDefault.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionCallWithInlinedLambdaParam.kt")
|
||||
public void testFunctionCallWithInlinedLambdaParam() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/functionCallWithInlinedLambdaParam.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionCallWithLambdaParam.kt")
|
||||
public void testFunctionCallWithLambdaParam() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/functionCallWithLambdaParam.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionInAnotherFile.kt")
|
||||
public void testFunctionInAnotherFile() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/functionInAnotherFile.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("if.kt")
|
||||
public void testIf() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/if.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("if2.kt")
|
||||
public void testIf2() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/if2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifThen.kt")
|
||||
public void testIfThen() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/ifThen.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifThenElse.kt")
|
||||
public void testIfThenElse() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/ifThenElse.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifThenElseFalse.kt")
|
||||
public void testIfThenElseFalse() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/ifThenElseFalse.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("IfTrueThenFalse.kt")
|
||||
public void testIfTrueThenFalse() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/IfTrueThenFalse.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithInlineInCondition.kt")
|
||||
public void testIfWithInlineInCondition() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/ifWithInlineInCondition.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("iincStepping.kt")
|
||||
public void testIincStepping() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/iincStepping.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inTheEndOfLambdaArgumentOfInlineCall.kt")
|
||||
public void testInTheEndOfLambdaArgumentOfInlineCall() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/inTheEndOfLambdaArgumentOfInlineCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("initBlocks.kt")
|
||||
public void testInitBlocks() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/initBlocks.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("initBlocksCompanion.kt")
|
||||
public void testInitBlocksCompanion() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/initBlocksCompanion.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineCallableReference.kt")
|
||||
public void testInlineCallableReference() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/inlineCallableReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineNamedCallableReference.kt")
|
||||
public void testInlineNamedCallableReference() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/inlineNamedCallableReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineSimpleCall.kt")
|
||||
public void testInlineSimpleCall() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/inlineSimpleCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaStepInline.kt")
|
||||
public void testLambdaStepInline() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/lambdaStepInline.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaStepInlineWithDefaults.kt")
|
||||
public void testLambdaStepInlineWithDefaults() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/lambdaStepInlineWithDefaults.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lineNumberAfterInline.kt")
|
||||
public void testLineNumberAfterInline() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/lineNumberAfterInline.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localFunction.kt")
|
||||
public void testLocalFunction() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/localFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multilineFunctionCall.kt")
|
||||
public void testMultilineFunctionCall() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/multilineFunctionCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multilineInfixCall.kt")
|
||||
public void testMultilineInfixCall() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/multilineInfixCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("namedCallableReference.kt")
|
||||
public void testNamedCallableReference() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/namedCallableReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedInline.kt")
|
||||
public void testNestedInline() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/nestedInline.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noParametersArgumentCallInExpression.kt")
|
||||
public void testNoParametersArgumentCallInExpression() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/noParametersArgumentCallInExpression.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("primitiveNullChecks.kt")
|
||||
public void testPrimitiveNullChecks() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/primitiveNullChecks.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyAccessor.kt")
|
||||
public void testPropertyAccessor() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/propertyAccessor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("psvm.kt")
|
||||
public void testPsvm() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/psvm.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("recursion.kt")
|
||||
public void testRecursion() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/recursion.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleDefaultArg.kt")
|
||||
public void testSimpleDefaultArg() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/simpleDefaultArg.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleDefaultArgWithInline.kt")
|
||||
public void testSimpleDefaultArgWithInline() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/simpleDefaultArgWithInline.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleInlineDefaultArg.kt")
|
||||
public void testSimpleInlineDefaultArg() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/simpleInlineDefaultArg.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleSmap.kt")
|
||||
public void testSimpleSmap() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/simpleSmap.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smapInlineAsArgument.kt")
|
||||
public void testSmapInlineAsArgument() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/smapInlineAsArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smapInlineAsInfixArgument.kt")
|
||||
public void testSmapInlineAsInfixArgument() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/smapInlineAsInfixArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smapInlineAsInlineArgument.kt")
|
||||
public void testSmapInlineAsInlineArgument() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/smapInlineAsInlineArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smapInlineInIntrinsicArgument.kt")
|
||||
public void testSmapInlineInIntrinsicArgument() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/smapInlineInIntrinsicArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stringSwitches.kt")
|
||||
public void testStringSwitches() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/stringSwitches.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stringSwitchesSmall.kt")
|
||||
public void testStringSwitchesSmall() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/stringSwitchesSmall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("suspendFunWithLambdaParameter.kt")
|
||||
public void testSuspendFunWithLambdaParameter() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/suspendFunWithLambdaParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("suspendFunWithSuspendLambdaParameter.kt")
|
||||
public void testSuspendFunWithSuspendLambdaParameter() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/suspendFunWithSuspendLambdaParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("throwException.kt")
|
||||
public void testThrowException() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/throwException.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("topLevel.kt")
|
||||
public void testTopLevel() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/topLevel.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("trait.kt")
|
||||
public void testTrait() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/trait.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("tryCatch.kt")
|
||||
public void testTryCatch() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/tryCatch.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("tryCatchExpression.kt")
|
||||
public void testTryCatchExpression() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/tryCatchExpression.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("tryCatchFinally.kt")
|
||||
public void testTryCatchFinally() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/tryCatchFinally.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("tryFinally.kt")
|
||||
public void testTryFinally() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/tryFinally.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("variablesWithoutInitializer.kt")
|
||||
public void testVariablesWithoutInitializer() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/variablesWithoutInitializer.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("voidLambdaStepInline.kt")
|
||||
public void testVoidLambdaStepInline() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/voidLambdaStepInline.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("when.kt")
|
||||
public void testWhen() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/when.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whenComplicatedSubject.kt")
|
||||
public void testWhenComplicatedSubject() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/whenComplicatedSubject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whenConstant.kt")
|
||||
public void testWhenConstant() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/whenConstant.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whenIsChecks.kt")
|
||||
public void testWhenIsChecks() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/whenIsChecks.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whenMultiLine.kt")
|
||||
public void testWhenMultiLine() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/whenMultiLine.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whenMultiLineSubject.kt")
|
||||
public void testWhenMultiLineSubject() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/whenMultiLineSubject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whenNullalbeSubject.kt")
|
||||
public void testWhenNullalbeSubject() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/whenNullalbeSubject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whenSubject.kt")
|
||||
public void testWhenSubject() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/whenSubject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whenSubject2.kt")
|
||||
public void testWhenSubject2() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/whenSubject2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whenWithInlineInCondition.kt")
|
||||
public void testWhenWithInlineInCondition() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/whenWithInlineInCondition.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("while.kt")
|
||||
public void testWhile() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/while.kt");
|
||||
}
|
||||
}
|
||||
-90
@@ -1,90 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.codegen.defaultConstructor;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/codegen/defaultArguments/reflection")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class DefaultArgumentsReflectionTestGenerated extends AbstractDefaultArgumentsReflectionTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInReflection() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/defaultArguments/reflection"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classInClassObject.kt")
|
||||
public void testClassInClassObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/classInClassObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classInObject.kt")
|
||||
public void testClassInObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/classInObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classWithTwoDefaultArgs.kt")
|
||||
public void testClassWithTwoDefaultArgs() throws Exception {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/classWithTwoDefaultArgs.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classWithVararg.kt")
|
||||
public void testClassWithVararg() throws Exception {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/classWithVararg.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("enum.kt")
|
||||
public void testEnum() throws Exception {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/enum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("internalClass.kt")
|
||||
public void testInternalClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/internalClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateClass.kt")
|
||||
public void testPrivateClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/privateClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateConstructor.kt")
|
||||
public void testPrivateConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/privateConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("publicClass.kt")
|
||||
public void testPublicClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/publicClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("publicClassWoDefArgs.kt")
|
||||
public void testPublicClassWoDefArgs() throws Exception {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/publicClassWoDefArgs.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("publicInnerClass.kt")
|
||||
public void testPublicInnerClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/publicInnerClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("publicInnerClassInPrivateClass.kt")
|
||||
public void testPublicInnerClassInPrivateClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/publicInnerClassInPrivateClass.kt");
|
||||
}
|
||||
}
|
||||
-1312
File diff suppressed because it is too large
Load Diff
Generated
-192
@@ -1,192 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.codegen.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/codegen/asmLike")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrAsmLikeInstructionListingTestGenerated extends AbstractIrAsmLikeInstructionListingTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInAsmLike() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/asmLike"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/asmLike/receiverMangling")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ReceiverMangling extends AbstractIrAsmLikeInstructionListingTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInReceiverMangling() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/asmLike/receiverMangling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("deepInline.kt")
|
||||
public void testDeepInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/receiverMangling/deepInline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("deepInlineWithLabels.kt")
|
||||
public void testDeepInlineWithLabels() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/receiverMangling/deepInlineWithLabels.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("deepNoinlineWithLabels_after.kt")
|
||||
public void testDeepNoinlineWithLabels_after() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/receiverMangling/deepNoinlineWithLabels_after.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("deepNoinlineWithLabels_before.kt")
|
||||
public void testDeepNoinlineWithLabels_before() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/receiverMangling/deepNoinlineWithLabels_before.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("deepNoinline_after.kt")
|
||||
public void testDeepNoinline_after() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/receiverMangling/deepNoinline_after.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("deepNoinline_before.kt")
|
||||
public void testDeepNoinline_before() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/receiverMangling/deepNoinline_before.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassCapture.kt")
|
||||
public void testInlineClassCapture() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/receiverMangling/inlineClassCapture.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineReceivers.kt")
|
||||
public void testInlineReceivers() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/receiverMangling/inlineReceivers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localFunctions.kt")
|
||||
public void testLocalFunctions() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/receiverMangling/localFunctions.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mangledNames.kt")
|
||||
public void testMangledNames() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/receiverMangling/mangledNames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonInlineReceivers_after.kt")
|
||||
public void testNonInlineReceivers_after() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/receiverMangling/nonInlineReceivers_after.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonInlineReceivers_before.kt")
|
||||
public void testNonInlineReceivers_before() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/receiverMangling/nonInlineReceivers_before.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/asmLike/typeAnnotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TypeAnnotations extends AbstractIrAsmLikeInstructionListingTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTypeAnnotations() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/asmLike/typeAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("complex.kt")
|
||||
public void testComplex() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/complex.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constructor.kt")
|
||||
public void testConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/constructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultArgs.kt")
|
||||
public void testDefaultArgs() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/defaultArgs.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("enumClassConstructor.kt")
|
||||
public void testEnumClassConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/enumClassConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extension.kt")
|
||||
public void testExtension() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/extension.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("implicit.kt")
|
||||
public void testImplicit() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/implicit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClassConstructor.kt")
|
||||
public void testInnerClassConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/innerClassConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmOverload.kt")
|
||||
public void testJvmOverload() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/jvmOverload.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmStatic.kt")
|
||||
public void testJvmStatic() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/jvmStatic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("notYetSupported.kt")
|
||||
public void testNotYetSupported() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/notYetSupported.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("property.kt")
|
||||
public void testProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/property.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple2Params.kt")
|
||||
public void testSimple2Params() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/simple2Params.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("staticNested.kt")
|
||||
public void testStaticNested() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/staticNested.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("syntheticAccessors.kt")
|
||||
public void testSyntheticAccessors() throws Exception {
|
||||
runTest("compiler/testData/codegen/asmLike/typeAnnotations/syntheticAccessors.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
-1268
File diff suppressed because it is too large
Load Diff
-32774
File diff suppressed because it is too large
Load Diff
-4623
File diff suppressed because it is too large
Load Diff
-1531
File diff suppressed because it is too large
Load Diff
-5027
File diff suppressed because it is too large
Load Diff
Generated
-192
@@ -1,192 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.codegen.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/checkLocalVariablesTable")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrCheckLocalVariablesTableTestGenerated extends AbstractIrCheckLocalVariablesTableTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCheckLocalVariablesTable() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/checkLocalVariablesTable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("copyFunction.kt")
|
||||
public void testCopyFunction() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/copyFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringInFor.kt")
|
||||
public void testDestructuringInFor() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/destructuringInFor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringInLambdas.kt")
|
||||
public void testDestructuringInLambdas() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/destructuringInLambdas.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringInlineLambda.kt")
|
||||
public void testDestructuringInlineLambda() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/destructuringInlineLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineLambdaWithItParam.kt")
|
||||
public void testInlineLambdaWithItParam() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineLambdaWithItParam.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineLambdaWithParam.kt")
|
||||
public void testInlineLambdaWithParam() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineLambdaWithParam.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSimple.kt")
|
||||
public void testInlineSimple() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineSimple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSimpleChain.kt")
|
||||
public void testInlineSimpleChain() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineSimpleChain.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("itInLambda.kt")
|
||||
public void testItInLambda() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/itInLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("itInReturnedLambda.kt")
|
||||
public void testItInReturnedLambda() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/itInReturnedLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt11117.kt")
|
||||
public void testKt11117() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/kt11117.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaAsVar.kt")
|
||||
public void testLambdaAsVar() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/lambdaAsVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localFun.kt")
|
||||
public void testLocalFun() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/localFun.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("objectInLocalPropertyDelegate.kt")
|
||||
public void testObjectInLocalPropertyDelegate() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/objectInLocalPropertyDelegate.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("underscoreNames.kt")
|
||||
public void testUnderscoreNames() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/underscoreNames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/checkLocalVariablesTable/completionInSuspendFunction")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CompletionInSuspendFunction extends AbstractIrCheckLocalVariablesTableTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCompletionInSuspendFunction() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/checkLocalVariablesTable/completionInSuspendFunction"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("nonStaticSimple.kt")
|
||||
public void testNonStaticSimple() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/completionInSuspendFunction/nonStaticSimple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonStaticStateMachine.kt")
|
||||
public void testNonStaticStateMachine() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/completionInSuspendFunction/nonStaticStateMachine.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("staticSimple.kt")
|
||||
public void testStaticSimple() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/completionInSuspendFunction/staticSimple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("staticSimpleReceiver.kt")
|
||||
public void testStaticSimpleReceiver() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/completionInSuspendFunction/staticSimpleReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("staticStateMachine.kt")
|
||||
public void testStaticStateMachine() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/completionInSuspendFunction/staticStateMachine.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("staticStateMachineReceiver.kt")
|
||||
public void testStaticStateMachineReceiver() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/completionInSuspendFunction/staticStateMachineReceiver.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ParametersInSuspendLambda extends AbstractIrCheckLocalVariablesTableTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInParametersInSuspendLambda() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("dataClass.kt")
|
||||
public void testDataClass() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/dataClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionComponents.kt")
|
||||
public void testExtensionComponents() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/extensionComponents.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("generic.kt")
|
||||
public void testGeneric() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/generic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inline.kt")
|
||||
public void testInline() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/inline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("otherParameters.kt")
|
||||
public void testOtherParameters() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/otherParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parameters.kt")
|
||||
public void testParameters() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/parameters.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
-4623
File diff suppressed because it is too large
Load Diff
Generated
-692
@@ -1,692 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.codegen.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/compileKotlinAgainstKotlin")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrCompileKotlinAgainstKotlinTestGenerated extends AbstractIrCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception {
|
||||
KotlinTestUtils.runTest(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCompileKotlinAgainstKotlin() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("annotationInInterface.kt")
|
||||
public void testAnnotationInInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/annotationInInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("annotationOnTypeUseInTypeAlias.kt")
|
||||
public void testAnnotationOnTypeUseInTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("annotationsOnTypeAliases.kt")
|
||||
public void testAnnotationsOnTypeAliases() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/annotationsOnTypeAliases.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("callDeserializedPropertyOnInlineClassType.kt")
|
||||
public void testCallDeserializedPropertyOnInlineClassType() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("callsToMultifileClassFromOtherPackage.kt")
|
||||
public void testCallsToMultifileClassFromOtherPackage() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/callsToMultifileClassFromOtherPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classInObject.kt")
|
||||
public void testClassInObject() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/classInObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("companionObjectInEnum.kt")
|
||||
public void testCompanionObjectInEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/companionObjectInEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("companionObjectMember.kt")
|
||||
public void testCompanionObjectMember() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/companionObjectMember.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constPropertyReferenceFromMultifileClass.kt")
|
||||
public void testConstPropertyReferenceFromMultifileClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/constPropertyReferenceFromMultifileClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constructorVararg.kt")
|
||||
public void testConstructorVararg() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/constructorVararg.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constructorWithInlineClassParametersInBinaryDependencies.kt")
|
||||
public void testConstructorWithInlineClassParametersInBinaryDependencies() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependencies.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("copySamOnInline.kt")
|
||||
public void testCopySamOnInline() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/copySamOnInline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("copySamOnInline2.kt")
|
||||
public void testCopySamOnInline2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/copySamOnInline2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("coroutinesBinary.kt")
|
||||
public void testCoroutinesBinary_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/compileKotlinAgainstKotlin/coroutinesBinary.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultConstructor.kt")
|
||||
public void testDefaultConstructor() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/defaultConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultLambdaRegeneration.kt")
|
||||
public void testDefaultLambdaRegeneration() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/defaultLambdaRegeneration.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultLambdaRegeneration2.kt")
|
||||
public void testDefaultLambdaRegeneration2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/defaultLambdaRegeneration2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultWithInlineClassAndReceivers.kt")
|
||||
public void testDefaultWithInlineClassAndReceivers() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceivers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegatedDefault.kt")
|
||||
public void testDelegatedDefault() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/delegatedDefault.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationAndAnnotations.kt")
|
||||
public void testDelegationAndAnnotations() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/delegationAndAnnotations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("doublyNestedClass.kt")
|
||||
public void testDoublyNestedClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/doublyNestedClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("enum.kt")
|
||||
public void testEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/enum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectClassActualTypeAlias.kt")
|
||||
public void testExpectClassActualTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/expectClassActualTypeAlias.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassFromBinaryDependencies.kt")
|
||||
public void testInlineClassFromBinaryDependencies() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFromBinaryDependencies.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassInlineProperty.kt")
|
||||
public void testInlineClassInlineProperty() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassesOldMangling.kt")
|
||||
public void testInlineClassesOldMangling() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlinedConstants.kt")
|
||||
public void testInlinedConstants() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlinedConstants.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClassConstructor.kt")
|
||||
public void testInnerClassConstructor() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/innerClassConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("interfaceDelegationAndBridgesProcessing.kt")
|
||||
public void testInterfaceDelegationAndBridgesProcessing() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/interfaceDelegationAndBridgesProcessing.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("internalSetterOverridden.kt")
|
||||
public void testInternalSetterOverridden() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/internalSetterOverridden.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("internalWithDefaultArgs.kt")
|
||||
public void testInternalWithDefaultArgs() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithDefaultArgs.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("internalWithOtherModuleName.kt")
|
||||
public void testInternalWithOtherModuleName() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithOtherModuleName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmField.kt")
|
||||
public void testJvmField() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmField.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmFieldInAnnotationCompanion.kt")
|
||||
public void testJvmFieldInAnnotationCompanion() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInAnnotationCompanion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmFieldInConstructor.kt")
|
||||
public void testJvmFieldInConstructor() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmFieldInInterfaceCompanion.kt")
|
||||
public void testJvmFieldInInterfaceCompanion() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInInterfaceCompanion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmNames.kt")
|
||||
public void testJvmNames() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmNames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmPackageName.kt")
|
||||
public void testJvmPackageName() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmPackageNameInRootPackage.kt")
|
||||
public void testJvmPackageNameInRootPackage() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameInRootPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmPackageNameMultifileClass.kt")
|
||||
public void testJvmPackageNameMultifileClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameMultifileClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmPackageNameWithJvmName.kt")
|
||||
public void testJvmPackageNameWithJvmName() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameWithJvmName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmStaticInObject.kt")
|
||||
public void testJvmStaticInObject() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmStaticInObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kotlinPropertyAsAnnotationParameter.kt")
|
||||
public void testKotlinPropertyAsAnnotationParameter() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/kotlinPropertyAsAnnotationParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt14012.kt")
|
||||
public void testKt14012() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/kt14012.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt14012_multi.kt")
|
||||
public void testKt14012_multi() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/kt14012_multi.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt21775.kt")
|
||||
public void testKt21775() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/kt21775.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("metadataForMembersInLocalClassInInitializer.kt")
|
||||
public void testMetadataForMembersInLocalClassInInitializer() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/metadataForMembersInLocalClassInInitializer.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multifileClassInlineFunctionAccessingProperty.kt")
|
||||
public void testMultifileClassInlineFunctionAccessingProperty() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/multifileClassInlineFunctionAccessingProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multifileClassWithTypealias.kt")
|
||||
public void testMultifileClassWithTypealias() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/multifileClassWithTypealias.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedClass.kt")
|
||||
public void testNestedClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedClassInAnnotationArgument.kt")
|
||||
public void testNestedClassInAnnotationArgument() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedClassInAnnotationArgument.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedEnum.kt")
|
||||
public void testNestedEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedFunctionTypeAliasExpansion.kt")
|
||||
public void testNestedFunctionTypeAliasExpansion() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedObject.kt")
|
||||
public void testNestedObject() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedTypeAliasExpansion.kt")
|
||||
public void testNestedTypeAliasExpansion() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("optionalAnnotation.kt")
|
||||
public void testOptionalAnnotation() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/optionalAnnotation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("platformTypes.kt")
|
||||
public void testPlatformTypes() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/platformTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateCompanionObjectValInDifferentModule.kt")
|
||||
public void testPrivateCompanionObjectValInDifferentModule() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateTopLevelValInDifferentModule.kt")
|
||||
public void testPrivateTopLevelValInDifferentModule() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyReference.kt")
|
||||
public void testPropertyReference() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/propertyReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("recursiveGeneric.kt")
|
||||
public void testRecursiveGeneric() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/recursiveGeneric.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("reflectTopLevelFunctionOtherFile.kt")
|
||||
public void testReflectTopLevelFunctionOtherFile() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/reflectTopLevelFunctionOtherFile.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("sealedClass.kt")
|
||||
public void testSealedClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/sealedClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("secondaryConstructors.kt")
|
||||
public void testSecondaryConstructors() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/secondaryConstructors.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleValAnonymousObject.kt")
|
||||
public void testSimpleValAnonymousObject() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/simpleValAnonymousObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("specialBridgesInDependencies.kt")
|
||||
public void testSpecialBridgesInDependencies() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/specialBridgesInDependencies.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("starImportEnum.kt")
|
||||
public void testStarImportEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/starImportEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendFunWithDefaultMangling.kt")
|
||||
public void testSuspendFunWithDefaultMangling() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("targetedJvmName.kt")
|
||||
public void testTargetedJvmName() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/targetedJvmName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeAliasesKt13181.kt")
|
||||
public void testTypeAliasesKt13181() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/typeAliasesKt13181.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedTypesInAnnotations.kt")
|
||||
public void testUnsignedTypesInAnnotations() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/unsignedTypesInAnnotations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("useDeserializedFunInterface.kt")
|
||||
public void testUseDeserializedFunInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/useDeserializedFunInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/fir")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Fir extends AbstractIrCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFir() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("AnonymousObjectInProperty.kt")
|
||||
public void testAnonymousObjectInProperty() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ExistingSymbolInFakeOverride.kt")
|
||||
public void testExistingSymbolInFakeOverride() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/fir/ExistingSymbolInFakeOverride.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("LibraryProperty.kt")
|
||||
public void testLibraryProperty() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/fir/LibraryProperty.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Jvm8 extends AbstractIrCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJvm8() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Defaults extends AbstractIrCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDefaults() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("superCall.kt")
|
||||
public void testSuperCall() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCallFromInterface.kt")
|
||||
public void testSuperCallFromInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCallFromInterface2.kt")
|
||||
public void testSuperCallFromInterface2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccess.kt")
|
||||
public void testSuperPropAccess() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccess.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccessFromInterface.kt")
|
||||
public void testSuperPropAccessFromInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccessFromInterface2.kt")
|
||||
public void testSuperPropAccessFromInterface2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class AllCompatibility extends AbstractIrCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInAllCompatibility() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("callStackTrace.kt")
|
||||
public void testCallStackTrace() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/callStackTrace.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCall.kt")
|
||||
public void testSuperCall() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCallFromInterface.kt")
|
||||
public void testSuperCallFromInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCallFromInterface2.kt")
|
||||
public void testSuperCallFromInterface2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccess.kt")
|
||||
public void testSuperPropAccess() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccess.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccessFromInterface.kt")
|
||||
public void testSuperPropAccessFromInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccessFromInterface2.kt")
|
||||
public void testSuperPropAccessFromInterface2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class DelegationBy extends AbstractIrCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDelegationBy() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleProperty.kt")
|
||||
public void testSimpleProperty() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Interop extends AbstractIrCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInInterop() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("likeMemberClash.kt")
|
||||
public void testLikeMemberClash() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeMemberClash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("likeSpecialization.kt")
|
||||
public void testLikeSpecialization() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeSpecialization.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("newAndOldSchemes.kt")
|
||||
public void testNewAndOldSchemes() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("newAndOldSchemes2.kt")
|
||||
public void testNewAndOldSchemes2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("newAndOldSchemes2Compatibility.kt")
|
||||
public void testNewAndOldSchemes2Compatibility() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2Compatibility.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("newAndOldSchemes3.kt")
|
||||
public void testNewAndOldSchemes3() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("newSchemeWithJvmDefault.kt")
|
||||
public void testNewSchemeWithJvmDefault() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newSchemeWithJvmDefault.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Jvm8against6 extends AbstractIrCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJvm8against6() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("jdk8Against6.kt")
|
||||
public void testJdk8Against6() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/jdk8Against6.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleCall.kt")
|
||||
public void testSimpleCall() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleCallWithBigHierarchy.kt")
|
||||
public void testSimpleCallWithBigHierarchy() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithBigHierarchy.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleCallWithHierarchy.kt")
|
||||
public void testSimpleCallWithHierarchy() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithHierarchy.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleProp.kt")
|
||||
public void testSimpleProp() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleProp.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simplePropWithHierarchy.kt")
|
||||
public void testSimplePropWithHierarchy() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simplePropWithHierarchy.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Delegation extends AbstractIrCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDelegation() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("diamond.kt")
|
||||
public void testDiamond() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("diamond2.kt")
|
||||
public void testDiamond2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("diamond3.kt")
|
||||
public void testDiamond3() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond3.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TypeAnnotations extends AbstractIrCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTypeAnnotations() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("implicitReturn.kt")
|
||||
public void testImplicitReturn() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations/implicitReturn.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
-176
@@ -1,176 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.codegen.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/codegen/script")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrScriptCodegenTestGenerated extends AbstractIrScriptCodegenTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("adder.kts")
|
||||
public void testAdder() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/adder.kts");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInScript() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/script"), Pattern.compile("^(.+)\\.kts$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classLiteralInsideFunction.kts")
|
||||
public void testClassLiteralInsideFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/classLiteralInsideFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringDeclaration.kts")
|
||||
public void testDestructuringDeclaration() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/destructuringDeclaration.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringDeclarationUnderscore.kts")
|
||||
public void testDestructuringDeclarationUnderscore() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/destructuringDeclarationUnderscore.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("empty.kts")
|
||||
public void testEmpty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/empty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("helloWorld.kts")
|
||||
public void testHelloWorld() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/helloWorld.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("inline.kts")
|
||||
public void testInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/inline.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("kt20707.kts")
|
||||
public void testKt20707() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/kt20707.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("kt22029.kts")
|
||||
public void testKt22029() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/kt22029.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegatedProperty.kts")
|
||||
public void testLocalDelegatedProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/localDelegatedProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegatedPropertyNoExplicitType.kts")
|
||||
public void testLocalDelegatedPropertyNoExplicitType() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/localDelegatedPropertyNoExplicitType.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localFunction.kts")
|
||||
public void testLocalFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/localFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("outerCapture.kts")
|
||||
public void testOuterCapture() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/outerCapture.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameter.kts")
|
||||
public void testParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/parameter.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterArray.kts")
|
||||
public void testParameterArray() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/parameterArray.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterClosure.kts")
|
||||
public void testParameterClosure() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/parameterClosure.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterLong.kts")
|
||||
public void testParameterLong() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/parameterLong.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("secondLevelFunction.kts")
|
||||
public void testSecondLevelFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/secondLevelFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("secondLevelFunctionClosure.kts")
|
||||
public void testSecondLevelFunctionClosure() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/secondLevelFunctionClosure.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("secondLevelVal.kts")
|
||||
public void testSecondLevelVal() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/secondLevelVal.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleClass.kts")
|
||||
public void testSimpleClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/simpleClass.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("string.kts")
|
||||
public void testString() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/string.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelFunction.kts")
|
||||
public void testTopLevelFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelFunctionClosure.kts")
|
||||
public void testTopLevelFunctionClosure() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelFunctionClosure.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelLocalDelegatedProperty.kts")
|
||||
public void testTopLevelLocalDelegatedProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelLocalDelegatedProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelPropertiesWithGetSet.kts")
|
||||
public void testTopLevelPropertiesWithGetSet() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelPropertiesWithGetSet.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelProperty.kts")
|
||||
public void testTopLevelProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelPropertyWithProvideDelegate.kts")
|
||||
public void testTopLevelPropertyWithProvideDelegate() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelPropertyWithProvideDelegate.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelTypealias.kts")
|
||||
public void testTopLevelTypealias() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelTypealias.kts");
|
||||
}
|
||||
}
|
||||
-1312
File diff suppressed because it is too large
Load Diff
-682
@@ -1,682 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.codegen.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/writeSignature")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrWriteSignatureTestGenerated extends AbstractIrWriteSignatureTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInWriteSignature() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/writeSignature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("ArrayOfCharSequence.kt")
|
||||
public void testArrayOfCharSequence() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/ArrayOfCharSequence.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ArrayOfInt.kt")
|
||||
public void testArrayOfInt() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/ArrayOfInt.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("backingFieldForGenericDelegated.kt")
|
||||
public void testBackingFieldForGenericDelegated() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/backingFieldForGenericDelegated.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Comparable.kt")
|
||||
public void testComparable() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/Comparable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("DeepGenericInnerClass.kt")
|
||||
public void testDeepGenericInnerClass() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/DeepGenericInnerClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("GenericInnerClass.kt")
|
||||
public void testGenericInnerClass() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/GenericInnerClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("GenericInnerClassWithSimpleOuter.kt")
|
||||
public void testGenericInnerClassWithSimpleOuter() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/GenericInnerClassWithSimpleOuter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Int.kt")
|
||||
public void testInt() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/Int.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("IntArray.kt")
|
||||
public void testIntArray() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/IntArray.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("IntQ.kt")
|
||||
public void testIntQ() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/IntQ.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jlString.kt")
|
||||
public void testJlString() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/jlString.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ListOfCharSequence.kt")
|
||||
public void testListOfCharSequence() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/ListOfCharSequence.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ListOfStar.kt")
|
||||
public void testListOfStar() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/ListOfStar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MapEntry.kt")
|
||||
public void testMapEntry() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/MapEntry.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MutableMapEntry.kt")
|
||||
public void testMutableMapEntry() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/MutableMapEntry.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("NonGeneric.kt")
|
||||
public void testNonGeneric() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/NonGeneric.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("StarProjectionInClass.kt")
|
||||
public void testStarProjectionInClass() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/StarProjectionInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("StarProjectionInSuper.kt")
|
||||
public void testStarProjectionInSuper() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/StarProjectionInSuper.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("StarProjectionOutsideClass.kt")
|
||||
public void testStarProjectionOutsideClass() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/StarProjectionOutsideClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("syntheticAccessorForGeneric.kt")
|
||||
public void testSyntheticAccessorForGeneric() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/syntheticAccessorForGeneric.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("VarargCharSequence.kt")
|
||||
public void testVarargCharSequence() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/VarargCharSequence.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("VarargGeneric.kt")
|
||||
public void testVarargGeneric() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/VarargGeneric.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/writeSignature/annotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Annotations extends AbstractIrWriteSignatureTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInAnnotations() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/writeSignature/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("kArrayClassOfJClass.kt")
|
||||
public void testKArrayClassOfJClass() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/annotations/kArrayClassOfJClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kArrayClassOfKClass.kt")
|
||||
public void testKArrayClassOfKClass() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/annotations/kArrayClassOfKClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kClassBasic.kt")
|
||||
public void testKClassBasic() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/annotations/kClassBasic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kClassInt.kt")
|
||||
public void testKClassInt() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/annotations/kClassInt.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kClassOfKClass.kt")
|
||||
public void testKClassOfKClass() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/annotations/kClassOfKClass.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/writeSignature/callableReference")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CallableReference extends AbstractIrWriteSignatureTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCallableReference() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/writeSignature/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("constructorReferenceInReturnType.kt")
|
||||
public void testConstructorReferenceInReturnType() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/callableReference/constructorReferenceInReturnType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionReferenceInvoke.kt")
|
||||
public void testFunctionReferenceInvoke() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/callableReference/functionReferenceInvoke.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyReferenceGet.kt")
|
||||
public void testPropertyReferenceGet() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/callableReference/propertyReferenceGet.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendFunctionReference.kt")
|
||||
public void testSuspendFunctionReference() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/callableReference/suspendFunctionReference.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/writeSignature/constructor")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Constructor extends AbstractIrWriteSignatureTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInConstructor() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/writeSignature/constructor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("Constructor0.kt")
|
||||
public void testConstructor0() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/constructor/Constructor0.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ConstructorCollectionParameter.kt")
|
||||
public void testConstructorCollectionParameter() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/constructor/ConstructorCollectionParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ConstructorWithTypeParameter.kt")
|
||||
public void testConstructorWithTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/constructor/ConstructorWithTypeParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ConstructorWithTypeParameterAndValueParameterP.kt")
|
||||
public void testConstructorWithTypeParameterAndValueParameterP() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/constructor/ConstructorWithTypeParameterAndValueParameterP.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/writeSignature/declarationSiteVariance")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class DeclarationSiteVariance extends AbstractIrWriteSignatureTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDeclarationSiteVariance() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/writeSignature/declarationSiteVariance"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("FunctionTwoTypeParameters.kt")
|
||||
public void testFunctionTwoTypeParameters() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/FunctionTwoTypeParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("GenericOverrides.kt")
|
||||
public void testGenericOverrides() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/GenericOverrides.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InInInPosition.kt")
|
||||
public void testInInInPosition() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/InInInPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InInOutPosition.kt")
|
||||
public void testInInOutPosition() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/InInOutPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InOfInInInPosition.kt")
|
||||
public void testInOfInInInPosition() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/InOfInInInPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InOfInInOutPosition.kt")
|
||||
public void testInOfInInOutPosition() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/InOfInInOutPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InOfOutInInPosition.kt")
|
||||
public void testInOfOutInInPosition() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/InOfOutInInPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InOfOutInOutPosition.kt")
|
||||
public void testInOfOutInOutPosition() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/InOfOutInOutPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MappedSupertypeWithVariance.kt")
|
||||
public void testMappedSupertypeWithVariance() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/MappedSupertypeWithVariance.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("OpenMembersReturnType.kt")
|
||||
public void testOpenMembersReturnType() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/OpenMembersReturnType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("OpenMembersValueParameter.kt")
|
||||
public void testOpenMembersValueParameter() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/OpenMembersValueParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("OutInField.kt")
|
||||
public void testOutInField() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/OutInField.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("OutInInPosition.kt")
|
||||
public void testOutInInPosition() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/OutInInPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("OutInOutPosition.kt")
|
||||
public void testOutInOutPosition() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/OutInOutPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("OutOfInInInPosition.kt")
|
||||
public void testOutOfInInInPosition() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/OutOfInInInPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("OutOfInInOutPosition.kt")
|
||||
public void testOutOfInInOutPosition() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/OutOfInInOutPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("OutOfOutInInPosition.kt")
|
||||
public void testOutOfOutInInPosition() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/OutOfOutInInPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("OutOfOutInOutPosition.kt")
|
||||
public void testOutOfOutInOutPosition() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/OutOfOutInOutPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("PropertyGetterIn.kt")
|
||||
public void testPropertyGetterIn() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/PropertyGetterIn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("PropertyGetterOut.kt")
|
||||
public void testPropertyGetterOut() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/PropertyGetterOut.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("PropertyGetterTwoParams.kt")
|
||||
public void testPropertyGetterTwoParams() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/PropertyGetterTwoParams.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("PropertySetterIn.kt")
|
||||
public void testPropertySetterIn() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/PropertySetterIn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("PropertySetterOut.kt")
|
||||
public void testPropertySetterOut() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/PropertySetterOut.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("RedundantProjections.kt")
|
||||
public void testRedundantProjections() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/RedundantProjections.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SuperClassWithVariance.kt")
|
||||
public void testSuperClassWithVariance() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/SuperClassWithVariance.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SuperTraitWithVariance.kt")
|
||||
public void testSuperTraitWithVariance() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/SuperTraitWithVariance.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SuperTypeWithVarianceInArguments.kt")
|
||||
public void testSuperTypeWithVarianceInArguments() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/SuperTypeWithVarianceInArguments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/writeSignature/declarationSiteVariance/jvmWildcardAnnotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class JvmWildcardAnnotations extends AbstractIrWriteSignatureTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJvmWildcardAnnotations() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/writeSignature/declarationSiteVariance/jvmWildcardAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("onFunction.kt")
|
||||
public void testOnFunction() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/jvmWildcardAnnotations/onFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("onTypes.kt")
|
||||
public void testOnTypes() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/jvmWildcardAnnotations/onTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("primitiveTypes.kt")
|
||||
public void testPrimitiveTypes() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/jvmWildcardAnnotations/primitiveTypes.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/writeSignature/declarationSiteVariance/wildcardOptimization")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class WildcardOptimization extends AbstractIrWriteSignatureTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInWildcardOptimization() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/writeSignature/declarationSiteVariance/wildcardOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("argumentOverridability.kt")
|
||||
public void testArgumentOverridability() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/wildcardOptimization/argumentOverridability.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("arrays.kt")
|
||||
public void testArrays() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/wildcardOptimization/arrays.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("complicatedInBounds.kt")
|
||||
public void testComplicatedInBounds() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/wildcardOptimization/complicatedInBounds.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("deepOut.kt")
|
||||
public void testDeepOut() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/wildcardOptimization/deepOut.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("fields.kt")
|
||||
public void testFields() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/wildcardOptimization/fields.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("finalReturnType.kt")
|
||||
public void testFinalReturnType() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/wildcardOptimization/finalReturnType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("outIn.kt")
|
||||
public void testOutIn() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/wildcardOptimization/outIn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("outInv.kt")
|
||||
public void testOutInv() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/wildcardOptimization/outInv.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelIn.kt")
|
||||
public void testTopLevelIn() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/wildcardOptimization/topLevelIn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelInv.kt")
|
||||
public void testTopLevelInv() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/wildcardOptimization/topLevelInv.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeParameter.kt")
|
||||
public void testTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/wildcardOptimization/typeParameter.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/writeSignature/defaultImpls")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class DefaultImpls extends AbstractIrWriteSignatureTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDefaultImpls() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/writeSignature/defaultImpls"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("functionTypeParameterClash.kt")
|
||||
public void testFunctionTypeParameterClash() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/defaultImpls/functionTypeParameterClash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionTypeParameterClashWith_I.kt")
|
||||
public void testFunctionTypeParameterClashWith_I() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/defaultImpls/functionTypeParameterClashWith_I.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyTypeParameterClash.kt")
|
||||
public void testPropertyTypeParameterClash() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/defaultImpls/propertyTypeParameterClash.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/writeSignature/inlineClasses")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class InlineClasses extends AbstractIrWriteSignatureTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInInlineClasses() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/writeSignature/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("basicInlineClassDeclarationCodegen.kt")
|
||||
public void testBasicInlineClassDeclarationCodegen() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/inlineClasses/basicInlineClassDeclarationCodegen.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("genericInlineClassBasedOnGenericType.kt")
|
||||
public void testGenericInlineClassBasedOnGenericType() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/inlineClasses/genericInlineClassBasedOnGenericType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("genericMethodInsideClass.kt")
|
||||
public void testGenericMethodInsideClass() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/inlineClasses/genericMethodInsideClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassAsGenericArgument.kt")
|
||||
public void testInlineClassAsGenericArgument() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/inlineClasses/inlineClassAsGenericArgument.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassBasedOnOtherInlineClass.kt")
|
||||
public void testInlineClassBasedOnOtherInlineClass() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/inlineClasses/inlineClassBasedOnOtherInlineClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassWithComplexSubstitutedType.kt")
|
||||
public void testInlineClassWithComplexSubstitutedType() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/inlineClasses/inlineClassWithComplexSubstitutedType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassesInsideFunctionalTypes.kt")
|
||||
public void testInlineClassesInsideFunctionalTypes() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/inlineClasses/inlineClassesInsideFunctionalTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullableInlineClassType.kt")
|
||||
public void testNullableInlineClassType() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/inlineClasses/nullableInlineClassType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleSignatureWithInlineClassTypesAsPrimitive.kt")
|
||||
public void testSimpleSignatureWithInlineClassTypesAsPrimitive() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/inlineClasses/simpleSignatureWithInlineClassTypesAsPrimitive.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleSignatureWithInlineClassTypesAsReference.kt")
|
||||
public void testSimpleSignatureWithInlineClassTypesAsReference() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/inlineClasses/simpleSignatureWithInlineClassTypesAsReference.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/writeSignature/java8")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Java8 extends AbstractIrWriteSignatureTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJava8() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/writeSignature/java8"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("mutableMapRemove.kt")
|
||||
public void testMutableMapRemove() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/java8/mutableMapRemove.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/writeSignature/nothing")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Nothing extends AbstractIrWriteSignatureTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInNothing() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/writeSignature/nothing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("nothing.kt")
|
||||
public void testNothing() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/nothing/nothing.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullableNothing.kt")
|
||||
public void testNullableNothing() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/nothing/nullableNothing.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/writeSignature/parameterlessMain")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ParameterlessMain extends AbstractIrWriteSignatureTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInParameterlessMain() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/writeSignature/parameterlessMain"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("arrayWithContravariantStringIsNotMainMethod.kt")
|
||||
public void testArrayWithContravariantStringIsNotMainMethod() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/parameterlessMain/arrayWithContravariantStringIsNotMainMethod.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("impostorMains.kt")
|
||||
public void testImpostorMains() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/parameterlessMain/impostorMains.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("main.kt")
|
||||
public void testMain() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/parameterlessMain/main.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("notJvmMainName.kt")
|
||||
public void testNotJvmMainName() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/parameterlessMain/notJvmMainName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/parameterlessMain/simple.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/writeSignature/suspendMain")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class SuspendMain extends AbstractIrWriteSignatureTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSuspendMain() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/writeSignature/suspendMain"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("parameterlessSuspendMain.kt")
|
||||
public void testParameterlessSuspendMain() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/suspendMain/parameterlessSuspendMain.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendMain.kt")
|
||||
public void testSuspendMain() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/suspendMain/suspendMain.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
-4623
File diff suppressed because it is too large
Load Diff
-692
@@ -1,692 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.codegen.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/compileKotlinAgainstKotlin")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class JvmIrAgainstOldBoxTestGenerated extends AbstractJvmIrAgainstOldBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath);
|
||||
}
|
||||
|
||||
private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception {
|
||||
KotlinTestUtils.runTest(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCompileKotlinAgainstKotlin() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true);
|
||||
}
|
||||
|
||||
@TestMetadata("annotationInInterface.kt")
|
||||
public void testAnnotationInInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/annotationInInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("annotationOnTypeUseInTypeAlias.kt")
|
||||
public void testAnnotationOnTypeUseInTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("annotationsOnTypeAliases.kt")
|
||||
public void testAnnotationsOnTypeAliases() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/annotationsOnTypeAliases.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("callDeserializedPropertyOnInlineClassType.kt")
|
||||
public void testCallDeserializedPropertyOnInlineClassType() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("callsToMultifileClassFromOtherPackage.kt")
|
||||
public void testCallsToMultifileClassFromOtherPackage() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/callsToMultifileClassFromOtherPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classInObject.kt")
|
||||
public void testClassInObject() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/classInObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("companionObjectInEnum.kt")
|
||||
public void testCompanionObjectInEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/companionObjectInEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("companionObjectMember.kt")
|
||||
public void testCompanionObjectMember() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/companionObjectMember.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constPropertyReferenceFromMultifileClass.kt")
|
||||
public void testConstPropertyReferenceFromMultifileClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/constPropertyReferenceFromMultifileClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constructorVararg.kt")
|
||||
public void testConstructorVararg() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/constructorVararg.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constructorWithInlineClassParametersInBinaryDependencies.kt")
|
||||
public void testConstructorWithInlineClassParametersInBinaryDependencies() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependencies.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("copySamOnInline.kt")
|
||||
public void testCopySamOnInline() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/copySamOnInline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("copySamOnInline2.kt")
|
||||
public void testCopySamOnInline2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/copySamOnInline2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("coroutinesBinary.kt")
|
||||
public void testCoroutinesBinary_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/compileKotlinAgainstKotlin/coroutinesBinary.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultConstructor.kt")
|
||||
public void testDefaultConstructor() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/defaultConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultLambdaRegeneration.kt")
|
||||
public void testDefaultLambdaRegeneration() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/defaultLambdaRegeneration.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultLambdaRegeneration2.kt")
|
||||
public void testDefaultLambdaRegeneration2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/defaultLambdaRegeneration2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultWithInlineClassAndReceivers.kt")
|
||||
public void testDefaultWithInlineClassAndReceivers() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceivers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegatedDefault.kt")
|
||||
public void testDelegatedDefault() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/delegatedDefault.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationAndAnnotations.kt")
|
||||
public void testDelegationAndAnnotations() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/delegationAndAnnotations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("doublyNestedClass.kt")
|
||||
public void testDoublyNestedClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/doublyNestedClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("enum.kt")
|
||||
public void testEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/enum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectClassActualTypeAlias.kt")
|
||||
public void testExpectClassActualTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/expectClassActualTypeAlias.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassFromBinaryDependencies.kt")
|
||||
public void testInlineClassFromBinaryDependencies() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFromBinaryDependencies.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassInlineProperty.kt")
|
||||
public void testInlineClassInlineProperty() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassesOldMangling.kt")
|
||||
public void testInlineClassesOldMangling() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlinedConstants.kt")
|
||||
public void testInlinedConstants() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlinedConstants.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClassConstructor.kt")
|
||||
public void testInnerClassConstructor() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/innerClassConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("interfaceDelegationAndBridgesProcessing.kt")
|
||||
public void testInterfaceDelegationAndBridgesProcessing() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/interfaceDelegationAndBridgesProcessing.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("internalSetterOverridden.kt")
|
||||
public void testInternalSetterOverridden() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/internalSetterOverridden.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("internalWithDefaultArgs.kt")
|
||||
public void testInternalWithDefaultArgs() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithDefaultArgs.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("internalWithOtherModuleName.kt")
|
||||
public void testInternalWithOtherModuleName() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithOtherModuleName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmField.kt")
|
||||
public void testJvmField() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmField.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmFieldInAnnotationCompanion.kt")
|
||||
public void testJvmFieldInAnnotationCompanion() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInAnnotationCompanion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmFieldInConstructor.kt")
|
||||
public void testJvmFieldInConstructor() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmFieldInInterfaceCompanion.kt")
|
||||
public void testJvmFieldInInterfaceCompanion() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInInterfaceCompanion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmNames.kt")
|
||||
public void testJvmNames() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmNames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmPackageName.kt")
|
||||
public void testJvmPackageName() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmPackageNameInRootPackage.kt")
|
||||
public void testJvmPackageNameInRootPackage() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameInRootPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmPackageNameMultifileClass.kt")
|
||||
public void testJvmPackageNameMultifileClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameMultifileClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmPackageNameWithJvmName.kt")
|
||||
public void testJvmPackageNameWithJvmName() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameWithJvmName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmStaticInObject.kt")
|
||||
public void testJvmStaticInObject() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmStaticInObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kotlinPropertyAsAnnotationParameter.kt")
|
||||
public void testKotlinPropertyAsAnnotationParameter() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/kotlinPropertyAsAnnotationParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt14012.kt")
|
||||
public void testKt14012() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/kt14012.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt14012_multi.kt")
|
||||
public void testKt14012_multi() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/kt14012_multi.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt21775.kt")
|
||||
public void testKt21775() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/kt21775.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("metadataForMembersInLocalClassInInitializer.kt")
|
||||
public void testMetadataForMembersInLocalClassInInitializer() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/metadataForMembersInLocalClassInInitializer.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multifileClassInlineFunctionAccessingProperty.kt")
|
||||
public void testMultifileClassInlineFunctionAccessingProperty() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/multifileClassInlineFunctionAccessingProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multifileClassWithTypealias.kt")
|
||||
public void testMultifileClassWithTypealias() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/multifileClassWithTypealias.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedClass.kt")
|
||||
public void testNestedClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedClassInAnnotationArgument.kt")
|
||||
public void testNestedClassInAnnotationArgument() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedClassInAnnotationArgument.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedEnum.kt")
|
||||
public void testNestedEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedFunctionTypeAliasExpansion.kt")
|
||||
public void testNestedFunctionTypeAliasExpansion() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedObject.kt")
|
||||
public void testNestedObject() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedTypeAliasExpansion.kt")
|
||||
public void testNestedTypeAliasExpansion() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("optionalAnnotation.kt")
|
||||
public void testOptionalAnnotation() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/optionalAnnotation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("platformTypes.kt")
|
||||
public void testPlatformTypes() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/platformTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateCompanionObjectValInDifferentModule.kt")
|
||||
public void testPrivateCompanionObjectValInDifferentModule() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateTopLevelValInDifferentModule.kt")
|
||||
public void testPrivateTopLevelValInDifferentModule() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyReference.kt")
|
||||
public void testPropertyReference() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/propertyReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("recursiveGeneric.kt")
|
||||
public void testRecursiveGeneric() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/recursiveGeneric.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("reflectTopLevelFunctionOtherFile.kt")
|
||||
public void testReflectTopLevelFunctionOtherFile() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/reflectTopLevelFunctionOtherFile.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("sealedClass.kt")
|
||||
public void testSealedClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/sealedClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("secondaryConstructors.kt")
|
||||
public void testSecondaryConstructors() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/secondaryConstructors.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleValAnonymousObject.kt")
|
||||
public void testSimpleValAnonymousObject() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/simpleValAnonymousObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("specialBridgesInDependencies.kt")
|
||||
public void testSpecialBridgesInDependencies() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/specialBridgesInDependencies.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("starImportEnum.kt")
|
||||
public void testStarImportEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/starImportEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendFunWithDefaultMangling.kt")
|
||||
public void testSuspendFunWithDefaultMangling() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("targetedJvmName.kt")
|
||||
public void testTargetedJvmName() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/targetedJvmName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeAliasesKt13181.kt")
|
||||
public void testTypeAliasesKt13181() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/typeAliasesKt13181.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedTypesInAnnotations.kt")
|
||||
public void testUnsignedTypesInAnnotations() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/unsignedTypesInAnnotations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("useDeserializedFunInterface.kt")
|
||||
public void testUseDeserializedFunInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/useDeserializedFunInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/fir")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Fir extends AbstractJvmIrAgainstOldBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFir() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true);
|
||||
}
|
||||
|
||||
@TestMetadata("AnonymousObjectInProperty.kt")
|
||||
public void testAnonymousObjectInProperty() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ExistingSymbolInFakeOverride.kt")
|
||||
public void testExistingSymbolInFakeOverride() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/fir/ExistingSymbolInFakeOverride.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("LibraryProperty.kt")
|
||||
public void testLibraryProperty() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/fir/LibraryProperty.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Jvm8 extends AbstractJvmIrAgainstOldBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJvm8() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Defaults extends AbstractJvmIrAgainstOldBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDefaults() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true);
|
||||
}
|
||||
|
||||
@TestMetadata("superCall.kt")
|
||||
public void testSuperCall() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCallFromInterface.kt")
|
||||
public void testSuperCallFromInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCallFromInterface2.kt")
|
||||
public void testSuperCallFromInterface2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccess.kt")
|
||||
public void testSuperPropAccess() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccess.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccessFromInterface.kt")
|
||||
public void testSuperPropAccessFromInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccessFromInterface2.kt")
|
||||
public void testSuperPropAccessFromInterface2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class AllCompatibility extends AbstractJvmIrAgainstOldBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInAllCompatibility() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true);
|
||||
}
|
||||
|
||||
@TestMetadata("callStackTrace.kt")
|
||||
public void testCallStackTrace() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/callStackTrace.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCall.kt")
|
||||
public void testSuperCall() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCallFromInterface.kt")
|
||||
public void testSuperCallFromInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCallFromInterface2.kt")
|
||||
public void testSuperCallFromInterface2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccess.kt")
|
||||
public void testSuperPropAccess() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccess.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccessFromInterface.kt")
|
||||
public void testSuperPropAccessFromInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccessFromInterface2.kt")
|
||||
public void testSuperPropAccessFromInterface2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class DelegationBy extends AbstractJvmIrAgainstOldBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDelegationBy() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true);
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleProperty.kt")
|
||||
public void testSimpleProperty() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Interop extends AbstractJvmIrAgainstOldBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInInterop() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true);
|
||||
}
|
||||
|
||||
@TestMetadata("likeMemberClash.kt")
|
||||
public void testLikeMemberClash() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeMemberClash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("likeSpecialization.kt")
|
||||
public void testLikeSpecialization() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeSpecialization.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("newAndOldSchemes.kt")
|
||||
public void testNewAndOldSchemes() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("newAndOldSchemes2.kt")
|
||||
public void testNewAndOldSchemes2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("newAndOldSchemes2Compatibility.kt")
|
||||
public void testNewAndOldSchemes2Compatibility() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2Compatibility.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("newAndOldSchemes3.kt")
|
||||
public void testNewAndOldSchemes3() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("newSchemeWithJvmDefault.kt")
|
||||
public void testNewSchemeWithJvmDefault() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newSchemeWithJvmDefault.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Jvm8against6 extends AbstractJvmIrAgainstOldBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJvm8against6() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true);
|
||||
}
|
||||
|
||||
@TestMetadata("jdk8Against6.kt")
|
||||
public void testJdk8Against6() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/jdk8Against6.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleCall.kt")
|
||||
public void testSimpleCall() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleCallWithBigHierarchy.kt")
|
||||
public void testSimpleCallWithBigHierarchy() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithBigHierarchy.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleCallWithHierarchy.kt")
|
||||
public void testSimpleCallWithHierarchy() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithHierarchy.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleProp.kt")
|
||||
public void testSimpleProp() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleProp.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simplePropWithHierarchy.kt")
|
||||
public void testSimplePropWithHierarchy() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simplePropWithHierarchy.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Delegation extends AbstractJvmIrAgainstOldBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDelegation() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true);
|
||||
}
|
||||
|
||||
@TestMetadata("diamond.kt")
|
||||
public void testDiamond() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("diamond2.kt")
|
||||
public void testDiamond2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("diamond3.kt")
|
||||
public void testDiamond3() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond3.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TypeAnnotations extends AbstractJvmIrAgainstOldBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTypeAnnotations() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true);
|
||||
}
|
||||
|
||||
@TestMetadata("implicitReturn.kt")
|
||||
public void testImplicitReturn() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations/implicitReturn.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
-4623
File diff suppressed because it is too large
Load Diff
-692
@@ -1,692 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.codegen.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/compileKotlinAgainstKotlin")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class JvmOldAgainstIrBoxTestGenerated extends AbstractJvmOldAgainstIrBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
private void runTestWithPackageReplacement(String testDataFilePath, String packageName) throws Exception {
|
||||
KotlinTestUtils.runTest(filePath -> doTestWithCoroutinesPackageReplacement(filePath, packageName), TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCompileKotlinAgainstKotlin() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("annotationInInterface.kt")
|
||||
public void testAnnotationInInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/annotationInInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("annotationOnTypeUseInTypeAlias.kt")
|
||||
public void testAnnotationOnTypeUseInTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("annotationsOnTypeAliases.kt")
|
||||
public void testAnnotationsOnTypeAliases() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/annotationsOnTypeAliases.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("callDeserializedPropertyOnInlineClassType.kt")
|
||||
public void testCallDeserializedPropertyOnInlineClassType() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("callsToMultifileClassFromOtherPackage.kt")
|
||||
public void testCallsToMultifileClassFromOtherPackage() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/callsToMultifileClassFromOtherPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classInObject.kt")
|
||||
public void testClassInObject() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/classInObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("companionObjectInEnum.kt")
|
||||
public void testCompanionObjectInEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/companionObjectInEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("companionObjectMember.kt")
|
||||
public void testCompanionObjectMember() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/companionObjectMember.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constPropertyReferenceFromMultifileClass.kt")
|
||||
public void testConstPropertyReferenceFromMultifileClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/constPropertyReferenceFromMultifileClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constructorVararg.kt")
|
||||
public void testConstructorVararg() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/constructorVararg.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constructorWithInlineClassParametersInBinaryDependencies.kt")
|
||||
public void testConstructorWithInlineClassParametersInBinaryDependencies() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependencies.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("copySamOnInline.kt")
|
||||
public void testCopySamOnInline() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/copySamOnInline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("copySamOnInline2.kt")
|
||||
public void testCopySamOnInline2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/copySamOnInline2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("coroutinesBinary.kt")
|
||||
public void testCoroutinesBinary_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/compileKotlinAgainstKotlin/coroutinesBinary.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultConstructor.kt")
|
||||
public void testDefaultConstructor() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/defaultConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultLambdaRegeneration.kt")
|
||||
public void testDefaultLambdaRegeneration() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/defaultLambdaRegeneration.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultLambdaRegeneration2.kt")
|
||||
public void testDefaultLambdaRegeneration2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/defaultLambdaRegeneration2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultWithInlineClassAndReceivers.kt")
|
||||
public void testDefaultWithInlineClassAndReceivers() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceivers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegatedDefault.kt")
|
||||
public void testDelegatedDefault() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/delegatedDefault.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationAndAnnotations.kt")
|
||||
public void testDelegationAndAnnotations() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/delegationAndAnnotations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("doublyNestedClass.kt")
|
||||
public void testDoublyNestedClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/doublyNestedClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("enum.kt")
|
||||
public void testEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/enum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectClassActualTypeAlias.kt")
|
||||
public void testExpectClassActualTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/expectClassActualTypeAlias.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassFromBinaryDependencies.kt")
|
||||
public void testInlineClassFromBinaryDependencies() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFromBinaryDependencies.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassInlineProperty.kt")
|
||||
public void testInlineClassInlineProperty() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassesOldMangling.kt")
|
||||
public void testInlineClassesOldMangling() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlinedConstants.kt")
|
||||
public void testInlinedConstants() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlinedConstants.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClassConstructor.kt")
|
||||
public void testInnerClassConstructor() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/innerClassConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("interfaceDelegationAndBridgesProcessing.kt")
|
||||
public void testInterfaceDelegationAndBridgesProcessing() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/interfaceDelegationAndBridgesProcessing.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("internalSetterOverridden.kt")
|
||||
public void testInternalSetterOverridden() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/internalSetterOverridden.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("internalWithDefaultArgs.kt")
|
||||
public void testInternalWithDefaultArgs() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithDefaultArgs.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("internalWithOtherModuleName.kt")
|
||||
public void testInternalWithOtherModuleName() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithOtherModuleName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmField.kt")
|
||||
public void testJvmField() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmField.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmFieldInAnnotationCompanion.kt")
|
||||
public void testJvmFieldInAnnotationCompanion() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInAnnotationCompanion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmFieldInConstructor.kt")
|
||||
public void testJvmFieldInConstructor() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmFieldInInterfaceCompanion.kt")
|
||||
public void testJvmFieldInInterfaceCompanion() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInInterfaceCompanion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmNames.kt")
|
||||
public void testJvmNames() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmNames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmPackageName.kt")
|
||||
public void testJvmPackageName() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmPackageNameInRootPackage.kt")
|
||||
public void testJvmPackageNameInRootPackage() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameInRootPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmPackageNameMultifileClass.kt")
|
||||
public void testJvmPackageNameMultifileClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameMultifileClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmPackageNameWithJvmName.kt")
|
||||
public void testJvmPackageNameWithJvmName() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameWithJvmName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmStaticInObject.kt")
|
||||
public void testJvmStaticInObject() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmStaticInObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kotlinPropertyAsAnnotationParameter.kt")
|
||||
public void testKotlinPropertyAsAnnotationParameter() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/kotlinPropertyAsAnnotationParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt14012.kt")
|
||||
public void testKt14012() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/kt14012.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt14012_multi.kt")
|
||||
public void testKt14012_multi() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/kt14012_multi.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt21775.kt")
|
||||
public void testKt21775() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/kt21775.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("metadataForMembersInLocalClassInInitializer.kt")
|
||||
public void testMetadataForMembersInLocalClassInInitializer() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/metadataForMembersInLocalClassInInitializer.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multifileClassInlineFunctionAccessingProperty.kt")
|
||||
public void testMultifileClassInlineFunctionAccessingProperty() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/multifileClassInlineFunctionAccessingProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multifileClassWithTypealias.kt")
|
||||
public void testMultifileClassWithTypealias() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/multifileClassWithTypealias.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedClass.kt")
|
||||
public void testNestedClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedClassInAnnotationArgument.kt")
|
||||
public void testNestedClassInAnnotationArgument() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedClassInAnnotationArgument.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedEnum.kt")
|
||||
public void testNestedEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedFunctionTypeAliasExpansion.kt")
|
||||
public void testNestedFunctionTypeAliasExpansion() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedObject.kt")
|
||||
public void testNestedObject() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedTypeAliasExpansion.kt")
|
||||
public void testNestedTypeAliasExpansion() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("optionalAnnotation.kt")
|
||||
public void testOptionalAnnotation() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/optionalAnnotation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("platformTypes.kt")
|
||||
public void testPlatformTypes() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/platformTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateCompanionObjectValInDifferentModule.kt")
|
||||
public void testPrivateCompanionObjectValInDifferentModule() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateTopLevelValInDifferentModule.kt")
|
||||
public void testPrivateTopLevelValInDifferentModule() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyReference.kt")
|
||||
public void testPropertyReference() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/propertyReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("recursiveGeneric.kt")
|
||||
public void testRecursiveGeneric() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/recursiveGeneric.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("reflectTopLevelFunctionOtherFile.kt")
|
||||
public void testReflectTopLevelFunctionOtherFile() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/reflectTopLevelFunctionOtherFile.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("sealedClass.kt")
|
||||
public void testSealedClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/sealedClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("secondaryConstructors.kt")
|
||||
public void testSecondaryConstructors() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/secondaryConstructors.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleValAnonymousObject.kt")
|
||||
public void testSimpleValAnonymousObject() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/simpleValAnonymousObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("specialBridgesInDependencies.kt")
|
||||
public void testSpecialBridgesInDependencies() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/specialBridgesInDependencies.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("starImportEnum.kt")
|
||||
public void testStarImportEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/starImportEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendFunWithDefaultMangling.kt")
|
||||
public void testSuspendFunWithDefaultMangling() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("targetedJvmName.kt")
|
||||
public void testTargetedJvmName() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/targetedJvmName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeAliasesKt13181.kt")
|
||||
public void testTypeAliasesKt13181() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/typeAliasesKt13181.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedTypesInAnnotations.kt")
|
||||
public void testUnsignedTypesInAnnotations() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/unsignedTypesInAnnotations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("useDeserializedFunInterface.kt")
|
||||
public void testUseDeserializedFunInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/useDeserializedFunInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/fir")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Fir extends AbstractJvmOldAgainstIrBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFir() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("AnonymousObjectInProperty.kt")
|
||||
public void testAnonymousObjectInProperty() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ExistingSymbolInFakeOverride.kt")
|
||||
public void testExistingSymbolInFakeOverride() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/fir/ExistingSymbolInFakeOverride.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("LibraryProperty.kt")
|
||||
public void testLibraryProperty() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/fir/LibraryProperty.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Jvm8 extends AbstractJvmOldAgainstIrBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJvm8() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Defaults extends AbstractJvmOldAgainstIrBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDefaults() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("superCall.kt")
|
||||
public void testSuperCall() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCallFromInterface.kt")
|
||||
public void testSuperCallFromInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCallFromInterface2.kt")
|
||||
public void testSuperCallFromInterface2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccess.kt")
|
||||
public void testSuperPropAccess() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccess.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccessFromInterface.kt")
|
||||
public void testSuperPropAccessFromInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccessFromInterface2.kt")
|
||||
public void testSuperPropAccessFromInterface2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class AllCompatibility extends AbstractJvmOldAgainstIrBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInAllCompatibility() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("callStackTrace.kt")
|
||||
public void testCallStackTrace() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/callStackTrace.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCall.kt")
|
||||
public void testSuperCall() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCallFromInterface.kt")
|
||||
public void testSuperCallFromInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCallFromInterface2.kt")
|
||||
public void testSuperCallFromInterface2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccess.kt")
|
||||
public void testSuperPropAccess() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccess.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccessFromInterface.kt")
|
||||
public void testSuperPropAccessFromInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccessFromInterface2.kt")
|
||||
public void testSuperPropAccessFromInterface2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class DelegationBy extends AbstractJvmOldAgainstIrBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDelegationBy() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleProperty.kt")
|
||||
public void testSimpleProperty() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Interop extends AbstractJvmOldAgainstIrBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInInterop() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("likeMemberClash.kt")
|
||||
public void testLikeMemberClash() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeMemberClash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("likeSpecialization.kt")
|
||||
public void testLikeSpecialization() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeSpecialization.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("newAndOldSchemes.kt")
|
||||
public void testNewAndOldSchemes() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("newAndOldSchemes2.kt")
|
||||
public void testNewAndOldSchemes2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("newAndOldSchemes2Compatibility.kt")
|
||||
public void testNewAndOldSchemes2Compatibility() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2Compatibility.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("newAndOldSchemes3.kt")
|
||||
public void testNewAndOldSchemes3() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("newSchemeWithJvmDefault.kt")
|
||||
public void testNewSchemeWithJvmDefault() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newSchemeWithJvmDefault.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Jvm8against6 extends AbstractJvmOldAgainstIrBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJvm8against6() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("jdk8Against6.kt")
|
||||
public void testJdk8Against6() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/jdk8Against6.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleCall.kt")
|
||||
public void testSimpleCall() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleCallWithBigHierarchy.kt")
|
||||
public void testSimpleCallWithBigHierarchy() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithBigHierarchy.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleCallWithHierarchy.kt")
|
||||
public void testSimpleCallWithHierarchy() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithHierarchy.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleProp.kt")
|
||||
public void testSimpleProp() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleProp.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simplePropWithHierarchy.kt")
|
||||
public void testSimplePropWithHierarchy() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simplePropWithHierarchy.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Delegation extends AbstractJvmOldAgainstIrBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDelegation() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("diamond.kt")
|
||||
public void testDiamond() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("diamond2.kt")
|
||||
public void testDiamond2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("diamond3.kt")
|
||||
public void testDiamond3() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond3.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TypeAnnotations extends AbstractJvmOldAgainstIrBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTypeAnnotations() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("implicitReturn.kt")
|
||||
public void testImplicitReturn() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations/implicitReturn.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -69,7 +69,7 @@ fun main(args: Array<String>) {
|
||||
val excludedFirTestdataPattern = "^(.+)\\.fir\\.kts?\$"
|
||||
|
||||
testGroupSuite(args) {
|
||||
testGroup("compiler/tests", "compiler/testData") {
|
||||
testGroup("compiler/tests-gen", "compiler/testData") {
|
||||
testClass<AbstractDiagnosticsTestWithFirValidation>(suiteTestClassName = "DiagnosticsTestGenerated") {
|
||||
model("diagnostics/tests", pattern = "^(.*)\\.kts?$", excludedPattern = excludedFirTestdataPattern)
|
||||
model("codegen/box/diagnostics")
|
||||
@@ -590,7 +590,7 @@ fun main(args: Array<String>) {
|
||||
}
|
||||
|
||||
testGroup(
|
||||
"compiler/tests", "compiler/testData",
|
||||
"compiler/tests-gen", "compiler/testData",
|
||||
testRunnerMethodName = "runTestWithCustomIgnoreDirective",
|
||||
additionalRunnerArguments = listOf("\"// IGNORE_BACKEND_MULTI_MODULE: \"")
|
||||
) {
|
||||
|
||||
@@ -1,150 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.integration;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/integration/ant/jvm")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class AntTaskTestGenerated extends AbstractAntTaskTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("additionalArguments")
|
||||
public void testAdditionalArguments() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/additionalArguments/");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJvm() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/integration/ant/jvm"), Pattern.compile("^([^\\.]+)$"), null, false);
|
||||
}
|
||||
|
||||
@TestMetadata("doNotFailOnError")
|
||||
public void testDoNotFailOnError() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/doNotFailOnError/");
|
||||
}
|
||||
|
||||
@TestMetadata("failOnErrorByDefault")
|
||||
public void testFailOnErrorByDefault() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/failOnErrorByDefault/");
|
||||
}
|
||||
|
||||
@TestMetadata("helloWorld")
|
||||
public void testHelloWorld() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/helloWorld/");
|
||||
}
|
||||
|
||||
@TestMetadata("internalMembers")
|
||||
public void testInternalMembers() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/internalMembers/");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmClasspath")
|
||||
public void testJvmClasspath() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/jvmClasspath/");
|
||||
}
|
||||
|
||||
@TestMetadata("kt11995")
|
||||
public void testKt11995() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/kt11995/");
|
||||
}
|
||||
|
||||
@TestMetadata("languageVersion")
|
||||
public void testLanguageVersion() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/languageVersion/");
|
||||
}
|
||||
|
||||
@TestMetadata("mainInFiles")
|
||||
public void testMainInFiles() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/mainInFiles/");
|
||||
}
|
||||
|
||||
@TestMetadata("moduleName")
|
||||
public void testModuleName() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/moduleName/");
|
||||
}
|
||||
|
||||
@TestMetadata("moduleNameDefault")
|
||||
public void testModuleNameDefault() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/moduleNameDefault/");
|
||||
}
|
||||
|
||||
@TestMetadata("moduleNameWithKotlin")
|
||||
public void testModuleNameWithKotlin() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/moduleNameWithKotlin/");
|
||||
}
|
||||
|
||||
@TestMetadata("noReflectForJavac")
|
||||
public void testNoReflectForJavac() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/noReflectForJavac/");
|
||||
}
|
||||
|
||||
@TestMetadata("noStdlibForJavac")
|
||||
public void testNoStdlibForJavac() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/noStdlibForJavac/");
|
||||
}
|
||||
|
||||
@TestMetadata("overloadResolutionOnCollectionLiteral")
|
||||
public void testOverloadResolutionOnCollectionLiteral() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/overloadResolutionOnCollectionLiteral/");
|
||||
}
|
||||
|
||||
@TestMetadata("stdlibForJavacWithNoKotlin")
|
||||
public void testStdlibForJavacWithNoKotlin() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/stdlibForJavacWithNoKotlin/");
|
||||
}
|
||||
|
||||
@TestMetadata("suppressWarnings")
|
||||
public void testSuppressWarnings() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/suppressWarnings/");
|
||||
}
|
||||
|
||||
@TestMetadata("twoStdlibForCollectionLiterals")
|
||||
public void testTwoStdlibForCollectionLiterals() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/twoStdlibForCollectionLiterals/");
|
||||
}
|
||||
|
||||
@TestMetadata("valWithInvoke")
|
||||
public void testValWithInvoke() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/valWithInvoke/");
|
||||
}
|
||||
|
||||
@TestMetadata("verbose")
|
||||
public void testVerbose() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/verbose/");
|
||||
}
|
||||
|
||||
@TestMetadata("version")
|
||||
public void testVersion() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/version/");
|
||||
}
|
||||
|
||||
@TestMetadata("withKotlinFork")
|
||||
public void testWithKotlinFork() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/withKotlinFork/");
|
||||
}
|
||||
|
||||
@TestMetadata("withKotlinNoJavaSources")
|
||||
public void testWithKotlinNoJavaSources() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/withKotlinNoJavaSources/");
|
||||
}
|
||||
|
||||
@TestMetadata("wrongCallForCollectionLiteral")
|
||||
public void testWrongCallForCollectionLiteral() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/wrongCallForCollectionLiteral/");
|
||||
}
|
||||
}
|
||||
@@ -1,126 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.ir;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/irCfg")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrCfgTestCaseGenerated extends AbstractIrCfgTestCase {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInIrCfg() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irCfg"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("expressionFun.kt")
|
||||
public void testExpressionFun() throws Exception {
|
||||
runTest("compiler/testData/ir/irCfg/expressionFun.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expressionUnit.kt")
|
||||
public void testExpressionUnit() throws Exception {
|
||||
runTest("compiler/testData/ir/irCfg/expressionUnit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("returnUnit.kt")
|
||||
public void testReturnUnit() throws Exception {
|
||||
runTest("compiler/testData/ir/irCfg/returnUnit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("sequentialFun.kt")
|
||||
public void testSequentialFun() throws Exception {
|
||||
runTest("compiler/testData/ir/irCfg/sequentialFun.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleFun.kt")
|
||||
public void testSimpleFun() throws Exception {
|
||||
runTest("compiler/testData/ir/irCfg/simpleFun.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleReturn.kt")
|
||||
public void testSimpleReturn() throws Exception {
|
||||
runTest("compiler/testData/ir/irCfg/simpleReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/ir/irCfg/loop")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Loop extends AbstractIrCfgTestCase {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInLoop() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irCfg/loop"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("digitCount.kt")
|
||||
public void testDigitCount() throws Exception {
|
||||
runTest("compiler/testData/ir/irCfg/loop/digitCount.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("factorial.kt")
|
||||
public void testFactorial() throws Exception {
|
||||
runTest("compiler/testData/ir/irCfg/loop/factorial.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("isPerfect.kt")
|
||||
public void testIsPerfect() throws Exception {
|
||||
runTest("compiler/testData/ir/irCfg/loop/isPerfect.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/ir/irCfg/when")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class When extends AbstractIrCfgTestCase {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInWhen() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irCfg/when"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("cascadeIf.kt")
|
||||
public void testCascadeIf() throws Exception {
|
||||
runTest("compiler/testData/ir/irCfg/when/cascadeIf.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("emptyWhen.kt")
|
||||
public void testEmptyWhen() throws Exception {
|
||||
runTest("compiler/testData/ir/irCfg/when/emptyWhen.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expressionIf.kt")
|
||||
public void testExpressionIf() throws Exception {
|
||||
runTest("compiler/testData/ir/irCfg/when/expressionIf.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ifChain.kt")
|
||||
public void testIfChain() throws Exception {
|
||||
runTest("compiler/testData/ir/irCfg/when/ifChain.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("whenReturn.kt")
|
||||
public void testWhenReturn() throws Exception {
|
||||
runTest("compiler/testData/ir/irCfg/when/whenReturn.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,217 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.ir;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/irJsText")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrJsTextTestCaseGenerated extends AbstractIrJsTextTestCase {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInIrJsText() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irJsText"), Pattern.compile("^(.+)\\.kt(s)?$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/ir/irJsText/dynamic")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Dynamic extends AbstractIrJsTextTestCase {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDynamic() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irJsText/dynamic"), Pattern.compile("^(.+)\\.kt(s)?$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicAndMembersOfAny.kt")
|
||||
public void testDynamicAndMembersOfAny() throws Exception {
|
||||
runTest("compiler/testData/ir/irJsText/dynamic/dynamicAndMembersOfAny.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicArrayAccess.kt")
|
||||
public void testDynamicArrayAccess() throws Exception {
|
||||
runTest("compiler/testData/ir/irJsText/dynamic/dynamicArrayAccess.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicArrayAssignment.kt")
|
||||
public void testDynamicArrayAssignment() throws Exception {
|
||||
runTest("compiler/testData/ir/irJsText/dynamic/dynamicArrayAssignment.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicArrayAugmentedAssignment.kt")
|
||||
public void testDynamicArrayAugmentedAssignment() throws Exception {
|
||||
runTest("compiler/testData/ir/irJsText/dynamic/dynamicArrayAugmentedAssignment.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicArrayIncrementDecrement.kt")
|
||||
public void testDynamicArrayIncrementDecrement() throws Exception {
|
||||
runTest("compiler/testData/ir/irJsText/dynamic/dynamicArrayIncrementDecrement.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicBinaryEqualityOperator.kt")
|
||||
public void testDynamicBinaryEqualityOperator() throws Exception {
|
||||
runTest("compiler/testData/ir/irJsText/dynamic/dynamicBinaryEqualityOperator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicBinaryLogicalOperator.kt")
|
||||
public void testDynamicBinaryLogicalOperator() throws Exception {
|
||||
runTest("compiler/testData/ir/irJsText/dynamic/dynamicBinaryLogicalOperator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicBinaryOperator.kt")
|
||||
public void testDynamicBinaryOperator() throws Exception {
|
||||
runTest("compiler/testData/ir/irJsText/dynamic/dynamicBinaryOperator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicBinaryRelationalOperator.kt")
|
||||
public void testDynamicBinaryRelationalOperator() throws Exception {
|
||||
runTest("compiler/testData/ir/irJsText/dynamic/dynamicBinaryRelationalOperator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicCall.kt")
|
||||
public void testDynamicCall() throws Exception {
|
||||
runTest("compiler/testData/ir/irJsText/dynamic/dynamicCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicElvisOperator.kt")
|
||||
public void testDynamicElvisOperator() throws Exception {
|
||||
runTest("compiler/testData/ir/irJsText/dynamic/dynamicElvisOperator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicExclExclOperator.kt")
|
||||
public void testDynamicExclExclOperator() throws Exception {
|
||||
runTest("compiler/testData/ir/irJsText/dynamic/dynamicExclExclOperator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicInfixCall.kt")
|
||||
public void testDynamicInfixCall() throws Exception {
|
||||
runTest("compiler/testData/ir/irJsText/dynamic/dynamicInfixCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicMemberAccess.kt")
|
||||
public void testDynamicMemberAccess() throws Exception {
|
||||
runTest("compiler/testData/ir/irJsText/dynamic/dynamicMemberAccess.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicMemberAssignment.kt")
|
||||
public void testDynamicMemberAssignment() throws Exception {
|
||||
runTest("compiler/testData/ir/irJsText/dynamic/dynamicMemberAssignment.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicMemberAugmentedAssignment.kt")
|
||||
public void testDynamicMemberAugmentedAssignment() throws Exception {
|
||||
runTest("compiler/testData/ir/irJsText/dynamic/dynamicMemberAugmentedAssignment.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicMemberIncrementDecrement.kt")
|
||||
public void testDynamicMemberIncrementDecrement() throws Exception {
|
||||
runTest("compiler/testData/ir/irJsText/dynamic/dynamicMemberIncrementDecrement.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicUnaryOperator.kt")
|
||||
public void testDynamicUnaryOperator() throws Exception {
|
||||
runTest("compiler/testData/ir/irJsText/dynamic/dynamicUnaryOperator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicWithSmartCast.kt")
|
||||
public void testDynamicWithSmartCast() throws Exception {
|
||||
runTest("compiler/testData/ir/irJsText/dynamic/dynamicWithSmartCast.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitCastFromDynamic.kt")
|
||||
public void testImplicitCastFromDynamic() throws Exception {
|
||||
runTest("compiler/testData/ir/irJsText/dynamic/implicitCastFromDynamic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitCastToDynamic.kt")
|
||||
public void testImplicitCastToDynamic() throws Exception {
|
||||
runTest("compiler/testData/ir/irJsText/dynamic/implicitCastToDynamic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invokeOperator.kt")
|
||||
public void testInvokeOperator() throws Exception {
|
||||
runTest("compiler/testData/ir/irJsText/dynamic/invokeOperator.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/ir/irJsText/external")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class External extends AbstractIrJsTextTestCase {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInExternal() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irJsText/external"), Pattern.compile("^(.+)\\.kt(s)?$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("kt38765.kt")
|
||||
public void testKt38765() throws Exception {
|
||||
runTest("compiler/testData/ir/irJsText/external/kt38765.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/ir/irJsText/native")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Native extends AbstractIrJsTextTestCase {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInNative() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irJsText/native"), Pattern.compile("^(.+)\\.kt(s)?$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("nativeNativeKotlin.kt")
|
||||
public void testNativeNativeKotlin() throws Exception {
|
||||
runTest("compiler/testData/ir/irJsText/native/nativeNativeKotlin.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/ir/irJsText/scripting")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Scripting extends AbstractIrJsTextTestCase {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInScripting() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irJsText/scripting"), Pattern.compile("^(.+)\\.kt(s)?$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("arrayAssignment.kts")
|
||||
public void testArrayAssignment() throws Exception {
|
||||
runTest("compiler/testData/ir/irJsText/scripting/arrayAssignment.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("fun.kts")
|
||||
public void testFun() throws Exception {
|
||||
runTest("compiler/testData/ir/irJsText/scripting/fun.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("safeCalls.kts")
|
||||
public void testSafeCalls() throws Exception {
|
||||
runTest("compiler/testData/ir/irJsText/scripting/safeCalls.kts");
|
||||
}
|
||||
}
|
||||
}
|
||||
-108
@@ -1,108 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.ir;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/sourceRanges")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrSourceRangesTestCaseGenerated extends AbstractIrSourceRangesTestCase {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSourceRanges() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/sourceRanges"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("augmentedAssignmentWithExpression.kt")
|
||||
public void testAugmentedAssignmentWithExpression() throws Exception {
|
||||
runTest("compiler/testData/ir/sourceRanges/augmentedAssignmentWithExpression.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("comments.kt")
|
||||
public void testComments() throws Exception {
|
||||
runTest("compiler/testData/ir/sourceRanges/comments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt17108.kt")
|
||||
public void testKt17108() throws Exception {
|
||||
runTest("compiler/testData/ir/sourceRanges/kt17108.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/ir/sourceRanges/declarations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Declarations extends AbstractIrSourceRangesTestCase {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDeclarations() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/sourceRanges/declarations"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classFuns.kt")
|
||||
public void testClassFuns() throws Exception {
|
||||
runTest("compiler/testData/ir/sourceRanges/declarations/classFuns.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classProperties.kt")
|
||||
public void testClassProperties() throws Exception {
|
||||
runTest("compiler/testData/ir/sourceRanges/declarations/classProperties.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classes.kt")
|
||||
public void testClasses() throws Exception {
|
||||
runTest("compiler/testData/ir/sourceRanges/declarations/classes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("fakeOverrides.kt")
|
||||
public void testFakeOverrides() throws Exception {
|
||||
runTest("compiler/testData/ir/sourceRanges/declarations/fakeOverrides.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt29862.kt")
|
||||
public void testKt29862() throws Exception {
|
||||
runTest("compiler/testData/ir/sourceRanges/declarations/kt29862.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("primaryConstructors.kt")
|
||||
public void testPrimaryConstructors() throws Exception {
|
||||
runTest("compiler/testData/ir/sourceRanges/declarations/primaryConstructors.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("secondaryConstructors.kt")
|
||||
public void testSecondaryConstructors() throws Exception {
|
||||
runTest("compiler/testData/ir/sourceRanges/declarations/secondaryConstructors.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("synthesizedDataClassMembers.kt")
|
||||
public void testSynthesizedDataClassMembers() throws Exception {
|
||||
runTest("compiler/testData/ir/sourceRanges/declarations/synthesizedDataClassMembers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelFuns.kt")
|
||||
public void testTopLevelFuns() throws Exception {
|
||||
runTest("compiler/testData/ir/sourceRanges/declarations/topLevelFuns.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelProperties.kt")
|
||||
public void testTopLevelProperties() throws Exception {
|
||||
runTest("compiler/testData/ir/sourceRanges/declarations/topLevelProperties.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Generated
-1347
File diff suppressed because it is too large
Load Diff
Generated
-597
@@ -1,597 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.jvm.compiler;
|
||||
|
||||
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")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class CompileKotlinAgainstJavaTestGenerated extends AbstractCompileKotlinAgainstJavaTest {
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstJava")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class WithAPT extends AbstractCompileKotlinAgainstJavaTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestWithAPT, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("AbstractClass.kt")
|
||||
public void testAbstractClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/AbstractClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AbstractEnum.kt")
|
||||
public void testAbstractEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/AbstractEnum.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInWithAPT() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstJava"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("AnnotationWithArguments.kt")
|
||||
public void testAnnotationWithArguments() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/AnnotationWithArguments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AnnotationWithField.kt")
|
||||
public void testAnnotationWithField() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/AnnotationWithField.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AsteriskInImport.kt")
|
||||
public void testAsteriskInImport() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/AsteriskInImport.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("CheckKotlinStub.kt")
|
||||
public void testCheckKotlinStub() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/CheckKotlinStub.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("CheckNotNull.kt")
|
||||
public void testCheckNotNull() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/CheckNotNull.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Class.kt")
|
||||
public void testClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Class.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassDefaultConstructor.kt")
|
||||
public void testClassDefaultConstructor() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ClassDefaultConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassWithNestedEnum.kt")
|
||||
public void testClassWithNestedEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ClassWithNestedEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassWithTypeParameter.kt")
|
||||
public void testClassWithTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ClassWithTypeParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("CyclicDependencies.kt")
|
||||
public void testCyclicDependencies() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/CyclicDependencies.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("DefaultModifier.kt")
|
||||
public void testDefaultModifier() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/DefaultModifier.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("EnclosingClassInner.kt")
|
||||
public void testEnclosingClassInner() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/EnclosingClassInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Enum.kt")
|
||||
public void testEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Enum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("EnumName.kt")
|
||||
public void testEnumName() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/EnumName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("EnumValues.kt")
|
||||
public void testEnumValues() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/EnumValues.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Inheritance.kt")
|
||||
public void testInheritance() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Inheritance.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritedInner.kt")
|
||||
public void testInheritedInner() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InheritedInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerCanonicalName.kt")
|
||||
public void testInnerCanonicalName() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InnerCanonicalName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerClass.kt")
|
||||
public void testInnerClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InnerClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerClassFromAsteriskImport.kt")
|
||||
public void testInnerClassFromAsteriskImport() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InnerClassFromAsteriskImport.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerClassFromImport.kt")
|
||||
public void testInnerClassFromImport() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InnerClassFromImport.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerWithGenericOuter.kt")
|
||||
public void testInnerWithGenericOuter() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InnerWithGenericOuter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Interface.kt")
|
||||
public void testInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Interface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InterfaceField.kt")
|
||||
public void testInterfaceField() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InterfaceField.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InterfaceMemberClass.kt")
|
||||
public void testInterfaceMemberClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InterfaceMemberClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InterfaceWithDefault.kt")
|
||||
public void testInterfaceWithDefault() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InterfaceWithDefault.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("JavaLangClass.kt")
|
||||
public void testJavaLangClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/JavaLangClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ListImpl.kt")
|
||||
public void testListImpl() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ListImpl.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MapExample.kt")
|
||||
public void testMapExample() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/MapExample.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Method.kt")
|
||||
public void testMethod() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Method.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MethodWithArgument.kt")
|
||||
public void testMethodWithArgument() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/MethodWithArgument.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MethodWithSeveralTypeParameters.kt")
|
||||
public void testMethodWithSeveralTypeParameters() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/MethodWithSeveralTypeParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MethodWithTypeParameter.kt")
|
||||
public void testMethodWithTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/MethodWithTypeParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MethodWithWildcard.kt")
|
||||
public void testMethodWithWildcard() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/MethodWithWildcard.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Nesting.kt")
|
||||
public void testNesting() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Nesting.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("RawReturnType.kt")
|
||||
public void testRawReturnType() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/RawReturnType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnEnum.kt")
|
||||
public void testReturnEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnInnerClass.kt")
|
||||
public void testReturnInnerClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnInnerClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnInnerInInner.kt")
|
||||
public void testReturnInnerInInner() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnInnerInInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnInnerInner.kt")
|
||||
public void testReturnInnerInner() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnInnerInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnNested.kt")
|
||||
public void testReturnNested() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnNested.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnNestedFQ.kt")
|
||||
public void testReturnNestedFQ() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnNestedFQ.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnType.kt")
|
||||
public void testReturnType() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnTypeResolution.kt")
|
||||
public void testReturnTypeResolution() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnTypeResolution.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SeveralInnerClasses.kt")
|
||||
public void testSeveralInnerClasses() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/SeveralInnerClasses.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SimpleAnnotation.kt")
|
||||
public void testSimpleAnnotation() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/SimpleAnnotation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SimpleWildcard.kt")
|
||||
public void testSimpleWildcard() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/SimpleWildcard.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Singleton.kt")
|
||||
public void testSingleton() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Singleton.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("StaticNestedClass.kt")
|
||||
public void testStaticNestedClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/StaticNestedClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("TypeArgumentInSuperType.kt")
|
||||
public void testTypeArgumentInSuperType() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/TypeArgumentInSuperType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("TypeParameter.kt")
|
||||
public void testTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/TypeParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("UseKtClass.kt")
|
||||
public void testUseKtClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/UseKtClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Vararg.kt")
|
||||
public void testVararg() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Vararg.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstJava")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class WithoutAPT extends AbstractCompileKotlinAgainstJavaTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestWithoutAPT, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("AbstractClass.kt")
|
||||
public void testAbstractClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/AbstractClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AbstractEnum.kt")
|
||||
public void testAbstractEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/AbstractEnum.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInWithoutAPT() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstJava"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("AnnotationWithArguments.kt")
|
||||
public void testAnnotationWithArguments() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/AnnotationWithArguments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AnnotationWithField.kt")
|
||||
public void testAnnotationWithField() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/AnnotationWithField.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AsteriskInImport.kt")
|
||||
public void testAsteriskInImport() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/AsteriskInImport.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("CheckKotlinStub.kt")
|
||||
public void testCheckKotlinStub() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/CheckKotlinStub.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("CheckNotNull.kt")
|
||||
public void testCheckNotNull() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/CheckNotNull.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Class.kt")
|
||||
public void testClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Class.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassDefaultConstructor.kt")
|
||||
public void testClassDefaultConstructor() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ClassDefaultConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassWithNestedEnum.kt")
|
||||
public void testClassWithNestedEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ClassWithNestedEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassWithTypeParameter.kt")
|
||||
public void testClassWithTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ClassWithTypeParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("CyclicDependencies.kt")
|
||||
public void testCyclicDependencies() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/CyclicDependencies.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("DefaultModifier.kt")
|
||||
public void testDefaultModifier() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/DefaultModifier.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("EnclosingClassInner.kt")
|
||||
public void testEnclosingClassInner() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/EnclosingClassInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Enum.kt")
|
||||
public void testEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Enum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("EnumName.kt")
|
||||
public void testEnumName() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/EnumName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("EnumValues.kt")
|
||||
public void testEnumValues() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/EnumValues.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Inheritance.kt")
|
||||
public void testInheritance() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Inheritance.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritedInner.kt")
|
||||
public void testInheritedInner() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InheritedInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerCanonicalName.kt")
|
||||
public void testInnerCanonicalName() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InnerCanonicalName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerClass.kt")
|
||||
public void testInnerClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InnerClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerClassFromAsteriskImport.kt")
|
||||
public void testInnerClassFromAsteriskImport() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InnerClassFromAsteriskImport.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerClassFromImport.kt")
|
||||
public void testInnerClassFromImport() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InnerClassFromImport.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerWithGenericOuter.kt")
|
||||
public void testInnerWithGenericOuter() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InnerWithGenericOuter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Interface.kt")
|
||||
public void testInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Interface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InterfaceField.kt")
|
||||
public void testInterfaceField() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InterfaceField.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InterfaceMemberClass.kt")
|
||||
public void testInterfaceMemberClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InterfaceMemberClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InterfaceWithDefault.kt")
|
||||
public void testInterfaceWithDefault() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InterfaceWithDefault.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("JavaLangClass.kt")
|
||||
public void testJavaLangClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/JavaLangClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ListImpl.kt")
|
||||
public void testListImpl() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ListImpl.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MapExample.kt")
|
||||
public void testMapExample() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/MapExample.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Method.kt")
|
||||
public void testMethod() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Method.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MethodWithArgument.kt")
|
||||
public void testMethodWithArgument() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/MethodWithArgument.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MethodWithSeveralTypeParameters.kt")
|
||||
public void testMethodWithSeveralTypeParameters() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/MethodWithSeveralTypeParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MethodWithTypeParameter.kt")
|
||||
public void testMethodWithTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/MethodWithTypeParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MethodWithWildcard.kt")
|
||||
public void testMethodWithWildcard() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/MethodWithWildcard.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Nesting.kt")
|
||||
public void testNesting() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Nesting.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("RawReturnType.kt")
|
||||
public void testRawReturnType() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/RawReturnType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnEnum.kt")
|
||||
public void testReturnEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnInnerClass.kt")
|
||||
public void testReturnInnerClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnInnerClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnInnerInInner.kt")
|
||||
public void testReturnInnerInInner() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnInnerInInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnInnerInner.kt")
|
||||
public void testReturnInnerInner() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnInnerInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnNested.kt")
|
||||
public void testReturnNested() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnNested.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnNestedFQ.kt")
|
||||
public void testReturnNestedFQ() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnNestedFQ.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnType.kt")
|
||||
public void testReturnType() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnTypeResolution.kt")
|
||||
public void testReturnTypeResolution() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnTypeResolution.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SeveralInnerClasses.kt")
|
||||
public void testSeveralInnerClasses() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/SeveralInnerClasses.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SimpleAnnotation.kt")
|
||||
public void testSimpleAnnotation() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/SimpleAnnotation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SimpleWildcard.kt")
|
||||
public void testSimpleWildcard() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/SimpleWildcard.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Singleton.kt")
|
||||
public void testSingleton() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Singleton.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("StaticNestedClass.kt")
|
||||
public void testStaticNestedClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/StaticNestedClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("TypeArgumentInSuperType.kt")
|
||||
public void testTypeArgumentInSuperType() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/TypeArgumentInSuperType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("TypeParameter.kt")
|
||||
public void testTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/TypeParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("UseKtClass.kt")
|
||||
public void testUseKtClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/UseKtClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Vararg.kt")
|
||||
public void testVararg() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Vararg.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
-5137
File diff suppressed because it is too large
Load Diff
Generated
-1652
File diff suppressed because it is too large
Load Diff
Generated
-2908
File diff suppressed because it is too large
Load Diff
-681
@@ -1,681 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.jvm.compiler;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/writeSignature")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class WriteSignatureTestGenerated extends AbstractWriteSignatureTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInWriteSignature() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/writeSignature"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("ArrayOfCharSequence.kt")
|
||||
public void testArrayOfCharSequence() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/ArrayOfCharSequence.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ArrayOfInt.kt")
|
||||
public void testArrayOfInt() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/ArrayOfInt.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("backingFieldForGenericDelegated.kt")
|
||||
public void testBackingFieldForGenericDelegated() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/backingFieldForGenericDelegated.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Comparable.kt")
|
||||
public void testComparable() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/Comparable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("DeepGenericInnerClass.kt")
|
||||
public void testDeepGenericInnerClass() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/DeepGenericInnerClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("GenericInnerClass.kt")
|
||||
public void testGenericInnerClass() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/GenericInnerClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("GenericInnerClassWithSimpleOuter.kt")
|
||||
public void testGenericInnerClassWithSimpleOuter() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/GenericInnerClassWithSimpleOuter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Int.kt")
|
||||
public void testInt() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/Int.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("IntArray.kt")
|
||||
public void testIntArray() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/IntArray.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("IntQ.kt")
|
||||
public void testIntQ() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/IntQ.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jlString.kt")
|
||||
public void testJlString() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/jlString.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ListOfCharSequence.kt")
|
||||
public void testListOfCharSequence() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/ListOfCharSequence.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ListOfStar.kt")
|
||||
public void testListOfStar() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/ListOfStar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MapEntry.kt")
|
||||
public void testMapEntry() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/MapEntry.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MutableMapEntry.kt")
|
||||
public void testMutableMapEntry() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/MutableMapEntry.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("NonGeneric.kt")
|
||||
public void testNonGeneric() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/NonGeneric.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("StarProjectionInClass.kt")
|
||||
public void testStarProjectionInClass() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/StarProjectionInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("StarProjectionInSuper.kt")
|
||||
public void testStarProjectionInSuper() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/StarProjectionInSuper.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("StarProjectionOutsideClass.kt")
|
||||
public void testStarProjectionOutsideClass() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/StarProjectionOutsideClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("syntheticAccessorForGeneric.kt")
|
||||
public void testSyntheticAccessorForGeneric() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/syntheticAccessorForGeneric.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("VarargCharSequence.kt")
|
||||
public void testVarargCharSequence() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/VarargCharSequence.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("VarargGeneric.kt")
|
||||
public void testVarargGeneric() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/VarargGeneric.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/writeSignature/annotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Annotations extends AbstractWriteSignatureTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInAnnotations() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/writeSignature/annotations"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("kArrayClassOfJClass.kt")
|
||||
public void testKArrayClassOfJClass() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/annotations/kArrayClassOfJClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kArrayClassOfKClass.kt")
|
||||
public void testKArrayClassOfKClass() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/annotations/kArrayClassOfKClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kClassBasic.kt")
|
||||
public void testKClassBasic() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/annotations/kClassBasic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kClassInt.kt")
|
||||
public void testKClassInt() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/annotations/kClassInt.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kClassOfKClass.kt")
|
||||
public void testKClassOfKClass() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/annotations/kClassOfKClass.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/writeSignature/callableReference")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CallableReference extends AbstractWriteSignatureTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCallableReference() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/writeSignature/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("constructorReferenceInReturnType.kt")
|
||||
public void testConstructorReferenceInReturnType() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/callableReference/constructorReferenceInReturnType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionReferenceInvoke.kt")
|
||||
public void testFunctionReferenceInvoke() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/callableReference/functionReferenceInvoke.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyReferenceGet.kt")
|
||||
public void testPropertyReferenceGet() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/callableReference/propertyReferenceGet.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendFunctionReference.kt")
|
||||
public void testSuspendFunctionReference() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/callableReference/suspendFunctionReference.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/writeSignature/constructor")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Constructor extends AbstractWriteSignatureTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInConstructor() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/writeSignature/constructor"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("Constructor0.kt")
|
||||
public void testConstructor0() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/constructor/Constructor0.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ConstructorCollectionParameter.kt")
|
||||
public void testConstructorCollectionParameter() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/constructor/ConstructorCollectionParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ConstructorWithTypeParameter.kt")
|
||||
public void testConstructorWithTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/constructor/ConstructorWithTypeParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ConstructorWithTypeParameterAndValueParameterP.kt")
|
||||
public void testConstructorWithTypeParameterAndValueParameterP() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/constructor/ConstructorWithTypeParameterAndValueParameterP.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/writeSignature/declarationSiteVariance")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class DeclarationSiteVariance extends AbstractWriteSignatureTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDeclarationSiteVariance() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/writeSignature/declarationSiteVariance"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("FunctionTwoTypeParameters.kt")
|
||||
public void testFunctionTwoTypeParameters() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/FunctionTwoTypeParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("GenericOverrides.kt")
|
||||
public void testGenericOverrides() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/GenericOverrides.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InInInPosition.kt")
|
||||
public void testInInInPosition() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/InInInPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InInOutPosition.kt")
|
||||
public void testInInOutPosition() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/InInOutPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InOfInInInPosition.kt")
|
||||
public void testInOfInInInPosition() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/InOfInInInPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InOfInInOutPosition.kt")
|
||||
public void testInOfInInOutPosition() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/InOfInInOutPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InOfOutInInPosition.kt")
|
||||
public void testInOfOutInInPosition() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/InOfOutInInPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InOfOutInOutPosition.kt")
|
||||
public void testInOfOutInOutPosition() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/InOfOutInOutPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MappedSupertypeWithVariance.kt")
|
||||
public void testMappedSupertypeWithVariance() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/MappedSupertypeWithVariance.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("OpenMembersReturnType.kt")
|
||||
public void testOpenMembersReturnType() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/OpenMembersReturnType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("OpenMembersValueParameter.kt")
|
||||
public void testOpenMembersValueParameter() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/OpenMembersValueParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("OutInField.kt")
|
||||
public void testOutInField() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/OutInField.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("OutInInPosition.kt")
|
||||
public void testOutInInPosition() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/OutInInPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("OutInOutPosition.kt")
|
||||
public void testOutInOutPosition() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/OutInOutPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("OutOfInInInPosition.kt")
|
||||
public void testOutOfInInInPosition() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/OutOfInInInPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("OutOfInInOutPosition.kt")
|
||||
public void testOutOfInInOutPosition() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/OutOfInInOutPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("OutOfOutInInPosition.kt")
|
||||
public void testOutOfOutInInPosition() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/OutOfOutInInPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("OutOfOutInOutPosition.kt")
|
||||
public void testOutOfOutInOutPosition() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/OutOfOutInOutPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("PropertyGetterIn.kt")
|
||||
public void testPropertyGetterIn() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/PropertyGetterIn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("PropertyGetterOut.kt")
|
||||
public void testPropertyGetterOut() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/PropertyGetterOut.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("PropertyGetterTwoParams.kt")
|
||||
public void testPropertyGetterTwoParams() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/PropertyGetterTwoParams.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("PropertySetterIn.kt")
|
||||
public void testPropertySetterIn() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/PropertySetterIn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("PropertySetterOut.kt")
|
||||
public void testPropertySetterOut() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/PropertySetterOut.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("RedundantProjections.kt")
|
||||
public void testRedundantProjections() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/RedundantProjections.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SuperClassWithVariance.kt")
|
||||
public void testSuperClassWithVariance() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/SuperClassWithVariance.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SuperTraitWithVariance.kt")
|
||||
public void testSuperTraitWithVariance() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/SuperTraitWithVariance.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SuperTypeWithVarianceInArguments.kt")
|
||||
public void testSuperTypeWithVarianceInArguments() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/SuperTypeWithVarianceInArguments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/writeSignature/declarationSiteVariance/jvmWildcardAnnotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class JvmWildcardAnnotations extends AbstractWriteSignatureTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJvmWildcardAnnotations() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/writeSignature/declarationSiteVariance/jvmWildcardAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("onFunction.kt")
|
||||
public void testOnFunction() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/jvmWildcardAnnotations/onFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("onTypes.kt")
|
||||
public void testOnTypes() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/jvmWildcardAnnotations/onTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("primitiveTypes.kt")
|
||||
public void testPrimitiveTypes() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/jvmWildcardAnnotations/primitiveTypes.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/writeSignature/declarationSiteVariance/wildcardOptimization")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class WildcardOptimization extends AbstractWriteSignatureTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInWildcardOptimization() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/writeSignature/declarationSiteVariance/wildcardOptimization"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("argumentOverridability.kt")
|
||||
public void testArgumentOverridability() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/wildcardOptimization/argumentOverridability.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("arrays.kt")
|
||||
public void testArrays() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/wildcardOptimization/arrays.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("complicatedInBounds.kt")
|
||||
public void testComplicatedInBounds() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/wildcardOptimization/complicatedInBounds.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("deepOut.kt")
|
||||
public void testDeepOut() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/wildcardOptimization/deepOut.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("fields.kt")
|
||||
public void testFields() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/wildcardOptimization/fields.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("finalReturnType.kt")
|
||||
public void testFinalReturnType() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/wildcardOptimization/finalReturnType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("outIn.kt")
|
||||
public void testOutIn() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/wildcardOptimization/outIn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("outInv.kt")
|
||||
public void testOutInv() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/wildcardOptimization/outInv.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelIn.kt")
|
||||
public void testTopLevelIn() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/wildcardOptimization/topLevelIn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelInv.kt")
|
||||
public void testTopLevelInv() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/wildcardOptimization/topLevelInv.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeParameter.kt")
|
||||
public void testTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/declarationSiteVariance/wildcardOptimization/typeParameter.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/writeSignature/defaultImpls")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class DefaultImpls extends AbstractWriteSignatureTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDefaultImpls() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/writeSignature/defaultImpls"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("functionTypeParameterClash.kt")
|
||||
public void testFunctionTypeParameterClash() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/defaultImpls/functionTypeParameterClash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionTypeParameterClashWith_I.kt")
|
||||
public void testFunctionTypeParameterClashWith_I() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/defaultImpls/functionTypeParameterClashWith_I.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyTypeParameterClash.kt")
|
||||
public void testPropertyTypeParameterClash() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/defaultImpls/propertyTypeParameterClash.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/writeSignature/inlineClasses")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class InlineClasses extends AbstractWriteSignatureTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInInlineClasses() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/writeSignature/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("basicInlineClassDeclarationCodegen.kt")
|
||||
public void testBasicInlineClassDeclarationCodegen() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/inlineClasses/basicInlineClassDeclarationCodegen.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("genericInlineClassBasedOnGenericType.kt")
|
||||
public void testGenericInlineClassBasedOnGenericType() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/inlineClasses/genericInlineClassBasedOnGenericType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("genericMethodInsideClass.kt")
|
||||
public void testGenericMethodInsideClass() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/inlineClasses/genericMethodInsideClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassAsGenericArgument.kt")
|
||||
public void testInlineClassAsGenericArgument() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/inlineClasses/inlineClassAsGenericArgument.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassBasedOnOtherInlineClass.kt")
|
||||
public void testInlineClassBasedOnOtherInlineClass() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/inlineClasses/inlineClassBasedOnOtherInlineClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassWithComplexSubstitutedType.kt")
|
||||
public void testInlineClassWithComplexSubstitutedType() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/inlineClasses/inlineClassWithComplexSubstitutedType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassesInsideFunctionalTypes.kt")
|
||||
public void testInlineClassesInsideFunctionalTypes() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/inlineClasses/inlineClassesInsideFunctionalTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullableInlineClassType.kt")
|
||||
public void testNullableInlineClassType() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/inlineClasses/nullableInlineClassType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleSignatureWithInlineClassTypesAsPrimitive.kt")
|
||||
public void testSimpleSignatureWithInlineClassTypesAsPrimitive() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/inlineClasses/simpleSignatureWithInlineClassTypesAsPrimitive.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleSignatureWithInlineClassTypesAsReference.kt")
|
||||
public void testSimpleSignatureWithInlineClassTypesAsReference() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/inlineClasses/simpleSignatureWithInlineClassTypesAsReference.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/writeSignature/java8")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Java8 extends AbstractWriteSignatureTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJava8() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/writeSignature/java8"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("mutableMapRemove.kt")
|
||||
public void testMutableMapRemove() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/java8/mutableMapRemove.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/writeSignature/nothing")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Nothing extends AbstractWriteSignatureTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInNothing() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/writeSignature/nothing"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("nothing.kt")
|
||||
public void testNothing() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/nothing/nothing.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullableNothing.kt")
|
||||
public void testNullableNothing() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/nothing/nullableNothing.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/writeSignature/parameterlessMain")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ParameterlessMain extends AbstractWriteSignatureTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInParameterlessMain() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/writeSignature/parameterlessMain"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("arrayWithContravariantStringIsNotMainMethod.kt")
|
||||
public void testArrayWithContravariantStringIsNotMainMethod() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/parameterlessMain/arrayWithContravariantStringIsNotMainMethod.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("impostorMains.kt")
|
||||
public void testImpostorMains() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/parameterlessMain/impostorMains.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("main.kt")
|
||||
public void testMain() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/parameterlessMain/main.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("notJvmMainName.kt")
|
||||
public void testNotJvmMainName() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/parameterlessMain/notJvmMainName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/parameterlessMain/simple.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/writeSignature/suspendMain")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class SuspendMain extends AbstractWriteSignatureTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSuspendMain() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/writeSignature/suspendMain"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("parameterlessSuspendMain.kt")
|
||||
public void testParameterlessSuspendMain() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/suspendMain/parameterlessSuspendMain.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendMain.kt")
|
||||
public void testSuspendMain() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/suspendMain/suspendMain.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
-1347
File diff suppressed because it is too large
Load Diff
Generated
-597
@@ -1,597 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.jvm.compiler.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")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrCompileKotlinAgainstJavaTestGenerated extends AbstractIrCompileKotlinAgainstJavaTest {
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstJava")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class WithAPT extends AbstractIrCompileKotlinAgainstJavaTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestWithAPT, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("AbstractClass.kt")
|
||||
public void testAbstractClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/AbstractClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AbstractEnum.kt")
|
||||
public void testAbstractEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/AbstractEnum.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInWithAPT() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstJava"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("AnnotationWithArguments.kt")
|
||||
public void testAnnotationWithArguments() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/AnnotationWithArguments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AnnotationWithField.kt")
|
||||
public void testAnnotationWithField() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/AnnotationWithField.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AsteriskInImport.kt")
|
||||
public void testAsteriskInImport() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/AsteriskInImport.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("CheckKotlinStub.kt")
|
||||
public void testCheckKotlinStub() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/CheckKotlinStub.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("CheckNotNull.kt")
|
||||
public void testCheckNotNull() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/CheckNotNull.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Class.kt")
|
||||
public void testClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Class.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassDefaultConstructor.kt")
|
||||
public void testClassDefaultConstructor() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ClassDefaultConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassWithNestedEnum.kt")
|
||||
public void testClassWithNestedEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ClassWithNestedEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassWithTypeParameter.kt")
|
||||
public void testClassWithTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ClassWithTypeParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("CyclicDependencies.kt")
|
||||
public void testCyclicDependencies() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/CyclicDependencies.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("DefaultModifier.kt")
|
||||
public void testDefaultModifier() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/DefaultModifier.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("EnclosingClassInner.kt")
|
||||
public void testEnclosingClassInner() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/EnclosingClassInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Enum.kt")
|
||||
public void testEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Enum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("EnumName.kt")
|
||||
public void testEnumName() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/EnumName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("EnumValues.kt")
|
||||
public void testEnumValues() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/EnumValues.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Inheritance.kt")
|
||||
public void testInheritance() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Inheritance.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritedInner.kt")
|
||||
public void testInheritedInner() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InheritedInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerCanonicalName.kt")
|
||||
public void testInnerCanonicalName() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InnerCanonicalName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerClass.kt")
|
||||
public void testInnerClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InnerClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerClassFromAsteriskImport.kt")
|
||||
public void testInnerClassFromAsteriskImport() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InnerClassFromAsteriskImport.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerClassFromImport.kt")
|
||||
public void testInnerClassFromImport() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InnerClassFromImport.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerWithGenericOuter.kt")
|
||||
public void testInnerWithGenericOuter() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InnerWithGenericOuter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Interface.kt")
|
||||
public void testInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Interface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InterfaceField.kt")
|
||||
public void testInterfaceField() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InterfaceField.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InterfaceMemberClass.kt")
|
||||
public void testInterfaceMemberClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InterfaceMemberClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InterfaceWithDefault.kt")
|
||||
public void testInterfaceWithDefault() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InterfaceWithDefault.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("JavaLangClass.kt")
|
||||
public void testJavaLangClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/JavaLangClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ListImpl.kt")
|
||||
public void testListImpl() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ListImpl.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MapExample.kt")
|
||||
public void testMapExample() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/MapExample.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Method.kt")
|
||||
public void testMethod() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Method.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MethodWithArgument.kt")
|
||||
public void testMethodWithArgument() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/MethodWithArgument.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MethodWithSeveralTypeParameters.kt")
|
||||
public void testMethodWithSeveralTypeParameters() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/MethodWithSeveralTypeParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MethodWithTypeParameter.kt")
|
||||
public void testMethodWithTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/MethodWithTypeParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MethodWithWildcard.kt")
|
||||
public void testMethodWithWildcard() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/MethodWithWildcard.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Nesting.kt")
|
||||
public void testNesting() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Nesting.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("RawReturnType.kt")
|
||||
public void testRawReturnType() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/RawReturnType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnEnum.kt")
|
||||
public void testReturnEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnInnerClass.kt")
|
||||
public void testReturnInnerClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnInnerClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnInnerInInner.kt")
|
||||
public void testReturnInnerInInner() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnInnerInInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnInnerInner.kt")
|
||||
public void testReturnInnerInner() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnInnerInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnNested.kt")
|
||||
public void testReturnNested() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnNested.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnNestedFQ.kt")
|
||||
public void testReturnNestedFQ() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnNestedFQ.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnType.kt")
|
||||
public void testReturnType() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnTypeResolution.kt")
|
||||
public void testReturnTypeResolution() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnTypeResolution.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SeveralInnerClasses.kt")
|
||||
public void testSeveralInnerClasses() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/SeveralInnerClasses.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SimpleAnnotation.kt")
|
||||
public void testSimpleAnnotation() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/SimpleAnnotation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SimpleWildcard.kt")
|
||||
public void testSimpleWildcard() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/SimpleWildcard.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Singleton.kt")
|
||||
public void testSingleton() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Singleton.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("StaticNestedClass.kt")
|
||||
public void testStaticNestedClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/StaticNestedClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("TypeArgumentInSuperType.kt")
|
||||
public void testTypeArgumentInSuperType() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/TypeArgumentInSuperType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("TypeParameter.kt")
|
||||
public void testTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/TypeParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("UseKtClass.kt")
|
||||
public void testUseKtClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/UseKtClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Vararg.kt")
|
||||
public void testVararg() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Vararg.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstJava")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class WithoutAPT extends AbstractIrCompileKotlinAgainstJavaTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestWithoutAPT, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("AbstractClass.kt")
|
||||
public void testAbstractClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/AbstractClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AbstractEnum.kt")
|
||||
public void testAbstractEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/AbstractEnum.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInWithoutAPT() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstJava"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("AnnotationWithArguments.kt")
|
||||
public void testAnnotationWithArguments() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/AnnotationWithArguments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AnnotationWithField.kt")
|
||||
public void testAnnotationWithField() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/AnnotationWithField.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AsteriskInImport.kt")
|
||||
public void testAsteriskInImport() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/AsteriskInImport.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("CheckKotlinStub.kt")
|
||||
public void testCheckKotlinStub() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/CheckKotlinStub.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("CheckNotNull.kt")
|
||||
public void testCheckNotNull() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/CheckNotNull.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Class.kt")
|
||||
public void testClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Class.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassDefaultConstructor.kt")
|
||||
public void testClassDefaultConstructor() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ClassDefaultConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassWithNestedEnum.kt")
|
||||
public void testClassWithNestedEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ClassWithNestedEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassWithTypeParameter.kt")
|
||||
public void testClassWithTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ClassWithTypeParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("CyclicDependencies.kt")
|
||||
public void testCyclicDependencies() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/CyclicDependencies.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("DefaultModifier.kt")
|
||||
public void testDefaultModifier() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/DefaultModifier.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("EnclosingClassInner.kt")
|
||||
public void testEnclosingClassInner() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/EnclosingClassInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Enum.kt")
|
||||
public void testEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Enum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("EnumName.kt")
|
||||
public void testEnumName() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/EnumName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("EnumValues.kt")
|
||||
public void testEnumValues() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/EnumValues.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Inheritance.kt")
|
||||
public void testInheritance() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Inheritance.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritedInner.kt")
|
||||
public void testInheritedInner() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InheritedInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerCanonicalName.kt")
|
||||
public void testInnerCanonicalName() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InnerCanonicalName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerClass.kt")
|
||||
public void testInnerClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InnerClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerClassFromAsteriskImport.kt")
|
||||
public void testInnerClassFromAsteriskImport() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InnerClassFromAsteriskImport.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerClassFromImport.kt")
|
||||
public void testInnerClassFromImport() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InnerClassFromImport.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerWithGenericOuter.kt")
|
||||
public void testInnerWithGenericOuter() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InnerWithGenericOuter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Interface.kt")
|
||||
public void testInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Interface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InterfaceField.kt")
|
||||
public void testInterfaceField() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InterfaceField.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InterfaceMemberClass.kt")
|
||||
public void testInterfaceMemberClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InterfaceMemberClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InterfaceWithDefault.kt")
|
||||
public void testInterfaceWithDefault() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/InterfaceWithDefault.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("JavaLangClass.kt")
|
||||
public void testJavaLangClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/JavaLangClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ListImpl.kt")
|
||||
public void testListImpl() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ListImpl.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MapExample.kt")
|
||||
public void testMapExample() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/MapExample.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Method.kt")
|
||||
public void testMethod() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Method.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MethodWithArgument.kt")
|
||||
public void testMethodWithArgument() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/MethodWithArgument.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MethodWithSeveralTypeParameters.kt")
|
||||
public void testMethodWithSeveralTypeParameters() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/MethodWithSeveralTypeParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MethodWithTypeParameter.kt")
|
||||
public void testMethodWithTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/MethodWithTypeParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MethodWithWildcard.kt")
|
||||
public void testMethodWithWildcard() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/MethodWithWildcard.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Nesting.kt")
|
||||
public void testNesting() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Nesting.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("RawReturnType.kt")
|
||||
public void testRawReturnType() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/RawReturnType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnEnum.kt")
|
||||
public void testReturnEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnInnerClass.kt")
|
||||
public void testReturnInnerClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnInnerClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnInnerInInner.kt")
|
||||
public void testReturnInnerInInner() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnInnerInInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnInnerInner.kt")
|
||||
public void testReturnInnerInner() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnInnerInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnNested.kt")
|
||||
public void testReturnNested() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnNested.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnNestedFQ.kt")
|
||||
public void testReturnNestedFQ() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnNestedFQ.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnType.kt")
|
||||
public void testReturnType() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnTypeResolution.kt")
|
||||
public void testReturnTypeResolution() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/ReturnTypeResolution.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SeveralInnerClasses.kt")
|
||||
public void testSeveralInnerClasses() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/SeveralInnerClasses.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SimpleAnnotation.kt")
|
||||
public void testSimpleAnnotation() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/SimpleAnnotation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SimpleWildcard.kt")
|
||||
public void testSimpleWildcard() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/SimpleWildcard.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Singleton.kt")
|
||||
public void testSingleton() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Singleton.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("StaticNestedClass.kt")
|
||||
public void testStaticNestedClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/StaticNestedClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("TypeArgumentInSuperType.kt")
|
||||
public void testTypeArgumentInSuperType() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/TypeArgumentInSuperType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("TypeParameter.kt")
|
||||
public void testTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/TypeParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("UseKtClass.kt")
|
||||
public void testUseKtClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/UseKtClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Vararg.kt")
|
||||
public void testVararg() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstJava/Vararg.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
-5138
File diff suppressed because it is too large
Load Diff
Generated
-5137
File diff suppressed because it is too large
Load Diff
@@ -1,40 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.lexer.kdoc;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/lexer/kdoc")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class KDocLexerTestGenerated extends AbstractKDocLexerTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInKdoc() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/lexer/kdoc"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("codeBlocks.kt")
|
||||
public void testCodeBlocks() throws Exception {
|
||||
runTest("compiler/testData/lexer/kdoc/codeBlocks.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("codeBlocksWithVerticalTabs.kt")
|
||||
public void testCodeBlocksWithVerticalTabs() throws Exception {
|
||||
runTest("compiler/testData/lexer/kdoc/codeBlocksWithVerticalTabs.kt");
|
||||
}
|
||||
}
|
||||
-211
@@ -1,211 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.lexer.kotlin;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/lexer/kotlin")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class KotlinLexerTestGenerated extends AbstractKotlinLexerTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInKotlin() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/lexer/kotlin"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/lexer/kotlin/whitespaceCharacters")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class WhitespaceCharacters extends AbstractKotlinLexerTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInWhitespaceCharacters() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/lexer/kotlin/whitespaceCharacters"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/lexer/kotlin/whitespaceCharacters/carriageReturn")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CarriageReturn extends AbstractKotlinLexerTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCarriageReturn() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/lexer/kotlin/whitespaceCharacters/carriageReturn"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("carriageReturn.kt")
|
||||
public void testCarriageReturn() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/carriageReturn/carriageReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("carriageReturnInComments.kt")
|
||||
public void testCarriageReturnInComments() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/carriageReturn/carriageReturnInComments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("carriageReturnInStringLiterals.kt")
|
||||
public void testCarriageReturnInStringLiterals() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/carriageReturn/carriageReturnInStringLiterals.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/lexer/kotlin/whitespaceCharacters/lineSeparator")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class LineSeparator extends AbstractKotlinLexerTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInLineSeparator() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/lexer/kotlin/whitespaceCharacters/lineSeparator"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("lineSeparator.kt")
|
||||
public void testLineSeparator() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/lineSeparator/lineSeparator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lineSeparatorInComments.kt")
|
||||
public void testLineSeparatorInComments() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/lineSeparator/lineSeparatorInComments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lineSeparatorInStringLiterals.kt")
|
||||
public void testLineSeparatorInStringLiterals() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/lineSeparator/lineSeparatorInStringLiterals.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/lexer/kotlin/whitespaceCharacters/nextLine")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class NextLine extends AbstractKotlinLexerTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInNextLine() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/lexer/kotlin/whitespaceCharacters/nextLine"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("nextLine.kt")
|
||||
public void testNextLine() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/nextLine/nextLine.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nextLineInComments.kt")
|
||||
public void testNextLineInComments() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/nextLine/nextLineInComments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nextLineInStringLiterals.kt")
|
||||
public void testNextLineInStringLiterals() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/nextLine/nextLineInStringLiterals.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/lexer/kotlin/whitespaceCharacters/pageBreak")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class PageBreak extends AbstractKotlinLexerTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInPageBreak() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/lexer/kotlin/whitespaceCharacters/pageBreak"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("pageBreak.kt")
|
||||
public void testPageBreak() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/pageBreak/pageBreak.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("pageBreakInComments.kt")
|
||||
public void testPageBreakInComments() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/pageBreak/pageBreakInComments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("pageBreakInStringLiterals.kt")
|
||||
public void testPageBreakInStringLiterals() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/pageBreak/pageBreakInStringLiterals.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/lexer/kotlin/whitespaceCharacters/paragraphSeparator")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ParagraphSeparator extends AbstractKotlinLexerTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInParagraphSeparator() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/lexer/kotlin/whitespaceCharacters/paragraphSeparator"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("paragraphSeparator.kt")
|
||||
public void testParagraphSeparator() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/paragraphSeparator/paragraphSeparator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("paragraphSeparatorInComments.kt")
|
||||
public void testParagraphSeparatorInComments() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/paragraphSeparator/paragraphSeparatorInComments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("paragraphSeparatorInStringLiterals.kt")
|
||||
public void testParagraphSeparatorInStringLiterals() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/paragraphSeparator/paragraphSeparatorInStringLiterals.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/lexer/kotlin/whitespaceCharacters/verticalTab")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class VerticalTab extends AbstractKotlinLexerTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInVerticalTab() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/lexer/kotlin/whitespaceCharacters/verticalTab"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("verticalTab.kt")
|
||||
public void testVerticalTab() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/verticalTab/verticalTab.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("verticalTabInComments.kt")
|
||||
public void testVerticalTabInComments() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/verticalTab/verticalTabInComments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("verticalTabInStringLiterals.kt")
|
||||
public void testVerticalTabInStringLiterals() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/verticalTab/verticalTabInStringLiterals.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
-70
@@ -1,70 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.modules.xml;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/modules.xml")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class ModuleXmlParserTestGenerated extends AbstractModuleXmlParserTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInModules_xml() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/modules.xml"), Pattern.compile("^(.+)\\.xml$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("allOnce.xml")
|
||||
public void testAllOnce() throws Exception {
|
||||
runTest("compiler/testData/modules.xml/allOnce.xml");
|
||||
}
|
||||
|
||||
@TestMetadata("comments.xml")
|
||||
public void testComments() throws Exception {
|
||||
runTest("compiler/testData/modules.xml/comments.xml");
|
||||
}
|
||||
|
||||
@TestMetadata("empty.xml")
|
||||
public void testEmpty() throws Exception {
|
||||
runTest("compiler/testData/modules.xml/empty.xml");
|
||||
}
|
||||
|
||||
@TestMetadata("emptyModule.xml")
|
||||
public void testEmptyModule() throws Exception {
|
||||
runTest("compiler/testData/modules.xml/emptyModule.xml");
|
||||
}
|
||||
|
||||
@TestMetadata("manyTimes.xml")
|
||||
public void testManyTimes() throws Exception {
|
||||
runTest("compiler/testData/modules.xml/manyTimes.xml");
|
||||
}
|
||||
|
||||
@TestMetadata("onlySources.xml")
|
||||
public void testOnlySources() throws Exception {
|
||||
runTest("compiler/testData/modules.xml/onlySources.xml");
|
||||
}
|
||||
|
||||
@TestMetadata("twoModules.xml")
|
||||
public void testTwoModules() throws Exception {
|
||||
runTest("compiler/testData/modules.xml/twoModules.xml");
|
||||
}
|
||||
|
||||
@TestMetadata("typeTestModule.xml")
|
||||
public void testTypeTestModule() throws Exception {
|
||||
runTest("compiler/testData/modules.xml/typeTestModule.xml");
|
||||
}
|
||||
}
|
||||
Generated
-784
@@ -1,784 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.multiplatform;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/multiplatform")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class MultiPlatformIntegrationTestGenerated extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInMultiplatform() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compatibleProperties")
|
||||
public void testCompatibleProperties() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/compatibleProperties/");
|
||||
}
|
||||
|
||||
@TestMetadata("compilerArguments")
|
||||
public void testCompilerArguments() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/compilerArguments/");
|
||||
}
|
||||
|
||||
@TestMetadata("contracts")
|
||||
public void testContracts() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/contracts/");
|
||||
}
|
||||
|
||||
@TestMetadata("createImplClassInPlatformModule")
|
||||
public void testCreateImplClassInPlatformModule() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/createImplClassInPlatformModule/");
|
||||
}
|
||||
|
||||
@TestMetadata("explicitActualOnOverrideOfAbstractMethod")
|
||||
public void testExplicitActualOnOverrideOfAbstractMethod() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/explicitActualOnOverrideOfAbstractMethod/");
|
||||
}
|
||||
|
||||
@TestMetadata("funInterfaces")
|
||||
public void testFunInterfaces() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/funInterfaces/");
|
||||
}
|
||||
|
||||
@TestMetadata("genericDeclarations")
|
||||
public void testGenericDeclarations() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/genericDeclarations/");
|
||||
}
|
||||
|
||||
@TestMetadata("incompatibleCallables")
|
||||
public void testIncompatibleCallables() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/incompatibleCallables/");
|
||||
}
|
||||
|
||||
@TestMetadata("incompatibleClasses")
|
||||
public void testIncompatibleClasses() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/incompatibleClasses/");
|
||||
}
|
||||
|
||||
@TestMetadata("incompatibleFunctions")
|
||||
public void testIncompatibleFunctions() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/incompatibleFunctions/");
|
||||
}
|
||||
|
||||
@TestMetadata("incompatibleNestedClasses")
|
||||
public void testIncompatibleNestedClasses() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/incompatibleNestedClasses/");
|
||||
}
|
||||
|
||||
@TestMetadata("incompatibleProperties")
|
||||
public void testIncompatibleProperties() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/incompatibleProperties/");
|
||||
}
|
||||
|
||||
@TestMetadata("incorrectImplInClass")
|
||||
public void testIncorrectImplInClass() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/incorrectImplInClass/");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClasses")
|
||||
public void testInlineClasses() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/inlineClasses/");
|
||||
}
|
||||
|
||||
@TestMetadata("innerGenericClass")
|
||||
public void testInnerGenericClass() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/innerGenericClass/");
|
||||
}
|
||||
|
||||
@TestMetadata("jsNameClash")
|
||||
public void testJsNameClash() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/jsNameClash/");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmMultifileClass")
|
||||
public void testJvmMultifileClass() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/jvmMultifileClass/");
|
||||
}
|
||||
|
||||
@TestMetadata("missingOverload")
|
||||
public void testMissingOverload() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/missingOverload/");
|
||||
}
|
||||
|
||||
@TestMetadata("optionalExpectation")
|
||||
public void testOptionalExpectation() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/optionalExpectation/");
|
||||
}
|
||||
|
||||
@TestMetadata("optionalExpectationIncorrectUse")
|
||||
public void testOptionalExpectationIncorrectUse() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/optionalExpectationIncorrectUse/");
|
||||
}
|
||||
|
||||
@TestMetadata("simple")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/simple/");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleNoImplKeywordOnTopLevelFunction")
|
||||
public void testSimpleNoImplKeywordOnTopLevelFunction() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/simpleNoImplKeywordOnTopLevelFunction/");
|
||||
}
|
||||
|
||||
@TestMetadata("weakIncompatibilityWithoutActualModifier")
|
||||
public void testWeakIncompatibilityWithoutActualModifier() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/weakIncompatibilityWithoutActualModifier/");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/classScopes")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ClassScopes extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInClassScopes() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/classScopes"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("constructorIncorrectSignature")
|
||||
public void testConstructorIncorrectSignature() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/classScopes/constructorIncorrectSignature/");
|
||||
}
|
||||
|
||||
@TestMetadata("enumsWithDifferentEntries")
|
||||
public void testEnumsWithDifferentEntries() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/classScopes/enumsWithDifferentEntries/");
|
||||
}
|
||||
|
||||
@TestMetadata("fakeOverrides")
|
||||
public void testFakeOverrides() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/classScopes/fakeOverrides/");
|
||||
}
|
||||
|
||||
@TestMetadata("functionAndPropertyWithSameName")
|
||||
public void testFunctionAndPropertyWithSameName() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/classScopes/functionAndPropertyWithSameName/");
|
||||
}
|
||||
|
||||
@TestMetadata("functionIncorrectSignature")
|
||||
public void testFunctionIncorrectSignature() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/classScopes/functionIncorrectSignature/");
|
||||
}
|
||||
|
||||
@TestMetadata("functionIncorrectSignatureFromSuperclass")
|
||||
public void testFunctionIncorrectSignatureFromSuperclass() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/classScopes/functionIncorrectSignatureFromSuperclass/");
|
||||
}
|
||||
|
||||
@TestMetadata("missingConstructor")
|
||||
public void testMissingConstructor() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/classScopes/missingConstructor/");
|
||||
}
|
||||
|
||||
@TestMetadata("missingFunction")
|
||||
public void testMissingFunction() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/classScopes/missingFunction/");
|
||||
}
|
||||
|
||||
@TestMetadata("simple")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/classScopes/simple/");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/classScopes/constructorIncorrectSignature")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ConstructorIncorrectSignature extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInConstructorIncorrectSignature() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/classScopes/constructorIncorrectSignature"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/classScopes/enumsWithDifferentEntries")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class EnumsWithDifferentEntries extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInEnumsWithDifferentEntries() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/classScopes/enumsWithDifferentEntries"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/classScopes/fakeOverrides")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class FakeOverrides extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFakeOverrides() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/classScopes/fakeOverrides"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/classScopes/functionAndPropertyWithSameName")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class FunctionAndPropertyWithSameName extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFunctionAndPropertyWithSameName() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/classScopes/functionAndPropertyWithSameName"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/classScopes/functionIncorrectSignature")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class FunctionIncorrectSignature extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFunctionIncorrectSignature() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/classScopes/functionIncorrectSignature"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/classScopes/functionIncorrectSignatureFromSuperclass")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class FunctionIncorrectSignatureFromSuperclass extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFunctionIncorrectSignatureFromSuperclass() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/classScopes/functionIncorrectSignatureFromSuperclass"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/classScopes/missingConstructor")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class MissingConstructor extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInMissingConstructor() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/classScopes/missingConstructor"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/classScopes/missingFunction")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class MissingFunction extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInMissingFunction() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/classScopes/missingFunction"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/classScopes/simple")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Simple extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSimple() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/classScopes/simple"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/compatibleProperties")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CompatibleProperties extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCompatibleProperties() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/compatibleProperties"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/compilerArguments")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CompilerArguments extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCompilerArguments() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/compilerArguments"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/contracts")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Contracts extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInContracts() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/contracts"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/createImplClassInPlatformModule")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CreateImplClassInPlatformModule extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCreateImplClassInPlatformModule() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/createImplClassInPlatformModule"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/defaultArguments")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class DefaultArguments extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDefaultArguments() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/defaultArguments"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("useDefaultArgumentsInDependency")
|
||||
public void testUseDefaultArgumentsInDependency() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/defaultArguments/useDefaultArgumentsInDependency/");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/defaultArguments/useDefaultArgumentsInDependency")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class UseDefaultArgumentsInDependency extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInUseDefaultArgumentsInDependency() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/defaultArguments/useDefaultArgumentsInDependency"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/explicitActualOnOverrideOfAbstractMethod")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ExplicitActualOnOverrideOfAbstractMethod extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInExplicitActualOnOverrideOfAbstractMethod() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/explicitActualOnOverrideOfAbstractMethod"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/funInterfaces")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class FunInterfaces extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFunInterfaces() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/funInterfaces"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/genericDeclarations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class GenericDeclarations extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInGenericDeclarations() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/genericDeclarations"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/implTypeAlias")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ImplTypeAlias extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInImplTypeAlias() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/implTypeAlias"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("discriminateHeaderClassInFavorOfTypeAlias")
|
||||
public void testDiscriminateHeaderClassInFavorOfTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/implTypeAlias/discriminateHeaderClassInFavorOfTypeAlias/");
|
||||
}
|
||||
|
||||
@TestMetadata("generic")
|
||||
public void testGeneric() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/implTypeAlias/generic/");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedClassesViaTypeAlias")
|
||||
public void testNestedClassesViaTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/implTypeAlias/nestedClassesViaTypeAlias/");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/implTypeAlias/discriminateHeaderClassInFavorOfTypeAlias")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class DiscriminateHeaderClassInFavorOfTypeAlias extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDiscriminateHeaderClassInFavorOfTypeAlias() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/implTypeAlias/discriminateHeaderClassInFavorOfTypeAlias"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/implTypeAlias/generic")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Generic extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInGeneric() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/implTypeAlias/generic"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/implTypeAlias/nestedClassesViaTypeAlias")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class NestedClassesViaTypeAlias extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInNestedClassesViaTypeAlias() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/implTypeAlias/nestedClassesViaTypeAlias"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/incompatibleCallables")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class IncompatibleCallables extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInIncompatibleCallables() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/incompatibleCallables"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/incompatibleClasses")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class IncompatibleClasses extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInIncompatibleClasses() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/incompatibleClasses"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/incompatibleFunctions")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class IncompatibleFunctions extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInIncompatibleFunctions() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/incompatibleFunctions"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/incompatibleNestedClasses")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class IncompatibleNestedClasses extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInIncompatibleNestedClasses() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/incompatibleNestedClasses"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/incompatibleProperties")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class IncompatibleProperties extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInIncompatibleProperties() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/incompatibleProperties"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/incorrectImplInClass")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class IncorrectImplInClass extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInIncorrectImplInClass() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/incorrectImplInClass"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/inlineClasses")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class InlineClasses extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInInlineClasses() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/inlineClasses"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/innerGenericClass")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class InnerGenericClass extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInInnerGenericClass() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/innerGenericClass"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/jsNameClash")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class JsNameClash extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJsNameClash() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/jsNameClash"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/jvmMultifileClass")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class JvmMultifileClass extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJvmMultifileClass() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/jvmMultifileClass"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/missingOverload")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class MissingOverload extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInMissingOverload() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/missingOverload"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/optionalExpectation")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class OptionalExpectation extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInOptionalExpectation() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/optionalExpectation"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/optionalExpectationIncorrectUse")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class OptionalExpectationIncorrectUse extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInOptionalExpectationIncorrectUse() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/optionalExpectationIncorrectUse"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/regressions")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Regressions extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInRegressions() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/regressions"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("incompatibleClassScopesWithImplTypeAlias")
|
||||
public void testIncompatibleClassScopesWithImplTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/regressions/incompatibleClassScopesWithImplTypeAlias/");
|
||||
}
|
||||
|
||||
@TestMetadata("kt17001")
|
||||
public void testKt17001() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/regressions/kt17001/");
|
||||
}
|
||||
|
||||
@TestMetadata("kt28385")
|
||||
public void testKt28385() throws Exception {
|
||||
runTest("compiler/testData/multiplatform/regressions/kt28385/");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/regressions/incompatibleClassScopesWithImplTypeAlias")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class IncompatibleClassScopesWithImplTypeAlias extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInIncompatibleClassScopesWithImplTypeAlias() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/regressions/incompatibleClassScopesWithImplTypeAlias"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/regressions/kt17001")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Kt17001 extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInKt17001() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/regressions/kt17001"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/regressions/kt28385")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Kt28385 extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInKt28385() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/regressions/kt28385"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/simple")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Simple extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSimple() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/simple"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/simpleNoImplKeywordOnTopLevelFunction")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class SimpleNoImplKeywordOnTopLevelFunction extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSimpleNoImplKeywordOnTopLevelFunction() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/simpleNoImplKeywordOnTopLevelFunction"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/multiplatform/weakIncompatibilityWithoutActualModifier")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class WeakIncompatibilityWithoutActualModifier extends AbstractMultiPlatformIntegrationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInWeakIncompatibilityWithoutActualModifier() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/multiplatform/weakIncompatibilityWithoutActualModifier"), Pattern.compile("^([^\\.]+)$"), null, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
-100
@@ -1,100 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.renderer;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/renderer")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class DescriptorRendererTestGenerated extends AbstractDescriptorRendererTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInRenderer() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/renderer"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("Classes.kt")
|
||||
public void testClasses() throws Exception {
|
||||
runTest("compiler/testData/renderer/Classes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Enum.kt")
|
||||
public void testEnum() throws Exception {
|
||||
runTest("compiler/testData/renderer/Enum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ErrorType.kt")
|
||||
public void testErrorType() throws Exception {
|
||||
runTest("compiler/testData/renderer/ErrorType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("FunctionTypes.kt")
|
||||
public void testFunctionTypes() throws Exception {
|
||||
runTest("compiler/testData/renderer/FunctionTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("FunctionTypesInSignature.kt")
|
||||
public void testFunctionTypesInSignature() throws Exception {
|
||||
runTest("compiler/testData/renderer/FunctionTypesInSignature.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("GlobalFunctions.kt")
|
||||
public void testGlobalFunctions() throws Exception {
|
||||
runTest("compiler/testData/renderer/GlobalFunctions.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("GlobalProperties.kt")
|
||||
public void testGlobalProperties() throws Exception {
|
||||
runTest("compiler/testData/renderer/GlobalProperties.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritedMembersVisibility.kt")
|
||||
public void testInheritedMembersVisibility() throws Exception {
|
||||
runTest("compiler/testData/renderer/InheritedMembersVisibility.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("KeywordsInNames.kt")
|
||||
public void testKeywordsInNames() throws Exception {
|
||||
runTest("compiler/testData/renderer/KeywordsInNames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ObjectWithConstructor.kt")
|
||||
public void testObjectWithConstructor() throws Exception {
|
||||
runTest("compiler/testData/renderer/ObjectWithConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("StarProjection.kt")
|
||||
public void testStarProjection() throws Exception {
|
||||
runTest("compiler/testData/renderer/StarProjection.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("TraitWithConstructor.kt")
|
||||
public void testTraitWithConstructor() throws Exception {
|
||||
runTest("compiler/testData/renderer/TraitWithConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("TypeAnnotations.kt")
|
||||
public void testTypeAnnotations() throws Exception {
|
||||
runTest("compiler/testData/renderer/TypeAnnotations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("UnitType.kt")
|
||||
public void testUnitType() throws Exception {
|
||||
runTest("compiler/testData/renderer/UnitType.kt");
|
||||
}
|
||||
}
|
||||
-60
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.renderer;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/renderFunctionDescriptorInExpression")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class FunctionDescriptorInExpressionRendererTestGenerated extends AbstractFunctionDescriptorInExpressionRendererTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInRenderFunctionDescriptorInExpression() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/renderFunctionDescriptorInExpression"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("basicFunExpr.kt")
|
||||
public void testBasicFunExpr() throws Exception {
|
||||
runTest("compiler/testData/renderFunctionDescriptorInExpression/basicFunExpr.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("basicFunExprArgs.kt")
|
||||
public void testBasicFunExprArgs() throws Exception {
|
||||
runTest("compiler/testData/renderFunctionDescriptorInExpression/basicFunExprArgs.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("basicLambda.kt")
|
||||
public void testBasicLambda() throws Exception {
|
||||
runTest("compiler/testData/renderFunctionDescriptorInExpression/basicLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("labeledLambda.kt")
|
||||
public void testLabeledLambda() throws Exception {
|
||||
runTest("compiler/testData/renderFunctionDescriptorInExpression/labeledLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parenthesizedFunExpr.kt")
|
||||
public void testParenthesizedFunExpr() throws Exception {
|
||||
runTest("compiler/testData/renderFunctionDescriptorInExpression/parenthesizedFunExpr.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parenthesizedLambda.kt")
|
||||
public void testParenthesizedLambda() throws Exception {
|
||||
runTest("compiler/testData/renderFunctionDescriptorInExpression/parenthesizedLambda.kt");
|
||||
}
|
||||
}
|
||||
@@ -1,384 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.repl;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/repl")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class ReplInterpreterTestGenerated extends AbstractReplInterpreterTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInRepl() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/repl"), Pattern.compile("^(.+)\\.repl$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("analyzeErrors.repl")
|
||||
public void testAnalyzeErrors() throws Exception {
|
||||
runTest("compiler/testData/repl/analyzeErrors.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("constants.repl")
|
||||
public void testConstants() throws Exception {
|
||||
runTest("compiler/testData/repl/constants.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringDeclaration.repl")
|
||||
public void testDestructuringDeclaration() throws Exception {
|
||||
runTest("compiler/testData/repl/destructuringDeclaration.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("empty.repl")
|
||||
public void testEmpty() throws Exception {
|
||||
runTest("compiler/testData/repl/empty.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("evaluationErrors.repl")
|
||||
public void testEvaluationErrors() throws Exception {
|
||||
runTest("compiler/testData/repl/evaluationErrors.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("exceptionInValueToString.repl")
|
||||
public void testExceptionInValueToString() throws Exception {
|
||||
runTest("compiler/testData/repl/exceptionInValueToString.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("exceptionInVariableInitializer.repl")
|
||||
public void testExceptionInVariableInitializer() throws Exception {
|
||||
runTest("compiler/testData/repl/exceptionInVariableInitializer.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("function.repl")
|
||||
public void testFunction() throws Exception {
|
||||
runTest("compiler/testData/repl/function.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("functionOverloadResolution.repl")
|
||||
public void testFunctionOverloadResolution() throws Exception {
|
||||
runTest("compiler/testData/repl/functionOverloadResolution.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("functionOverloadResolutionAnyBeatsString.repl")
|
||||
public void testFunctionOverloadResolutionAnyBeatsString() throws Exception {
|
||||
runTest("compiler/testData/repl/functionOverloadResolutionAnyBeatsString.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("functionReferencesPrev.repl")
|
||||
public void testFunctionReferencesPrev() throws Exception {
|
||||
runTest("compiler/testData/repl/functionReferencesPrev.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("functionResult.repl")
|
||||
public void testFunctionResult() throws Exception {
|
||||
runTest("compiler/testData/repl/functionResult.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("imports.repl")
|
||||
public void testImports() throws Exception {
|
||||
runTest("compiler/testData/repl/imports.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("multipleImports.repl")
|
||||
public void testMultipleImports() throws Exception {
|
||||
runTest("compiler/testData/repl/multipleImports.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("noWarningsWithErrors.repl")
|
||||
public void testNoWarningsWithErrors() throws Exception {
|
||||
runTest("compiler/testData/repl/noWarningsWithErrors.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.repl")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/repl/simple.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleTwoVals.repl")
|
||||
public void testSimpleTwoVals() throws Exception {
|
||||
runTest("compiler/testData/repl/simpleTwoVals.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("syntaxErrors.repl")
|
||||
public void testSyntaxErrors() throws Exception {
|
||||
runTest("compiler/testData/repl/syntaxErrors.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelLocalDelegatedProperty.repl")
|
||||
public void testTopLevelLocalDelegatedProperty() throws Exception {
|
||||
runTest("compiler/testData/repl/topLevelLocalDelegatedProperty.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("twoClosures.repl")
|
||||
public void testTwoClosures() throws Exception {
|
||||
runTest("compiler/testData/repl/twoClosures.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/repl/classes")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Classes extends AbstractReplInterpreterTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInClasses() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/repl/classes"), Pattern.compile("^(.+)\\.repl$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classInheritance.repl")
|
||||
public void testClassInheritance() throws Exception {
|
||||
runTest("compiler/testData/repl/classes/classInheritance.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("classRedeclaration.repl")
|
||||
public void testClassRedeclaration() throws Exception {
|
||||
runTest("compiler/testData/repl/classes/classRedeclaration.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("classReferencesVal.repl")
|
||||
public void testClassReferencesVal() throws Exception {
|
||||
runTest("compiler/testData/repl/classes/classReferencesVal.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("emptyClass.repl")
|
||||
public void testEmptyClass() throws Exception {
|
||||
runTest("compiler/testData/repl/classes/emptyClass.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("emptyClassRedeclaration.repl")
|
||||
public void testEmptyClassRedeclaration() throws Exception {
|
||||
runTest("compiler/testData/repl/classes/emptyClassRedeclaration.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("enumEntrySubclass.repl")
|
||||
public void testEnumEntrySubclass() throws Exception {
|
||||
runTest("compiler/testData/repl/classes/enumEntrySubclass.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("import.repl")
|
||||
public void testImport() throws Exception {
|
||||
runTest("compiler/testData/repl/classes/import.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleClass.repl")
|
||||
public void testSimpleClass() throws Exception {
|
||||
runTest("compiler/testData/repl/classes/simpleClass.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleEnum.repl")
|
||||
public void testSimpleEnum() throws Exception {
|
||||
runTest("compiler/testData/repl/classes/simpleEnum.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleTrait.repl")
|
||||
public void testSimpleTrait() throws Exception {
|
||||
runTest("compiler/testData/repl/classes/simpleTrait.repl");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/repl/controlFlow")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ControlFlow extends AbstractReplInterpreterTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInControlFlow() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/repl/controlFlow"), Pattern.compile("^(.+)\\.repl$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("functionWithoutReturn.repl")
|
||||
public void testFunctionWithoutReturn() throws Exception {
|
||||
runTest("compiler/testData/repl/controlFlow/functionWithoutReturn.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("incompleteIf.repl")
|
||||
public void testIncompleteIf() throws Exception {
|
||||
runTest("compiler/testData/repl/controlFlow/incompleteIf.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("incompleteWhen.repl")
|
||||
public void testIncompleteWhen() throws Exception {
|
||||
runTest("compiler/testData/repl/controlFlow/incompleteWhen.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("kt15407.repl")
|
||||
public void testKt15407() throws Exception {
|
||||
runTest("compiler/testData/repl/controlFlow/kt15407.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("loopWithWrongLabel.repl")
|
||||
public void testLoopWithWrongLabel() throws Exception {
|
||||
runTest("compiler/testData/repl/controlFlow/loopWithWrongLabel.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("mutateVal.repl")
|
||||
public void testMutateVal() throws Exception {
|
||||
runTest("compiler/testData/repl/controlFlow/mutateVal.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("useUninitializedVal.repl")
|
||||
public void testUseUninitializedVal() throws Exception {
|
||||
runTest("compiler/testData/repl/controlFlow/useUninitializedVal.repl");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/repl/modules")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Modules extends AbstractReplInterpreterTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInModules() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/repl/modules"), Pattern.compile("^(.+)\\.repl$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("kt10001.repl")
|
||||
public void testKt10001() throws Exception {
|
||||
runTest("compiler/testData/repl/modules/kt10001.repl");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/repl/multiline")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Multiline extends AbstractReplInterpreterTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInMultiline() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/repl/multiline"), Pattern.compile("^(.+)\\.repl$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("blankLinesAndComments.repl")
|
||||
public void testBlankLinesAndComments() throws Exception {
|
||||
runTest("compiler/testData/repl/multiline/blankLinesAndComments.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("functionOnSeveralLines.repl")
|
||||
public void testFunctionOnSeveralLines() throws Exception {
|
||||
runTest("compiler/testData/repl/multiline/functionOnSeveralLines.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("multilineFunctionInvocation.repl")
|
||||
public void testMultilineFunctionInvocation() throws Exception {
|
||||
runTest("compiler/testData/repl/multiline/multilineFunctionInvocation.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("openParenthesisIncomplete.repl")
|
||||
public void testOpenParenthesisIncomplete() throws Exception {
|
||||
runTest("compiler/testData/repl/multiline/openParenthesisIncomplete.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleFunctionBodyOnNextLine.repl")
|
||||
public void testSimpleFunctionBodyOnNextLine() throws Exception {
|
||||
runTest("compiler/testData/repl/multiline/simpleFunctionBodyOnNextLine.repl");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/repl/objects")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Objects extends AbstractReplInterpreterTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInObjects() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/repl/objects"), Pattern.compile("^(.+)\\.repl$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("emptyObject.repl")
|
||||
public void testEmptyObject() throws Exception {
|
||||
runTest("compiler/testData/repl/objects/emptyObject.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("localObject.repl")
|
||||
public void testLocalObject() throws Exception {
|
||||
runTest("compiler/testData/repl/objects/localObject.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleObjectDeclaration.repl")
|
||||
public void testSimpleObjectDeclaration() throws Exception {
|
||||
runTest("compiler/testData/repl/objects/simpleObjectDeclaration.repl");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/repl/primitiveTypes")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class PrimitiveTypes extends AbstractReplInterpreterTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInPrimitiveTypes() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/repl/primitiveTypes"), Pattern.compile("^(.+)\\.repl$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("arrayOfBoxed.repl")
|
||||
public void testArrayOfBoxed() throws Exception {
|
||||
runTest("compiler/testData/repl/primitiveTypes/arrayOfBoxed.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("boxingOnPurpose.repl")
|
||||
public void testBoxingOnPurpose() throws Exception {
|
||||
runTest("compiler/testData/repl/primitiveTypes/boxingOnPurpose.repl");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/repl/regressions")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Regressions extends AbstractReplInterpreterTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInRegressions() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/repl/regressions"), Pattern.compile("^(.+)\\.repl$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("kt6843.repl")
|
||||
public void testKt6843() throws Exception {
|
||||
runTest("compiler/testData/repl/regressions/kt6843.repl");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/repl/useJava")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class UseJava extends AbstractReplInterpreterTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInUseJava() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/repl/useJava"), Pattern.compile("^(.+)\\.repl$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("syntheticProperty.repl")
|
||||
public void testSyntheticProperty() throws Exception {
|
||||
runTest("compiler/testData/repl/useJava/syntheticProperty.repl");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,463 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.resolve;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/resolve")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class ResolveTestGenerated extends AbstractResolveTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInResolve() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolve"), Pattern.compile("^(.+)\\.resolve$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("Basic.resolve")
|
||||
public void testBasic() throws Exception {
|
||||
runTest("compiler/testData/resolve/Basic.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassObjects.resolve")
|
||||
public void testClassObjects() throws Exception {
|
||||
runTest("compiler/testData/resolve/ClassObjects.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("Classifiers.resolve")
|
||||
public void testClassifiers() throws Exception {
|
||||
runTest("compiler/testData/resolve/Classifiers.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("DefaultParamsOfLocalFunctions.resolve")
|
||||
public void testDefaultParamsOfLocalFunctions() throws Exception {
|
||||
runTest("compiler/testData/resolve/DefaultParamsOfLocalFunctions.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ErrorSupertype.resolve")
|
||||
public void testErrorSupertype() throws Exception {
|
||||
runTest("compiler/testData/resolve/ErrorSupertype.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ExtensionFunctions.resolve")
|
||||
public void testExtensionFunctions() throws Exception {
|
||||
runTest("compiler/testData/resolve/ExtensionFunctions.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("FunctionVariable.resolve")
|
||||
public void testFunctionVariable() throws Exception {
|
||||
runTest("compiler/testData/resolve/FunctionVariable.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportFromRootScope.resolve")
|
||||
public void testImportFromRootScope() throws Exception {
|
||||
runTest("compiler/testData/resolve/ImportFromRootScope.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportingRootScopeWhenProcessingImports.resolve")
|
||||
public void testImportingRootScopeWhenProcessingImports() throws Exception {
|
||||
runTest("compiler/testData/resolve/ImportingRootScopeWhenProcessingImports.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("kt304.resolve")
|
||||
public void testKt304() throws Exception {
|
||||
runTest("compiler/testData/resolve/kt304.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("LocalObjects.resolve")
|
||||
public void testLocalObjects() throws Exception {
|
||||
runTest("compiler/testData/resolve/LocalObjects.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("NestedObjects.resolve")
|
||||
public void testNestedObjects() throws Exception {
|
||||
runTest("compiler/testData/resolve/NestedObjects.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("NoReferenceForErrorAnnotation.resolve")
|
||||
public void testNoReferenceForErrorAnnotation() throws Exception {
|
||||
runTest("compiler/testData/resolve/NoReferenceForErrorAnnotation.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("Objects.resolve")
|
||||
public void testObjects() throws Exception {
|
||||
runTest("compiler/testData/resolve/Objects.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("Packages.resolve")
|
||||
public void testPackages() throws Exception {
|
||||
runTest("compiler/testData/resolve/Packages.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("PrimaryConstructorParameters.resolve")
|
||||
public void testPrimaryConstructorParameters() throws Exception {
|
||||
runTest("compiler/testData/resolve/PrimaryConstructorParameters.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("PrimaryConstructors.resolve")
|
||||
public void testPrimaryConstructors() throws Exception {
|
||||
runTest("compiler/testData/resolve/PrimaryConstructors.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("Projections.resolve")
|
||||
public void testProjections() throws Exception {
|
||||
runTest("compiler/testData/resolve/Projections.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("PropertyAndFunctionNameClash.resolve")
|
||||
public void testPropertyAndFunctionNameClash() throws Exception {
|
||||
runTest("compiler/testData/resolve/PropertyAndFunctionNameClash.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ResolveOfInfixExpressions.resolve")
|
||||
public void testResolveOfInfixExpressions() throws Exception {
|
||||
runTest("compiler/testData/resolve/ResolveOfInfixExpressions.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ResolveToJava.resolve")
|
||||
public void testResolveToJava() throws Exception {
|
||||
runTest("compiler/testData/resolve/ResolveToJava.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ResolveToJava2.resolve")
|
||||
public void testResolveToJava2() throws Exception {
|
||||
runTest("compiler/testData/resolve/ResolveToJava2.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ResolveToJava3.resolve")
|
||||
public void testResolveToJava3() throws Exception {
|
||||
runTest("compiler/testData/resolve/ResolveToJava3.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ResolveToJavaTypeTransform.resolve")
|
||||
public void testResolveToJavaTypeTransform() throws Exception {
|
||||
runTest("compiler/testData/resolve/ResolveToJavaTypeTransform.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ScopeInteraction.resolve")
|
||||
public void testScopeInteraction() throws Exception {
|
||||
runTest("compiler/testData/resolve/ScopeInteraction.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("StringTemplates.resolve")
|
||||
public void testStringTemplates() throws Exception {
|
||||
runTest("compiler/testData/resolve/StringTemplates.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("Super.resolve")
|
||||
public void testSuper() throws Exception {
|
||||
runTest("compiler/testData/resolve/Super.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("TryCatch.resolve")
|
||||
public void testTryCatch() throws Exception {
|
||||
runTest("compiler/testData/resolve/TryCatch.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolve/candidatesPriority")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CandidatesPriority extends AbstractResolveTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCandidatesPriority() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolve/candidatesPriority"), Pattern.compile("^(.+)\\.resolve$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classObjectOuterResolve.resolve")
|
||||
public void testClassObjectOuterResolve() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/classObjectOuterResolve.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("closerReceiver1.resolve")
|
||||
public void testCloserReceiver1() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/closerReceiver1.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("closerReceiver2.resolve")
|
||||
public void testCloserReceiver2() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/closerReceiver2.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("closerReceiver3.resolve")
|
||||
public void testCloserReceiver3() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/closerReceiver3.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("closerScope.resolve")
|
||||
public void testCloserScope() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/closerScope.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("dispatchReceiverVsExtensionReceiver.resolve")
|
||||
public void testDispatchReceiverVsExtensionReceiver() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/dispatchReceiverVsExtensionReceiver.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("dispatchReceiverVsExtensionReceiver2.resolve")
|
||||
public void testDispatchReceiverVsExtensionReceiver2() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/dispatchReceiverVsExtensionReceiver2.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionToCloserReceiverVsMember.resolve")
|
||||
public void testExtensionToCloserReceiverVsMember() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/extensionToCloserReceiverVsMember.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitThisVsNoReceiver.resolve")
|
||||
public void testImplicitThisVsNoReceiver() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/implicitThisVsNoReceiver.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitThisVsNoReceiver2.resolve")
|
||||
public void testImplicitThisVsNoReceiver2() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/implicitThisVsNoReceiver2.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("localVsImplicitThis.resolve")
|
||||
public void testLocalVsImplicitThis() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/localVsImplicitThis.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("memberVsExtension1.resolve")
|
||||
public void testMemberVsExtension1() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/memberVsExtension1.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("memberVsExtension2.resolve")
|
||||
public void testMemberVsExtension2() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/memberVsExtension2.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("memberVsExtension3.resolve")
|
||||
public void testMemberVsExtension3() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/memberVsExtension3.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("memberVsLocalExtension.resolve")
|
||||
public void testMemberVsLocalExtension() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/memberVsLocalExtension.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("memberWithInvokeVsNonLocal.resolve")
|
||||
public void testMemberWithInvokeVsNonLocal() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/memberWithInvokeVsNonLocal.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("wrongReceiverVsOtherError.resolve")
|
||||
public void testWrongReceiverVsOtherError() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/wrongReceiverVsOtherError.resolve");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolve/delegatedProperty")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class DelegatedProperty extends AbstractResolveTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDelegatedProperty() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolve/delegatedProperty"), Pattern.compile("^(.+)\\.resolve$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("delegationByCall.resolve")
|
||||
public void testDelegationByCall() throws Exception {
|
||||
runTest("compiler/testData/resolve/delegatedProperty/delegationByCall.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationByConstructor.resolve")
|
||||
public void testDelegationByConstructor() throws Exception {
|
||||
runTest("compiler/testData/resolve/delegatedProperty/delegationByConstructor.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationByFun.resolve")
|
||||
public void testDelegationByFun() throws Exception {
|
||||
runTest("compiler/testData/resolve/delegatedProperty/delegationByFun.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationByObject.resolve")
|
||||
public void testDelegationByObject() throws Exception {
|
||||
runTest("compiler/testData/resolve/delegatedProperty/delegationByObject.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationByProperty.resolve")
|
||||
public void testDelegationByProperty() throws Exception {
|
||||
runTest("compiler/testData/resolve/delegatedProperty/delegationByProperty.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationInClass.resolve")
|
||||
public void testDelegationInClass() throws Exception {
|
||||
runTest("compiler/testData/resolve/delegatedProperty/delegationInClass.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegation.resolve")
|
||||
public void testLocalDelegation() throws Exception {
|
||||
runTest("compiler/testData/resolve/delegatedProperty/localDelegation.resolve");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolve/imports")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Imports extends AbstractResolveTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInImports() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolve/imports"), Pattern.compile("^(.+)\\.resolve$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictAllPackage.resolve")
|
||||
public void testImportConflictAllPackage() throws Exception {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictAllPackage.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictBetweenImportedAndRootPackage.resolve")
|
||||
public void testImportConflictBetweenImportedAndRootPackage() throws Exception {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictBetweenImportedAndRootPackage.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictBetweenImportedAndSamePackage.resolve")
|
||||
public void testImportConflictBetweenImportedAndSamePackage() throws Exception {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictBetweenImportedAndSamePackage.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictForFunctions.resolve")
|
||||
public void testImportConflictForFunctions() throws Exception {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictForFunctions.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictPackageAndClass.resolve")
|
||||
public void testImportConflictPackageAndClass() throws Exception {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictPackageAndClass.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictSameNameClass.resolve")
|
||||
public void testImportConflictSameNameClass() throws Exception {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictSameNameClass.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictWithClassObject.resolve")
|
||||
public void testImportConflictWithClassObject() throws Exception {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictWithClassObject.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictWithInFileClass.resolve")
|
||||
public void testImportConflictWithInFileClass() throws Exception {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictWithInFileClass.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictWithInnerClass.resolve")
|
||||
public void testImportConflictWithInnerClass() throws Exception {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictWithInnerClass.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictsWithMappedToJava.resolve")
|
||||
public void testImportConflictsWithMappedToJava() throws Exception {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictsWithMappedToJava.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportNonBlockingAnalysis.resolve")
|
||||
public void testImportNonBlockingAnalysis() throws Exception {
|
||||
runTest("compiler/testData/resolve/imports/ImportNonBlockingAnalysis.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportResolveOrderStable.resolve")
|
||||
public void testImportResolveOrderStable() throws Exception {
|
||||
runTest("compiler/testData/resolve/imports/ImportResolveOrderStable.resolve");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolve/labels")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Labels extends AbstractResolveTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInLabels() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolve/labels"), Pattern.compile("^(.+)\\.resolve$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("labelForPropertyInGetter.resolve")
|
||||
public void testLabelForPropertyInGetter() throws Exception {
|
||||
runTest("compiler/testData/resolve/labels/labelForPropertyInGetter.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("labelForPropertyInSetter.resolve")
|
||||
public void testLabelForPropertyInSetter() throws Exception {
|
||||
runTest("compiler/testData/resolve/labels/labelForPropertyInSetter.resolve");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolve/regressions")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Regressions extends AbstractResolveTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInRegressions() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolve/regressions"), Pattern.compile("^(.+)\\.resolve$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("kt300.resolve")
|
||||
public void testKt300() throws Exception {
|
||||
runTest("compiler/testData/resolve/regressions/kt300.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("objectInsideFun.resolve")
|
||||
public void testObjectInsideFun() throws Exception {
|
||||
runTest("compiler/testData/resolve/regressions/objectInsideFun.resolve");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolve/varargs")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Varargs extends AbstractResolveTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInVarargs() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolve/varargs"), Pattern.compile("^(.+)\\.resolve$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("MoreSpecificVarargsOfEqualLength.resolve")
|
||||
public void testMoreSpecificVarargsOfEqualLength() throws Exception {
|
||||
runTest("compiler/testData/resolve/varargs/MoreSpecificVarargsOfEqualLength.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("NilaryVsVararg.resolve")
|
||||
public void testNilaryVsVararg() throws Exception {
|
||||
runTest("compiler/testData/resolve/varargs/NilaryVsVararg.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("UnaryVsVararg.resolve")
|
||||
public void testUnaryVsVararg() throws Exception {
|
||||
runTest("compiler/testData/resolve/varargs/UnaryVsVararg.resolve");
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
-248
@@ -1,248 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.resolve.annotation;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/resolveAnnotations/parameters")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class AnnotationParameterTestGenerated extends AbstractAnnotationParameterTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInParameters() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolveAnnotations/parameters"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("byte.kt")
|
||||
public void testByte() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/byte.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("char.kt")
|
||||
public void testChar() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/char.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("double.kt")
|
||||
public void testDouble() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/double.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("float.kt")
|
||||
public void testFloat() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/float.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("int.kt")
|
||||
public void testInt() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/int.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("long.kt")
|
||||
public void testLong() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/long.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("short.kt")
|
||||
public void testShort() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/short.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolveAnnotations/parameters/expressions")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Expressions extends AbstractAnnotationParameterTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInExpressions() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolveAnnotations/parameters/expressions"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("andAnd.kt")
|
||||
public void testAndAnd() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/andAnd.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boolean.kt")
|
||||
public void testBoolean() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/boolean.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("char.kt")
|
||||
public void testChar() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/char.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compositeCallBinary.kt")
|
||||
public void testCompositeCallBinary() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/compositeCallBinary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("divide.kt")
|
||||
public void testDivide() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/divide.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("double.kt")
|
||||
public void testDouble() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/double.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("eqeq.kt")
|
||||
public void testEqeq() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/eqeq.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("escapedString.kt")
|
||||
public void testEscapedString() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/escapedString.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("float.kt")
|
||||
public void testFloat() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/float.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("gt.kt")
|
||||
public void testGt() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/gt.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("gteq.kt")
|
||||
public void testGteq() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/gteq.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intrincics.kt")
|
||||
public void testIntrincics() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/intrincics.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("labeled.kt")
|
||||
public void testLabeled() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/labeled.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("long.kt")
|
||||
public void testLong() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/long.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lt.kt")
|
||||
public void testLt() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/lt.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lteq.kt")
|
||||
public void testLteq() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/lteq.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("maxValue.kt")
|
||||
public void testMaxValue() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/maxValue.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("maxValueByte.kt")
|
||||
public void testMaxValueByte() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/maxValueByte.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("maxValueInt.kt")
|
||||
public void testMaxValueInt() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/maxValueInt.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("miltiply.kt")
|
||||
public void testMiltiply() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/miltiply.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("minus.kt")
|
||||
public void testMinus() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/minus.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mod.kt")
|
||||
public void testMod() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/mod.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multilineString.kt")
|
||||
public void testMultilineString() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/multilineString.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("not.kt")
|
||||
public void testNot() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/not.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noteq.kt")
|
||||
public void testNoteq() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/noteq.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("orOr.kt")
|
||||
public void testOrOr() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/orOr.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("paranthesized.kt")
|
||||
public void testParanthesized() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/paranthesized.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("plus.kt")
|
||||
public void testPlus() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/plus.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleCallBinary.kt")
|
||||
public void testSimpleCallBinary() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/simpleCallBinary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("stringPlusInt.kt")
|
||||
public void testStringPlusInt() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/stringPlusInt.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("stringTemplate.kt")
|
||||
public void testStringTemplate() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/stringTemplate.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("strings.kt")
|
||||
public void testStrings() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/strings.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unaryMinus.kt")
|
||||
public void testUnaryMinus() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/unaryMinus.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unaryPlus.kt")
|
||||
public void testUnaryPlus() throws Exception {
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/unaryPlus.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
-623
@@ -1,623 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.resolve.calls;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/resolvedCalls")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInResolvedCalls() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls"), Pattern.compile("^(.+)\\.kt$"), null, true, "enhancedSignatures");
|
||||
}
|
||||
|
||||
@TestMetadata("explicitReceiverIsDispatchReceiver.kt")
|
||||
public void testExplicitReceiverIsDispatchReceiver() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/explicitReceiverIsDispatchReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("explicitReceiverIsExtensionReceiver.kt")
|
||||
public void testExplicitReceiverIsExtensionReceiver() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/explicitReceiverIsExtensionReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("hasBothDispatchAndExtensionReceivers.kt")
|
||||
public void testHasBothDispatchAndExtensionReceivers() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/hasBothDispatchAndExtensionReceivers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("hasBothDispatchAndExtensionReceiversWithoutExplicitReceiver.kt")
|
||||
public void testHasBothDispatchAndExtensionReceiversWithoutExplicitReceiver() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/hasBothDispatchAndExtensionReceiversWithoutExplicitReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitReceiverIsDispatchReceiver.kt")
|
||||
public void testImplicitReceiverIsDispatchReceiver() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/implicitReceiverIsDispatchReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitReceiverIsExtensionReceiver.kt")
|
||||
public void testImplicitReceiverIsExtensionReceiver() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/implicitReceiverIsExtensionReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("impliedThisNoExplicitReceiver.kt")
|
||||
public void testImpliedThisNoExplicitReceiver() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/impliedThisNoExplicitReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleCall.kt")
|
||||
public void testSimpleCall() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/simpleCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/arguments")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Arguments extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInArguments() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/arguments"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/arguments/functionLiterals")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class FunctionLiterals extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFunctionLiterals() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/arguments/functionLiterals"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("chainedLambdas.kt")
|
||||
public void testChainedLambdas() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/arguments/functionLiterals/chainedLambdas.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("notInferredLambdaReturnType.kt")
|
||||
public void testNotInferredLambdaReturnType() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/arguments/functionLiterals/notInferredLambdaReturnType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("notInferredLambdaType.kt")
|
||||
public void testNotInferredLambdaType() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/arguments/functionLiterals/notInferredLambdaType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleGenericLambda.kt")
|
||||
public void testSimpleGenericLambda() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/arguments/functionLiterals/simpleGenericLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleLambda.kt")
|
||||
public void testSimpleLambda() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/arguments/functionLiterals/simpleLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unmappedLambda.kt")
|
||||
public void testUnmappedLambda() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/arguments/functionLiterals/unmappedLambda.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/arguments/genericCalls")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class GenericCalls extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInGenericCalls() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/arguments/genericCalls"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("inferredParameter.kt")
|
||||
public void testInferredParameter() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/arguments/genericCalls/inferredParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleGeneric.kt")
|
||||
public void testSimpleGeneric() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/arguments/genericCalls/simpleGeneric.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("uninferredParameter.kt")
|
||||
public void testUninferredParameter() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/arguments/genericCalls/uninferredParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("uninferredParameterTypeMismatch.kt")
|
||||
public void testUninferredParameterTypeMismatch() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/arguments/genericCalls/uninferredParameterTypeMismatch.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/arguments/namedArguments")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class NamedArguments extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInNamedArguments() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/arguments/namedArguments"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("positionedAfterNamed.kt")
|
||||
public void testPositionedAfterNamed() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/arguments/namedArguments/positionedAfterNamed.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("shiftedArgsMatch.kt")
|
||||
public void testShiftedArgsMatch() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/arguments/namedArguments/shiftedArgsMatch.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/arguments/oneArgument")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class OneArgument extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInOneArgument() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/arguments/oneArgument"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("argumentHasNoType.kt")
|
||||
public void testArgumentHasNoType() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/arguments/oneArgument/argumentHasNoType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleMatch.kt")
|
||||
public void testSimpleMatch() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/arguments/oneArgument/simpleMatch.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeMismatch.kt")
|
||||
public void testTypeMismatch() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/arguments/oneArgument/typeMismatch.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unmappedArgument.kt")
|
||||
public void testUnmappedArgument() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/arguments/oneArgument/unmappedArgument.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/arguments/realExamples")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class RealExamples extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInRealExamples() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/arguments/realExamples"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("emptyList.kt")
|
||||
public void testEmptyList() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/arguments/realExamples/emptyList.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("emptyMutableList.kt")
|
||||
public void testEmptyMutableList() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/arguments/realExamples/emptyMutableList.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/arguments/severalCandidates")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class SeveralCandidates extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSeveralCandidates() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/arguments/severalCandidates"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("mostSpecific.kt")
|
||||
public void testMostSpecific() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/arguments/severalCandidates/mostSpecific.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/differentCallElements")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class DifferentCallElements extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDifferentCallElements() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/differentCallElements"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("annotationCall.kt")
|
||||
public void testAnnotationCall() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/differentCallElements/annotationCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegatorToSuperCall.kt")
|
||||
public void testDelegatorToSuperCall() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/differentCallElements/delegatorToSuperCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleArrayAccess.kt")
|
||||
public void testSimpleArrayAccess() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/differentCallElements/simpleArrayAccess.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/dynamic")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Dynamic extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDynamic() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/dynamic"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("explicitReceiverIsDispatchReceiver.kt")
|
||||
public void testExplicitReceiverIsDispatchReceiver() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/dynamic/explicitReceiverIsDispatchReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("explicitReceiverIsExtensionReceiver.kt")
|
||||
public void testExplicitReceiverIsExtensionReceiver() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/dynamic/explicitReceiverIsExtensionReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("hasBothDispatchAndExtensionReceivers.kt")
|
||||
public void testHasBothDispatchAndExtensionReceivers() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/dynamic/hasBothDispatchAndExtensionReceivers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("hasBothDispatchAndExtensionReceiversWithoutExplicitReceiver.kt")
|
||||
public void testHasBothDispatchAndExtensionReceiversWithoutExplicitReceiver() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/dynamic/hasBothDispatchAndExtensionReceiversWithoutExplicitReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitReceiverIsDispatchReceiver.kt")
|
||||
public void testImplicitReceiverIsDispatchReceiver() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/dynamic/implicitReceiverIsDispatchReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitReceiverIsExtensionReceiver.kt")
|
||||
public void testImplicitReceiverIsExtensionReceiver() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/dynamic/implicitReceiverIsExtensionReceiver.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/functionTypes")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class FunctionTypes extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFunctionTypes() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/functionTypes"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("invokeForExtensionFunctionType.kt")
|
||||
public void testInvokeForExtensionFunctionType() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/functionTypes/invokeForExtensionFunctionType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invokeForFunctionType.kt")
|
||||
public void testInvokeForFunctionType() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/functionTypes/invokeForFunctionType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valOfExtensionFunctionType.kt")
|
||||
public void testValOfExtensionFunctionType() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/functionTypes/valOfExtensionFunctionType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valOfExtensionFunctionTypeInvoke.kt")
|
||||
public void testValOfExtensionFunctionTypeInvoke() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/functionTypes/valOfExtensionFunctionTypeInvoke.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valOfFunctionType.kt")
|
||||
public void testValOfFunctionType() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/functionTypes/valOfFunctionType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valOfFunctionTypeInvoke.kt")
|
||||
public void testValOfFunctionTypeInvoke() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/functionTypes/valOfFunctionTypeInvoke.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/invoke")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Invoke extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInInvoke() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/invoke"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("bothReceivers.kt")
|
||||
public void testBothReceivers() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/invoke/bothReceivers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dispatchReceiverAsReceiverForInvoke.kt")
|
||||
public void testDispatchReceiverAsReceiverForInvoke() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/invoke/dispatchReceiverAsReceiverForInvoke.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionReceiverAsReceiverForInvoke.kt")
|
||||
public void testExtensionReceiverAsReceiverForInvoke() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/invoke/extensionReceiverAsReceiverForInvoke.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitReceiverForInvoke.kt")
|
||||
public void testImplicitReceiverForInvoke() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/invoke/implicitReceiverForInvoke.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invokeOnClassObject1.kt")
|
||||
public void testInvokeOnClassObject1() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/invoke/invokeOnClassObject1.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invokeOnClassObject2.kt")
|
||||
public void testInvokeOnClassObject2() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/invoke/invokeOnClassObject2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invokeOnEnumEntry1.kt")
|
||||
public void testInvokeOnEnumEntry1() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/invoke/invokeOnEnumEntry1.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invokeOnEnumEntry2.kt")
|
||||
public void testInvokeOnEnumEntry2() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/invoke/invokeOnEnumEntry2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invokeOnObject1.kt")
|
||||
public void testInvokeOnObject1() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/invoke/invokeOnObject1.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invokeOnObject2.kt")
|
||||
public void testInvokeOnObject2() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/invoke/invokeOnObject2.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/objectsAndClassObjects")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ObjectsAndClassObjects extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInObjectsAndClassObjects() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/objectsAndClassObjects"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classObject.kt")
|
||||
public void testClassObject() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/objectsAndClassObjects/classObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt5308IntRangeConstant.kt")
|
||||
public void testKt5308IntRangeConstant() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/objectsAndClassObjects/kt5308IntRangeConstant.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("object.kt")
|
||||
public void testObject() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/objectsAndClassObjects/object.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/realExamples")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class RealExamples extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInRealExamples() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/realExamples"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("stringPlusInBuilders.kt")
|
||||
public void testStringPlusInBuilders() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/realExamples/stringPlusInBuilders.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/resolve")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Resolve extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInResolve() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/resolve"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("mostSpecificUninferredParam.kt")
|
||||
public void testMostSpecificUninferredParam() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/resolve/mostSpecificUninferredParam.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mostSpecificWithLambda.kt")
|
||||
public void testMostSpecificWithLambda() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/resolve/mostSpecificWithLambda.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/secondaryConstructors")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class SecondaryConstructors extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSecondaryConstructors() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/secondaryConstructors"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classWithGenerics.kt")
|
||||
public void testClassWithGenerics() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/secondaryConstructors/classWithGenerics.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classWithGenerics2.kt")
|
||||
public void testClassWithGenerics2() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/secondaryConstructors/classWithGenerics2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classWithGenerics3.kt")
|
||||
public void testClassWithGenerics3() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/secondaryConstructors/classWithGenerics3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("explicitPrimaryArgs.kt")
|
||||
public void testExplicitPrimaryArgs() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/secondaryConstructors/explicitPrimaryArgs.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("explicitPrimaryCallSecondary.kt")
|
||||
public void testExplicitPrimaryCallSecondary() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/secondaryConstructors/explicitPrimaryCallSecondary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("explicitPrimaryNoArgs.kt")
|
||||
public void testExplicitPrimaryNoArgs() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/secondaryConstructors/explicitPrimaryNoArgs.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitPrimary.kt")
|
||||
public void testImplicitPrimary() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/secondaryConstructors/implicitPrimary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overload1.kt")
|
||||
public void testOverload1() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/secondaryConstructors/overload1.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overload2.kt")
|
||||
public void testOverload2() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/secondaryConstructors/overload2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overload3.kt")
|
||||
public void testOverload3() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/secondaryConstructors/overload3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overloadDefault.kt")
|
||||
public void testOverloadDefault() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/secondaryConstructors/overloadDefault.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overloadNamed.kt")
|
||||
public void testOverloadNamed() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/secondaryConstructors/overloadNamed.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/secondaryConstructors/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("varargs.kt")
|
||||
public void testVarargs() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/secondaryConstructors/varargs.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/thisOrSuper")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ThisOrSuper extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInThisOrSuper() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/thisOrSuper"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("labeledSuper.kt")
|
||||
public void testLabeledSuper() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/thisOrSuper/labeledSuper.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("labeledThis.kt")
|
||||
public void testLabeledThis() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/thisOrSuper/labeledThis.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleSuper.kt")
|
||||
public void testSimpleSuper() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/thisOrSuper/simpleSuper.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleThis.kt")
|
||||
public void testSimpleThis() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/thisOrSuper/simpleThis.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("thisInExtensionFunction.kt")
|
||||
public void testThisInExtensionFunction() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/thisOrSuper/thisInExtensionFunction.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
-135
@@ -1,135 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.resolve.calls;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/resolveConstructorDelegationCalls")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class ResolvedConstructorDelegationCallsTestsGenerated extends AbstractResolvedConstructorDelegationCallsTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInResolveConstructorDelegationCalls() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolveConstructorDelegationCalls"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classWithGenerics.kt")
|
||||
public void testClassWithGenerics() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/classWithGenerics.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("generics2.kt")
|
||||
public void testGenerics2() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/generics2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("generics3.kt")
|
||||
public void testGenerics3() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/generics3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("generics4.kt")
|
||||
public void testGenerics4() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/generics4.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("generics5.kt")
|
||||
public void testGenerics5() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/generics5.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inheritanceWithGeneric.kt")
|
||||
public void testInheritanceWithGeneric() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/inheritanceWithGeneric.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClassDelegatingPrimary.kt")
|
||||
public void testInnerClassDelegatingPrimary() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/innerClassDelegatingPrimary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClassDelegatingSecondary.kt")
|
||||
public void testInnerClassDelegatingSecondary() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/innerClassDelegatingSecondary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superAnyEmpty.kt")
|
||||
public void testSuperAnyEmpty() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superAnyEmpty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superAnyImplicit.kt")
|
||||
public void testSuperAnyImplicit() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superAnyImplicit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPrimary.kt")
|
||||
public void testSuperPrimary() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superPrimary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPrimaryEmpty.kt")
|
||||
public void testSuperPrimaryEmpty() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superPrimaryEmpty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPrimaryImplicit.kt")
|
||||
public void testSuperPrimaryImplicit() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superPrimaryImplicit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superSecondary.kt")
|
||||
public void testSuperSecondary() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superSecondary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superSecondaryImplicit.kt")
|
||||
public void testSuperSecondaryImplicit() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superSecondaryImplicit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superSecondaryOverload.kt")
|
||||
public void testSuperSecondaryOverload() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superSecondaryOverload.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("thisPrimary.kt")
|
||||
public void testThisPrimary() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/thisPrimary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("thisPrimaryEmpty.kt")
|
||||
public void testThisPrimaryEmpty() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/thisPrimaryEmpty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("thisSecondary.kt")
|
||||
public void testThisSecondary() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/thisSecondary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("thisSecondaryOverload.kt")
|
||||
public void testThisSecondaryOverload() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/thisSecondaryOverload.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("varargs.kt")
|
||||
public void testVarargs() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/varargs.kt");
|
||||
}
|
||||
}
|
||||
-209
@@ -1,209 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.resolve.constants.evaluate;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class CompileTimeConstantEvaluatorTestGenerated extends AbstractCompileTimeConstantEvaluatorTest {
|
||||
@TestMetadata("compiler/testData/evaluate/constant")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Constant extends AbstractCompileTimeConstantEvaluatorTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doConstantTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInConstant() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/evaluate/constant"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classObjectProperty.kt")
|
||||
public void testClassObjectProperty() throws Exception {
|
||||
runTest("compiler/testData/evaluate/constant/classObjectProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compareTo.kt")
|
||||
public void testCompareTo() throws Exception {
|
||||
runTest("compiler/testData/evaluate/constant/compareTo.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("differentTypes.kt")
|
||||
public void testDifferentTypes() throws Exception {
|
||||
runTest("compiler/testData/evaluate/constant/differentTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("divideByZero.kt")
|
||||
public void testDivideByZero() throws Exception {
|
||||
runTest("compiler/testData/evaluate/constant/divideByZero.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("equals.kt")
|
||||
public void testEquals() throws Exception {
|
||||
runTest("compiler/testData/evaluate/constant/equals.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("exceptionWhenEvaluate.kt")
|
||||
public void testExceptionWhenEvaluate() throws Exception {
|
||||
runTest("compiler/testData/evaluate/constant/exceptionWhenEvaluate.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("finalProperty.kt")
|
||||
public void testFinalProperty() throws Exception {
|
||||
runTest("compiler/testData/evaluate/constant/finalProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("float.kt")
|
||||
public void testFloat() throws Exception {
|
||||
runTest("compiler/testData/evaluate/constant/float.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("floatsAndDoubles.kt")
|
||||
public void testFloatsAndDoubles() throws Exception {
|
||||
runTest("compiler/testData/evaluate/constant/floatsAndDoubles.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("integer.kt")
|
||||
public void testInteger() throws Exception {
|
||||
runTest("compiler/testData/evaluate/constant/integer.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("integerOperations.kt")
|
||||
public void testIntegerOperations() throws Exception {
|
||||
runTest("compiler/testData/evaluate/constant/integerOperations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("integers.kt")
|
||||
public void testIntegers() throws Exception {
|
||||
runTest("compiler/testData/evaluate/constant/integers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localVal.kt")
|
||||
public void testLocalVal() throws Exception {
|
||||
runTest("compiler/testData/evaluate/constant/localVal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localVar.kt")
|
||||
public void testLocalVar() throws Exception {
|
||||
runTest("compiler/testData/evaluate/constant/localVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonFinalProperty.kt")
|
||||
public void testNonFinalProperty() throws Exception {
|
||||
runTest("compiler/testData/evaluate/constant/nonFinalProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("objectProperty.kt")
|
||||
public void testObjectProperty() throws Exception {
|
||||
runTest("compiler/testData/evaluate/constant/objectProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("strings.kt")
|
||||
public void testStrings() throws Exception {
|
||||
runTest("compiler/testData/evaluate/constant/strings.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelVal.kt")
|
||||
public void testTopLevelVal() throws Exception {
|
||||
runTest("compiler/testData/evaluate/constant/topLevelVal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelVar.kt")
|
||||
public void testTopLevelVar() throws Exception {
|
||||
runTest("compiler/testData/evaluate/constant/topLevelVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unaryMinusIndepWoExpType.kt")
|
||||
public void testUnaryMinusIndepWoExpType() throws Exception {
|
||||
runTest("compiler/testData/evaluate/constant/unaryMinusIndepWoExpType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unaryMinusIndependentExpType.kt")
|
||||
public void testUnaryMinusIndependentExpType() throws Exception {
|
||||
runTest("compiler/testData/evaluate/constant/unaryMinusIndependentExpType.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/evaluate/isPure")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class IsPure extends AbstractCompileTimeConstantEvaluatorTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doIsPureTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInIsPure() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/evaluate/isPure"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("innerToType.kt")
|
||||
public void testInnerToType() throws Exception {
|
||||
runTest("compiler/testData/evaluate/isPure/innerToType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("namedConstants.kt")
|
||||
public void testNamedConstants() throws Exception {
|
||||
runTest("compiler/testData/evaluate/isPure/namedConstants.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("toType.kt")
|
||||
public void testToType() throws Exception {
|
||||
runTest("compiler/testData/evaluate/isPure/toType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unaryMinusIndepWoExpType.kt")
|
||||
public void testUnaryMinusIndepWoExpType() throws Exception {
|
||||
runTest("compiler/testData/evaluate/isPure/unaryMinusIndepWoExpType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unaryMinusIndependentExpType.kt")
|
||||
public void testUnaryMinusIndependentExpType() throws Exception {
|
||||
runTest("compiler/testData/evaluate/isPure/unaryMinusIndependentExpType.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/evaluate/usesVariableAsConstant")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class UsesVariableAsConstant extends AbstractCompileTimeConstantEvaluatorTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doUsesVariableAsConstantTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInUsesVariableAsConstant() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/evaluate/usesVariableAsConstant"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("binaryTypes.kt")
|
||||
public void testBinaryTypes() throws Exception {
|
||||
runTest("compiler/testData/evaluate/usesVariableAsConstant/binaryTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("NamedConstants.kt")
|
||||
public void testNamedConstants() throws Exception {
|
||||
runTest("compiler/testData/evaluate/usesVariableAsConstant/NamedConstants.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("OtherTypes.kt")
|
||||
public void testOtherTypes() throws Exception {
|
||||
runTest("compiler/testData/evaluate/usesVariableAsConstant/OtherTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleTypes.kt")
|
||||
public void testSimpleTypes() throws Exception {
|
||||
runTest("compiler/testData/evaluate/usesVariableAsConstant/simpleTypes.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
-915
@@ -1,915 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.resolve.constraintSystem;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/constraintSystem")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class ConstraintSystemTestGenerated extends AbstractConstraintSystemTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInConstraintSystem() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/constraintSystem"), Pattern.compile("^(.+)\\.constraints$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/constraintSystem/checkStatus")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CheckStatus extends AbstractConstraintSystemTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCheckStatus() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/constraintSystem/checkStatus"), Pattern.compile("^(.+)\\.constraints$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("conflictingConstraints.constraints")
|
||||
public void testConflictingConstraints() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/checkStatus/conflictingConstraints.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("successful.constraints")
|
||||
public void testSuccessful() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/checkStatus/successful.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("typeConstructorMismatch.constraints")
|
||||
public void testTypeConstructorMismatch() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/checkStatus/typeConstructorMismatch.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("unknownParameters.constraints")
|
||||
public void testUnknownParameters() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/checkStatus/unknownParameters.constraints");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/constraintSystem/computeValues")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ComputeValues extends AbstractConstraintSystemTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInComputeValues() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/constraintSystem/computeValues"), Pattern.compile("^(.+)\\.constraints$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("contradiction.constraints")
|
||||
public void testContradiction() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/computeValues/contradiction.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("subTypeOfUpperBounds.constraints")
|
||||
public void testSubTypeOfUpperBounds() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/computeValues/subTypeOfUpperBounds.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("superTypeOfLowerBounds1.constraints")
|
||||
public void testSuperTypeOfLowerBounds1() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/computeValues/superTypeOfLowerBounds1.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("superTypeOfLowerBounds2.constraints")
|
||||
public void testSuperTypeOfLowerBounds2() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/computeValues/superTypeOfLowerBounds2.constraints");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/constraintSystem/integerValueTypes")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class IntegerValueTypes extends AbstractConstraintSystemTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInIntegerValueTypes() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/constraintSystem/integerValueTypes"), Pattern.compile("^(.+)\\.constraints$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("byteOverflow.constraints")
|
||||
public void testByteOverflow() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/integerValueTypes/byteOverflow.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultLong.constraints")
|
||||
public void testDefaultLong() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/integerValueTypes/defaultLong.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("numberAndAny.constraints")
|
||||
public void testNumberAndAny() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/integerValueTypes/numberAndAny.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("numberAndString.constraints")
|
||||
public void testNumberAndString() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/integerValueTypes/numberAndString.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("severalNumbers.constraints")
|
||||
public void testSeveralNumbers() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/integerValueTypes/severalNumbers.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleByte.constraints")
|
||||
public void testSimpleByte() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/integerValueTypes/simpleByte.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleInt.constraints")
|
||||
public void testSimpleInt() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/integerValueTypes/simpleInt.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleShort.constraints")
|
||||
public void testSimpleShort() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/integerValueTypes/simpleShort.constraints");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/constraintSystem/severalVariables")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class SeveralVariables extends AbstractConstraintSystemTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSeveralVariables() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables"), Pattern.compile("^(.+)\\.constraints$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("simpleDependency.constraints")
|
||||
public void testSimpleDependency() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/simpleDependency.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleEquality.constraints")
|
||||
public void testSimpleEquality() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/simpleEquality.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleEquality1.constraints")
|
||||
public void testSimpleEquality1() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/simpleEquality1.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleReversedDependency.constraints")
|
||||
public void testSimpleReversedDependency() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/simpleReversedDependency.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleSubtype.constraints")
|
||||
public void testSimpleSubtype() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/simpleSubtype.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleSubtype1.constraints")
|
||||
public void testSimpleSubtype1() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/simpleSubtype1.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/constraintSystem/severalVariables/direct")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Direct extends AbstractConstraintSystemTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDirect() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/direct"), Pattern.compile("^(.+)\\.constraints$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/constraintSystem/severalVariables/direct/contravariant")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Contravariant extends AbstractConstraintSystemTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInContravariant() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/direct/contravariant"), Pattern.compile("^(.+)\\.constraints$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("varEqDepEq.constraints")
|
||||
public void testVarEqDepEq() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/direct/contravariant/varEqDepEq.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varEqDepSub.constraints")
|
||||
public void testVarEqDepSub() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/direct/contravariant/varEqDepSub.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varEqDepSuper.constraints")
|
||||
public void testVarEqDepSuper() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/direct/contravariant/varEqDepSuper.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSubDepEq.constraints")
|
||||
public void testVarSubDepEq() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/direct/contravariant/varSubDepEq.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSubDepSub.constraints")
|
||||
public void testVarSubDepSub() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/direct/contravariant/varSubDepSub.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSubDepSuper.constraints")
|
||||
public void testVarSubDepSuper() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/direct/contravariant/varSubDepSuper.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSuperDepEq.constraints")
|
||||
public void testVarSuperDepEq() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/direct/contravariant/varSuperDepEq.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSuperDepSub.constraints")
|
||||
public void testVarSuperDepSub() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/direct/contravariant/varSuperDepSub.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSuperDepSuper.constraints")
|
||||
public void testVarSuperDepSuper() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/direct/contravariant/varSuperDepSuper.constraints");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/constraintSystem/severalVariables/direct/covariant")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Covariant extends AbstractConstraintSystemTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCovariant() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/direct/covariant"), Pattern.compile("^(.+)\\.constraints$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("varEqDepEq.constraints")
|
||||
public void testVarEqDepEq() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/direct/covariant/varEqDepEq.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varEqDepSub.constraints")
|
||||
public void testVarEqDepSub() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/direct/covariant/varEqDepSub.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varEqDepSuper.constraints")
|
||||
public void testVarEqDepSuper() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/direct/covariant/varEqDepSuper.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSubDepEq.constraints")
|
||||
public void testVarSubDepEq() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/direct/covariant/varSubDepEq.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSubDepSub.constraints")
|
||||
public void testVarSubDepSub() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/direct/covariant/varSubDepSub.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSubDepSuper.constraints")
|
||||
public void testVarSubDepSuper() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/direct/covariant/varSubDepSuper.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSuperDepEq.constraints")
|
||||
public void testVarSuperDepEq() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/direct/covariant/varSuperDepEq.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSuperDepSub.constraints")
|
||||
public void testVarSuperDepSub() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/direct/covariant/varSuperDepSub.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSuperDepSuper.constraints")
|
||||
public void testVarSuperDepSuper() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/direct/covariant/varSuperDepSuper.constraints");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/constraintSystem/severalVariables/direct/invariant")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Invariant extends AbstractConstraintSystemTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInInvariant() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/direct/invariant"), Pattern.compile("^(.+)\\.constraints$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("varEqDepEq.constraints")
|
||||
public void testVarEqDepEq() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/direct/invariant/varEqDepEq.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varEqDepSub.constraints")
|
||||
public void testVarEqDepSub() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/direct/invariant/varEqDepSub.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varEqDepSuper.constraints")
|
||||
public void testVarEqDepSuper() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/direct/invariant/varEqDepSuper.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSubDepEq.constraints")
|
||||
public void testVarSubDepEq() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/direct/invariant/varSubDepEq.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSubDepSub.constraints")
|
||||
public void testVarSubDepSub() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/direct/invariant/varSubDepSub.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSubDepSuper.constraints")
|
||||
public void testVarSubDepSuper() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/direct/invariant/varSubDepSuper.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSuperDepEq.constraints")
|
||||
public void testVarSuperDepEq() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/direct/invariant/varSuperDepEq.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSuperDepSub.constraints")
|
||||
public void testVarSuperDepSub() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/direct/invariant/varSuperDepSub.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSuperDepSuper.constraints")
|
||||
public void testVarSuperDepSuper() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/direct/invariant/varSuperDepSuper.constraints");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/constraintSystem/severalVariables/interdependency")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Interdependency extends AbstractConstraintSystemTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInInterdependency() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/interdependency"), Pattern.compile("^(.+)\\.constraints$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("interdependency1.constraints")
|
||||
public void testInterdependency1() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/interdependency/interdependency1.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("interdependency2.constraints")
|
||||
public void testInterdependency2() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/interdependency/interdependency2.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("interdependency3.constraints")
|
||||
public void testInterdependency3() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/interdependency/interdependency3.constraints");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/constraintSystem/severalVariables/nullable")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Nullable extends AbstractConstraintSystemTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInNullable() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/nullable"), Pattern.compile("^(.+)\\.constraints$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/constraintSystem/severalVariables/nullable/contravariant")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Contravariant extends AbstractConstraintSystemTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInContravariant() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/nullable/contravariant"), Pattern.compile("^(.+)\\.constraints$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("varEqDepEq.constraints")
|
||||
public void testVarEqDepEq() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/nullable/contravariant/varEqDepEq.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varEqDepSub.constraints")
|
||||
public void testVarEqDepSub() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/nullable/contravariant/varEqDepSub.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varEqDepSuper.constraints")
|
||||
public void testVarEqDepSuper() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/nullable/contravariant/varEqDepSuper.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSubDepEq.constraints")
|
||||
public void testVarSubDepEq() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/nullable/contravariant/varSubDepEq.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSubDepSub.constraints")
|
||||
public void testVarSubDepSub() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/nullable/contravariant/varSubDepSub.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSubDepSuper.constraints")
|
||||
public void testVarSubDepSuper() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/nullable/contravariant/varSubDepSuper.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSuperDepEq.constraints")
|
||||
public void testVarSuperDepEq() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/nullable/contravariant/varSuperDepEq.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSuperDepSub.constraints")
|
||||
public void testVarSuperDepSub() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/nullable/contravariant/varSuperDepSub.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSuperDepSuper.constraints")
|
||||
public void testVarSuperDepSuper() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/nullable/contravariant/varSuperDepSuper.constraints");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/constraintSystem/severalVariables/nullable/covariant")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Covariant extends AbstractConstraintSystemTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCovariant() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/nullable/covariant"), Pattern.compile("^(.+)\\.constraints$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("varEqDepEq.constraints")
|
||||
public void testVarEqDepEq() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/nullable/covariant/varEqDepEq.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varEqDepSub.constraints")
|
||||
public void testVarEqDepSub() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/nullable/covariant/varEqDepSub.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varEqDepSuper.constraints")
|
||||
public void testVarEqDepSuper() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/nullable/covariant/varEqDepSuper.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSubDepEq.constraints")
|
||||
public void testVarSubDepEq() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/nullable/covariant/varSubDepEq.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSubDepSub.constraints")
|
||||
public void testVarSubDepSub() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/nullable/covariant/varSubDepSub.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSubDepSuper.constraints")
|
||||
public void testVarSubDepSuper() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/nullable/covariant/varSubDepSuper.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSuperDepEq.constraints")
|
||||
public void testVarSuperDepEq() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/nullable/covariant/varSuperDepEq.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSuperDepSub.constraints")
|
||||
public void testVarSuperDepSub() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/nullable/covariant/varSuperDepSub.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSuperDepSuper.constraints")
|
||||
public void testVarSuperDepSuper() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/nullable/covariant/varSuperDepSuper.constraints");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/constraintSystem/severalVariables/nullable/invariant")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Invariant extends AbstractConstraintSystemTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInInvariant() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/nullable/invariant"), Pattern.compile("^(.+)\\.constraints$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("varEqDepEq.constraints")
|
||||
public void testVarEqDepEq() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/nullable/invariant/varEqDepEq.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varEqDepSub.constraints")
|
||||
public void testVarEqDepSub() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/nullable/invariant/varEqDepSub.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varEqDepSuper.constraints")
|
||||
public void testVarEqDepSuper() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/nullable/invariant/varEqDepSuper.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSubDepEq.constraints")
|
||||
public void testVarSubDepEq() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/nullable/invariant/varSubDepEq.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSubDepSub.constraints")
|
||||
public void testVarSubDepSub() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/nullable/invariant/varSubDepSub.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSubDepSuper.constraints")
|
||||
public void testVarSubDepSuper() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/nullable/invariant/varSubDepSuper.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSuperDepEq.constraints")
|
||||
public void testVarSuperDepEq() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/nullable/invariant/varSuperDepEq.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSuperDepSub.constraints")
|
||||
public void testVarSuperDepSub() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/nullable/invariant/varSuperDepSub.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSuperDepSuper.constraints")
|
||||
public void testVarSuperDepSuper() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/nullable/invariant/varSuperDepSuper.constraints");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/constraintSystem/severalVariables/other")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Other extends AbstractConstraintSystemTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInOther() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/other"), Pattern.compile("^(.+)\\.constraints$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("constraintForNullables.constraints")
|
||||
public void testConstraintForNullables() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/other/constraintForNullables.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedConsumer.constraints")
|
||||
public void testNestedConsumer() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/other/nestedConsumer.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedConsumer1.constraints")
|
||||
public void testNestedConsumer1() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/other/nestedConsumer1.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedInvConsumer.constraints")
|
||||
public void testNestedInvConsumer() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/other/nestedInvConsumer.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedInvProducer.constraints")
|
||||
public void testNestedInvProducer() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/other/nestedInvProducer.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedProducer.constraints")
|
||||
public void testNestedProducer() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/other/nestedProducer.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedProducerAndConsumer.constraints")
|
||||
public void testNestedProducerAndConsumer() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/other/nestedProducerAndConsumer.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("severalOccurrences.constraints")
|
||||
public void testSeveralOccurrences() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/other/severalOccurrences.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleFun.constraints")
|
||||
public void testSimpleFun() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/other/simpleFun.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleThreeVars.constraints")
|
||||
public void testSimpleThreeVars() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/other/simpleThreeVars.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleThreeVarsNoIncorporation.constraints")
|
||||
public void testSimpleThreeVarsNoIncorporation() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/other/simpleThreeVarsNoIncorporation.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleThreeVarsNoIncorporationFixed.constraints")
|
||||
public void testSimpleThreeVarsNoIncorporationFixed() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/other/simpleThreeVarsNoIncorporationFixed.constraints");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/constraintSystem/severalVariables/recursive")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Recursive extends AbstractConstraintSystemTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInRecursive() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/recursive"), Pattern.compile("^(.+)\\.constraints$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("implicitlyRecursive.constraints")
|
||||
public void testImplicitlyRecursive() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/recursive/implicitlyRecursive.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("kt8879.constraints")
|
||||
public void testKt8879() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/recursive/kt8879.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("mutuallyRecursive.constraints")
|
||||
public void testMutuallyRecursive() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/recursive/mutuallyRecursive.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleRecursive.constraints")
|
||||
public void testSimpleRecursive() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/recursive/simpleRecursive.constraints");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/constraintSystem/severalVariables/reversed")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Reversed extends AbstractConstraintSystemTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInReversed() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/reversed"), Pattern.compile("^(.+)\\.constraints$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/constraintSystem/severalVariables/reversed/contravariant")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Contravariant extends AbstractConstraintSystemTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInContravariant() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/reversed/contravariant"), Pattern.compile("^(.+)\\.constraints$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("varEqDepEq.constraints")
|
||||
public void testVarEqDepEq() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/reversed/contravariant/varEqDepEq.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varEqDepSub.constraints")
|
||||
public void testVarEqDepSub() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/reversed/contravariant/varEqDepSub.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varEqDepSuper.constraints")
|
||||
public void testVarEqDepSuper() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/reversed/contravariant/varEqDepSuper.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSubDepEq.constraints")
|
||||
public void testVarSubDepEq() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/reversed/contravariant/varSubDepEq.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSubDepSub.constraints")
|
||||
public void testVarSubDepSub() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/reversed/contravariant/varSubDepSub.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSubDepSuper.constraints")
|
||||
public void testVarSubDepSuper() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/reversed/contravariant/varSubDepSuper.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSuperDepEq.constraints")
|
||||
public void testVarSuperDepEq() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/reversed/contravariant/varSuperDepEq.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSuperDepSub.constraints")
|
||||
public void testVarSuperDepSub() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/reversed/contravariant/varSuperDepSub.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSuperDepSuper.constraints")
|
||||
public void testVarSuperDepSuper() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/reversed/contravariant/varSuperDepSuper.constraints");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/constraintSystem/severalVariables/reversed/covariant")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Covariant extends AbstractConstraintSystemTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCovariant() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/reversed/covariant"), Pattern.compile("^(.+)\\.constraints$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("varEqDepEq.constraints")
|
||||
public void testVarEqDepEq() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/reversed/covariant/varEqDepEq.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varEqDepSub.constraints")
|
||||
public void testVarEqDepSub() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/reversed/covariant/varEqDepSub.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varEqDepSuper.constraints")
|
||||
public void testVarEqDepSuper() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/reversed/covariant/varEqDepSuper.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSubDepEq.constraints")
|
||||
public void testVarSubDepEq() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/reversed/covariant/varSubDepEq.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSubDepSub.constraints")
|
||||
public void testVarSubDepSub() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/reversed/covariant/varSubDepSub.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSubDepSuper.constraints")
|
||||
public void testVarSubDepSuper() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/reversed/covariant/varSubDepSuper.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSuperDepEq.constraints")
|
||||
public void testVarSuperDepEq() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/reversed/covariant/varSuperDepEq.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSuperDepSub.constraints")
|
||||
public void testVarSuperDepSub() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/reversed/covariant/varSuperDepSub.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSuperDepSuper.constraints")
|
||||
public void testVarSuperDepSuper() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/reversed/covariant/varSuperDepSuper.constraints");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/constraintSystem/severalVariables/reversed/invariant")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Invariant extends AbstractConstraintSystemTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInInvariant() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/constraintSystem/severalVariables/reversed/invariant"), Pattern.compile("^(.+)\\.constraints$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("varEqDepEq.constraints")
|
||||
public void testVarEqDepEq() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/reversed/invariant/varEqDepEq.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varEqDepSub.constraints")
|
||||
public void testVarEqDepSub() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/reversed/invariant/varEqDepSub.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varEqDepSuper.constraints")
|
||||
public void testVarEqDepSuper() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/reversed/invariant/varEqDepSuper.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSubDepEq.constraints")
|
||||
public void testVarSubDepEq() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/reversed/invariant/varSubDepEq.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSubDepSub.constraints")
|
||||
public void testVarSubDepSub() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/reversed/invariant/varSubDepSub.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSubDepSuper.constraints")
|
||||
public void testVarSubDepSuper() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/reversed/invariant/varSubDepSuper.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSuperDepEq.constraints")
|
||||
public void testVarSuperDepEq() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/reversed/invariant/varSuperDepEq.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSuperDepSub.constraints")
|
||||
public void testVarSuperDepSub() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/reversed/invariant/varSuperDepSub.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("varSuperDepSuper.constraints")
|
||||
public void testVarSuperDepSuper() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/severalVariables/reversed/invariant/varSuperDepSuper.constraints");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/constraintSystem/variance")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Variance extends AbstractConstraintSystemTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInVariance() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/constraintSystem/variance"), Pattern.compile("^(.+)\\.constraints$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("consumer.constraints")
|
||||
public void testConsumer() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/variance/consumer.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("invariant.constraints")
|
||||
public void testInvariant() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/variance/invariant.constraints");
|
||||
}
|
||||
|
||||
@TestMetadata("producer.constraints")
|
||||
public void testProducer() throws Exception {
|
||||
runTest("compiler/testData/constraintSystem/variance/producer.constraints");
|
||||
}
|
||||
}
|
||||
}
|
||||
-65
@@ -1,65 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.serialization;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/serialization/local")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class LocalClassProtoTestGenerated extends AbstractLocalClassProtoTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInLocal() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/serialization/local"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("annotationsInLocalClass.kt")
|
||||
public void testAnnotationsInLocalClass() throws Exception {
|
||||
runTest("compiler/testData/serialization/local/annotationsInLocalClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("anonymousObject.kt")
|
||||
public void testAnonymousObject() throws Exception {
|
||||
runTest("compiler/testData/serialization/local/anonymousObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("deepInnerChain.kt")
|
||||
public void testDeepInnerChain() throws Exception {
|
||||
runTest("compiler/testData/serialization/local/deepInnerChain.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerOfLocal.kt")
|
||||
public void testInnerOfLocal() throws Exception {
|
||||
runTest("compiler/testData/serialization/local/innerOfLocal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localClassInSignature.kt")
|
||||
public void testLocalClassInSignature() throws Exception {
|
||||
runTest("compiler/testData/serialization/local/localClassInSignature.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleInMemberFunction.kt")
|
||||
public void testSimpleInMemberFunction() throws Exception {
|
||||
runTest("compiler/testData/serialization/local/simpleInMemberFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleInTopLevelFunction.kt")
|
||||
public void testSimpleInTopLevelFunction() throws Exception {
|
||||
runTest("compiler/testData/serialization/local/simpleInTopLevelFunction.kt");
|
||||
}
|
||||
}
|
||||
@@ -1,236 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.types;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
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/type/binding")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class TypeBindingTestGenerated extends AbstractTypeBindingTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInBinding() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/type/binding"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/type/binding/explicit")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Explicit extends AbstractTypeBindingTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInExplicit() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/type/binding/explicit"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("conflictingProjection.kt")
|
||||
public void testConflictingProjection() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/conflictingProjection.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("conflictingProjection2.kt")
|
||||
public void testConflictingProjection2() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/conflictingProjection2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("errorPair.kt")
|
||||
public void testErrorPair() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/errorPair.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("errorWithProjection.kt")
|
||||
public void testErrorWithProjection() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/errorWithProjection.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionType.kt")
|
||||
public void testFunctionType() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/functionType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionType2.kt")
|
||||
public void testFunctionType2() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/functionType2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionType3.kt")
|
||||
public void testFunctionType3() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/functionType3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inProjection.kt")
|
||||
public void testInProjection() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/inProjection.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("int.kt")
|
||||
public void testInt() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/int.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("list0.kt")
|
||||
public void testList0() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/list0.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("list2.kt")
|
||||
public void testList2() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/list2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullableType.kt")
|
||||
public void testNullableType() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/nullableType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("outProjection.kt")
|
||||
public void testOutProjection() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/outProjection.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("pair.kt")
|
||||
public void testPair() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/pair.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("star.kt")
|
||||
public void testStar() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/star.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeWithBracket.kt")
|
||||
public void testTypeWithBracket() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/typeWithBracket.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unresolvedType.kt")
|
||||
public void testUnresolvedType() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/unresolvedType.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/type/binding/implicit")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Implicit extends AbstractTypeBindingTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInImplicit() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/type/binding/implicit"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("conflictingProjection.kt")
|
||||
public void testConflictingProjection() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/conflictingProjection.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("conflictingProjection2.kt")
|
||||
public void testConflictingProjection2() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/conflictingProjection2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("errorPair.kt")
|
||||
public void testErrorPair() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/errorPair.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("errorWithProjection.kt")
|
||||
public void testErrorWithProjection() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/errorWithProjection.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionType.kt")
|
||||
public void testFunctionType() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/functionType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionType2.kt")
|
||||
public void testFunctionType2() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/functionType2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionType3.kt")
|
||||
public void testFunctionType3() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/functionType3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inProjection.kt")
|
||||
public void testInProjection() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/inProjection.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("int.kt")
|
||||
public void testInt() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/int.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("list0.kt")
|
||||
public void testList0() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/list0.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("list2.kt")
|
||||
public void testList2() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/list2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullableType.kt")
|
||||
public void testNullableType() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/nullableType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("outProjection.kt")
|
||||
public void testOutProjection() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/outProjection.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("pair.kt")
|
||||
public void testPair() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/pair.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("star.kt")
|
||||
public void testStar() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/star.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeWithBracket.kt")
|
||||
public void testTypeWithBracket() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/typeWithBracket.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unresolvedType.kt")
|
||||
public void testUnresolvedType() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/unresolvedType.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user