And one more split test

This commit is contained in:
Valentin Kipyatkov
2016-08-28 11:11:46 +03:00
parent be94fe76f9
commit dc1f2d5b5f
6 changed files with 31 additions and 19 deletions
@@ -1,31 +1,17 @@
Searched inheritors of pack.A
Searched inheritors of pack.B
Searched inheritors of pack.C
Searched references to JavaClass.getA() in Kotlin files
Searched references to a in Kotlin files
Searched references to a in Kotlin files
Searched references to a1 in Kotlin files
Searched references to f() in Kotlin files
Searched references to g() in Kotlin files
Searched references to h() in Kotlin files
Searched references to list in Kotlin files
Searched references to listOfA() in Kotlin files
Searched references to pack.A
Searched references to pack.B
Searched references to pack.C
Searched references to pack.C.component1() in Kotlin files
Searched references to parameter a in B() in Kotlin files
Searched references to parameter a in null in Kotlin files
Searched references to parameter b in pack.f() in Kotlin files
Searched references to parameter c in pack.f() in Kotlin files
Used plain search in LocalSearchScope:
CLASS:A
FUN:ext1
FUN:ext1
FUN:x
KtWhenEntry "else"
KtWhenEntry "is A"
Used plain search in LocalSearchScope:
CLASS:B
Used plain search in LocalSearchScope:
CLASS:C
KtWhenEntry "is A"
@@ -14,6 +14,4 @@
[dataClass.2.kt] Value read 5 a.n
[dataClass.2.kt] Value read 53 val (x, y) = o
[dataClass.2.kt] Value read 8 val (x, y, z) = a
[dataClass.2.kt] Value read 9 val (x1, y1, z1) = f()
[dataClass.3.kt] Value read 12 val (x, y, z) = a
[dataClass.3.kt] Value read 15 val (x1, y1, z1) = a1
[dataClass.2.kt] Value read 9 val (x1, y1, z1) = f()
@@ -1,5 +1,7 @@
package pack
// PSI_ELEMENT: org.jetbrains.kotlin.psi.KtParameter
// OPTIONS: usages
data class A(val <caret>x: Int, val y: Int, val z: String)
data class B(val a: A, val n: Int)
class C {
@@ -0,0 +1,18 @@
Searched inheritors of A
Searched inheritors of B
Searched inheritors of C
Searched references to A
Searched references to B
Searched references to C
Searched references to C.component1() in Kotlin files
Searched references to a in Kotlin files
Searched references to a1 in Kotlin files
Searched references to parameter a in B() in Kotlin files
Searched references to parameter b in f() in Kotlin files
Searched references to parameter c in f() in Kotlin files
Used plain search in LocalSearchScope:
CLASS:A
Used plain search in LocalSearchScope:
CLASS:B
Used plain search in LocalSearchScope:
CLASS:C
@@ -0,0 +1,2 @@
Value read 14 val (x, y, z) = a
Value read 17 val (x1, y1, z1) = a1
@@ -200,6 +200,12 @@ public class FindUsagesTestGenerated extends AbstractFindUsagesTest {
doTest(fileName);
}
@TestMetadata("dataClassInsideDataClass.0.kt")
public void testDataClassInsideDataClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/findUsages/kotlin/conventions/components/dataClassInsideDataClass.0.kt");
doTest(fileName);
}
@TestMetadata("extensionComponentFun.0.kt")
public void testExtensionComponentFun() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/findUsages/kotlin/conventions/components/extensionComponentFun.0.kt");