[AA] Add tests for KDoc reference resolution of non-static callables
^KTIJ-26003
This commit is contained in:
committed by
Space Team
parent
2acee69908
commit
3dbae89cdd
+164
@@ -1334,6 +1334,18 @@ public class Fe10IdeNormalAnalysisSourceModuleReferenceResolveTestGenerated exte
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/kDoc/javaDeclarations"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("FunctionQualifiedWithJavaSubclass.kt")
|
||||
public void testFunctionQualifiedWithJavaSubclass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/javaDeclarations/FunctionQualifiedWithJavaSubclass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("FunctionQualifiedWithKotlinSubclass.kt")
|
||||
public void testFunctionQualifiedWithKotlinSubclass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/javaDeclarations/FunctionQualifiedWithKotlinSubclass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("StaticFieldQualified.kt")
|
||||
public void testStaticFieldQualified() throws Exception {
|
||||
@@ -1508,6 +1520,146 @@ public class Fe10IdeNormalAnalysisSourceModuleReferenceResolveTestGenerated exte
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/kDoc/qualified"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Callables {
|
||||
@Test
|
||||
public void testAllFilesPresentInCallables() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromClass.kt")
|
||||
public void testFunctionFromClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromInterface.kt")
|
||||
public void testFunctionFromInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperClass.kt")
|
||||
public void testFunctionFromSuperClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromSuperClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperInterface.kt")
|
||||
public void testFunctionFromSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperSuperInterface.kt")
|
||||
public void testFunctionFromSuperSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromSuperSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromClass.kt")
|
||||
public void testPropertyFromClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromInterface.kt")
|
||||
public void testPropertyFromInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperClass.kt")
|
||||
public void testPropertyFromSuperClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromSuperClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperInterface.kt")
|
||||
public void testPropertyFromSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperSuperInterface.kt")
|
||||
public void testPropertyFromSuperSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromSuperSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class NotImported {
|
||||
@Test
|
||||
public void testAllFilesPresentInNotImported() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromClass.kt")
|
||||
public void testFunctionFromClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromInterface.kt")
|
||||
public void testFunctionFromInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperClass.kt")
|
||||
public void testFunctionFromSuperClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromSuperClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperInterface.kt")
|
||||
public void testFunctionFromSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperSuperInterface.kt")
|
||||
public void testFunctionFromSuperSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromSuperSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromClass.kt")
|
||||
public void testPropertyFromClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromInterface.kt")
|
||||
public void testPropertyFromInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperClass.kt")
|
||||
public void testPropertyFromSuperClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromSuperClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperInterface.kt")
|
||||
public void testPropertyFromSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperSuperInterface.kt")
|
||||
public void testPropertyFromSuperSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromSuperSuperInterface.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/conflictResolution")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@@ -1683,6 +1835,18 @@ public class Fe10IdeNormalAnalysisSourceModuleReferenceResolveTestGenerated exte
|
||||
public void testErrorInLatestQualifer() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/withErrors/errorInLatestQualifer.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invalidPropertyAccessOnFunction.kt")
|
||||
public void testInvalidPropertyAccessOnFunction() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/withErrors/invalidPropertyAccessOnFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invalidPropertyAccessOnFunctionFromSuperClass.kt")
|
||||
public void testInvalidPropertyAccessOnFunctionFromSuperClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/withErrors/invalidPropertyAccessOnFunctionFromSuperClass.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+164
@@ -1334,6 +1334,18 @@ public class FirIdeDependentAnalysisSourceModuleReferenceResolveTestGenerated ex
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/kDoc/javaDeclarations"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("FunctionQualifiedWithJavaSubclass.kt")
|
||||
public void testFunctionQualifiedWithJavaSubclass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/javaDeclarations/FunctionQualifiedWithJavaSubclass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("FunctionQualifiedWithKotlinSubclass.kt")
|
||||
public void testFunctionQualifiedWithKotlinSubclass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/javaDeclarations/FunctionQualifiedWithKotlinSubclass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("StaticFieldQualified.kt")
|
||||
public void testStaticFieldQualified() throws Exception {
|
||||
@@ -1508,6 +1520,146 @@ public class FirIdeDependentAnalysisSourceModuleReferenceResolveTestGenerated ex
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/kDoc/qualified"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Callables {
|
||||
@Test
|
||||
public void testAllFilesPresentInCallables() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromClass.kt")
|
||||
public void testFunctionFromClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromInterface.kt")
|
||||
public void testFunctionFromInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperClass.kt")
|
||||
public void testFunctionFromSuperClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromSuperClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperInterface.kt")
|
||||
public void testFunctionFromSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperSuperInterface.kt")
|
||||
public void testFunctionFromSuperSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromSuperSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromClass.kt")
|
||||
public void testPropertyFromClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromInterface.kt")
|
||||
public void testPropertyFromInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperClass.kt")
|
||||
public void testPropertyFromSuperClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromSuperClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperInterface.kt")
|
||||
public void testPropertyFromSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperSuperInterface.kt")
|
||||
public void testPropertyFromSuperSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromSuperSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class NotImported {
|
||||
@Test
|
||||
public void testAllFilesPresentInNotImported() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromClass.kt")
|
||||
public void testFunctionFromClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromInterface.kt")
|
||||
public void testFunctionFromInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperClass.kt")
|
||||
public void testFunctionFromSuperClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromSuperClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperInterface.kt")
|
||||
public void testFunctionFromSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperSuperInterface.kt")
|
||||
public void testFunctionFromSuperSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromSuperSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromClass.kt")
|
||||
public void testPropertyFromClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromInterface.kt")
|
||||
public void testPropertyFromInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperClass.kt")
|
||||
public void testPropertyFromSuperClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromSuperClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperInterface.kt")
|
||||
public void testPropertyFromSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperSuperInterface.kt")
|
||||
public void testPropertyFromSuperSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromSuperSuperInterface.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/conflictResolution")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@@ -1683,6 +1835,18 @@ public class FirIdeDependentAnalysisSourceModuleReferenceResolveTestGenerated ex
|
||||
public void testErrorInLatestQualifer() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/withErrors/errorInLatestQualifer.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invalidPropertyAccessOnFunction.kt")
|
||||
public void testInvalidPropertyAccessOnFunction() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/withErrors/invalidPropertyAccessOnFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invalidPropertyAccessOnFunctionFromSuperClass.kt")
|
||||
public void testInvalidPropertyAccessOnFunctionFromSuperClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/withErrors/invalidPropertyAccessOnFunctionFromSuperClass.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+152
@@ -1218,6 +1218,18 @@ public class FirIdeNormalAnalysisLibrarySourceModuleReferenceResolveTestGenerate
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/kDoc/javaDeclarations"), Pattern.compile("^([^.]+)\\.kt$"), null, true, "withErrors");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("FunctionQualifiedWithJavaSubclass.kt")
|
||||
public void testFunctionQualifiedWithJavaSubclass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/javaDeclarations/FunctionQualifiedWithJavaSubclass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("FunctionQualifiedWithKotlinSubclass.kt")
|
||||
public void testFunctionQualifiedWithKotlinSubclass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/javaDeclarations/FunctionQualifiedWithKotlinSubclass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("StaticFieldQualified.kt")
|
||||
public void testStaticFieldQualified() throws Exception {
|
||||
@@ -1392,6 +1404,146 @@ public class FirIdeNormalAnalysisLibrarySourceModuleReferenceResolveTestGenerate
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/kDoc/qualified"), Pattern.compile("^([^.]+)\\.kt$"), null, true, "withErrors");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Callables {
|
||||
@Test
|
||||
public void testAllFilesPresentInCallables() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables"), Pattern.compile("^([^.]+)\\.kt$"), null, true, "withErrors");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromClass.kt")
|
||||
public void testFunctionFromClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromInterface.kt")
|
||||
public void testFunctionFromInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperClass.kt")
|
||||
public void testFunctionFromSuperClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromSuperClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperInterface.kt")
|
||||
public void testFunctionFromSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperSuperInterface.kt")
|
||||
public void testFunctionFromSuperSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromSuperSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromClass.kt")
|
||||
public void testPropertyFromClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromInterface.kt")
|
||||
public void testPropertyFromInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperClass.kt")
|
||||
public void testPropertyFromSuperClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromSuperClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperInterface.kt")
|
||||
public void testPropertyFromSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperSuperInterface.kt")
|
||||
public void testPropertyFromSuperSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromSuperSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class NotImported {
|
||||
@Test
|
||||
public void testAllFilesPresentInNotImported() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported"), Pattern.compile("^([^.]+)\\.kt$"), null, true, "withErrors");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromClass.kt")
|
||||
public void testFunctionFromClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromInterface.kt")
|
||||
public void testFunctionFromInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperClass.kt")
|
||||
public void testFunctionFromSuperClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromSuperClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperInterface.kt")
|
||||
public void testFunctionFromSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperSuperInterface.kt")
|
||||
public void testFunctionFromSuperSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromSuperSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromClass.kt")
|
||||
public void testPropertyFromClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromInterface.kt")
|
||||
public void testPropertyFromInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperClass.kt")
|
||||
public void testPropertyFromSuperClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromSuperClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperInterface.kt")
|
||||
public void testPropertyFromSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperSuperInterface.kt")
|
||||
public void testPropertyFromSuperSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromSuperSuperInterface.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/conflictResolution")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+164
@@ -1334,6 +1334,18 @@ public class FirIdeNormalAnalysisSourceModuleReferenceResolveTestGenerated exten
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/kDoc/javaDeclarations"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("FunctionQualifiedWithJavaSubclass.kt")
|
||||
public void testFunctionQualifiedWithJavaSubclass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/javaDeclarations/FunctionQualifiedWithJavaSubclass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("FunctionQualifiedWithKotlinSubclass.kt")
|
||||
public void testFunctionQualifiedWithKotlinSubclass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/javaDeclarations/FunctionQualifiedWithKotlinSubclass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("StaticFieldQualified.kt")
|
||||
public void testStaticFieldQualified() throws Exception {
|
||||
@@ -1508,6 +1520,146 @@ public class FirIdeNormalAnalysisSourceModuleReferenceResolveTestGenerated exten
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/kDoc/qualified"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Callables {
|
||||
@Test
|
||||
public void testAllFilesPresentInCallables() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromClass.kt")
|
||||
public void testFunctionFromClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromInterface.kt")
|
||||
public void testFunctionFromInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperClass.kt")
|
||||
public void testFunctionFromSuperClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromSuperClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperInterface.kt")
|
||||
public void testFunctionFromSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperSuperInterface.kt")
|
||||
public void testFunctionFromSuperSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromSuperSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromClass.kt")
|
||||
public void testPropertyFromClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromInterface.kt")
|
||||
public void testPropertyFromInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperClass.kt")
|
||||
public void testPropertyFromSuperClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromSuperClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperInterface.kt")
|
||||
public void testPropertyFromSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperSuperInterface.kt")
|
||||
public void testPropertyFromSuperSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromSuperSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class NotImported {
|
||||
@Test
|
||||
public void testAllFilesPresentInNotImported() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromClass.kt")
|
||||
public void testFunctionFromClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromInterface.kt")
|
||||
public void testFunctionFromInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperClass.kt")
|
||||
public void testFunctionFromSuperClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromSuperClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperInterface.kt")
|
||||
public void testFunctionFromSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperSuperInterface.kt")
|
||||
public void testFunctionFromSuperSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromSuperSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromClass.kt")
|
||||
public void testPropertyFromClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromInterface.kt")
|
||||
public void testPropertyFromInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperClass.kt")
|
||||
public void testPropertyFromSuperClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromSuperClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperInterface.kt")
|
||||
public void testPropertyFromSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperSuperInterface.kt")
|
||||
public void testPropertyFromSuperSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromSuperSuperInterface.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/conflictResolution")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@@ -1683,6 +1835,18 @@ public class FirIdeNormalAnalysisSourceModuleReferenceResolveTestGenerated exten
|
||||
public void testErrorInLatestQualifer() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/withErrors/errorInLatestQualifer.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invalidPropertyAccessOnFunction.kt")
|
||||
public void testInvalidPropertyAccessOnFunction() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/withErrors/invalidPropertyAccessOnFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invalidPropertyAccessOnFunctionFromSuperClass.kt")
|
||||
public void testInvalidPropertyAccessOnFunctionFromSuperClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/withErrors/invalidPropertyAccessOnFunctionFromSuperClass.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+164
@@ -1334,6 +1334,18 @@ public class FirStandaloneNormalAnalysisSourceModuleReferenceResolveTestGenerate
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/kDoc/javaDeclarations"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("FunctionQualifiedWithJavaSubclass.kt")
|
||||
public void testFunctionQualifiedWithJavaSubclass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/javaDeclarations/FunctionQualifiedWithJavaSubclass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("FunctionQualifiedWithKotlinSubclass.kt")
|
||||
public void testFunctionQualifiedWithKotlinSubclass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/javaDeclarations/FunctionQualifiedWithKotlinSubclass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("StaticFieldQualified.kt")
|
||||
public void testStaticFieldQualified() throws Exception {
|
||||
@@ -1508,6 +1520,146 @@ public class FirStandaloneNormalAnalysisSourceModuleReferenceResolveTestGenerate
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/kDoc/qualified"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Callables {
|
||||
@Test
|
||||
public void testAllFilesPresentInCallables() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromClass.kt")
|
||||
public void testFunctionFromClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromInterface.kt")
|
||||
public void testFunctionFromInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperClass.kt")
|
||||
public void testFunctionFromSuperClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromSuperClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperInterface.kt")
|
||||
public void testFunctionFromSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperSuperInterface.kt")
|
||||
public void testFunctionFromSuperSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromSuperSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromClass.kt")
|
||||
public void testPropertyFromClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromInterface.kt")
|
||||
public void testPropertyFromInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperClass.kt")
|
||||
public void testPropertyFromSuperClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromSuperClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperInterface.kt")
|
||||
public void testPropertyFromSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperSuperInterface.kt")
|
||||
public void testPropertyFromSuperSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromSuperSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class NotImported {
|
||||
@Test
|
||||
public void testAllFilesPresentInNotImported() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromClass.kt")
|
||||
public void testFunctionFromClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromInterface.kt")
|
||||
public void testFunctionFromInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperClass.kt")
|
||||
public void testFunctionFromSuperClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromSuperClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperInterface.kt")
|
||||
public void testFunctionFromSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperSuperInterface.kt")
|
||||
public void testFunctionFromSuperSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromSuperSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromClass.kt")
|
||||
public void testPropertyFromClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromInterface.kt")
|
||||
public void testPropertyFromInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperClass.kt")
|
||||
public void testPropertyFromSuperClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromSuperClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperInterface.kt")
|
||||
public void testPropertyFromSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperSuperInterface.kt")
|
||||
public void testPropertyFromSuperSuperInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromSuperSuperInterface.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/conflictResolution")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@@ -1683,6 +1835,18 @@ public class FirStandaloneNormalAnalysisSourceModuleReferenceResolveTestGenerate
|
||||
public void testErrorInLatestQualifer() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/withErrors/errorInLatestQualifer.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invalidPropertyAccessOnFunction.kt")
|
||||
public void testInvalidPropertyAccessOnFunction() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/withErrors/invalidPropertyAccessOnFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invalidPropertyAccessOnFunctionFromSuperClass.kt")
|
||||
public void testInvalidPropertyAccessOnFunctionFromSuperClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/withErrors/invalidPropertyAccessOnFunctionFromSuperClass.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
// FILE: main.kt
|
||||
import dependency.JavaChild
|
||||
|
||||
/**
|
||||
* [JavaChild.<caret>myFun]
|
||||
*/
|
||||
fun test() {}
|
||||
|
||||
// FILE: dependency/JavaBase.java
|
||||
package dependency;
|
||||
|
||||
public class JavaBase {
|
||||
public void myFun() {}
|
||||
}
|
||||
|
||||
// FILE: dependency/JavaChild.java
|
||||
package dependency;
|
||||
|
||||
public class JavaChild extends JavaBase {
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in dependency.JavaBase) open fun myFun()
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
// FILE: main.kt
|
||||
import dependency.JavaBase
|
||||
|
||||
class KotlinChild : JavaBase()
|
||||
|
||||
/**
|
||||
* [KotlinChild.<caret>myFun]
|
||||
*/
|
||||
fun test() {}
|
||||
|
||||
// FILE: dependency/JavaBase.java
|
||||
package dependency;
|
||||
|
||||
public class JavaBase {
|
||||
public void myFun() {}
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in dependency.JavaBase) open fun myFun()
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
class Foo {
|
||||
fun foo() {}
|
||||
}
|
||||
|
||||
/**
|
||||
* [Foo.<caret>foo]
|
||||
*/
|
||||
fun usage() {}
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in Foo) fun foo()
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
interface Foo {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
/**
|
||||
* [Foo.<caret>foo]
|
||||
*/
|
||||
fun usage() {}
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in Foo) fun foo()
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
open class Bar {
|
||||
fun foo() {}
|
||||
}
|
||||
|
||||
class Foo : Bar()
|
||||
|
||||
/**
|
||||
* [Foo.<caret>foo]
|
||||
*/
|
||||
fun usage() {}
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in Bar) fun foo()
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
interface Bar {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
abstract class Foo : Bar
|
||||
|
||||
/**
|
||||
* [Foo.<caret>foo]
|
||||
*/
|
||||
fun usage() {}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in Bar) fun foo()
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
interface Baz {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
abstract class Bar : Baz
|
||||
|
||||
abstract class Foo : Bar()
|
||||
|
||||
/**
|
||||
* [Foo.<caret>foo]
|
||||
*/
|
||||
fun usage() {}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in Baz) fun foo()
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// FILE: Foo.kt
|
||||
package foo
|
||||
|
||||
class Foo {
|
||||
fun foo() {}
|
||||
}
|
||||
|
||||
// FILE: main.kt
|
||||
package test
|
||||
|
||||
/**
|
||||
* [foo.Foo.<caret>foo]
|
||||
*/
|
||||
fun usage() {}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in foo.Foo) fun foo()
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// FILE: Foo.kt
|
||||
package foo
|
||||
|
||||
interface Foo {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
// FILE: main.kt
|
||||
package test
|
||||
|
||||
/**
|
||||
* [foo.Foo.<caret>foo]
|
||||
*/
|
||||
fun usage() {}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in foo.Foo) fun foo()
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
// FILE: Foo.kt
|
||||
package foo
|
||||
|
||||
open class Bar {
|
||||
fun foo() {}
|
||||
}
|
||||
|
||||
class Foo : Bar()
|
||||
|
||||
// FILE: main.kt
|
||||
package test
|
||||
|
||||
/**
|
||||
* [foo.Foo.<caret>foo]
|
||||
*/
|
||||
fun usage() {}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in foo.Bar) fun foo()
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
// FILE: Foo.kt
|
||||
package foo
|
||||
|
||||
interface Bar {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
abstract class Foo : Bar
|
||||
|
||||
// FILE: main.kt
|
||||
package test
|
||||
|
||||
/**
|
||||
* [foo.Foo.<caret>foo]
|
||||
*/
|
||||
fun usage() {}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in foo.Bar) fun foo()
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// FILE: Foo.kt
|
||||
package foo
|
||||
|
||||
interface Baz {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
abstract class Bar : Baz
|
||||
|
||||
abstract class Foo : Bar()
|
||||
|
||||
// FILE: main.kt
|
||||
package test
|
||||
|
||||
/**
|
||||
* [foo.Foo.<caret>foo]
|
||||
*/
|
||||
fun usage() {}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in foo.Baz) fun foo()
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// FILE: Foo.kt
|
||||
package foo
|
||||
|
||||
class Foo {
|
||||
val foo: Int = 5
|
||||
}
|
||||
|
||||
// FILE: main.kt
|
||||
package test
|
||||
|
||||
/**
|
||||
* [foo.Foo.<caret>foo]
|
||||
*/
|
||||
fun usage() {}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in foo.Foo) val foo: kotlin.Int
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// FILE: Foo.kt
|
||||
package foo
|
||||
|
||||
interface Foo {
|
||||
val foo: Int
|
||||
}
|
||||
|
||||
// FILE: main.kt
|
||||
package test
|
||||
|
||||
/**
|
||||
* [foo.Foo.<caret>foo]
|
||||
*/
|
||||
fun usage() {}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in foo.Foo) val foo: kotlin.Int
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
// FILE: Foo.kt
|
||||
package foo
|
||||
|
||||
open class Bar {
|
||||
val foo: Int = 5
|
||||
}
|
||||
|
||||
class Foo : Bar()
|
||||
|
||||
// FILE: main.kt
|
||||
package test
|
||||
|
||||
/**
|
||||
* [foo.Foo.<caret>foo]
|
||||
*/
|
||||
fun usage() {}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in foo.Bar) val foo: kotlin.Int
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
// FILE: Foo.kt
|
||||
package foo
|
||||
|
||||
interface Bar {
|
||||
val foo: Int
|
||||
}
|
||||
|
||||
abstract class Foo : Bar
|
||||
|
||||
// FILE: main.kt
|
||||
package test
|
||||
|
||||
/**
|
||||
* [foo.Foo.<caret>foo]
|
||||
*/
|
||||
fun usage() {}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in foo.Bar) val foo: kotlin.Int
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// FILE: Foo.kt
|
||||
package foo
|
||||
|
||||
interface Baz {
|
||||
val foo: Int
|
||||
}
|
||||
|
||||
abstract class Bar : Baz
|
||||
|
||||
abstract class Foo : Bar()
|
||||
|
||||
// FILE: main.kt
|
||||
package test
|
||||
|
||||
/**
|
||||
* [foo.Foo.<caret>foo]
|
||||
*/
|
||||
fun usage() {}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in foo.Baz) val foo: kotlin.Int
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
class Foo {
|
||||
val foo: Int = 5
|
||||
}
|
||||
|
||||
/**
|
||||
* [Foo.<caret>foo]
|
||||
*/
|
||||
fun usage() {}
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in Foo) val foo: kotlin.Int
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
interface Foo {
|
||||
val foo: Int
|
||||
}
|
||||
|
||||
/**
|
||||
* [Foo.<caret>foo]
|
||||
*/
|
||||
fun usage() {}
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in Foo) val foo: kotlin.Int
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
open class Bar {
|
||||
val foo: Int = 5
|
||||
}
|
||||
|
||||
class Foo : Bar()
|
||||
|
||||
/**
|
||||
* [Foo.<caret>foo]
|
||||
*/
|
||||
fun usage() {}
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in Bar) val foo: kotlin.Int
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
interface Bar {
|
||||
val foo: Int
|
||||
}
|
||||
|
||||
abstract class Foo : Bar
|
||||
|
||||
/**
|
||||
* [Foo.<caret>foo]
|
||||
*/
|
||||
fun usage() {}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in Bar) val foo: kotlin.Int
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
interface Baz {
|
||||
val foo: Int
|
||||
}
|
||||
|
||||
abstract class Bar : Baz
|
||||
|
||||
abstract class Foo : Bar()
|
||||
|
||||
/**
|
||||
* [Foo.<caret>foo]
|
||||
*/
|
||||
fun usage() {}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in Baz) val foo: kotlin.Int
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
class A {
|
||||
fun toName(): String = ""
|
||||
}
|
||||
|
||||
/**
|
||||
* [A.<caret>toName.length]
|
||||
*/
|
||||
fun foo() {}
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in A) fun toName(): kotlin.String
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
open class SuperClass {
|
||||
fun toName(): String = ""
|
||||
}
|
||||
|
||||
class A : SuperClass()
|
||||
|
||||
/**
|
||||
* [A.<caret>toName.length]
|
||||
*/
|
||||
fun foo() {}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in SuperClass) fun toName(): kotlin.String
|
||||
Reference in New Issue
Block a user