[TEST] Move generated compiler tests to test-gen directory
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user