mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
[debugger] Add test for IDEA-335276
GitOrigin-RevId: 4dd4be21899fc2e7b749f5f769d1509c762f871b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
889ee27c3b
commit
d79194ef2a
@@ -50,6 +50,11 @@ public class K2BreakpointApplicabilityTestGenerated extends AbstractK2Breakpoint
|
||||
runTest("../testData/breakpointApplicability/inlineOnly.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaProperty.kt")
|
||||
public void testLambdaProperty() throws Exception {
|
||||
runTest("../testData/breakpointApplicability/lambdaProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("locals.kt")
|
||||
public void testLocals() throws Exception {
|
||||
runTest("../testData/breakpointApplicability/locals.kt");
|
||||
|
||||
@@ -1303,6 +1303,11 @@ public abstract class K2IdeK1CodeKotlinSteppingTestGenerated extends AbstractK2I
|
||||
runTest("../testData/stepping/custom/breakpointsInOneLineLambdas.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("breakpointsLambdaProperties.kt")
|
||||
public void testBreakpointsLambdaProperties() throws Exception {
|
||||
runTest("../testData/stepping/custom/breakpointsLambdaProperties.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constantConditions.kt")
|
||||
public void testConstantConditions() throws Exception {
|
||||
runTest("../testData/stepping/custom/constantConditions.kt");
|
||||
|
||||
@@ -1303,6 +1303,11 @@ public abstract class K2IdeK2CodeKotlinSteppingTestGenerated extends AbstractK2I
|
||||
runTest("../testData/stepping/custom/breakpointsInOneLineLambdas.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("breakpointsLambdaProperties.kt")
|
||||
public void testBreakpointsLambdaProperties() throws Exception {
|
||||
runTest("../testData/stepping/custom/breakpointsLambdaProperties.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constantConditions.kt")
|
||||
public void testConstantConditions() throws Exception {
|
||||
runTest("../testData/stepping/custom/constantConditions.kt");
|
||||
|
||||
@@ -1303,6 +1303,11 @@ public abstract class K2IndyLambdaKotlinSteppingTestGenerated extends AbstractK2
|
||||
runTest("../testData/stepping/custom/breakpointsInOneLineLambdas.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("breakpointsLambdaProperties.kt")
|
||||
public void testBreakpointsLambdaProperties() throws Exception {
|
||||
runTest("../testData/stepping/custom/breakpointsLambdaProperties.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constantConditions.kt")
|
||||
public void testConstantConditions() throws Exception {
|
||||
runTest("../testData/stepping/custom/constantConditions.kt");
|
||||
|
||||
@@ -50,6 +50,11 @@ public class BreakpointApplicabilityTestGenerated extends AbstractBreakpointAppl
|
||||
runTest("testData/breakpointApplicability/inlineOnly.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaProperty.kt")
|
||||
public void testLambdaProperty() throws Exception {
|
||||
runTest("testData/breakpointApplicability/lambdaProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("locals.kt")
|
||||
public void testLocals() throws Exception {
|
||||
runTest("testData/breakpointApplicability/locals.kt");
|
||||
|
||||
@@ -1303,6 +1303,11 @@ public abstract class IndyLambdaIrKotlinSteppingTestGenerated extends AbstractIn
|
||||
runTest("testData/stepping/custom/breakpointsInOneLineLambdas.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("breakpointsLambdaProperties.kt")
|
||||
public void testBreakpointsLambdaProperties() throws Exception {
|
||||
runTest("testData/stepping/custom/breakpointsLambdaProperties.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constantConditions.kt")
|
||||
public void testConstantConditions() throws Exception {
|
||||
runTest("testData/stepping/custom/constantConditions.kt");
|
||||
|
||||
@@ -1303,6 +1303,11 @@ public abstract class IrKotlinSteppingTestGenerated extends AbstractIrKotlinStep
|
||||
runTest("testData/stepping/custom/breakpointsInOneLineLambdas.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("breakpointsLambdaProperties.kt")
|
||||
public void testBreakpointsLambdaProperties() throws Exception {
|
||||
runTest("testData/stepping/custom/breakpointsLambdaProperties.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constantConditions.kt")
|
||||
public void testConstantConditions() throws Exception {
|
||||
runTest("testData/stepping/custom/constantConditions.kt");
|
||||
|
||||
@@ -1303,6 +1303,11 @@ public abstract class K1IdeK2CodeKotlinSteppingTestGenerated extends AbstractK1I
|
||||
runTest("testData/stepping/custom/breakpointsInOneLineLambdas.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("breakpointsLambdaProperties.kt")
|
||||
public void testBreakpointsLambdaProperties() throws Exception {
|
||||
runTest("testData/stepping/custom/breakpointsLambdaProperties.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constantConditions.kt")
|
||||
public void testConstantConditions() throws Exception {
|
||||
runTest("testData/stepping/custom/constantConditions.kt");
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
val gF1: (Int, Int) -> String = { a, b -> "Both ${a + b}" } /// F, λ
|
||||
|
||||
class A1 { /// M
|
||||
val mF1: (Int, Int) -> String = { a, b -> "Both ${a + b}" } /// F, λ
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
λ 1 Highlight range: '{ a, b -> "Both ${a + b}" }'
|
||||
λ 4 Highlight range: '{ a, b -> "Both ${a + b}" }'
|
||||
@@ -0,0 +1,23 @@
|
||||
package breakpointsLambdaProperties
|
||||
|
||||
//Breakpoint! (lambdaOrdinal = 1)
|
||||
val gF1: (Int, Int) -> String = { a, b -> "Both ${a + b}" }
|
||||
|
||||
class A1 {
|
||||
//Breakpoint! (lambdaOrdinal = 1)
|
||||
val mF1: (Int, Int) -> String = { a, b -> "Both ${a + b}" }
|
||||
}
|
||||
|
||||
fun f1() {
|
||||
//Breakpoint! (lambdaOrdinal = 1)
|
||||
val lF1: (Int, Int) -> String = { a, b -> "Both ${a + b}" }
|
||||
lF1(1, 2)
|
||||
}
|
||||
|
||||
fun main() {
|
||||
gF1(1, 2)
|
||||
A1().mF1(1, 3)
|
||||
f1()
|
||||
}
|
||||
|
||||
// RESUME: 2
|
||||
@@ -0,0 +1,11 @@
|
||||
LineBreakpoint created at breakpointsLambdaProperties.kt:4 lambdaOrdinal = 1
|
||||
LineBreakpoint created at breakpointsLambdaProperties.kt:8 lambdaOrdinal = 1
|
||||
LineBreakpoint created at breakpointsLambdaProperties.kt:13 lambdaOrdinal = 1
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
breakpointsLambdaProperties.kt:4
|
||||
breakpointsLambdaProperties.kt:8
|
||||
breakpointsLambdaProperties.kt:13
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
Reference in New Issue
Block a user