[Lldb-commits] [lldb] [lldb][api-test] Add API test for SBCommandInterpreter::CommandOverrideCallback (PR #94518)

via lldb-commits lldb-commits at lists.llvm.org
Wed Jun 5 11:36:15 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r c6c08eee37bada190bd1aa4593c88a5e2c8cdaac...90602ed1b2f27fecb9e1fc28419587cf6bcb04bf lldb/test/API/python_api/interpreter/TestCommandOverrideCallback.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- TestCommandOverrideCallback.py	2024-06-05 18:31:49.000000 +0000
+++ TestCommandOverrideCallback.py	2024-06-05 18:35:47.810046 +0000
@@ -1,10 +1,11 @@
 from typing_extensions import override
 import lldb
 from lldbsuite.test.decorators import *
 from lldbsuite.test.lldbtest import *
 from lldbsuite.test import lldbutil
+
 
 class CommandOverrideCallback(TestBase):
     def setUp(self):
         TestBase.setUp(self)
         self.line = line_number("main.c", "Hello world.")
@@ -20,10 +21,11 @@
         # Retrieve the associated command interpreter from our debugger.
         ci = self.dbg.GetCommandInterpreter()
         self.assertTrue(ci, VALID_COMMAND_INTERPRETER)
 
         override_string = "what"
+
         def foo(string):
             nonlocal override_string
             override_string = string
             return False
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/94518


More information about the lldb-commits mailing list