FIR IDE: add incremental analysis test for function in companion object

This commit is contained in:
Ilya Kirillov
2020-12-30 20:10:31 +01:00
parent e63d084cdc
commit 4d07eb27bb
3 changed files with 19 additions and 0 deletions
@@ -0,0 +1,9 @@
class X {
companion object {
fun x() {
a<caret>
}
}
}
// OUT_OF_BLOCK: false
@@ -29,6 +29,11 @@ public class FileStructureAndOutOfBlockModificationTrackerConsistencyTestGenerat
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-frontend-fir/idea-fir-low-level-api/testdata/outOfBlockProjectWide"), Pattern.compile("^(.+)\\.kt$"), null, true);
}
@TestMetadata("funInCompanionObject.kt")
public void testFunInCompanionObject() throws Exception {
runTest("idea/idea-frontend-fir/idea-fir-low-level-api/testdata/outOfBlockProjectWide/funInCompanionObject.kt");
}
@TestMetadata("localFun.kt")
public void testLocalFun() throws Exception {
runTest("idea/idea-frontend-fir/idea-fir-low-level-api/testdata/outOfBlockProjectWide/localFun.kt");
@@ -29,6 +29,11 @@ public class ProjectWideOutOfBlockKotlinModificationTrackerTestGenerated extends
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-frontend-fir/idea-fir-low-level-api/testdata/outOfBlockProjectWide"), Pattern.compile("^(.+)\\.kt$"), null, true);
}
@TestMetadata("funInCompanionObject.kt")
public void testFunInCompanionObject() throws Exception {
runTest("idea/idea-frontend-fir/idea-fir-low-level-api/testdata/outOfBlockProjectWide/funInCompanionObject.kt");
}
@TestMetadata("localFun.kt")
public void testLocalFun() throws Exception {
runTest("idea/idea-frontend-fir/idea-fir-low-level-api/testdata/outOfBlockProjectWide/localFun.kt");