Created module idea-test-framework and moved classes needed for idea tests there
Moved tests for completion and their test data into module idea-completion
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
fun foo(p: String?){}
|
||||
fun foo(p: Char){}
|
||||
|
||||
fun bar(p1: String?, p2: String?, p3: Char) {
|
||||
foo(p1 ?: <caret>
|
||||
}
|
||||
|
||||
// EXIST: { itemText:"p2" }
|
||||
// ABSENT: p3
|
||||
@@ -0,0 +1,12 @@
|
||||
fun foo1(): String? = null
|
||||
fun foo2(): String? = null
|
||||
fun foo3(): String = ""
|
||||
|
||||
fun bar() {
|
||||
foo1() ?: <caret>
|
||||
}
|
||||
|
||||
// EXIST: { itemText:"foo3" }
|
||||
// ABSENT: { itemText:"foo2" }
|
||||
// EXIST: { itemText:"!! foo2" }
|
||||
// EXIST: { itemText:"?: foo2" }
|
||||
@@ -0,0 +1,20 @@
|
||||
trait A
|
||||
trait B : A
|
||||
trait C
|
||||
|
||||
fun foo(a: A){}
|
||||
fun foo(c: C){}
|
||||
|
||||
fun A.bar(a: A, b: B, c: C, a1: A?, b1: B?, c1: C?) {
|
||||
foo(this ?: <caret>
|
||||
}
|
||||
|
||||
// EXIST: { itemText:"a" }
|
||||
// EXIST: { itemText:"b" }
|
||||
// ABSENT: { itemText:"c" }
|
||||
// ABSENT: { itemText:"a1" }
|
||||
// ABSENT: { itemText:"b1" }
|
||||
// ABSENT: { itemText:"c1" }
|
||||
// EXIST: { itemText:"!! a1" }
|
||||
// EXIST: { itemText:"!! b1" }
|
||||
// ABSENT: { itemText:"!! c1" }
|
||||
@@ -0,0 +1,20 @@
|
||||
trait A
|
||||
trait B : A
|
||||
trait C
|
||||
|
||||
fun foo(a: A?){}
|
||||
fun foo(c: C?){}
|
||||
|
||||
fun A.bar(a: A, b: B, c: C, a1: A?, b1: B?, c1: C?) {
|
||||
foo(this ?: <caret>
|
||||
}
|
||||
|
||||
// EXIST: { itemText:"a" }
|
||||
// EXIST: { itemText:"b" }
|
||||
// ABSENT: { itemText:"c" }
|
||||
// EXIST: { itemText:"a1" }
|
||||
// EXIST: { itemText:"b1" }
|
||||
// ABSENT: { itemText:"c1" }
|
||||
// ABSENT: { itemText:"!! a1" }
|
||||
// ABSENT: { itemText:"!! b1" }
|
||||
// ABSENT: { itemText:"!! c1" }
|
||||
@@ -0,0 +1,20 @@
|
||||
trait A
|
||||
trait B : A
|
||||
trait C
|
||||
|
||||
fun foo(a: A){}
|
||||
fun foo(c: C){}
|
||||
|
||||
fun B.bar(a: A, b: B, c: C, a1: A?, b1: B?, c1: C?) {
|
||||
foo(this ?: <caret>
|
||||
}
|
||||
|
||||
// EXIST: { itemText:"a" }
|
||||
// EXIST: { itemText:"b" }
|
||||
// ABSENT: { itemText:"c" }
|
||||
// ABSENT: { itemText:"a1" }
|
||||
// ABSENT: { itemText:"b1" }
|
||||
// ABSENT: { itemText:"c1" }
|
||||
// EXIST: { itemText:"!! a1" }
|
||||
// EXIST: { itemText:"!! b1" }
|
||||
// ABSENT: { itemText:"!! c1" }
|
||||
@@ -0,0 +1,20 @@
|
||||
trait A
|
||||
trait B : A
|
||||
trait C
|
||||
|
||||
fun foo(a: A){}
|
||||
fun foo(c: C){}
|
||||
|
||||
fun B?.bar(a: A, b: B, c: C, a1: A?, b1: B?, c1: C?) {
|
||||
foo(this ?: <caret>
|
||||
}
|
||||
|
||||
// EXIST: { itemText:"a" }
|
||||
// EXIST: { itemText:"b" }
|
||||
// ABSENT: { itemText:"c" }
|
||||
// ABSENT: { itemText:"a1" }
|
||||
// ABSENT: { itemText:"b1" }
|
||||
// ABSENT: { itemText:"c1" }
|
||||
// EXIST: { itemText:"!! a1" }
|
||||
// EXIST: { itemText:"!! b1" }
|
||||
// ABSENT: { itemText:"!! c1" }
|
||||
Reference in New Issue
Block a user