From 48b736e551b543cc6c877c5cb83bccb56d28b4fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steven=20Sch=C3=A4fer?= Date: Tue, 22 Sep 2020 11:53:24 +0200 Subject: [PATCH] JVM IR: Enable evaluate expression tests for the JVM IR backend --- .../kotlin/generators/tests/GenerateTests.kt | 5 + .../AbstractIrKotlinEvaluateExpressionTest.kt | 10 + .../AbstractKotlinEvaluateExpressionTest.kt | 46 +- ...KotlinEvaluateExpressionTestGenerated.java | 1307 +++++++++++++++++ .../debugger/test/KotlinDescriptorTestCase.kt | 2 +- .../debugger/test/util/KotlinOutputChecker.kt | 7 +- .../multipleBreakpoints/constructors.out | 1 + .../isInsideInlineLambda.out | 1 + .../library/localFunInLibrary.out | 1 + .../multipleBreakpoints/localFun.out | 1 + .../multipleBreakpoints/smartcasts.out | 1 + .../multipleBreakpoints/thisLabels.out | 1 + .../singleBreakpoint/dataClassCopy.out | 1 + .../delegatedPropertyInOtherFile.out | 1 + .../singleBreakpoint/delegatedVariables.out | 1 + .../singleBreakpoint/extractThisInTrait.out | 1 + .../frame/capturedValues1.out | 1 + .../frame/defaultImplsMangling.out | 1 + .../frame/frameAnonymousObject.ir.out | 14 + .../frame/frameExtFunExtFun.ir.out | 33 + .../frame/frameInnerLambda.ir.out | 15 + .../frame/frameThis0This0.ir.out | 19 + .../frame/hideSyntheticThis.out | 1 + .../frame/lambdaAsValueArgument.out | 1 + .../singleBreakpoint/frame/lambdaFun3.out | 1 + .../evaluation/singleBreakpoint/kt15259.out | 1 + .../evaluation/singleBreakpoint/kt29179.out | 1 + .../evaluation/singleBreakpoint/kt36404.out | 1 + .../lambdas/destructuringParam.out | 1 + .../lambdas/inlineFunctionalExpression.ir.out | 7 + .../localFunctionsWithReceivers.out | 1 + .../singleBreakpoint/onObjectHeader.ir.out | 13 + .../stepping/stepOut/fwBackingField.out | 1 + 33 files changed, 1476 insertions(+), 23 deletions(-) create mode 100644 idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractIrKotlinEvaluateExpressionTest.kt create mode 100644 idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/IrKotlinEvaluateExpressionTestGenerated.java create mode 100644 idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameAnonymousObject.ir.out create mode 100644 idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameExtFunExtFun.ir.out create mode 100644 idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameInnerLambda.ir.out create mode 100644 idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameThis0This0.ir.out create mode 100644 idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas/inlineFunctionalExpression.ir.out create mode 100644 idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/onObjectHeader.ir.out diff --git a/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt b/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt index 4849fbd16d5..59ebb6b6ad3 100644 --- a/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt +++ b/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt @@ -253,6 +253,11 @@ fun main(args: Array) { model("evaluation/multipleBreakpoints", testMethod = "doMultipleBreakpointsTest") } + testClass { + model("evaluation/singleBreakpoint", testMethod = "doSingleBreakpointTest", targetBackend = TargetBackend.JVM_IR) + model("evaluation/multipleBreakpoints", testMethod = "doMultipleBreakpointsTest", targetBackend = TargetBackend.JVM_IR) + } + testClass { model("selectExpression", recursive = false) model("selectExpression/disallowMethodCalls", testMethod = "doTestWoMethodCalls") diff --git a/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractIrKotlinEvaluateExpressionTest.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractIrKotlinEvaluateExpressionTest.kt new file mode 100644 index 00000000000..e3186676180 --- /dev/null +++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractIrKotlinEvaluateExpressionTest.kt @@ -0,0 +1,10 @@ +/* + * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package org.jetbrains.kotlin.idea.debugger.test + +abstract class AbstractIrKotlinEvaluateExpressionTest : AbstractKotlinEvaluateExpressionTest() { + override fun useIrBackend(): Boolean = true +} diff --git a/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractKotlinEvaluateExpressionTest.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractKotlinEvaluateExpressionTest.kt index 164401bb338..7bc49a4a51e 100644 --- a/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractKotlinEvaluateExpressionTest.kt +++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractKotlinEvaluateExpressionTest.kt @@ -11,7 +11,6 @@ import com.intellij.debugger.engine.evaluation.CodeFragmentKind import com.intellij.debugger.engine.evaluation.EvaluateException import com.intellij.debugger.engine.evaluation.TextWithImportsImpl import com.intellij.debugger.engine.evaluation.expression.EvaluatorBuilderImpl -import com.intellij.debugger.engine.events.SuspendContextCommandImpl import com.intellij.debugger.impl.DebuggerContextImpl import com.intellij.debugger.impl.DebuggerContextImpl.createDebuggerContext import com.intellij.debugger.ui.impl.watch.NodeDescriptorImpl @@ -27,12 +26,16 @@ import org.jetbrains.kotlin.idea.debugger.evaluate.KotlinCodeFragmentFactory import org.jetbrains.kotlin.idea.debugger.test.preference.DebuggerPreferences import org.jetbrains.kotlin.idea.debugger.test.util.FramePrinter import org.jetbrains.kotlin.idea.debugger.test.util.FramePrinterDelegate +import org.jetbrains.kotlin.idea.debugger.test.util.KotlinOutputChecker import org.jetbrains.kotlin.idea.debugger.test.util.SteppingInstruction import org.jetbrains.kotlin.idea.util.application.runReadAction +import org.jetbrains.kotlin.test.InTextDirectivesUtils import org.jetbrains.kotlin.test.InTextDirectivesUtils.findLinesWithPrefixesRemoved import org.jetbrains.kotlin.test.InTextDirectivesUtils.findStringWithPrefixes import org.jetbrains.kotlin.test.KotlinBaseTest +import org.jetbrains.kotlin.test.TargetBackend import java.io.File +import java.util.concurrent.ConcurrentHashMap import javax.swing.tree.TreeNode private data class CodeFragment(val text: String, val result: String, val kind: CodeFragmentKind) @@ -57,6 +60,8 @@ abstract class AbstractKotlinEvaluateExpressionTest : KotlinDescriptorTestCaseWi private var framePrinter: FramePrinter? = null + private val exceptions = ConcurrentHashMap() + fun doSingleBreakpointTest(path: String) { isMultipleBreakpointsTest = false doTest(path) @@ -89,6 +94,7 @@ abstract class AbstractKotlinEvaluateExpressionTest : KotlinDescriptorTestCaseWi override fun tearDown() { framePrinter?.close() framePrinter = null + exceptions.clear() super.tearDown() } @@ -102,26 +108,22 @@ abstract class AbstractKotlinEvaluateExpressionTest : KotlinDescriptorTestCaseWi val exceptions = linkedMapOf() for ((expression, expected, kind) in data.fragments) { - mayThrow(exceptions, expression) { + mayThrow(expression) { evaluate(this, expression, kind, expected) } } val completion = { resume(this) } framePrinter?.printFrame(completion) ?: completion() - - checkExceptions(exceptions) } finish() } private fun performMultipleBreakpointTest(data: EvaluationTestData) { - val exceptions = linkedMapOf() - for ((expression, expected) in data.fragments) { - mayThrow(exceptions, expression) { - doOnBreakpoint { + doOnBreakpoint { + mayThrow(expression) { try { evaluate(this, expression, CodeFragmentKind.EXPRESSION, expected) } finally { @@ -131,8 +133,6 @@ abstract class AbstractKotlinEvaluateExpressionTest : KotlinDescriptorTestCaseWi } } } - - checkExceptions(exceptions) finish() } @@ -211,24 +211,30 @@ abstract class AbstractKotlinEvaluateExpressionTest : KotlinDescriptorTestCaseWi super.expandAll(tree, runnable, HashSet(), filter, suspendContext) } - private fun mayThrow(collector: MutableMap, expression: String, f: () -> Unit) { + private fun mayThrow(expression: String, f: () -> Unit) { try { f() } catch (e: Throwable) { - collector[expression] = e + exceptions[expression] = e } } - private fun checkExceptions(exceptions: MutableMap) { + override fun throwExceptionsIfAny() { if (exceptions.isNotEmpty()) { - for (exc in exceptions.values) { - exc.printStackTrace() + val isIgnored = InTextDirectivesUtils.isIgnoredTarget( + if (useIrBackend()) TargetBackend.JVM_IR else TargetBackend.JVM, + getExpectedOutputFile() + ) + + if (!isIgnored) { + for (exc in exceptions.values) { + exc.printStackTrace() + } + val expressionsText = exceptions.entries.joinToString("\n") { (k, v) -> "expression: $k, exception: ${v.message}" } + throw AssertionError("Test failed:\n$expressionsText") + } else { + (checker as KotlinOutputChecker).threwException = true } - - val expressionsText = exceptions.entries.joinToString("\n") { (k, v) -> "expression: $k, exception: ${v.message}" } - - @Suppress("ConvertToStringTemplate") - throw AssertionError("Test failed:\n" + expressionsText) } } diff --git a/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/IrKotlinEvaluateExpressionTestGenerated.java b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/IrKotlinEvaluateExpressionTestGenerated.java new file mode 100644 index 00000000000..00163b02c65 --- /dev/null +++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/IrKotlinEvaluateExpressionTestGenerated.java @@ -0,0 +1,1307 @@ +/* + * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package org.jetbrains.kotlin.idea.debugger.test; + +import com.intellij.testFramework.TestDataPath; +import org.jetbrains.kotlin.test.JUnit3RunnerWithInners; +import org.jetbrains.kotlin.test.KotlinTestUtils; +import org.jetbrains.kotlin.test.TargetBackend; +import org.jetbrains.kotlin.test.TestMetadata; +import org.junit.runner.RunWith; + +import java.io.File; +import java.util.regex.Pattern; + +/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */ +@SuppressWarnings("all") +@RunWith(JUnit3RunnerWithInners.class) +public class IrKotlinEvaluateExpressionTestGenerated extends AbstractIrKotlinEvaluateExpressionTest { + @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class SingleBreakpoint extends AbstractIrKotlinEvaluateExpressionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doSingleBreakpointTest, TargetBackend.JVM_IR, testDataFilePath); + } + + @TestMetadata("abstractFunCall.kt") + public void testAbstractFunCall() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/abstractFunCall.kt"); + } + + @TestMetadata("accessToOverridenPropertyWithBackingField.kt") + public void testAccessToOverridenPropertyWithBackingField() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/accessToOverridenPropertyWithBackingField.kt"); + } + + public void testAllFilesPresentInSingleBreakpoint() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("annotationValue.kt") + public void testAnnotationValue() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/annotationValue.kt"); + } + + @TestMetadata("anonymousObjects.kt") + public void testAnonymousObjects() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/anonymousObjects.kt"); + } + + @TestMetadata("arrayMethods.kt") + public void testArrayMethods() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/arrayMethods.kt"); + } + + @TestMetadata("arrays.kt") + public void testArrays() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/arrays.kt"); + } + + @TestMetadata("boxParam.kt") + public void testBoxParam() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/boxParam.kt"); + } + + @TestMetadata("boxReturnValue.kt") + public void testBoxReturnValue() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/boxReturnValue.kt"); + } + + @TestMetadata("breakpointInInlineFun.kt") + public void testBreakpointInInlineFun() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/breakpointInInlineFun.kt"); + } + + @TestMetadata("callableBug.kt") + public void testCallableBug() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/callableBug.kt"); + } + + @TestMetadata("classFromAnotherPackage.kt") + public void testClassFromAnotherPackage() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/classFromAnotherPackage.kt"); + } + + @TestMetadata("classObjectVal.kt") + public void testClassObjectVal() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/classObjectVal.kt"); + } + + @TestMetadata("collections.kt") + public void testCollections() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/collections.kt"); + } + + @TestMetadata("dataClassCopy.kt") + public void testDataClassCopy() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/dataClassCopy.kt"); + } + + @TestMetadata("defaultParameterValues.kt") + public void testDefaultParameterValues() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/defaultParameterValues.kt"); + } + + @TestMetadata("defaultParameterValues2.kt") + public void testDefaultParameterValues2() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/defaultParameterValues2.kt"); + } + + @TestMetadata("delegatedPropertyInOtherFile.kt") + public void testDelegatedPropertyInOtherFile() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/delegatedPropertyInOtherFile.kt"); + } + + @TestMetadata("delegatedVariables.kt") + public void testDelegatedVariables() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/delegatedVariables.kt"); + } + + @TestMetadata("dependentOnFile.kt") + public void testDependentOnFile() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/dependentOnFile.kt"); + } + + @TestMetadata("doubles.kt") + public void testDoubles() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/doubles.kt"); + } + + @TestMetadata("enums.kt") + public void testEnums() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/enums.kt"); + } + + @TestMetadata("errors.kt") + public void testErrors() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/errors.kt"); + } + + @TestMetadata("escapedNames.kt") + public void testEscapedNames() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/escapedNames.kt"); + } + + @TestMetadata("experimentalApi.kt") + public void testExperimentalApi() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/experimentalApi.kt"); + } + + @TestMetadata("extractLocalVariables.kt") + public void testExtractLocalVariables() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extractLocalVariables.kt"); + } + + @TestMetadata("extractThis.kt") + public void testExtractThis() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extractThis.kt"); + } + + @TestMetadata("extractThisInTrait.kt") + public void testExtractThisInTrait() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extractThisInTrait.kt"); + } + + @TestMetadata("extractVariablesFromCall.kt") + public void testExtractVariablesFromCall() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extractVariablesFromCall.kt"); + } + + @TestMetadata("fieldGetters.kt") + public void testFieldGetters() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/fieldGetters.kt"); + } + + @TestMetadata("fileWithError.kt") + public void testFileWithError() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/fileWithError.kt"); + } + + @TestMetadata("funFromSuperClass.kt") + public void testFunFromSuperClass() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/funFromSuperClass.kt"); + } + + @TestMetadata("functionDeclaration.kt") + public void testFunctionDeclaration() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/functionDeclaration.kt"); + } + + @TestMetadata("functionWithBodyExpression.kt") + public void testFunctionWithBodyExpression() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/functionWithBodyExpression.kt"); + } + + @TestMetadata("genericCrossinlineArgument.kt") + public void testGenericCrossinlineArgument() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/genericCrossinlineArgument.kt"); + } + + @TestMetadata("imports.kt") + public void testImports() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/imports.kt"); + } + + @TestMetadata("importsLambdaContext.kt") + public void testImportsLambdaContext() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/importsLambdaContext.kt"); + } + + @TestMetadata("inlineFunInMultiFilePackage.kt") + public void testInlineFunInMultiFilePackage() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunInMultiFilePackage.kt"); + } + + @TestMetadata("inlineFunction.kt") + public void testInlineFunction() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunction.kt"); + } + + @TestMetadata("inlineFunctionBreakpointAnotherFile.kt") + public void testInlineFunctionBreakpointAnotherFile() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunctionBreakpointAnotherFile.kt"); + } + + @TestMetadata("inlineFunctionBreakpointVariants.kt") + public void testInlineFunctionBreakpointVariants() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineFunctionBreakpointVariants.kt"); + } + + @TestMetadata("inlineMethodsInSignature.kt") + public void testInlineMethodsInSignature() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/inlineMethodsInSignature.kt"); + } + + @TestMetadata("innerClass.kt") + public void testInnerClass() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/innerClass.kt"); + } + + @TestMetadata("insertInBlock.kt") + public void testInsertInBlock() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/insertInBlock.kt"); + } + + @TestMetadata("internalFunctionEvaluate.kt") + public void testInternalFunctionEvaluate() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/internalFunctionEvaluate.kt"); + } + + @TestMetadata("internalProperty.kt") + public void testInternalProperty() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/internalProperty.kt"); + } + + @TestMetadata("javaStaticMethods.kt") + public void testJavaStaticMethods() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/javaStaticMethods.kt"); + } + + @TestMetadata("kClass.kt") + public void testKClass() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kClass.kt"); + } + + @TestMetadata("kt12206BasePropertyWithoutBackingField.kt") + public void testKt12206BasePropertyWithoutBackingField() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt12206BasePropertyWithoutBackingField.kt"); + } + + @TestMetadata("kt15259.kt") + public void testKt15259() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt15259.kt"); + } + + @TestMetadata("kt17514.kt") + public void testKt17514() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt17514.kt"); + } + + @TestMetadata("kt22366.kt") + public void testKt22366() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt22366.kt"); + } + + @TestMetadata("kt25220.kt") + public void testKt25220() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt25220.kt"); + } + + @TestMetadata("kt25222.kt") + public void testKt25222() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt25222.kt"); + } + + @TestMetadata("kt28087.kt") + public void testKt28087() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt28087.kt"); + } + + @TestMetadata("kt29179.kt") + public void testKt29179() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt29179.kt"); + } + + @TestMetadata("kt31709.kt") + public void testKt31709() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt31709.kt"); + } + + @TestMetadata("kt36404.kt") + public void testKt36404() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt36404.kt"); + } + + @TestMetadata("kt5554OnlyIntsShouldBeCoerced.kt") + public void testKt5554OnlyIntsShouldBeCoerced() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt5554OnlyIntsShouldBeCoerced.kt"); + } + + @TestMetadata("kt7046localVarInInline.kt") + public void testKt7046localVarInInline() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt7046localVarInInline.kt"); + } + + @TestMetadata("lambdaToString.kt") + public void testLambdaToString() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdaToString.kt"); + } + + @TestMetadata("localClass.kt") + public void testLocalClass() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/localClass.kt"); + } + + @TestMetadata("localFunctionsWithReceivers.kt") + public void testLocalFunctionsWithReceivers() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/localFunctionsWithReceivers.kt"); + } + + @TestMetadata("localVariables.kt") + public void testLocalVariables() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/localVariables.kt"); + } + + @TestMetadata("methodWithBreakpoint.kt") + public void testMethodWithBreakpoint() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/methodWithBreakpoint.kt"); + } + + @TestMetadata("multilineExpressionAtBreakpoint.kt") + public void testMultilineExpressionAtBreakpoint() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/multilineExpressionAtBreakpoint.kt"); + } + + @TestMetadata("nestedInlineArguments.kt") + public void testNestedInlineArguments() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/nestedInlineArguments.kt"); + } + + @TestMetadata("nonAssignmentLValue.kt") + public void testNonAssignmentLValue() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/nonAssignmentLValue.kt"); + } + + @TestMetadata("nothing.kt") + public void testNothing() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/nothing.kt"); + } + + @TestMetadata("onClassHeader.kt") + public void testOnClassHeader() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/onClassHeader.kt"); + } + + @TestMetadata("onGetter.kt") + public void testOnGetter() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/onGetter.kt"); + } + + @TestMetadata("onObjectHeader.kt") + public void testOnObjectHeader() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/onObjectHeader.kt"); + } + + @TestMetadata("package.kt") + public void testPackage() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/package.kt"); + } + + @TestMetadata("parametersOfInlineFun.kt") + public void testParametersOfInlineFun() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/parametersOfInlineFun.kt"); + } + + @TestMetadata("parametersOfInlineFunSeveralOnLine.kt") + public void testParametersOfInlineFunSeveralOnLine() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/parametersOfInlineFunSeveralOnLine.kt"); + } + + @TestMetadata("privateClass.kt") + public void testPrivateClass() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/privateClass.kt"); + } + + @TestMetadata("privateFieldInCompanion.kt") + public void testPrivateFieldInCompanion() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/privateFieldInCompanion.kt"); + } + + @TestMetadata("privateMember.kt") + public void testPrivateMember() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/privateMember.kt"); + } + + @TestMetadata("privatePropertyWithExplicitDefaultGetter.kt") + public void testPrivatePropertyWithExplicitDefaultGetter() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/privatePropertyWithExplicitDefaultGetter.kt"); + } + + @TestMetadata("protectedMember.kt") + public void testProtectedMember() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/protectedMember.kt"); + } + + @TestMetadata("rawTypeskt11831.kt") + public void testRawTypeskt11831() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/rawTypeskt11831.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/simple.kt"); + } + + @TestMetadata("statements.kt") + public void testStatements() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/statements.kt"); + } + + @TestMetadata("staticField.kt") + public void testStaticField() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/staticField.kt"); + } + + @TestMetadata("stdlib.kt") + public void testStdlib() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/stdlib.kt"); + } + + @TestMetadata("superCallsCaptured.kt") + public void testSuperCallsCaptured() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/superCallsCaptured.kt"); + } + + @TestMetadata("superCallsSimple.kt") + public void testSuperCallsSimple() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/superCallsSimple.kt"); + } + + @TestMetadata("suspendCalls.kt") + public void testSuspendCalls() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/suspendCalls.kt"); + } + + @TestMetadata("synchronizedBlock.kt") + public void testSynchronizedBlock() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/synchronizedBlock.kt"); + } + + @TestMetadata("typeParameterRef.kt") + public void testTypeParameterRef() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/typeParameterRef.kt"); + } + + @TestMetadata("typedArray.kt") + public void testTypedArray() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/typedArray.kt"); + } + + @TestMetadata("unboxParam.kt") + public void testUnboxParam() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/unboxParam.kt"); + } + + @TestMetadata("unsafeCall.kt") + public void testUnsafeCall() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/unsafeCall.kt"); + } + + @TestMetadata("valueParameterName.kt") + public void testValueParameterName() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/valueParameterName.kt"); + } + + @TestMetadata("variableAsFunction.kt") + public void testVariableAsFunction() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/variableAsFunction.kt"); + } + + @TestMetadata("vars.kt") + public void testVars() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/vars.kt"); + } + + @TestMetadata("whenEvaluation.kt") + public void testWhenEvaluation() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/whenEvaluation.kt"); + } + + @TestMetadata(".kt.kt") + public void test_kt() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/.kt.kt"); + } + + @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/compilingEvaluator") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class CompilingEvaluator extends AbstractIrKotlinEvaluateExpressionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doSingleBreakpointTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInCompilingEvaluator() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/compilingEvaluator"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("ceAnonymousObject.kt") + public void testCeAnonymousObject() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/compilingEvaluator/ceAnonymousObject.kt"); + } + + @TestMetadata("ceAnonymousObjectCapturedInClosure.kt") + public void testCeAnonymousObjectCapturedInClosure() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/compilingEvaluator/ceAnonymousObjectCapturedInClosure.kt"); + } + + @TestMetadata("ceAnonymousObjectThisAsReceiver.kt") + public void testCeAnonymousObjectThisAsReceiver() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/compilingEvaluator/ceAnonymousObjectThisAsReceiver.kt"); + } + + @TestMetadata("ceLambda.kt") + public void testCeLambda() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/compilingEvaluator/ceLambda.kt"); + } + + @TestMetadata("ceLocalClass.kt") + public void testCeLocalClass() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/compilingEvaluator/ceLocalClass.kt"); + } + + @TestMetadata("ceLocalClassMembers.kt") + public void testCeLocalClassMembers() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/compilingEvaluator/ceLocalClassMembers.kt"); + } + + @TestMetadata("ceLocalClassWithSuperClass.kt") + public void testCeLocalClassWithSuperClass() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/compilingEvaluator/ceLocalClassWithSuperClass.kt"); + } + + @TestMetadata("ceMembers.kt") + public void testCeMembers() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/compilingEvaluator/ceMembers.kt"); + } + + @TestMetadata("ceObject.kt") + public void testCeObject() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/compilingEvaluator/ceObject.kt"); + } + + @TestMetadata("ceSeveralLambdas.kt") + public void testCeSeveralLambdas() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/compilingEvaluator/ceSeveralLambdas.kt"); + } + + @TestMetadata("ceSuperAccess.kt") + public void testCeSuperAccess() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/compilingEvaluator/ceSuperAccess.kt"); + } + } + + @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/coroutines") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Coroutines extends AbstractIrKotlinEvaluateExpressionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doSingleBreakpointTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInCoroutines() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("anyUpdateInvokeStatic.kt") + public void testAnyUpdateInvokeStatic() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/coroutines/anyUpdateInvokeStatic.kt"); + } + + @TestMetadata("anyUpdateVariable.kt") + public void testAnyUpdateVariable() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/coroutines/anyUpdateVariable.kt"); + } + + @TestMetadata("primitivesCoertion.kt") + public void testPrimitivesCoertion() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/coroutines/primitivesCoertion.kt"); + } + + @TestMetadata("stringUpdateInvokeStatic.kt") + public void testStringUpdateInvokeStatic() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/coroutines/stringUpdateInvokeStatic.kt"); + } + + @TestMetadata("stringUpdateInvokeVirtual.kt") + public void testStringUpdateInvokeVirtual() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/coroutines/stringUpdateInvokeVirtual.kt"); + } + + @TestMetadata("stringUpdatePutField.kt") + public void testStringUpdatePutField() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/coroutines/stringUpdatePutField.kt"); + } + + @TestMetadata("stringUpdateVariable.kt") + public void testStringUpdateVariable() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/coroutines/stringUpdateVariable.kt"); + } + } + + @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/createExpression") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class CreateExpression extends AbstractIrKotlinEvaluateExpressionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doSingleBreakpointTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInCreateExpression() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/createExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("createExpressionCastToBuiltIn.kt") + public void testCreateExpressionCastToBuiltIn() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/createExpression/createExpressionCastToBuiltIn.kt"); + } + + @TestMetadata("createExpressionSimple.kt") + public void testCreateExpressionSimple() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/createExpression/createExpressionSimple.kt"); + } + + @TestMetadata("createExpressionWithArray.kt") + public void testCreateExpressionWithArray() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/createExpression/createExpressionWithArray.kt"); + } + } + + @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ExtraVariables extends AbstractIrKotlinEvaluateExpressionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doSingleBreakpointTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInExtraVariables() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("evBreakpointOnPropertyDeclaration.kt") + public void testEvBreakpointOnPropertyDeclaration() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables/evBreakpointOnPropertyDeclaration.kt"); + } + + @TestMetadata("evDelegatedProperty.kt") + public void testEvDelegatedProperty() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables/evDelegatedProperty.kt"); + } + + @TestMetadata("evDuplicateItems.kt") + public void testEvDuplicateItems() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables/evDuplicateItems.kt"); + } + + @TestMetadata("evFinalProperty.kt") + public void testEvFinalProperty() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables/evFinalProperty.kt"); + } + + @TestMetadata("evFunctionDeclaration.kt") + public void testEvFunctionDeclaration() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables/evFunctionDeclaration.kt"); + } + + @TestMetadata("evLineRange.kt") + public void testEvLineRange() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables/evLineRange.kt"); + } + + @TestMetadata("evProperty.kt") + public void testEvProperty() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables/evProperty.kt"); + } + + @TestMetadata("evPropertyRefExpr.kt") + public void testEvPropertyRefExpr() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables/evPropertyRefExpr.kt"); + } + + @TestMetadata("evSkipAnonymousObject.kt") + public void testEvSkipAnonymousObject() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables/evSkipAnonymousObject.kt"); + } + + @TestMetadata("evSkipLambda.kt") + public void testEvSkipLambda() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables/evSkipLambda.kt"); + } + + @TestMetadata("evSkipLocalClass.kt") + public void testEvSkipLocalClass() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extraVariables/evSkipLocalClass.kt"); + } + } + + @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Frame extends AbstractIrKotlinEvaluateExpressionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doSingleBreakpointTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInFrame() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("capturedValues1.kt") + public void testCapturedValues1() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/capturedValues1.kt"); + } + + @TestMetadata("capturedValues2.kt") + public void testCapturedValues2() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/capturedValues2.kt"); + } + + @TestMetadata("catchVariable.kt") + public void testCatchVariable() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/catchVariable.kt"); + } + + @TestMetadata("coroutineContextFun.kt") + public void testCoroutineContextFun() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/coroutineContextFun.kt"); + } + + @TestMetadata("coroutineContextLambda.kt") + public void testCoroutineContextLambda() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/coroutineContextLambda.kt"); + } + + @TestMetadata("coroutineContextWithoutSuspend.kt") + public void testCoroutineContextWithoutSuspend() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/coroutineContextWithoutSuspend.kt"); + } + + @TestMetadata("defaultImplsMangling.kt") + public void testDefaultImplsMangling() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/defaultImplsMangling.kt"); + } + + @TestMetadata("delegatedPropertyInClass.kt") + public void testDelegatedPropertyInClass() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/delegatedPropertyInClass.kt"); + } + + @TestMetadata("delegatedPropertyInClassKotlinVariables.kt") + public void testDelegatedPropertyInClassKotlinVariables() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/delegatedPropertyInClassKotlinVariables.kt"); + } + + @TestMetadata("delegatedPropertyInClassWithToString.kt") + public void testDelegatedPropertyInClassWithToString() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/delegatedPropertyInClassWithToString.kt"); + } + + @TestMetadata("delegatedPropertyInClassWoRenderer.kt") + public void testDelegatedPropertyInClassWoRenderer() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/delegatedPropertyInClassWoRenderer.kt"); + } + + @TestMetadata("frameAnonymousObject.kt") + public void testFrameAnonymousObject() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameAnonymousObject.kt"); + } + + @TestMetadata("frameClassObject.kt") + public void testFrameClassObject() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameClassObject.kt"); + } + + @TestMetadata("frameClosingBracket.kt") + public void testFrameClosingBracket() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameClosingBracket.kt"); + } + + @TestMetadata("frameExtFunExtFun.kt") + public void testFrameExtFunExtFun() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameExtFunExtFun.kt"); + } + + @TestMetadata("frameExtensionFun.kt") + public void testFrameExtensionFun() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameExtensionFun.kt"); + } + + @TestMetadata("frameInlineArgument.kt") + public void testFrameInlineArgument() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameInlineArgument.kt"); + } + + @TestMetadata("frameInlineArgumentInsideInlineFun.kt") + public void testFrameInlineArgumentInsideInlineFun() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameInlineArgumentInsideInlineFun.kt"); + } + + @TestMetadata("frameInlineFun.kt") + public void testFrameInlineFun() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameInlineFun.kt"); + } + + @TestMetadata("frameInlineFunCallInsideInlineFun.kt") + public void testFrameInlineFunCallInsideInlineFun() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameInlineFunCallInsideInlineFun.kt"); + } + + @TestMetadata("frameInlineFunCallInsideInlineFunKotlinVariables.kt") + public void testFrameInlineFunCallInsideInlineFunKotlinVariables() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameInlineFunCallInsideInlineFunKotlinVariables.kt"); + } + + @TestMetadata("frameInnerClass.kt") + public void testFrameInnerClass() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameInnerClass.kt"); + } + + @TestMetadata("frameInnerLambda.kt") + public void testFrameInnerLambda() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameInnerLambda.kt"); + } + + @TestMetadata("frameLambda.kt") + public void testFrameLambda() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameLambda.kt"); + } + + @TestMetadata("frameLambdaNotUsed.kt") + public void testFrameLambdaNotUsed() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameLambdaNotUsed.kt"); + } + + @TestMetadata("frameLocalVariable.kt") + public void testFrameLocalVariable() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameLocalVariable.kt"); + } + + @TestMetadata("frameObject.kt") + public void testFrameObject() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameObject.kt"); + } + + @TestMetadata("frameSharedVar.kt") + public void testFrameSharedVar() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameSharedVar.kt"); + } + + @TestMetadata("frameSharedVarLocalVar.kt") + public void testFrameSharedVarLocalVar() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameSharedVarLocalVar.kt"); + } + + @TestMetadata("frameSimple.kt") + public void testFrameSimple() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameSimple.kt"); + } + + @TestMetadata("frameThis0.kt") + public void testFrameThis0() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameThis0.kt"); + } + + @TestMetadata("frameThis0Ext.kt") + public void testFrameThis0Ext() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameThis0Ext.kt"); + } + + @TestMetadata("frameThis0This0.kt") + public void testFrameThis0This0() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameThis0This0.kt"); + } + + @TestMetadata("hideContinuationThis.kt") + public void testHideContinuationThis() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/hideContinuationThis.kt"); + } + + @TestMetadata("hideSyntheticThis.kt") + public void testHideSyntheticThis() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/hideSyntheticThis.kt"); + } + + @TestMetadata("inlineFunThisKotlinVariables.kt") + public void testInlineFunThisKotlinVariables() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/inlineFunThisKotlinVariables.kt"); + } + + @TestMetadata("lambdaAsValueArgument.kt") + public void testLambdaAsValueArgument() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/lambdaAsValueArgument.kt"); + } + + @TestMetadata("lambdaFun1.kt") + public void testLambdaFun1() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/lambdaFun1.kt"); + } + + @TestMetadata("lambdaFun2.kt") + public void testLambdaFun2() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/lambdaFun2.kt"); + } + + @TestMetadata("lambdaFun3.kt") + public void testLambdaFun3() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/lambdaFun3.kt"); + } + + @TestMetadata("lambdaFun4.kt") + public void testLambdaFun4() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/lambdaFun4.kt"); + } + + @TestMetadata("lambdaParameterMangling.kt") + public void testLambdaParameterMangling() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/lambdaParameterMangling.kt"); + } + + @TestMetadata("lambdaThisMangling.kt") + public void testLambdaThisMangling() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/lambdaThisMangling.kt"); + } + + @TestMetadata("localFunctionMangling.kt") + public void testLocalFunctionMangling() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/localFunctionMangling.kt"); + } + + @TestMetadata("nestedInlineFun.kt") + public void testNestedInlineFun() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/nestedInlineFun.kt"); + } + + @TestMetadata("nestedInlineFun2.kt") + public void testNestedInlineFun2() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/nestedInlineFun2.kt"); + } + + @TestMetadata("remapThis.kt") + public void testRemapThis() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/remapThis.kt"); + } + + @TestMetadata("suspendContinuation.kt") + public void testSuspendContinuation() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/suspendContinuation.kt"); + } + } + + @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/javaContext") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class JavaContext extends AbstractIrKotlinEvaluateExpressionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doSingleBreakpointTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInJavaContext() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/javaContext"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("jcBlock.kt") + public void testJcBlock() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/javaContext/jcBlock.kt"); + } + + @TestMetadata("jcImports.kt") + public void testJcImports() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/javaContext/jcImports.kt"); + } + + @TestMetadata("jcLocalVariable.kt") + public void testJcLocalVariable() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/javaContext/jcLocalVariable.kt"); + } + + @TestMetadata("jcMarkedObject.kt") + public void testJcMarkedObject() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/javaContext/jcMarkedObject.kt"); + } + + @TestMetadata("jcProperty.kt") + public void testJcProperty() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/javaContext/jcProperty.kt"); + } + + @TestMetadata("jcSimple.kt") + public void testJcSimple() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/javaContext/jcSimple.kt"); + } + } + + @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/labels") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Labels extends AbstractIrKotlinEvaluateExpressionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doSingleBreakpointTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInLabels() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/labels"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("lCallOnLabeledObj.kt") + public void testLCallOnLabeledObj() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/labels/lCallOnLabeledObj.kt"); + } + + @TestMetadata("lIdentifier.kt") + public void testLIdentifier() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/labels/lIdentifier.kt"); + } + + @TestMetadata("lSeveralLabels.kt") + public void testLSeveralLabels() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/labels/lSeveralLabels.kt"); + } + + @TestMetadata("lSimple.kt") + public void testLSimple() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/labels/lSimple.kt"); + } + + @TestMetadata("ldifferentTypes.kt") + public void testLdifferentTypes() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/labels/ldifferentTypes.kt"); + } + } + + @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Lambdas extends AbstractIrKotlinEvaluateExpressionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doSingleBreakpointTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInLambdas() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("destructuringParam.kt") + public void testDestructuringParam() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas/destructuringParam.kt"); + } + + @TestMetadata("inlineFunctionalExpression.kt") + public void testInlineFunctionalExpression() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas/inlineFunctionalExpression.kt"); + } + + @TestMetadata("inlineLambda.kt") + public void testInlineLambda() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas/inlineLambda.kt"); + } + + @TestMetadata("lambdaOnReturn.kt") + public void testLambdaOnReturn() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas/lambdaOnReturn.kt"); + } + + @TestMetadata("lambdaOnSecondLine.kt") + public void testLambdaOnSecondLine() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas/lambdaOnSecondLine.kt"); + } + + @TestMetadata("oneLineFunctionalExpression.kt") + public void testOneLineFunctionalExpression() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas/oneLineFunctionalExpression.kt"); + } + + @TestMetadata("oneLineLambda.kt") + public void testOneLineLambda() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas/oneLineLambda.kt"); + } + + @TestMetadata("twoLambdasOnOneLineFirst.kt") + public void testTwoLambdasOnOneLineFirst() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas/twoLambdasOnOneLineFirst.kt"); + } + + @TestMetadata("twoLambdasOnOneLineSecond.kt") + public void testTwoLambdasOnOneLineSecond() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas/twoLambdasOnOneLineSecond.kt"); + } + + @TestMetadata("underscoreNames.kt") + public void testUnderscoreNames() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas/underscoreNames.kt"); + } + } + + @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/renderer") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Renderer extends AbstractIrKotlinEvaluateExpressionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doSingleBreakpointTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInRenderer() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/renderer"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("toStringRenderer.kt") + public void testToStringRenderer() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/renderer/toStringRenderer.kt"); + } + } + } + + @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class MultipleBreakpoints extends AbstractIrKotlinEvaluateExpressionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doMultipleBreakpointsTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInMultipleBreakpoints() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("clearCache.kt") + public void testClearCache() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/clearCache.kt"); + } + + @TestMetadata("constructors.kt") + public void testConstructors() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/constructors.kt"); + } + + @TestMetadata("exceptions.kt") + public void testExceptions() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/exceptions.kt"); + } + + @TestMetadata("extensionMemberFunction.kt") + public void testExtensionMemberFunction() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/extensionMemberFunction.kt"); + } + + @TestMetadata("extensionMemberFunctionInObject.kt") + public void testExtensionMemberFunctionInObject() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/extensionMemberFunctionInObject.kt"); + } + + @TestMetadata("extensionMemberProperty.kt") + public void testExtensionMemberProperty() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/extensionMemberProperty.kt"); + } + + @TestMetadata("fieldVariable.kt") + public void testFieldVariable() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/fieldVariable.kt"); + } + + @TestMetadata("funFromOuterClassInLamdba.kt") + public void testFunFromOuterClassInLamdba() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/funFromOuterClassInLamdba.kt"); + } + + @TestMetadata("initializer.kt") + public void testInitializer() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/initializer.kt"); + } + + @TestMetadata("invisibleDeclarations.kt") + public void testInvisibleDeclarations() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/invisibleDeclarations.kt"); + } + + @TestMetadata("isInsideInlineLambda.kt") + public void testIsInsideInlineLambda() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/isInsideInlineLambda.kt"); + } + + @TestMetadata("lambdaParameters.kt") + public void testLambdaParameters() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/lambdaParameters.kt"); + } + + @TestMetadata("localFun.kt") + public void testLocalFun() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/localFun.kt"); + } + + @TestMetadata("multipleBreakpointsAtLine.kt") + public void testMultipleBreakpointsAtLine() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/multipleBreakpointsAtLine.kt"); + } + + @TestMetadata("mutations.kt") + public void testMutations() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/mutations.kt"); + } + + @TestMetadata("nonCapturedVariables.kt") + public void testNonCapturedVariables() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/nonCapturedVariables.kt"); + } + + @TestMetadata("privateMembersPriority.kt") + public void testPrivateMembersPriority() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/privateMembersPriority.kt"); + } + + @TestMetadata("remappedParameterInInline.kt") + public void testRemappedParameterInInline() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/remappedParameterInInline.kt"); + } + + @TestMetadata("smartcasts.kt") + public void testSmartcasts() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/smartcasts.kt"); + } + + @TestMetadata("thisLabels.kt") + public void testThisLabels() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/thisLabels.kt"); + } + + @TestMetadata("whenEntry.kt") + public void testWhenEntry() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/whenEntry.kt"); + } + + @TestMetadata("withoutBodyFunctions.kt") + public void testWithoutBodyFunctions() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/withoutBodyFunctions.kt"); + } + + @TestMetadata("withoutBodyProperties.kt") + public void testWithoutBodyProperties() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/withoutBodyProperties.kt"); + } + + @TestMetadata("withoutBodyProperties2.kt") + public void testWithoutBodyProperties2() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/withoutBodyProperties2.kt"); + } + + @TestMetadata("withoutBodyTypeParameters.kt") + public void testWithoutBodyTypeParameters() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/withoutBodyTypeParameters.kt"); + } + + @TestMetadata("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/library") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Library extends AbstractIrKotlinEvaluateExpressionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doMultipleBreakpointsTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInLibrary() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/library"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("customLibClassName.kt") + public void testCustomLibClassName() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/library/customLibClassName.kt"); + } + + @TestMetadata("localFunInLibrary.kt") + public void testLocalFunInLibrary() throws Exception { + runTest("idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/library/localFunInLibrary.kt"); + } + } + } +} diff --git a/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/KotlinDescriptorTestCase.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/KotlinDescriptorTestCase.kt index 4198b178c5b..e2a64cd492d 100644 --- a/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/KotlinDescriptorTestCase.kt +++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/KotlinDescriptorTestCase.kt @@ -220,7 +220,7 @@ abstract class KotlinDescriptorTestCase : DescriptorTestCase() { } } - private fun getExpectedOutputFile(): File { + protected fun getExpectedOutputFile(): File { if (useIrBackend()) { val irOut = File(getTestDirectoryPath(), getTestName(true) + ".ir.out") if (irOut.exists()) return irOut diff --git a/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/util/KotlinOutputChecker.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/util/KotlinOutputChecker.kt index 3b1e152514f..ea00771a88a 100644 --- a/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/util/KotlinOutputChecker.kt +++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/util/KotlinOutputChecker.kt @@ -45,6 +45,9 @@ internal class KotlinOutputChecker( private lateinit var myTestName: String + // True if the underlying test has already failed, but the failure was ignored. + var threwException = false + override fun init(testName: String) { super.init(testName) this.myTestName = Character.toLowerCase(testName[0]) + testName.substring(1) @@ -60,6 +63,7 @@ internal class KotlinOutputChecker( val outDir = File(testDir) var outFile = expectedOutputFile + val isIgnored = InTextDirectivesUtils.isIgnoredTarget(if (useIrBackend) TargetBackend.JVM_IR else TargetBackend.JVM, outFile) if (!outFile.exists()) { if (SystemInfo.isWindows) { @@ -80,7 +84,6 @@ internal class KotlinOutputChecker( LOG.error("Test file created ${outFile.path}\n**************** Don't forget to put it into VCS! *******************") } else { val originalText = FileUtilRt.loadFile(outFile, CharsetToolkit.UTF8) - val isIgnored = InTextDirectivesUtils.isIgnoredTarget(if (useIrBackend) TargetBackend.JVM_IR else TargetBackend.JVM, outFile) val expected = StringUtilRt.convertLineSeparators(originalText).split("\n").filter { !it.trim().startsWith(InTextDirectivesUtils.IGNORE_BACKEND_DIRECTIVE_PREFIX) }.joinToString("\n") @@ -104,7 +107,7 @@ internal class KotlinOutputChecker( if (isIgnored) return Assert.assertEquals(expected, actual) - } else if (isIgnored) { + } else if (isIgnored && !threwException) { // Fail if tests are marked as failing, but actually pass. throw AssertionError("Test passes and could be unmuted, remove IGNORE_BACKEND directive from ${outFile.path}") } diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/constructors.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/constructors.out index eab76fd268d..d11a570e330 100644 --- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/constructors.out +++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/constructors.out @@ -1,3 +1,4 @@ +// IGNORE_BACKEND: JVM_IR FunctionBreakpoint created at constructors.kt:9 LineBreakpoint created at constructors.kt:13 FunctionBreakpoint created at constructors.kt:20 diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/isInsideInlineLambda.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/isInsideInlineLambda.out index e04be351a23..fac52c99fd8 100644 --- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/isInsideInlineLambda.out +++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/isInsideInlineLambda.out @@ -1,3 +1,4 @@ +// IGNORE_BACKEND: JVM_IR LineBreakpoint created at isInsideInlineLambdaInLibrary.kt:7 lambdaOrdinal = 1 LineBreakpoint created at isInsideInlineLambdaInLibrary.kt:12 lambdaOrdinal = 1 LineBreakpoint created at isInsideInlineLambdaInLibrary.kt:18 lambdaOrdinal = 1 diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/library/localFunInLibrary.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/library/localFunInLibrary.out index 5907dff2403..50124b73779 100644 --- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/library/localFunInLibrary.out +++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/library/localFunInLibrary.out @@ -1,3 +1,4 @@ +// IGNORE_BACKEND: JVM_IR LineBreakpoint created at localFunCustomLib.kt:7 Run Java Connected to the target VM diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/localFun.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/localFun.out index ffa4ae231ff..7e76469801b 100644 --- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/localFun.out +++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/localFun.out @@ -1,3 +1,4 @@ +// IGNORE_BACKEND: JVM_IR LineBreakpoint created at localFun.kt:9 LineBreakpoint created at localFun.kt:15 LineBreakpoint created at localFun.kt:21 diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/smartcasts.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/smartcasts.out index 55ecdfb8f2a..2d5a2e67af7 100644 --- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/smartcasts.out +++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/smartcasts.out @@ -1,3 +1,4 @@ +// IGNORE_BACKEND: JVM_IR LineBreakpoint created at smartcasts.kt:19 LineBreakpoint created at smartcasts.kt:29 Run Java diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/thisLabels.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/thisLabels.out index ca185b30c13..ad8f802e606 100644 --- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/thisLabels.out +++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/multipleBreakpoints/thisLabels.out @@ -1,3 +1,4 @@ +// IGNORE_BACKEND: JVM_IR LineBreakpoint created at thisLabels.kt:6 LineBreakpoint created at thisLabels.kt:8 LineBreakpoint created at thisLabels.kt:10 diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/dataClassCopy.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/dataClassCopy.out index 7167326bfd3..a761424fd7d 100644 --- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/dataClassCopy.out +++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/dataClassCopy.out @@ -1,3 +1,4 @@ +// IGNORE_BACKEND: JVM_IR LineBreakpoint created at dataClassCopy.kt:6 Run Java Connected to the target VM diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/delegatedPropertyInOtherFile.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/delegatedPropertyInOtherFile.out index 2d5a6033803..9067d16b343 100644 --- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/delegatedPropertyInOtherFile.out +++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/delegatedPropertyInOtherFile.out @@ -1,3 +1,4 @@ +// IGNORE_BACKEND: JVM_IR LineBreakpoint created at delegatedPropertyInOtherFile.kt:10 Run Java Connected to the target VM diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/delegatedVariables.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/delegatedVariables.out index 23c4adeb450..9b56bce2866 100644 --- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/delegatedVariables.out +++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/delegatedVariables.out @@ -1,3 +1,4 @@ +// IGNORE_BACKEND: JVM_IR LineBreakpoint created at delegatedVariables.kt:6 Run Java Connected to the target VM diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extractThisInTrait.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extractThisInTrait.out index f505c357d3f..13964ff0ed8 100644 --- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extractThisInTrait.out +++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/extractThisInTrait.out @@ -1,3 +1,4 @@ +// IGNORE_BACKEND: JVM_IR LineBreakpoint created at extractThisInTrait.kt:10 Run Java Connected to the target VM diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/capturedValues1.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/capturedValues1.out index 07533f9a341..a4f9152ee6e 100644 --- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/capturedValues1.out +++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/capturedValues1.out @@ -1,3 +1,4 @@ +// IGNORE_BACKEND: JVM_IR LineBreakpoint created at capturedValues1.kt:17 Run Java Connected to the target VM diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/defaultImplsMangling.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/defaultImplsMangling.out index 0fdb80e59e0..c1f7cfed0eb 100644 --- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/defaultImplsMangling.out +++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/defaultImplsMangling.out @@ -1,3 +1,4 @@ +// IGNORE_BACKEND: JVM_IR LineBreakpoint created at defaultImplsMangling.kt:8 Run Java Connected to the target VM diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameAnonymousObject.ir.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameAnonymousObject.ir.out new file mode 100644 index 00000000000..1e6ec004fc7 --- /dev/null +++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameAnonymousObject.ir.out @@ -0,0 +1,14 @@ +LineBreakpoint created at frameAnonymousObject.kt:11 +Run Java +Connected to the target VM +frameAnonymousObject.kt:11 + frame = invoke:11, FrameAnonymousObjectKt$main$o$1$run$1 {frameAnonymousObject} + this = this = {frameAnonymousObject.FrameAnonymousObjectKt$main$o$1$run$1@uniqueID}Function0 + field = $val1: int = 1 (sp = null) + field = this$0: frameAnonymousObject.FrameAnonymousObjectKt$main$o$1 = {frameAnonymousObject.FrameAnonymousObjectKt$main$o$1@uniqueID} (sp = null) + field = obProp: int = 1 (sp = frameAnonymousObject.kt, 6) + field = $val1: int = 1 (sp = null) + field = arity: int = 0 (sp = Lambda.!EXT!) +Disconnected from the target VM + +Process finished with exit code 0 diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameExtFunExtFun.ir.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameExtFunExtFun.ir.out new file mode 100644 index 00000000000..4036ab9a16e --- /dev/null +++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameExtFunExtFun.ir.out @@ -0,0 +1,33 @@ +LineBreakpoint created at frameExtFunExtFun.kt:24 +Run Java +Connected to the target VM +frameExtFunExtFun.kt:24 +Compile bytecode for valFoo +Compile bytecode for valTest +Compile bytecode for aProp +Compile bytecode for outerProp +Compile bytecode for bProp +Compile bytecode for aMyFun() +Compile bytecode for outerMyFun() +Compile bytecode for bMyFun() + frame = invoke:24, Outer$foo$LocalClass$test$1 {frameExtFunExtFun} + this = this = {frameExtFunExtFun.Outer$foo$LocalClass$test$1@uniqueID}Function0 + field = this$0: frameExtFunExtFun.Outer = {frameExtFunExtFun.Outer@uniqueID} (sp = null) + field = outerProp: int = 1 (sp = frameExtFunExtFun.kt, 13) + field = $this_foo: frameExtFunExtFun.A = {frameExtFunExtFun.A@uniqueID} (sp = null) + field = aProp: int = 1 (sp = frameExtFunExtFun.kt, 8) + field = this$1: frameExtFunExtFun.Outer$foo$LocalClass = {frameExtFunExtFun.Outer$foo$LocalClass@uniqueID} (sp = null) + field = lcProp: int = 1 (sp = frameExtFunExtFun.kt, 19) + field = this$0: frameExtFunExtFun.Outer = {frameExtFunExtFun.Outer@uniqueID} (sp = null) + field = outerProp: int = 1 (sp = frameExtFunExtFun.kt, 13) + field = $this_foo: frameExtFunExtFun.A = {frameExtFunExtFun.A@uniqueID} (sp = null) + field = aProp: int = 1 (sp = frameExtFunExtFun.kt, 8) + field = $valFoo: int = 1 (sp = null) + field = $this_test: frameExtFunExtFun.B = {frameExtFunExtFun.B@uniqueID} (sp = null) + field = bProp: int = 1 (sp = frameExtFunExtFun.kt, 41) + field = $valFoo: int = 1 (sp = null) + field = $valTest: int = 1 (sp = null) + field = arity: int = 0 (sp = Lambda.!EXT!) +Disconnected from the target VM + +Process finished with exit code 0 diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameInnerLambda.ir.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameInnerLambda.ir.out new file mode 100644 index 00000000000..5d68ec3e83a --- /dev/null +++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameInnerLambda.ir.out @@ -0,0 +1,15 @@ +LineBreakpoint created at frameInnerLambda.kt:9 +Run Java +Connected to the target VM +frameInnerLambda.kt:9 +Compile bytecode for val1 +Compile bytecode for val2 +Compile bytecode for val1 + val2 + frame = invoke:9, FrameInnerLambdaKt$main$1$1 {frameInnerLambda} + this = this = {frameInnerLambda.FrameInnerLambdaKt$main$1$1@uniqueID}Function0 + field = $val1: int = 1 (sp = null) + field = $val2: int = 1 (sp = null) + field = arity: int = 0 (sp = Lambda.!EXT!) +Disconnected from the target VM + +Process finished with exit code 0 diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameThis0This0.ir.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameThis0This0.ir.out new file mode 100644 index 00000000000..024f3ca4c69 --- /dev/null +++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/frameThis0This0.ir.out @@ -0,0 +1,19 @@ +LineBreakpoint created at frameThis0This0.kt:17 +Run Java +Connected to the target VM +frameThis0This0.kt:17 +Compile bytecode for val1 +Compile bytecode for val2 +Compile bytecode for prop1 +Compile bytecode for prop1 + val1 + val2 +Compile bytecode for myFun() + frame = invoke:17, A$test$1$1 {frameThis0This0} + this = this = {frameThis0This0.A$test$1$1@uniqueID}Function0 + field = this$0: frameThis0This0.A = {frameThis0This0.A@uniqueID} (sp = null) + field = prop1: int = 1 (sp = frameThis0This0.kt, 8) + field = $val1: int = 1 (sp = null) + field = $val2: int = 1 (sp = null) + field = arity: int = 0 (sp = Lambda.!EXT!) +Disconnected from the target VM + +Process finished with exit code 0 diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/hideSyntheticThis.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/hideSyntheticThis.out index 84aa939489b..89d9f50e199 100644 --- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/hideSyntheticThis.out +++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/hideSyntheticThis.out @@ -1,3 +1,4 @@ +// IGNORE_BACKEND: JVM_IR LineBreakpoint created at hideSyntheticThis.kt:6 Run Java Connected to the target VM diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/lambdaAsValueArgument.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/lambdaAsValueArgument.out index 009f1b04456..a57e681d931 100644 --- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/lambdaAsValueArgument.out +++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/lambdaAsValueArgument.out @@ -1,3 +1,4 @@ +// IGNORE_BACKEND: JVM_IR LineBreakpoint created at lambdaAsValueArgument.kt:19 Run Java Connected to the target VM diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/lambdaFun3.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/lambdaFun3.out index 74084e9a863..8eb2140e080 100644 --- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/lambdaFun3.out +++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/frame/lambdaFun3.out @@ -1,3 +1,4 @@ +// IGNORE_BACKEND: JVM_IR LineBreakpoint created at lambdaFun3.kt:7 Run Java Connected to the target VM diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt15259.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt15259.out index c8b578ab088..bec9c2aaee4 100644 --- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt15259.out +++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt15259.out @@ -1,3 +1,4 @@ +// IGNORE_BACKEND: JVM_IR LineBreakpoint created at kt15259.kt:7 Run Java Connected to the target VM diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt29179.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt29179.out index c37717ff3be..db0fdd92a31 100644 --- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt29179.out +++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt29179.out @@ -1,3 +1,4 @@ +// IGNORE_BACKEND: JVM_IR LineBreakpoint created at kt29179.kt:9 Run Java Connected to the target VM diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt36404.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt36404.out index 1e6d4b2be4b..072f8d54b09 100644 --- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt36404.out +++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/kt36404.out @@ -1,3 +1,4 @@ +// IGNORE_BACKEND: JVM_IR LineBreakpoint created at test.kt:8 Run Java Connected to the target VM diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas/destructuringParam.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas/destructuringParam.out index 2c1a8f94bbc..9a50bec4ebf 100644 --- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas/destructuringParam.out +++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas/destructuringParam.out @@ -1,3 +1,4 @@ +// IGNORE_BACKEND: JVM_IR LineBreakpoint created at destructuringParam.kt:12 lambdaOrdinal = 1 Run Java Connected to the target VM diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas/inlineFunctionalExpression.ir.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas/inlineFunctionalExpression.ir.out new file mode 100644 index 00000000000..8bea5b0559e --- /dev/null +++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/lambdas/inlineFunctionalExpression.ir.out @@ -0,0 +1,7 @@ +LineBreakpoint created at inlineFunctionalExpression.kt:9 +Run Java +Connected to the target VM +inlineFunctionalExpression.kt:9 +Disconnected from the target VM + +Process finished with exit code 0 diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/localFunctionsWithReceivers.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/localFunctionsWithReceivers.out index b16f60e840f..be463b4edf9 100644 --- a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/localFunctionsWithReceivers.out +++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/localFunctionsWithReceivers.out @@ -1,3 +1,4 @@ +// IGNORE_BACKEND: JVM_IR LineBreakpoint created at localFunctionsWithReceivers.kt:10 Run Java Connected to the target VM diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/onObjectHeader.ir.out b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/onObjectHeader.ir.out new file mode 100644 index 00000000000..6227112763a --- /dev/null +++ b/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/onObjectHeader.ir.out @@ -0,0 +1,13 @@ +LineBreakpoint created at onObjectHeader.kt:5 +Run Java +Connected to the target VM +onObjectHeader.kt:5 +onObjectHeader.kt:10 +onObjectHeader.kt:16 +onObjectHeader.kt:10 +onObjectHeader.kt:11 +onObjectHeader.kt:8 +Compile bytecode for 1 + 1 +Disconnected from the target VM + +Process finished with exit code 0 diff --git a/idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOut/fwBackingField.out b/idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOut/fwBackingField.out index ade6904d75e..ca4193a5a70 100644 --- a/idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOut/fwBackingField.out +++ b/idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOut/fwBackingField.out @@ -1,3 +1,4 @@ +// IGNORE_BACKEND: JVM_IR KotlinFieldBreakpoint created at fwBackingField.kt:5 KotlinFieldBreakpoint created at fwBackingField.kt:8 KotlinFieldBreakpoint created at fwBackingField.kt:18