[AA] Add additional KDoc reference resolution tests for callables
- This adds KDoc reference resolution tests for callables in nested and inner classes, overloaded functions, and private callables. - Private declarations are visible in KDoc from outside their containing classes. This is in line with K1 KDoc behavior. ^KTIJ-22324
This commit is contained in:
committed by
Space Team
parent
ef484c7518
commit
f04b27b90b
+120
@@ -1617,12 +1617,30 @@ public class FirStandaloneNormalAnalysisSourceModuleReferenceResolveTestGenerate
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromInnerClass.kt")
|
||||
public void testFunctionFromInnerClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromInnerClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromInterface.kt")
|
||||
public void testFunctionFromInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromNestedClass.kt")
|
||||
public void testFunctionFromNestedClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromNestedClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromPrivateNestedClass.kt")
|
||||
public void testFunctionFromPrivateNestedClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromPrivateNestedClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperClass.kt")
|
||||
public void testFunctionFromSuperClass() throws Exception {
|
||||
@@ -1641,18 +1659,60 @@ public class FirStandaloneNormalAnalysisSourceModuleReferenceResolveTestGenerate
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/functionFromSuperSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overloadedFunctionFromClass.kt")
|
||||
public void testOverloadedFunctionFromClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/overloadedFunctionFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overloadedFunctionFromClassWithPrivateOverload.kt")
|
||||
public void testOverloadedFunctionFromClassWithPrivateOverload() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/overloadedFunctionFromClassWithPrivateOverload.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateFunctionFromClass.kt")
|
||||
public void testPrivateFunctionFromClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/privateFunctionFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privatePropertyFromClass.kt")
|
||||
public void testPrivatePropertyFromClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/privatePropertyFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromClass.kt")
|
||||
public void testPropertyFromClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromInnerClass.kt")
|
||||
public void testPropertyFromInnerClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromInnerClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromInterface.kt")
|
||||
public void testPropertyFromInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromNestedClass.kt")
|
||||
public void testPropertyFromNestedClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromNestedClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromPrivateNestedClass.kt")
|
||||
public void testPropertyFromPrivateNestedClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/propertyFromPrivateNestedClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperClass.kt")
|
||||
public void testPropertyFromSuperClass() throws Exception {
|
||||
@@ -1686,12 +1746,30 @@ public class FirStandaloneNormalAnalysisSourceModuleReferenceResolveTestGenerate
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromInnerClass.kt")
|
||||
public void testFunctionFromInnerClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromInnerClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromInterface.kt")
|
||||
public void testFunctionFromInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromNestedClass.kt")
|
||||
public void testFunctionFromNestedClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromNestedClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromPrivateNestedClass.kt")
|
||||
public void testFunctionFromPrivateNestedClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromPrivateNestedClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromSuperClass.kt")
|
||||
public void testFunctionFromSuperClass() throws Exception {
|
||||
@@ -1710,18 +1788,60 @@ public class FirStandaloneNormalAnalysisSourceModuleReferenceResolveTestGenerate
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/functionFromSuperSuperInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overloadedFunctionFromClass.kt")
|
||||
public void testOverloadedFunctionFromClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/overloadedFunctionFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overloadedFunctionFromClassWithPrivateOverload.kt")
|
||||
public void testOverloadedFunctionFromClassWithPrivateOverload() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/overloadedFunctionFromClassWithPrivateOverload.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateFunctionFromClass.kt")
|
||||
public void testPrivateFunctionFromClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/privateFunctionFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privatePropertyFromClass.kt")
|
||||
public void testPrivatePropertyFromClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/privatePropertyFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromClass.kt")
|
||||
public void testPropertyFromClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromInnerClass.kt")
|
||||
public void testPropertyFromInnerClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromInnerClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromInterface.kt")
|
||||
public void testPropertyFromInterface() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromNestedClass.kt")
|
||||
public void testPropertyFromNestedClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromNestedClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromPrivateNestedClass.kt")
|
||||
public void testPropertyFromPrivateNestedClass() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/qualified/callables/notImported/propertyFromPrivateNestedClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyFromSuperClass.kt")
|
||||
public void testPropertyFromSuperClass() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user