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,65 @@
package fwBackingField
class A {
//FieldWatchpoint! (propVal)
val propVal = 1
//FieldWatchpoint! (propVar)
var propVar = 1
fun testPublicPropertyInClass() {
propVal
propVar
propVar = 2
}
}
//FieldWatchpoint! (topPropVal)
val topPropVal = 1
//FieldWatchpoint! (topPropVar)
var topPropVar = 1
fun testPublicTopLevelProperty() {
topPropVal
topPropVar
topPropVar = 2
}
class B(
//FieldWatchpoint! (bPropVal)
val bPropVal: Int,
//FieldWatchpoint! (bPropVar)
var bPropVar: Int
) {
fun testConstructorProperty() {
bPropVal
bPropVar
bPropVar = 2
}
}
class AWithCompanion {
companion object {
//FieldWatchpoint! (compPropVal)
val compPropVal = 1
//FieldWatchpoint! (compPropVar)
var compPropVar = 1
fun testCompanionProperty() {
compPropVal
compPropVar
compPropVar = 2
}
}
}
fun main(args: Array<String>) {
A().testPublicPropertyInClass()
testPublicTopLevelProperty()
B(1, 1).testConstructorProperty()
AWithCompanion.testCompanionProperty()
}
// STEP_OUT: 36
@@ -0,0 +1,47 @@
KotlinFieldBreakpoint created at fwBackingField.kt:5
KotlinFieldBreakpoint created at fwBackingField.kt:8
KotlinFieldBreakpoint created at fwBackingField.kt:18
KotlinFieldBreakpoint created at fwBackingField.kt:21
KotlinFieldBreakpoint created at fwBackingField.kt:31
KotlinFieldBreakpoint created at fwBackingField.kt:33
KotlinFieldBreakpoint created at fwBackingField.kt:45
KotlinFieldBreakpoint created at fwBackingField.kt:48
Run Java
Connected to the target VM
fwBackingField.kt:18
fwBackingField.kt:21
fwBackingField.kt:59
fwBackingField.kt:5
fwBackingField.kt:8
fwBackingField.kt:59
fwBackingField.kt:11
fwBackingField.kt:12
fwBackingField.kt:13
fwBackingField.kt:60
fwBackingField.kt:24
fwBackingField.kt:25
fwBackingField.kt:26
fwBackingField.kt:61
fwBackingField.kt:29
fwBackingField.kt:29
fwBackingField.kt:61
fwBackingField.kt:36
fwBackingField.kt:37
fwBackingField.kt:38
fwBackingField.kt:62
fwBackingField.kt:45
fwBackingField.kt:48
fwBackingField.kt:62
fwBackingField.kt:42
fwBackingField.kt:45
fwBackingField.kt:51
fwBackingField.kt:42
fwBackingField.kt:48
fwBackingField.kt:52
fwBackingField.kt:42
fwBackingField.kt:48
fwBackingField.kt:54
fwBackingField.kt:63
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,13 @@
package inapplicableFieldWatchpoints
fun main(args: Array<String>) {
//FieldWatchpoint! (localVal)
val localVal = 1
}
fun foo(
//FieldWatchpoint! (funParam)
funParam: Int
) {
}
@@ -0,0 +1,5 @@
Run Java
Connected to the target VM
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,33 @@
package souSuspendFun
import forTests.builder
private fun foo(): Int {
//Breakpoint!
return 42 // 1
}
// One line suspend wihtout doResume
suspend fun fourth() = foo() // 2
// Multiline suspend without doResume
suspend fun third() : Int? {
return fourth() // 3
}
// One line suspend with doResume
suspend fun second(): Int = third()?.let { return it } ?: 0 // 4 (FIX IT)
// Multiline suspend with doResume
suspend fun first(): Int {
second() // 5
return 12
}
fun main(args: Array<String>) {
builder {
first() // 6
}
}
// STEP_OUT: 5
@@ -0,0 +1,12 @@
LineBreakpoint created at souSuspendFun.kt:7
Run Java
Connected to the target VM
souSuspendFun.kt:7
souSuspendFun.kt:11
souSuspendFun.kt:15
souSuspendFun.kt:19
souSuspendFun.kt:23
souSuspendFun.kt:29
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,19 @@
package stepOutInlineFunction
fun main(args: Array<String>) {
foo {
test(2)
}
test(3)
}
inline fun foo(f: () -> Unit) {
//Breakpoint!
val a = 1
f()
val b = 2
}
fun test(i: Int) = 1
// STEP_OUT: 2
@@ -0,0 +1,8 @@
LineBreakpoint created at stepOutInlineFunction.kt:12
Run Java
Connected to the target VM
stepOutInlineFunction.kt:12
stepOutInlineFunction.kt:7
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,20 @@
package stepOutInlinedLambdaArgument
fun main(args: Array<String>) {
foo {
//Breakpoint!
test(1)
test(2)
}
test(3)
}
inline fun foo(f: () -> Unit) {
val a = 1
f()
val b = 2
}
fun test(i: Int) = 1
// STEP_OUT: 2
@@ -0,0 +1,9 @@
LineBreakpoint created at stepOutInlinedLambdaArgument.kt:6
Run Java
Connected to the target VM
stepOutInlinedLambdaArgument.kt:6
stepOutInlinedLambdaArgument.kt:15
stepOutInlinedLambdaArgument.kt:9
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,10 @@
package stepOutInlinedLambdaArgumentOneLine
fun main(args: Array<String>) {
//Breakpoint! (lambdaOrdinal = 1)
dive(3) { x -> x + 4 }
}
inline fun dive(p: Int, f:(Int) -> Int) = f(p)
// STEP_OUT: 2
@@ -0,0 +1,8 @@
LineBreakpoint created at stepOutInlinedLambdaArgumentOneLine.kt:5 lambdaOrdinal = 1
Run Java
Connected to the target VM
stepOutInlinedLambdaArgumentOneLine.kt:5
stepOutInlinedLambdaArgumentOneLine.kt:6
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,27 @@
package stepOutSeveralInlineArgumentDeepest
fun main(args: Array<String>) {
f1 {
//Breakpoint!
test(2)
}
test(3)
}
inline fun f1(f: () -> Int) {
val a = 1
f2 {
f()
}
val b = 2
}
inline fun f2(f: () -> Int): Int {
val a = 1
f()
return 2
}
fun test(i: Int) = 1
// STEP_OUT: 4
@@ -0,0 +1,10 @@
LineBreakpoint created at stepOutSeveralInlineArgumentDeepest.kt:6
Run Java
Connected to the target VM
stepOutSeveralInlineArgumentDeepest.kt:6
stepOutSeveralInlineArgumentDeepest.kt:22
stepOutSeveralInlineArgumentDeepest.kt:16
stepOutSeveralInlineArgumentDeepest.kt:8
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,25 @@
package stepOutSeveralInlineFunctions
fun main(args: Array<String>) {
f1 {
test(2)
}
test(3)
}
inline fun f1(f: () -> Unit) {
//Breakpoint!
val a = 1
f2 {
f()
}
val b = 2
}
inline fun f2(f: () -> Unit) {
val a = 1
f()
val b = 2
}
fun test(i: Int) = 1
@@ -0,0 +1,8 @@
LineBreakpoint created at stepOutSeveralInlineFunctions.kt:12
Run Java
Connected to the target VM
stepOutSeveralInlineFunctions.kt:12
stepOutSeveralInlineFunctions.kt:7
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,25 @@
package stepOutSeveralInlineFunctionsDeepest
fun main(args: Array<String>) {
f1 {
test(2)
}
test(3)
}
inline fun f1(f: () -> Unit) {
val a = 1
f2 {
f()
}
val b = 2
}
inline fun f2(f: () -> Unit) {
//Breakpoint!
val a = 1
f()
val b = 2
}
fun test(i: Int) = 1
@@ -0,0 +1,8 @@
LineBreakpoint created at stepOutSeveralInlineFunctionsDeepest.kt:20
Run Java
Connected to the target VM
stepOutSeveralInlineFunctionsDeepest.kt:20
stepOutSeveralInlineFunctionsDeepest.kt:15
Disconnected from the target VM
Process finished with exit code 0