Add test for smart step into in method with default args
#KT-4803 In Progress
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
LineBreakpoint created at smartStepIntoFunWithDefaultArgs.kt:17
|
||||
LineBreakpoint created at smartStepIntoFunWithDefaultArgs.kt:22
|
||||
LineBreakpoint created at smartStepIntoFunWithDefaultArgs.kt:27
|
||||
LineBreakpoint created at smartStepIntoFunWithDefaultArgs.kt:32
|
||||
!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! smartStepIntoFunWithDefaultArgs.SmartStepIntoFunWithDefaultArgsKt
|
||||
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
smartStepIntoFunWithDefaultArgs.kt:17
|
||||
smartStepIntoFunWithDefaultArgs.kt:4
|
||||
smartStepIntoFunWithDefaultArgs.kt:22
|
||||
smartStepIntoFunWithDefaultArgs.kt:4
|
||||
smartStepIntoFunWithDefaultArgs.kt:27
|
||||
smartStepIntoFunWithDefaultArgs.kt:8
|
||||
smartStepIntoFunWithDefaultArgs.kt:32
|
||||
smartStepIntoFunWithDefaultArgs.kt:8
|
||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
|
||||
Process finished with exit code 0
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
package smartStepIntoFunWithDefaultArgs
|
||||
|
||||
fun Int.foo(a: Int = 1) {
|
||||
val a = 1
|
||||
}
|
||||
|
||||
fun Int.foo(a: String, b: Int = 1) {
|
||||
val a = 1
|
||||
}
|
||||
|
||||
fun bar() = 1
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// SMART_STEP_INTO_BY_INDEX: 2
|
||||
// RESUME: 1
|
||||
//Breakpoint!
|
||||
bar().foo(2)
|
||||
|
||||
// SMART_STEP_INTO_BY_INDEX: 2
|
||||
// RESUME: 1
|
||||
//Breakpoint!
|
||||
bar().foo()
|
||||
|
||||
// SMART_STEP_INTO_BY_INDEX: 2
|
||||
// RESUME: 1
|
||||
//Breakpoint!
|
||||
bar().foo("1", 2)
|
||||
|
||||
// SMART_STEP_INTO_BY_INDEX: 2
|
||||
// RESUME: 1
|
||||
//Breakpoint!
|
||||
bar().foo("1")
|
||||
}
|
||||
@@ -571,6 +571,12 @@ public class KotlinSteppingTestGenerated extends AbstractKotlinSteppingTest {
|
||||
doCustomTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("smartStepIntoFunWithDefaultArgs.kt")
|
||||
public void testSmartStepIntoFunWithDefaultArgs() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/custom/smartStepIntoFunWithDefaultArgs.kt");
|
||||
doCustomTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("smartStepIntoInlinedFunLiteral.kt")
|
||||
public void testSmartStepIntoInlinedFunLiteral() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/custom/smartStepIntoInlinedFunLiteral.kt");
|
||||
|
||||
Reference in New Issue
Block a user