[AA] Add tests for scope context for position
KTIJ-27007
This commit is contained in:
committed by
Space Team
parent
6d00dcf972
commit
752ea6fd98
+30
@@ -46,12 +46,36 @@ public class FirStandaloneNormalAnalysisSourceModuleScopeContextForPositionTestG
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotationWithoutDeclaration.kt")
|
||||
public void testAnnotationWithoutDeclaration() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/annotationWithoutDeclaration.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("contextReceiver.kt")
|
||||
public void testContextReceiver() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/contextReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("contextReceiverWithoutDeclaration.kt")
|
||||
public void testContextReceiverWithoutDeclaration() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/contextReceiverWithoutDeclaration.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("emptyContextForPositionInImportDirective.kt")
|
||||
public void testEmptyContextForPositionInImportDirective() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/emptyContextForPositionInImportDirective.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("emptyContextForPositionInPackageDirective.kt")
|
||||
public void testEmptyContextForPositionInPackageDirective() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/emptyContextForPositionInPackageDirective.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumEntry.kt")
|
||||
public void testEnumEntry() throws Exception {
|
||||
@@ -64,6 +88,12 @@ public class FirStandaloneNormalAnalysisSourceModuleScopeContextForPositionTestG
|
||||
runTest("analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/errorType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kDocWithoutDeclaration.kt")
|
||||
public void testKDocWithoutDeclaration() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/kDocWithoutDeclaration.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localTypeScope.kt")
|
||||
public void testLocalTypeScope() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user