Move debugger test data to the new location

This commit is contained in:
Yan Zhulanow
2019-09-27 00:13:53 +09:00
parent b4cc5703de
commit d8d81c51d7
1423 changed files with 0 additions and 0 deletions
@@ -0,0 +1,9 @@
fun foo() {
@Ann() @Ann val a = bar()<caret>
}
annotation class Ann
fun bar() = 1
// EXISTS: bar()
@@ -0,0 +1,10 @@
fun foo() {
val a = A()
<caret>a[1]
}
class A {
fun get(i: Int) = 1
}
// EXISTS: get(Int)
@@ -0,0 +1,13 @@
fun foo() {
A().getB().f1()<caret>
}
class A {
fun getB() = B()
}
class B {
fun f1() {}
}
// EXISTS: getB(), f1()
@@ -0,0 +1,44 @@
fun foo() {
println("${A()} ${B()} ${C(1)} ${D()} ${E(1)} ${F()} ${G()} ${J()} ${K(1)} ${L()}")<caret>
}
class A
class B()
class C(val a: Int)
class D {
constructor()
}
class E {
constructor(i: Int)
}
class F {
constructor() {
}
}
class G {
constructor(i: Int) {
}
}
class J {
init {
}
}
class K(val a: Int) {
init {
}
}
class L {
constructor() {
}
init {
}
}
// EXISTS: println(Any?), constructor B(), constructor C(Int), constructor D(), constructor E(Int), constructor F(), constructor G(Int), constructor J(), constructor K(Int), constructor L()
@@ -0,0 +1,11 @@
class A {
fun plus(a: A) {}
}
fun foo() {
f1() + A() + A()<caret>
}
fun f1() = A()
// EXISTS: plus(A), f1()
@@ -0,0 +1,13 @@
import kotlin.reflect.KProperty
fun foo() {
a<caret>
}
val a by Delegate()
class Delegate {
fun getValue(t: Any?, p: KProperty<*>) = 1
}
// EXISTS: a.getValue(Any?\, KProperty<*>)
@@ -0,0 +1,10 @@
fun foo() {
<caret>do {
f2()
} while (f1())
}
fun f1() = true
fun f2() {}
// EXISTS: f1()
@@ -0,0 +1,12 @@
fun foo() {
val a = A()
a.f1(f2())<caret>
}
class A {
fun f1(): Int = 1
}
fun f2() {}
// EXISTS: f1(), f2()
@@ -0,0 +1,12 @@
fun foo() {
val a = A()
f2(a.f1())<caret>
}
class A {
fun f1() = 1
}
fun f2(i: Int) {}
// EXISTS: f1(), f2(Int)
@@ -0,0 +1,3 @@
fun foo() {
val a = 1<caret>
}
@@ -0,0 +1,11 @@
fun foo() {
val a = 1
<caret>for (a in f1()) {
f2()
}
}
fun f1() = 1..2
fun f2() {}
// EXISTS: f1()
@@ -0,0 +1,10 @@
fun foo() {
<caret>f1() {
f2()
}
}
fun f1(f: () -> Unit) {}
fun f2() {}
// EXISTS: f1(() -> Unit), f1: f.invoke()
@@ -0,0 +1,5 @@
fun foo() = <caret>bar()
fun bar() = 1
// EXISTS: bar()
@@ -0,0 +1,10 @@
fun foo() {
<caret>if (f1()) {
f2()
}
}
fun f1() = true
fun f2() {}
// EXISTS: f1()
@@ -0,0 +1,12 @@
fun foo() {
val a = A()
f2(a f1 1)<caret>
}
class A {
fun f1(i: Int) = 1
}
fun f2(i: Int) {}
// EXISTS: f1(Int), f2(Int)
@@ -0,0 +1,7 @@
fun foo() {
<caret>f1() { }
}
inline fun f1(f: () -> Unit) {}
// EXISTS: f1(() -> Unit), f1: f.invoke()
@@ -0,0 +1,7 @@
fun foo() {
<caret>f1(fun () { })
}
inline fun f1(f: () -> Unit) {}
// EXISTS: f1(() -> Unit), f1: f.invoke()
@@ -0,0 +1,10 @@
fun foo() {
val a = A()
a()<caret>
}
class A {
fun invoke() {}
}
// EXISTS: invoke()
@@ -0,0 +1,5 @@
fun foo() {
arrayListOf(1, 2).count()<caret>
}
// EXISTS: arrayListOf(vararg Int), count()
@@ -0,0 +1,12 @@
fun foo() {
<caret>f1(
f2(),
f3()
)
}
fun f1(vararg i: Int) {}
fun f2() = 1
fun f3() = 1
// EXISTS: f1(vararg Int), f2(), f3()
@@ -0,0 +1,15 @@
fun foo() {
<caret>A()
.getB()
.f1()
}
class A {
fun getB() = B()
}
class B {
fun f1() {}
}
// EXISTS: getB(), f1()
@@ -0,0 +1,9 @@
fun foo() {
<caret>val a = object {
fun f() {
f2()
}
}
}
fun f2() {}
@@ -0,0 +1,8 @@
fun foo() {
f1(f2())<caret>
}
fun f1(i: Int) = 1
fun f2() {}
// EXISTS: f1(Int), f2()
@@ -0,0 +1,7 @@
fun foo() {
(bar())<caret>
}
fun bar() {}
// EXISTS: bar()
@@ -0,0 +1,18 @@
fun foo() {
a + b + c + d<caret>
}
val a = 1
val b = 1
get
val c: Int
get() = 1
val d: Int
get() {
return 1
}
// EXISTS: getter for c: Int, getter for d: Int
@@ -0,0 +1,29 @@
fun test() {
<caret>propFoo + foo() + fooWithParam(1.extFoo()) { 2 } + FooClass(1).test() + FooClass().test() + FooClass(1, 2).test()
}
class FooClass(i: Int) {
constructor() : this(1)
constructor(i: Int, s: Int) : this(1)
fun test() = 1
}
fun foo() = 1
fun fooWithParam(i: Int, f: () -> Int) = 1
fun Int.extFoo() = 1
val propFoo: Int
get() {
return 1
}
// EXISTS: getter for propFoo: Int,
// EXISTS: foo()
// EXISTS: fooWithParam(Int\, () -> Int)
// EXISTS: extFoo()
// EXISTS: fooWithParam: f.invoke()
// EXISTS: test()
// EXISTS: constructor FooClass()
// EXISTS: constructor FooClass(Int)
// EXISTS: constructor FooClass(Int\, Int)
@@ -0,0 +1,7 @@
fun foo() {
bar()<caret>
}
fun bar() {}
// EXISTS: bar()
@@ -0,0 +1,8 @@
fun foo() {
<caret>f2("aaa${f1()}")
}
fun f1() = "1"
fun f2(s: String) {}
// EXISTS: f1(), f2(String)
@@ -0,0 +1,9 @@
class A {
operator fun unaryPlus() {}
operator fun unaryMinus() {}
}
fun foo() {
<caret>+A() || -A()
}
// EXISTS: unaryPlus(), unaryMinus()
@@ -0,0 +1,13 @@
fun foo() {
<caret>when (f1()) {
true -> f2()
else -> {
f2()
}
}
}
fun f1() = true
fun f2() {}
// EXISTS: f1()
@@ -0,0 +1,10 @@
fun foo() {
<caret>while (f1()) {
f2()
}
}
fun f1() = true
fun f2() {}
// EXISTS: f1()