FIR IDE: add test cases for file structure tests

This commit is contained in:
Ilya Kirillov
2021-03-01 18:20:42 +01:00
parent ded24c708d
commit f2db93a9d2
4 changed files with 34 additions and 0 deletions
@@ -0,0 +1,7 @@
class A {
fun x() {
<caret>
}
}
// OUT_OF_BLOCK: false
@@ -0,0 +1,7 @@
class A {
val x: Int = run {
<caret>
}
}
// OUT_OF_BLOCK: false
@@ -39,6 +39,16 @@ public class FileStructureAndOutOfBlockModificationTrackerConsistencyTestGenerat
runTest("idea/idea-frontend-fir/idea-fir-low-level-api/testdata/outOfBlockProjectWide/localFun.kt");
}
@TestMetadata("memberFunWithType.kt")
public void testMemberFunWithType() throws Exception {
runTest("idea/idea-frontend-fir/idea-fir-low-level-api/testdata/outOfBlockProjectWide/memberFunWithType.kt");
}
@TestMetadata("memberPropertyWithType.kt")
public void testMemberPropertyWithType() throws Exception {
runTest("idea/idea-frontend-fir/idea-fir-low-level-api/testdata/outOfBlockProjectWide/memberPropertyWithType.kt");
}
@TestMetadata("topLevelExpressionBodyFunWithType.kt")
public void testTopLevelExpressionBodyFunWithType() throws Exception {
runTest("idea/idea-frontend-fir/idea-fir-low-level-api/testdata/outOfBlockProjectWide/topLevelExpressionBodyFunWithType.kt");
@@ -39,6 +39,16 @@ public class ProjectWideOutOfBlockKotlinModificationTrackerTestGenerated extends
runTest("idea/idea-frontend-fir/idea-fir-low-level-api/testdata/outOfBlockProjectWide/localFun.kt");
}
@TestMetadata("memberFunWithType.kt")
public void testMemberFunWithType() throws Exception {
runTest("idea/idea-frontend-fir/idea-fir-low-level-api/testdata/outOfBlockProjectWide/memberFunWithType.kt");
}
@TestMetadata("memberPropertyWithType.kt")
public void testMemberPropertyWithType() throws Exception {
runTest("idea/idea-frontend-fir/idea-fir-low-level-api/testdata/outOfBlockProjectWide/memberPropertyWithType.kt");
}
@TestMetadata("topLevelExpressionBodyFunWithType.kt")
public void testTopLevelExpressionBodyFunWithType() throws Exception {
runTest("idea/idea-frontend-fir/idea-fir-low-level-api/testdata/outOfBlockProjectWide/topLevelExpressionBodyFunWithType.kt");