Regenerate tests
This commit is contained in:
+99
-142
@@ -21,286 +21,249 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class ResolveTestGenerated extends AbstractResolveTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInResolve() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolve"), Pattern.compile("^(.+)\\.resolve$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("Basic.resolve")
|
||||
public void testBasic() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/Basic.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/Basic.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassObjects.resolve")
|
||||
public void testClassObjects() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/ClassObjects.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/ClassObjects.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("Classifiers.resolve")
|
||||
public void testClassifiers() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/Classifiers.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/Classifiers.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("DefaultParamsOfLocalFunctions.resolve")
|
||||
public void testDefaultParamsOfLocalFunctions() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/DefaultParamsOfLocalFunctions.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/DefaultParamsOfLocalFunctions.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ErrorSupertype.resolve")
|
||||
public void testErrorSupertype() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/ErrorSupertype.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/ErrorSupertype.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ExtensionFunctions.resolve")
|
||||
public void testExtensionFunctions() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/ExtensionFunctions.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/ExtensionFunctions.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("FunctionVariable.resolve")
|
||||
public void testFunctionVariable() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/FunctionVariable.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/FunctionVariable.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportFromRootScope.resolve")
|
||||
public void testImportFromRootScope() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/ImportFromRootScope.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/ImportFromRootScope.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportingRootScopeWhenProcessingImports.resolve")
|
||||
public void testImportingRootScopeWhenProcessingImports() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/ImportingRootScopeWhenProcessingImports.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/ImportingRootScopeWhenProcessingImports.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("kt304.resolve")
|
||||
public void testKt304() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/kt304.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/kt304.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("LocalObjects.resolve")
|
||||
public void testLocalObjects() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/LocalObjects.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/LocalObjects.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("NestedObjects.resolve")
|
||||
public void testNestedObjects() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/NestedObjects.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/NestedObjects.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("NoReferenceForErrorAnnotation.resolve")
|
||||
public void testNoReferenceForErrorAnnotation() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/NoReferenceForErrorAnnotation.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/NoReferenceForErrorAnnotation.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("Objects.resolve")
|
||||
public void testObjects() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/Objects.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/Objects.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("Packages.resolve")
|
||||
public void testPackages() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/Packages.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/Packages.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("PrimaryConstructorParameters.resolve")
|
||||
public void testPrimaryConstructorParameters() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/PrimaryConstructorParameters.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/PrimaryConstructorParameters.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("PrimaryConstructors.resolve")
|
||||
public void testPrimaryConstructors() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/PrimaryConstructors.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/PrimaryConstructors.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("Projections.resolve")
|
||||
public void testProjections() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/Projections.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/Projections.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("PropertyAndFunctionNameClash.resolve")
|
||||
public void testPropertyAndFunctionNameClash() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/PropertyAndFunctionNameClash.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/PropertyAndFunctionNameClash.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ResolveOfInfixExpressions.resolve")
|
||||
public void testResolveOfInfixExpressions() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/ResolveOfInfixExpressions.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/ResolveOfInfixExpressions.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ResolveToJava.resolve")
|
||||
public void testResolveToJava() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/ResolveToJava.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/ResolveToJava.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ResolveToJava2.resolve")
|
||||
public void testResolveToJava2() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/ResolveToJava2.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/ResolveToJava2.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ResolveToJava3.resolve")
|
||||
public void testResolveToJava3() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/ResolveToJava3.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/ResolveToJava3.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ResolveToJavaTypeTransform.resolve")
|
||||
public void testResolveToJavaTypeTransform() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/ResolveToJavaTypeTransform.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/ResolveToJavaTypeTransform.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ScopeInteraction.resolve")
|
||||
public void testScopeInteraction() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/ScopeInteraction.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/ScopeInteraction.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("StringTemplates.resolve")
|
||||
public void testStringTemplates() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/StringTemplates.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/StringTemplates.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("Super.resolve")
|
||||
public void testSuper() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/Super.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/Super.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("TryCatch.resolve")
|
||||
public void testTryCatch() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/TryCatch.resolve");
|
||||
doTest(fileName);
|
||||
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, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCandidatesPriority() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolve/candidatesPriority"), Pattern.compile("^(.+)\\.resolve$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classObjectOuterResolve.resolve")
|
||||
public void testClassObjectOuterResolve() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/candidatesPriority/classObjectOuterResolve.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/candidatesPriority/classObjectOuterResolve.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("closerReceiver1.resolve")
|
||||
public void testCloserReceiver1() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/candidatesPriority/closerReceiver1.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/candidatesPriority/closerReceiver1.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("closerReceiver2.resolve")
|
||||
public void testCloserReceiver2() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/candidatesPriority/closerReceiver2.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/candidatesPriority/closerReceiver2.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("closerReceiver3.resolve")
|
||||
public void testCloserReceiver3() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/candidatesPriority/closerReceiver3.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/candidatesPriority/closerReceiver3.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("closerScope.resolve")
|
||||
public void testCloserScope() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/candidatesPriority/closerScope.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/candidatesPriority/closerScope.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("dispatchReceiverVsExtensionReceiver.resolve")
|
||||
public void testDispatchReceiverVsExtensionReceiver() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/candidatesPriority/dispatchReceiverVsExtensionReceiver.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/candidatesPriority/dispatchReceiverVsExtensionReceiver.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("dispatchReceiverVsExtensionReceiver2.resolve")
|
||||
public void testDispatchReceiverVsExtensionReceiver2() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/candidatesPriority/dispatchReceiverVsExtensionReceiver2.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/candidatesPriority/dispatchReceiverVsExtensionReceiver2.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionToCloserReceiverVsMember.resolve")
|
||||
public void testExtensionToCloserReceiverVsMember() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/candidatesPriority/extensionToCloserReceiverVsMember.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/candidatesPriority/extensionToCloserReceiverVsMember.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitThisVsNoReceiver.resolve")
|
||||
public void testImplicitThisVsNoReceiver() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/candidatesPriority/implicitThisVsNoReceiver.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/candidatesPriority/implicitThisVsNoReceiver.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitThisVsNoReceiver2.resolve")
|
||||
public void testImplicitThisVsNoReceiver2() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/candidatesPriority/implicitThisVsNoReceiver2.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/candidatesPriority/implicitThisVsNoReceiver2.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("localVsImplicitThis.resolve")
|
||||
public void testLocalVsImplicitThis() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/candidatesPriority/localVsImplicitThis.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/candidatesPriority/localVsImplicitThis.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("memberVsExtension1.resolve")
|
||||
public void testMemberVsExtension1() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/candidatesPriority/memberVsExtension1.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/candidatesPriority/memberVsExtension1.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("memberVsExtension2.resolve")
|
||||
public void testMemberVsExtension2() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/candidatesPriority/memberVsExtension2.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/candidatesPriority/memberVsExtension2.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("memberVsExtension3.resolve")
|
||||
public void testMemberVsExtension3() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/candidatesPriority/memberVsExtension3.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/candidatesPriority/memberVsExtension3.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("memberVsLocalExtension.resolve")
|
||||
public void testMemberVsLocalExtension() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/candidatesPriority/memberVsLocalExtension.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/candidatesPriority/memberVsLocalExtension.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("memberWithInvokeVsNonLocal.resolve")
|
||||
public void testMemberWithInvokeVsNonLocal() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/candidatesPriority/memberWithInvokeVsNonLocal.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/candidatesPriority/memberWithInvokeVsNonLocal.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("wrongReceiverVsOtherError.resolve")
|
||||
public void testWrongReceiverVsOtherError() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/candidatesPriority/wrongReceiverVsOtherError.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/candidatesPriority/wrongReceiverVsOtherError.resolve");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -308,50 +271,47 @@ public class ResolveTestGenerated extends AbstractResolveTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class DelegatedProperty extends AbstractResolveTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDelegatedProperty() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolve/delegatedProperty"), Pattern.compile("^(.+)\\.resolve$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("delegationByCall.resolve")
|
||||
public void testDelegationByCall() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/delegatedProperty/delegationByCall.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/delegatedProperty/delegationByCall.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationByConstructor.resolve")
|
||||
public void testDelegationByConstructor() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/delegatedProperty/delegationByConstructor.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/delegatedProperty/delegationByConstructor.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationByFun.resolve")
|
||||
public void testDelegationByFun() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/delegatedProperty/delegationByFun.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/delegatedProperty/delegationByFun.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationByObject.resolve")
|
||||
public void testDelegationByObject() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/delegatedProperty/delegationByObject.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/delegatedProperty/delegationByObject.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationByProperty.resolve")
|
||||
public void testDelegationByProperty() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/delegatedProperty/delegationByProperty.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/delegatedProperty/delegationByProperty.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationInClass.resolve")
|
||||
public void testDelegationInClass() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/delegatedProperty/delegationInClass.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/delegatedProperty/delegationInClass.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegation.resolve")
|
||||
public void testLocalDelegation() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/delegatedProperty/localDelegation.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/delegatedProperty/localDelegation.resolve");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -359,80 +319,72 @@ public class ResolveTestGenerated extends AbstractResolveTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Imports extends AbstractResolveTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInImports() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolve/imports"), Pattern.compile("^(.+)\\.resolve$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictAllPackage.resolve")
|
||||
public void testImportConflictAllPackage() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/imports/ImportConflictAllPackage.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictAllPackage.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictBetweenImportedAndRootPackage.resolve")
|
||||
public void testImportConflictBetweenImportedAndRootPackage() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/imports/ImportConflictBetweenImportedAndRootPackage.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictBetweenImportedAndRootPackage.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictBetweenImportedAndSamePackage.resolve")
|
||||
public void testImportConflictBetweenImportedAndSamePackage() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/imports/ImportConflictBetweenImportedAndSamePackage.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictBetweenImportedAndSamePackage.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictForFunctions.resolve")
|
||||
public void testImportConflictForFunctions() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/imports/ImportConflictForFunctions.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictForFunctions.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictPackageAndClass.resolve")
|
||||
public void testImportConflictPackageAndClass() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/imports/ImportConflictPackageAndClass.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictPackageAndClass.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictSameNameClass.resolve")
|
||||
public void testImportConflictSameNameClass() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/imports/ImportConflictSameNameClass.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictSameNameClass.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictWithClassObject.resolve")
|
||||
public void testImportConflictWithClassObject() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/imports/ImportConflictWithClassObject.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictWithClassObject.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictWithInFileClass.resolve")
|
||||
public void testImportConflictWithInFileClass() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/imports/ImportConflictWithInFileClass.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictWithInFileClass.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictWithInnerClass.resolve")
|
||||
public void testImportConflictWithInnerClass() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/imports/ImportConflictWithInnerClass.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictWithInnerClass.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictsWithMappedToJava.resolve")
|
||||
public void testImportConflictsWithMappedToJava() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/imports/ImportConflictsWithMappedToJava.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictsWithMappedToJava.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportNonBlockingAnalysis.resolve")
|
||||
public void testImportNonBlockingAnalysis() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/imports/ImportNonBlockingAnalysis.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/imports/ImportNonBlockingAnalysis.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportResolveOrderStable.resolve")
|
||||
public void testImportResolveOrderStable() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/imports/ImportResolveOrderStable.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/imports/ImportResolveOrderStable.resolve");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -440,20 +392,22 @@ public class ResolveTestGenerated extends AbstractResolveTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Labels extends AbstractResolveTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInLabels() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolve/labels"), Pattern.compile("^(.+)\\.resolve$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("labelForPropertyInGetter.resolve")
|
||||
public void testLabelForPropertyInGetter() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/labels/labelForPropertyInGetter.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/labels/labelForPropertyInGetter.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("labelForPropertyInSetter.resolve")
|
||||
public void testLabelForPropertyInSetter() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/labels/labelForPropertyInSetter.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/labels/labelForPropertyInSetter.resolve");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -461,20 +415,22 @@ public class ResolveTestGenerated extends AbstractResolveTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Regressions extends AbstractResolveTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInRegressions() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolve/regressions"), Pattern.compile("^(.+)\\.resolve$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("kt300.resolve")
|
||||
public void testKt300() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/regressions/kt300.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/regressions/kt300.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("objectInsideFun.resolve")
|
||||
public void testObjectInsideFun() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/regressions/objectInsideFun.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/regressions/objectInsideFun.resolve");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -482,26 +438,27 @@ public class ResolveTestGenerated extends AbstractResolveTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Varargs extends AbstractResolveTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInVarargs() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolve/varargs"), Pattern.compile("^(.+)\\.resolve$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("MoreSpecificVarargsOfEqualLength.resolve")
|
||||
public void testMoreSpecificVarargsOfEqualLength() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/varargs/MoreSpecificVarargsOfEqualLength.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/varargs/MoreSpecificVarargsOfEqualLength.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("NilaryVsVararg.resolve")
|
||||
public void testNilaryVsVararg() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/varargs/NilaryVsVararg.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/varargs/NilaryVsVararg.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("UnaryVsVararg.resolve")
|
||||
public void testUnaryVsVararg() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolve/varargs/UnaryVsVararg.resolve");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolve/varargs/UnaryVsVararg.resolve");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+49
-82
@@ -21,262 +21,229 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class AnnotationParameterTestGenerated extends AbstractAnnotationParameterTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInParameters() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolveAnnotations/parameters"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("byte.kt")
|
||||
public void testByte() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/byte.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/byte.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("char.kt")
|
||||
public void testChar() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/char.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/char.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("double.kt")
|
||||
public void testDouble() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/double.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/double.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("float.kt")
|
||||
public void testFloat() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/float.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/float.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("int.kt")
|
||||
public void testInt() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/int.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/int.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("long.kt")
|
||||
public void testLong() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/long.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/long.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("short.kt")
|
||||
public void testShort() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/short.kt");
|
||||
doTest(fileName);
|
||||
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, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInExpressions() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolveAnnotations/parameters/expressions"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("andAnd.kt")
|
||||
public void testAndAnd() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/andAnd.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/andAnd.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boolean.kt")
|
||||
public void testBoolean() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/boolean.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/boolean.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("char.kt")
|
||||
public void testChar() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/char.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/char.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compositeCallBinary.kt")
|
||||
public void testCompositeCallBinary() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/compositeCallBinary.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/compositeCallBinary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("divide.kt")
|
||||
public void testDivide() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/divide.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/divide.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("double.kt")
|
||||
public void testDouble() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/double.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/double.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("eqeq.kt")
|
||||
public void testEqeq() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/eqeq.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/eqeq.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("escapedString.kt")
|
||||
public void testEscapedString() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/escapedString.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/escapedString.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("float.kt")
|
||||
public void testFloat() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/float.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/float.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("gt.kt")
|
||||
public void testGt() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/gt.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/gt.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("gteq.kt")
|
||||
public void testGteq() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/gteq.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/gteq.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intrincics.kt")
|
||||
public void testIntrincics() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/intrincics.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/intrincics.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("labeled.kt")
|
||||
public void testLabeled() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/labeled.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/labeled.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("long.kt")
|
||||
public void testLong() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/long.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/long.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lt.kt")
|
||||
public void testLt() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/lt.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/lt.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lteq.kt")
|
||||
public void testLteq() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/lteq.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/lteq.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("maxValue.kt")
|
||||
public void testMaxValue() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/maxValue.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/maxValue.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("maxValueByte.kt")
|
||||
public void testMaxValueByte() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/maxValueByte.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/maxValueByte.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("maxValueInt.kt")
|
||||
public void testMaxValueInt() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/maxValueInt.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/maxValueInt.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("miltiply.kt")
|
||||
public void testMiltiply() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/miltiply.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/miltiply.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("minus.kt")
|
||||
public void testMinus() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/minus.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/minus.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mod.kt")
|
||||
public void testMod() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/mod.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/mod.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multilineString.kt")
|
||||
public void testMultilineString() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/multilineString.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/multilineString.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("not.kt")
|
||||
public void testNot() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/not.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/not.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noteq.kt")
|
||||
public void testNoteq() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/noteq.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/noteq.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("orOr.kt")
|
||||
public void testOrOr() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/orOr.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/orOr.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("paranthesized.kt")
|
||||
public void testParanthesized() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/paranthesized.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/paranthesized.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("plus.kt")
|
||||
public void testPlus() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/plus.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/plus.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleCallBinary.kt")
|
||||
public void testSimpleCallBinary() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/simpleCallBinary.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/simpleCallBinary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("stringPlusInt.kt")
|
||||
public void testStringPlusInt() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/stringPlusInt.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/stringPlusInt.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("stringTemplate.kt")
|
||||
public void testStringTemplate() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/stringTemplate.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/stringTemplate.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("strings.kt")
|
||||
public void testStrings() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/strings.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/strings.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unaryMinus.kt")
|
||||
public void testUnaryMinus() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/unaryMinus.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/unaryMinus.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unaryPlus.kt")
|
||||
public void testUnaryPlus() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveAnnotations/parameters/expressions/unaryPlus.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveAnnotations/parameters/expressions/unaryPlus.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+145
-154
@@ -21,62 +21,62 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInResolvedCalls() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true, "enhancedSignatures");
|
||||
}
|
||||
|
||||
@TestMetadata("explicitReceiverIsDispatchReceiver.kt")
|
||||
public void testExplicitReceiverIsDispatchReceiver() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/explicitReceiverIsDispatchReceiver.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/explicitReceiverIsDispatchReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("explicitReceiverIsExtensionReceiver.kt")
|
||||
public void testExplicitReceiverIsExtensionReceiver() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/explicitReceiverIsExtensionReceiver.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/explicitReceiverIsExtensionReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("hasBothDispatchAndExtensionReceivers.kt")
|
||||
public void testHasBothDispatchAndExtensionReceivers() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/hasBothDispatchAndExtensionReceivers.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/hasBothDispatchAndExtensionReceivers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("hasBothDispatchAndExtensionReceiversWithoutExplicitReceiver.kt")
|
||||
public void testHasBothDispatchAndExtensionReceiversWithoutExplicitReceiver() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/hasBothDispatchAndExtensionReceiversWithoutExplicitReceiver.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/hasBothDispatchAndExtensionReceiversWithoutExplicitReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitReceiverIsDispatchReceiver.kt")
|
||||
public void testImplicitReceiverIsDispatchReceiver() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/implicitReceiverIsDispatchReceiver.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/implicitReceiverIsDispatchReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitReceiverIsExtensionReceiver.kt")
|
||||
public void testImplicitReceiverIsExtensionReceiver() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/implicitReceiverIsExtensionReceiver.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/implicitReceiverIsExtensionReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("impliedThisNoExplicitReceiver.kt")
|
||||
public void testImpliedThisNoExplicitReceiver() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/impliedThisNoExplicitReceiver.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/impliedThisNoExplicitReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleCall.kt")
|
||||
public void testSimpleCall() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/simpleCall.kt");
|
||||
doTest(fileName);
|
||||
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, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInArguments() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/arguments"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
@@ -85,44 +85,42 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class FunctionLiterals extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFunctionLiterals() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/arguments/functionLiterals"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("chainedLambdas.kt")
|
||||
public void testChainedLambdas() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/arguments/functionLiterals/chainedLambdas.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/arguments/functionLiterals/chainedLambdas.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("notInferredLambdaReturnType.kt")
|
||||
public void testNotInferredLambdaReturnType() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/arguments/functionLiterals/notInferredLambdaReturnType.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/arguments/functionLiterals/notInferredLambdaReturnType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("notInferredLambdaType.kt")
|
||||
public void testNotInferredLambdaType() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/arguments/functionLiterals/notInferredLambdaType.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/arguments/functionLiterals/notInferredLambdaType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleGenericLambda.kt")
|
||||
public void testSimpleGenericLambda() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/arguments/functionLiterals/simpleGenericLambda.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/arguments/functionLiterals/simpleGenericLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleLambda.kt")
|
||||
public void testSimpleLambda() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/arguments/functionLiterals/simpleLambda.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/arguments/functionLiterals/simpleLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unmappedLambda.kt")
|
||||
public void testUnmappedLambda() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/arguments/functionLiterals/unmappedLambda.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/arguments/functionLiterals/unmappedLambda.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -130,32 +128,32 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class GenericCalls extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInGenericCalls() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/arguments/genericCalls"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("inferredParameter.kt")
|
||||
public void testInferredParameter() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/arguments/genericCalls/inferredParameter.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/arguments/genericCalls/inferredParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleGeneric.kt")
|
||||
public void testSimpleGeneric() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/arguments/genericCalls/simpleGeneric.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/arguments/genericCalls/simpleGeneric.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("uninferredParameter.kt")
|
||||
public void testUninferredParameter() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/arguments/genericCalls/uninferredParameter.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/arguments/genericCalls/uninferredParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("uninferredParameterTypeMismatch.kt")
|
||||
public void testUninferredParameterTypeMismatch() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/arguments/genericCalls/uninferredParameterTypeMismatch.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/arguments/genericCalls/uninferredParameterTypeMismatch.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -163,20 +161,22 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class NamedArguments extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInNamedArguments() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/arguments/namedArguments"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("positionedAfterNamed.kt")
|
||||
public void testPositionedAfterNamed() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/arguments/namedArguments/positionedAfterNamed.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/arguments/namedArguments/positionedAfterNamed.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("shiftedArgsMatch.kt")
|
||||
public void testShiftedArgsMatch() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/arguments/namedArguments/shiftedArgsMatch.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/arguments/namedArguments/shiftedArgsMatch.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -184,32 +184,32 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class OneArgument extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInOneArgument() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/arguments/oneArgument"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("argumentHasNoType.kt")
|
||||
public void testArgumentHasNoType() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/arguments/oneArgument/argumentHasNoType.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/arguments/oneArgument/argumentHasNoType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleMatch.kt")
|
||||
public void testSimpleMatch() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/arguments/oneArgument/simpleMatch.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/arguments/oneArgument/simpleMatch.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeMismatch.kt")
|
||||
public void testTypeMismatch() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/arguments/oneArgument/typeMismatch.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/arguments/oneArgument/typeMismatch.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unmappedArgument.kt")
|
||||
public void testUnmappedArgument() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/arguments/oneArgument/unmappedArgument.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/arguments/oneArgument/unmappedArgument.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -217,20 +217,22 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class RealExamples extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInRealExamples() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/arguments/realExamples"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("emptyList.kt")
|
||||
public void testEmptyList() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/arguments/realExamples/emptyList.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/arguments/realExamples/emptyList.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("emptyMutableList.kt")
|
||||
public void testEmptyMutableList() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/arguments/realExamples/emptyMutableList.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/arguments/realExamples/emptyMutableList.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -238,14 +240,17 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class SeveralCandidates extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSeveralCandidates() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/arguments/severalCandidates"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("mostSpecific.kt")
|
||||
public void testMostSpecific() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/arguments/severalCandidates/mostSpecific.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/arguments/severalCandidates/mostSpecific.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -254,26 +259,27 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class DifferentCallElements extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDifferentCallElements() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/differentCallElements"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("annotationCall.kt")
|
||||
public void testAnnotationCall() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/differentCallElements/annotationCall.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/differentCallElements/annotationCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegatorToSuperCall.kt")
|
||||
public void testDelegatorToSuperCall() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/differentCallElements/delegatorToSuperCall.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/differentCallElements/delegatorToSuperCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleArrayAccess.kt")
|
||||
public void testSimpleArrayAccess() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/differentCallElements/simpleArrayAccess.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/differentCallElements/simpleArrayAccess.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -281,44 +287,42 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Dynamic extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDynamic() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/dynamic"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("explicitReceiverIsDispatchReceiver.kt")
|
||||
public void testExplicitReceiverIsDispatchReceiver() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/dynamic/explicitReceiverIsDispatchReceiver.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/dynamic/explicitReceiverIsDispatchReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("explicitReceiverIsExtensionReceiver.kt")
|
||||
public void testExplicitReceiverIsExtensionReceiver() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/dynamic/explicitReceiverIsExtensionReceiver.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/dynamic/explicitReceiverIsExtensionReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("hasBothDispatchAndExtensionReceivers.kt")
|
||||
public void testHasBothDispatchAndExtensionReceivers() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/dynamic/hasBothDispatchAndExtensionReceivers.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/dynamic/hasBothDispatchAndExtensionReceivers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("hasBothDispatchAndExtensionReceiversWithoutExplicitReceiver.kt")
|
||||
public void testHasBothDispatchAndExtensionReceiversWithoutExplicitReceiver() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/dynamic/hasBothDispatchAndExtensionReceiversWithoutExplicitReceiver.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/dynamic/hasBothDispatchAndExtensionReceiversWithoutExplicitReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitReceiverIsDispatchReceiver.kt")
|
||||
public void testImplicitReceiverIsDispatchReceiver() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/dynamic/implicitReceiverIsDispatchReceiver.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/dynamic/implicitReceiverIsDispatchReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitReceiverIsExtensionReceiver.kt")
|
||||
public void testImplicitReceiverIsExtensionReceiver() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/dynamic/implicitReceiverIsExtensionReceiver.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/dynamic/implicitReceiverIsExtensionReceiver.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -326,44 +330,42 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class FunctionTypes extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFunctionTypes() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/functionTypes"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("invokeForExtensionFunctionType.kt")
|
||||
public void testInvokeForExtensionFunctionType() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/functionTypes/invokeForExtensionFunctionType.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/functionTypes/invokeForExtensionFunctionType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invokeForFunctionType.kt")
|
||||
public void testInvokeForFunctionType() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/functionTypes/invokeForFunctionType.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/functionTypes/invokeForFunctionType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valOfExtensionFunctionType.kt")
|
||||
public void testValOfExtensionFunctionType() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/functionTypes/valOfExtensionFunctionType.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/functionTypes/valOfExtensionFunctionType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valOfExtensionFunctionTypeInvoke.kt")
|
||||
public void testValOfExtensionFunctionTypeInvoke() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/functionTypes/valOfExtensionFunctionTypeInvoke.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/functionTypes/valOfExtensionFunctionTypeInvoke.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valOfFunctionType.kt")
|
||||
public void testValOfFunctionType() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/functionTypes/valOfFunctionType.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/functionTypes/valOfFunctionType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valOfFunctionTypeInvoke.kt")
|
||||
public void testValOfFunctionTypeInvoke() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/functionTypes/valOfFunctionTypeInvoke.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/functionTypes/valOfFunctionTypeInvoke.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -371,68 +373,62 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Invoke extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInInvoke() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/invoke"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("bothReceivers.kt")
|
||||
public void testBothReceivers() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/invoke/bothReceivers.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/invoke/bothReceivers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dispatchReceiverAsReceiverForInvoke.kt")
|
||||
public void testDispatchReceiverAsReceiverForInvoke() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/invoke/dispatchReceiverAsReceiverForInvoke.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/invoke/dispatchReceiverAsReceiverForInvoke.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionReceiverAsReceiverForInvoke.kt")
|
||||
public void testExtensionReceiverAsReceiverForInvoke() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/invoke/extensionReceiverAsReceiverForInvoke.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/invoke/extensionReceiverAsReceiverForInvoke.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitReceiverForInvoke.kt")
|
||||
public void testImplicitReceiverForInvoke() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/invoke/implicitReceiverForInvoke.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/invoke/implicitReceiverForInvoke.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invokeOnClassObject1.kt")
|
||||
public void testInvokeOnClassObject1() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/invoke/invokeOnClassObject1.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/invoke/invokeOnClassObject1.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invokeOnClassObject2.kt")
|
||||
public void testInvokeOnClassObject2() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/invoke/invokeOnClassObject2.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/invoke/invokeOnClassObject2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invokeOnEnumEntry1.kt")
|
||||
public void testInvokeOnEnumEntry1() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/invoke/invokeOnEnumEntry1.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/invoke/invokeOnEnumEntry1.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invokeOnEnumEntry2.kt")
|
||||
public void testInvokeOnEnumEntry2() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/invoke/invokeOnEnumEntry2.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/invoke/invokeOnEnumEntry2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invokeOnObject1.kt")
|
||||
public void testInvokeOnObject1() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/invoke/invokeOnObject1.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/invoke/invokeOnObject1.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invokeOnObject2.kt")
|
||||
public void testInvokeOnObject2() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/invoke/invokeOnObject2.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/invoke/invokeOnObject2.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -440,26 +436,27 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ObjectsAndClassObjects extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInObjectsAndClassObjects() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/objectsAndClassObjects"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classObject.kt")
|
||||
public void testClassObject() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/objectsAndClassObjects/classObject.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/objectsAndClassObjects/classObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt5308IntRangeConstant.kt")
|
||||
public void testKt5308IntRangeConstant() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/objectsAndClassObjects/kt5308IntRangeConstant.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/objectsAndClassObjects/kt5308IntRangeConstant.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("object.kt")
|
||||
public void testObject() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/objectsAndClassObjects/object.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/objectsAndClassObjects/object.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -467,14 +464,17 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class RealExamples extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInRealExamples() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/realExamples"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("stringPlusInBuilders.kt")
|
||||
public void testStringPlusInBuilders() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/realExamples/stringPlusInBuilders.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/realExamples/stringPlusInBuilders.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -482,20 +482,22 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Resolve extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInResolve() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/resolve"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("mostSpecificUninferredParam.kt")
|
||||
public void testMostSpecificUninferredParam() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/resolve/mostSpecificUninferredParam.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/resolve/mostSpecificUninferredParam.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mostSpecificWithLambda.kt")
|
||||
public void testMostSpecificWithLambda() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/resolve/mostSpecificWithLambda.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/resolve/mostSpecificWithLambda.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -503,92 +505,82 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class SecondaryConstructors extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSecondaryConstructors() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/secondaryConstructors"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classWithGenerics.kt")
|
||||
public void testClassWithGenerics() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/secondaryConstructors/classWithGenerics.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/secondaryConstructors/classWithGenerics.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classWithGenerics2.kt")
|
||||
public void testClassWithGenerics2() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/secondaryConstructors/classWithGenerics2.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/secondaryConstructors/classWithGenerics2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classWithGenerics3.kt")
|
||||
public void testClassWithGenerics3() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/secondaryConstructors/classWithGenerics3.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/secondaryConstructors/classWithGenerics3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("explicitPrimaryArgs.kt")
|
||||
public void testExplicitPrimaryArgs() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/secondaryConstructors/explicitPrimaryArgs.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/secondaryConstructors/explicitPrimaryArgs.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("explicitPrimaryCallSecondary.kt")
|
||||
public void testExplicitPrimaryCallSecondary() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/secondaryConstructors/explicitPrimaryCallSecondary.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/secondaryConstructors/explicitPrimaryCallSecondary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("explicitPrimaryNoArgs.kt")
|
||||
public void testExplicitPrimaryNoArgs() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/secondaryConstructors/explicitPrimaryNoArgs.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/secondaryConstructors/explicitPrimaryNoArgs.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitPrimary.kt")
|
||||
public void testImplicitPrimary() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/secondaryConstructors/implicitPrimary.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/secondaryConstructors/implicitPrimary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overload1.kt")
|
||||
public void testOverload1() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/secondaryConstructors/overload1.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/secondaryConstructors/overload1.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overload2.kt")
|
||||
public void testOverload2() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/secondaryConstructors/overload2.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/secondaryConstructors/overload2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overload3.kt")
|
||||
public void testOverload3() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/secondaryConstructors/overload3.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/secondaryConstructors/overload3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overloadDefault.kt")
|
||||
public void testOverloadDefault() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/secondaryConstructors/overloadDefault.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/secondaryConstructors/overloadDefault.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overloadNamed.kt")
|
||||
public void testOverloadNamed() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/secondaryConstructors/overloadNamed.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/secondaryConstructors/overloadNamed.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/secondaryConstructors/simple.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/secondaryConstructors/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("varargs.kt")
|
||||
public void testVarargs() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/secondaryConstructors/varargs.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/secondaryConstructors/varargs.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -596,38 +588,37 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ThisOrSuper extends AbstractResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInThisOrSuper() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolvedCalls/thisOrSuper"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("labeledSuper.kt")
|
||||
public void testLabeledSuper() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/thisOrSuper/labeledSuper.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/thisOrSuper/labeledSuper.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("labeledThis.kt")
|
||||
public void testLabeledThis() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/thisOrSuper/labeledThis.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/thisOrSuper/labeledThis.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleSuper.kt")
|
||||
public void testSimpleSuper() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/thisOrSuper/simpleSuper.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/thisOrSuper/simpleSuper.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleThis.kt")
|
||||
public void testSimpleThis() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/thisOrSuper/simpleThis.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/thisOrSuper/simpleThis.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("thisInExtensionFunction.kt")
|
||||
public void testThisInExtensionFunction() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolvedCalls/thisOrSuper/thisInExtensionFunction.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolvedCalls/thisOrSuper/thisInExtensionFunction.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+25
-42
@@ -21,133 +21,116 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class ResolvedConstructorDelegationCallsTestsGenerated extends AbstractResolvedConstructorDelegationCallsTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInResolveConstructorDelegationCalls() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/resolveConstructorDelegationCalls"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classWithGenerics.kt")
|
||||
public void testClassWithGenerics() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveConstructorDelegationCalls/classWithGenerics.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/classWithGenerics.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("generics2.kt")
|
||||
public void testGenerics2() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveConstructorDelegationCalls/generics2.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/generics2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("generics3.kt")
|
||||
public void testGenerics3() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveConstructorDelegationCalls/generics3.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/generics3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("generics4.kt")
|
||||
public void testGenerics4() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveConstructorDelegationCalls/generics4.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/generics4.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("generics5.kt")
|
||||
public void testGenerics5() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveConstructorDelegationCalls/generics5.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/generics5.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inheritanceWithGeneric.kt")
|
||||
public void testInheritanceWithGeneric() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveConstructorDelegationCalls/inheritanceWithGeneric.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/inheritanceWithGeneric.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClassDelegatingPrimary.kt")
|
||||
public void testInnerClassDelegatingPrimary() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveConstructorDelegationCalls/innerClassDelegatingPrimary.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/innerClassDelegatingPrimary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClassDelegatingSecondary.kt")
|
||||
public void testInnerClassDelegatingSecondary() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveConstructorDelegationCalls/innerClassDelegatingSecondary.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/innerClassDelegatingSecondary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superAnyEmpty.kt")
|
||||
public void testSuperAnyEmpty() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveConstructorDelegationCalls/superAnyEmpty.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superAnyEmpty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superAnyImplicit.kt")
|
||||
public void testSuperAnyImplicit() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveConstructorDelegationCalls/superAnyImplicit.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superAnyImplicit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPrimary.kt")
|
||||
public void testSuperPrimary() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveConstructorDelegationCalls/superPrimary.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superPrimary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPrimaryEmpty.kt")
|
||||
public void testSuperPrimaryEmpty() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveConstructorDelegationCalls/superPrimaryEmpty.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superPrimaryEmpty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPrimaryImplicit.kt")
|
||||
public void testSuperPrimaryImplicit() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveConstructorDelegationCalls/superPrimaryImplicit.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superPrimaryImplicit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superSecondary.kt")
|
||||
public void testSuperSecondary() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveConstructorDelegationCalls/superSecondary.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superSecondary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superSecondaryImplicit.kt")
|
||||
public void testSuperSecondaryImplicit() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveConstructorDelegationCalls/superSecondaryImplicit.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superSecondaryImplicit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superSecondaryOverload.kt")
|
||||
public void testSuperSecondaryOverload() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveConstructorDelegationCalls/superSecondaryOverload.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superSecondaryOverload.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("thisPrimary.kt")
|
||||
public void testThisPrimary() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveConstructorDelegationCalls/thisPrimary.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/thisPrimary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("thisPrimaryEmpty.kt")
|
||||
public void testThisPrimaryEmpty() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveConstructorDelegationCalls/thisPrimaryEmpty.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/thisPrimaryEmpty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("thisSecondary.kt")
|
||||
public void testThisSecondary() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveConstructorDelegationCalls/thisSecondary.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/thisSecondary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("thisSecondaryOverload.kt")
|
||||
public void testThisSecondaryOverload() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveConstructorDelegationCalls/thisSecondaryOverload.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/thisSecondaryOverload.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("varargs.kt")
|
||||
public void testVarargs() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/resolveConstructorDelegationCalls/varargs.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/varargs.kt");
|
||||
}
|
||||
}
|
||||
|
||||
+42
-60
@@ -23,134 +23,117 @@ public class CompileTimeConstantEvaluatorTestGenerated extends AbstractCompileTi
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Constant extends AbstractCompileTimeConstantEvaluatorTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doConstantTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInConstant() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/evaluate/constant"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classObjectProperty.kt")
|
||||
public void testClassObjectProperty() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/constant/classObjectProperty.kt");
|
||||
doConstantTest(fileName);
|
||||
runTest("compiler/testData/evaluate/constant/classObjectProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compareTo.kt")
|
||||
public void testCompareTo() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/constant/compareTo.kt");
|
||||
doConstantTest(fileName);
|
||||
runTest("compiler/testData/evaluate/constant/compareTo.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("differentTypes.kt")
|
||||
public void testDifferentTypes() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/constant/differentTypes.kt");
|
||||
doConstantTest(fileName);
|
||||
runTest("compiler/testData/evaluate/constant/differentTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("divideByZero.kt")
|
||||
public void testDivideByZero() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/constant/divideByZero.kt");
|
||||
doConstantTest(fileName);
|
||||
runTest("compiler/testData/evaluate/constant/divideByZero.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("equals.kt")
|
||||
public void testEquals() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/constant/equals.kt");
|
||||
doConstantTest(fileName);
|
||||
runTest("compiler/testData/evaluate/constant/equals.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("exceptionWhenEvaluate.kt")
|
||||
public void testExceptionWhenEvaluate() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/constant/exceptionWhenEvaluate.kt");
|
||||
doConstantTest(fileName);
|
||||
runTest("compiler/testData/evaluate/constant/exceptionWhenEvaluate.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("finalProperty.kt")
|
||||
public void testFinalProperty() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/constant/finalProperty.kt");
|
||||
doConstantTest(fileName);
|
||||
runTest("compiler/testData/evaluate/constant/finalProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("float.kt")
|
||||
public void testFloat() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/constant/float.kt");
|
||||
doConstantTest(fileName);
|
||||
runTest("compiler/testData/evaluate/constant/float.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("floatsAndDoubles.kt")
|
||||
public void testFloatsAndDoubles() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/constant/floatsAndDoubles.kt");
|
||||
doConstantTest(fileName);
|
||||
runTest("compiler/testData/evaluate/constant/floatsAndDoubles.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("integer.kt")
|
||||
public void testInteger() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/constant/integer.kt");
|
||||
doConstantTest(fileName);
|
||||
runTest("compiler/testData/evaluate/constant/integer.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("integerOperations.kt")
|
||||
public void testIntegerOperations() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/constant/integerOperations.kt");
|
||||
doConstantTest(fileName);
|
||||
runTest("compiler/testData/evaluate/constant/integerOperations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("integers.kt")
|
||||
public void testIntegers() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/constant/integers.kt");
|
||||
doConstantTest(fileName);
|
||||
runTest("compiler/testData/evaluate/constant/integers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localVal.kt")
|
||||
public void testLocalVal() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/constant/localVal.kt");
|
||||
doConstantTest(fileName);
|
||||
runTest("compiler/testData/evaluate/constant/localVal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localVar.kt")
|
||||
public void testLocalVar() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/constant/localVar.kt");
|
||||
doConstantTest(fileName);
|
||||
runTest("compiler/testData/evaluate/constant/localVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonFinalProperty.kt")
|
||||
public void testNonFinalProperty() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/constant/nonFinalProperty.kt");
|
||||
doConstantTest(fileName);
|
||||
runTest("compiler/testData/evaluate/constant/nonFinalProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("objectProperty.kt")
|
||||
public void testObjectProperty() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/constant/objectProperty.kt");
|
||||
doConstantTest(fileName);
|
||||
runTest("compiler/testData/evaluate/constant/objectProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("strings.kt")
|
||||
public void testStrings() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/constant/strings.kt");
|
||||
doConstantTest(fileName);
|
||||
runTest("compiler/testData/evaluate/constant/strings.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelVal.kt")
|
||||
public void testTopLevelVal() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/constant/topLevelVal.kt");
|
||||
doConstantTest(fileName);
|
||||
runTest("compiler/testData/evaluate/constant/topLevelVal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelVar.kt")
|
||||
public void testTopLevelVar() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/constant/topLevelVar.kt");
|
||||
doConstantTest(fileName);
|
||||
runTest("compiler/testData/evaluate/constant/topLevelVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unaryMinusIndepWoExpType.kt")
|
||||
public void testUnaryMinusIndepWoExpType() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/constant/unaryMinusIndepWoExpType.kt");
|
||||
doConstantTest(fileName);
|
||||
runTest("compiler/testData/evaluate/constant/unaryMinusIndepWoExpType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unaryMinusIndependentExpType.kt")
|
||||
public void testUnaryMinusIndependentExpType() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/constant/unaryMinusIndependentExpType.kt");
|
||||
doConstantTest(fileName);
|
||||
runTest("compiler/testData/evaluate/constant/unaryMinusIndependentExpType.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -158,38 +141,37 @@ public class CompileTimeConstantEvaluatorTestGenerated extends AbstractCompileTi
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class IsPure extends AbstractCompileTimeConstantEvaluatorTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doIsPureTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInIsPure() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/evaluate/isPure"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("innerToType.kt")
|
||||
public void testInnerToType() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/isPure/innerToType.kt");
|
||||
doIsPureTest(fileName);
|
||||
runTest("compiler/testData/evaluate/isPure/innerToType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("namedConstants.kt")
|
||||
public void testNamedConstants() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/isPure/namedConstants.kt");
|
||||
doIsPureTest(fileName);
|
||||
runTest("compiler/testData/evaluate/isPure/namedConstants.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("toType.kt")
|
||||
public void testToType() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/isPure/toType.kt");
|
||||
doIsPureTest(fileName);
|
||||
runTest("compiler/testData/evaluate/isPure/toType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unaryMinusIndepWoExpType.kt")
|
||||
public void testUnaryMinusIndepWoExpType() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/isPure/unaryMinusIndepWoExpType.kt");
|
||||
doIsPureTest(fileName);
|
||||
runTest("compiler/testData/evaluate/isPure/unaryMinusIndepWoExpType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unaryMinusIndependentExpType.kt")
|
||||
public void testUnaryMinusIndependentExpType() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/isPure/unaryMinusIndependentExpType.kt");
|
||||
doIsPureTest(fileName);
|
||||
runTest("compiler/testData/evaluate/isPure/unaryMinusIndependentExpType.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -197,32 +179,32 @@ public class CompileTimeConstantEvaluatorTestGenerated extends AbstractCompileTi
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class UsesVariableAsConstant extends AbstractCompileTimeConstantEvaluatorTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doUsesVariableAsConstantTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInUsesVariableAsConstant() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/evaluate/usesVariableAsConstant"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("binaryTypes.kt")
|
||||
public void testBinaryTypes() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/usesVariableAsConstant/binaryTypes.kt");
|
||||
doUsesVariableAsConstantTest(fileName);
|
||||
runTest("compiler/testData/evaluate/usesVariableAsConstant/binaryTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("NamedConstants.kt")
|
||||
public void testNamedConstants() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/usesVariableAsConstant/NamedConstants.kt");
|
||||
doUsesVariableAsConstantTest(fileName);
|
||||
runTest("compiler/testData/evaluate/usesVariableAsConstant/NamedConstants.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("OtherTypes.kt")
|
||||
public void testOtherTypes() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/usesVariableAsConstant/OtherTypes.kt");
|
||||
doUsesVariableAsConstantTest(fileName);
|
||||
runTest("compiler/testData/evaluate/usesVariableAsConstant/OtherTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleTypes.kt")
|
||||
public void testSimpleTypes() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/evaluate/usesVariableAsConstant/simpleTypes.kt");
|
||||
doUsesVariableAsConstantTest(fileName);
|
||||
runTest("compiler/testData/evaluate/usesVariableAsConstant/simpleTypes.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+209
-250
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user