Debugger: add test for line breakpoint variants with inline function call. Fix testData for muted test
This commit is contained in:
@@ -8,4 +8,3 @@ initializer.kt:18
|
|||||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||||
|
|
||||||
Process finished with exit code 0
|
Process finished with exit code 0
|
||||||
1
|
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
LineBreakpoint created at inlineFunctionBreakpointVariants.kt:8 lambdaOrdinal = -1
|
||||||
|
!JDK_HOME!\bin\java -agentlib:jdwp=transport=dt_socket,address=!HOST_NAME!:!HOST_PORT!,suspend=y,server=n -Dfile.encoding=!FILE_ENCODING! -classpath !OUTPUT_PATH!;!KOTLIN_RUNTIME!;!CUSTOM_LIBRARY!;!RT_JAR! inlineFunctionBreakpointVariants.InlineFunctionBreakpointVariantsKt
|
||||||
|
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||||
|
inlineFunctionBreakpointVariants.kt:8
|
||||||
|
inlineFunctionBreakpointVariants.kt:8
|
||||||
|
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||||
|
|
||||||
|
Process finished with exit code 0
|
||||||
+1
-1
@@ -15,6 +15,6 @@ class A(val prop: Int) {
|
|||||||
// EXPRESSION: it
|
// EXPRESSION: it
|
||||||
// RESULT: Unresolved reference: it
|
// RESULT: Unresolved reference: it
|
||||||
//Breakpoint! (lambdaOrdinal = -1)
|
//Breakpoint! (lambdaOrdinal = -1)
|
||||||
list.forEach { println(it) }
|
list.map { it * 2 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+17
@@ -0,0 +1,17 @@
|
|||||||
|
package inlineFunctionBreakpointVariants
|
||||||
|
|
||||||
|
import inlineFunctionOtherPackage.*
|
||||||
|
|
||||||
|
fun main(args: Array<String>) {
|
||||||
|
// Breakpoint is outside of function literal, but we stop at it twice: before and after foo1 invocation
|
||||||
|
//Breakpoint! (lambdaOrdinal = -1)
|
||||||
|
foo1 { foo2() }
|
||||||
|
}
|
||||||
|
|
||||||
|
inline fun foo1(f: () -> Unit) {
|
||||||
|
f()
|
||||||
|
}
|
||||||
|
|
||||||
|
inline fun foo2() = 1
|
||||||
|
|
||||||
|
// RESUME: 1
|
||||||
+6
@@ -169,6 +169,12 @@ public class KotlinEvaluateExpressionTestGenerated extends AbstractKotlinEvaluat
|
|||||||
doSingleBreakpointTest(fileName);
|
doSingleBreakpointTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("inlineFunctionBreakpointVariants.kt")
|
||||||
|
public void testInlineFunctionBreakpointVariants() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/inlineFunctionBreakpointVariants.kt");
|
||||||
|
doSingleBreakpointTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("innerClass.kt")
|
@TestMetadata("innerClass.kt")
|
||||||
public void testInnerClass() throws Exception {
|
public void testInnerClass() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/innerClass.kt");
|
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/innerClass.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user