Better tests
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
fun foo(xxx: String) {
|
fun foo(xxx: String) {
|
||||||
var xxx = xx<caret>
|
var xxx: Int = xx<caret>
|
||||||
}
|
}
|
||||||
|
|
||||||
// EXIST: { lookupString: "xxx", itemText: "xxx", typeText: "String" }
|
// EXIST: { lookupString: "xxx", itemText: "xxx", typeText: "String" }
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
fun foo() {
|
fun foo() {
|
||||||
var xxx = <caret>
|
var xxx: Int = <caret>
|
||||||
}
|
}
|
||||||
|
|
||||||
// ABSENT: xxx
|
// ABSENT: xxx
|
||||||
|
|||||||
+3
-1
@@ -1,3 +1,5 @@
|
|||||||
package dependency
|
package dependency
|
||||||
|
|
||||||
fun xxx(): Int = 0
|
fun xxx(): Int = 0
|
||||||
|
fun xxy(): Int = 0
|
||||||
|
fun xxz(): Int = 0
|
||||||
+7
@@ -1,5 +1,9 @@
|
|||||||
|
import dependency.xxx
|
||||||
|
|
||||||
class C {
|
class C {
|
||||||
fun xxx(){}
|
fun xxx(){}
|
||||||
|
fun xxy(){}
|
||||||
|
fun xxz(p: Int){}
|
||||||
|
|
||||||
fun f() {
|
fun f() {
|
||||||
xx<caret>
|
xx<caret>
|
||||||
@@ -8,4 +12,7 @@ class C {
|
|||||||
|
|
||||||
// INVOCATION_COUNT: 2
|
// INVOCATION_COUNT: 2
|
||||||
// EXIST: { lookupString: "xxx", itemText: "xxx", tailText: "()", typeText: "Unit" }
|
// EXIST: { lookupString: "xxx", itemText: "xxx", tailText: "()", typeText: "Unit" }
|
||||||
|
// EXIST: { lookupString: "xxy", itemText: "xxy", tailText: "()", typeText: "Unit" }
|
||||||
|
// EXIST: { lookupString: "xxz", itemText: "xxz", tailText: "(p: Int)", typeText: "Unit" }
|
||||||
|
// EXIST: { lookupString: "xxz", itemText: "xxz", tailText: "() (dependency)", typeText: "Int" }
|
||||||
// NOTHING_ELSE
|
// NOTHING_ELSE
|
||||||
|
|||||||
Reference in New Issue
Block a user