[all-commits] [llvm/llvm-project] a85441: [lldb] Add unit tests for the MCP server (#202752)

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Tue Jun 16 11:06:32 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a85441c04b789e2da32424cd8e50226cf626d7e3
      https://github.com/llvm/llvm-project/commit/a85441c04b789e2da32424cd8e50226cf626d7e3
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2026-06-16 (Tue, 16 Jun 2026)

  Changed paths:
    M lldb/unittests/Protocol/CMakeLists.txt
    A lldb/unittests/Protocol/MCPErrorTest.cpp
    A lldb/unittests/Protocol/MCPPluginTest.cpp
    A lldb/unittests/Protocol/MCPServerInfoTest.cpp
    A lldb/unittests/Protocol/MCPTransportTest.cpp
    M lldb/unittests/Protocol/ProtocolMCPServerTest.cpp
    M lldb/unittests/Protocol/ProtocolMCPTest.cpp
    M lldb/unittests/TestingSupport/Host/JSONTransportTestUtilities.h

  Log Message:
  -----------
  [lldb] Add unit tests for the MCP server (#202752)

Add unit-test coverage for the MCP protocol types and server under
source/Protocol/MCP and the MCP plugin under
source/Plugins/Protocol/MCP.

The Server handlers run over the in-memory TestTransport, which gains
SimulateError/SimulateClosed/SetRegisterMessageHandlerShouldFail helpers
to drive the handler lifecycle without a real socket.

Code that touches the filesystem or otherwise requires mucking with the
test environment are deliberately left uncovered until those layers can
be mocked.

Assisted-by: Claude



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list