KT-61890 [AA] Add testdata to ensure KDoc completion support in IDE

Completion in the IDE relies on correct scopes for KDoc positions.
So we add testData for `KtScopeProvider` and `ContextCollector`
to ensure that there are no regressions
This commit is contained in:
Roman Golyshev
2023-11-14 13:49:06 +01:00
committed by teamcity
parent 1b1df9f0db
commit 4f136cde31
14 changed files with 1084 additions and 0 deletions
@@ -88,6 +88,18 @@ public class FirStandaloneNormalAnalysisSourceModuleScopeContextForPositionTestG
runTest("analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/errorType.kt");
}
@Test
@TestMetadata("kDocOnClass.kt")
public void testKDocOnClass() throws Exception {
runTest("analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/kDocOnClass.kt");
}
@Test
@TestMetadata("kDocOnFunction.kt")
public void testKDocOnFunction() throws Exception {
runTest("analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/kDocOnFunction.kt");
}
@Test
@TestMetadata("kDocWithoutDeclaration.kt")
public void testKDocWithoutDeclaration() throws Exception {