Find Usages: Rename test class and move test data

This commit is contained in:
Alexey Sedunov
2015-06-06 02:40:20 +03:00
parent 81440815e1
commit 2a73247566
47 changed files with 41 additions and 31 deletions
@@ -0,0 +1,10 @@
// PSI_ELEMENT: com.intellij.psi.PsiClass
// OPTIONS: usages
// FIND_BY_REF
package usages
import library.Foo
fun test() {
val foo: <caret>Foo
}
@@ -0,0 +1,2 @@
Local variable declaration (9: 14) val foo: Foo
Usage in import (6: 16) import library.Foo
@@ -0,0 +1,10 @@
// PSI_ELEMENT: com.intellij.psi.PsiMethod
// OPTIONS: usages
// FIND_BY_REF
package usages
import library.Foo
fun test() {
<caret>Foo(1)
}
@@ -0,0 +1 @@
New instance creation (9: 5) Foo(1)
@@ -0,0 +1,10 @@
// PSI_ELEMENT: com.intellij.psi.PsiField
// OPTIONS: usages
// FIND_BY_REF
package usages
import library.Foo
fun test() {
Foo().<caret>x = 1
}
@@ -0,0 +1 @@
Value write (9: 11) Foo().x = 1
@@ -0,0 +1,10 @@
// PSI_ELEMENT: com.intellij.psi.PsiMethod
// OPTIONS: usages
// FIND_BY_REF
package usages
import library.Foo
fun test() {
Foo().<caret>bar(1)
}
@@ -0,0 +1 @@
Function call (9: 11) Foo().bar(1)
@@ -0,0 +1,10 @@
// PSI_ELEMENT: com.intellij.psi.PsiField
// OPTIONS: usages
// FIND_BY_REF
package usages
import library.Foo
fun test() {
Foo.<caret>X = 1
}
@@ -0,0 +1 @@
Value write (9: 9) Foo.X = 1
@@ -0,0 +1,10 @@
// PSI_ELEMENT: com.intellij.psi.PsiMethod
// OPTIONS: usages
// FIND_BY_REF
package usages
import library.Foo
fun test() {
Foo.<caret>baz(1)
}
@@ -0,0 +1 @@
Function call (9: 9) Foo.baz(1)