Stdio transport connect and execute¶
Tests › tests/integration/test_external_mcp.cpp
What this test is for
Why it exists
The test says nothing about why.
tests/integration/test_external_mcp.cpp:39 · its file's page
What it checks (7)
REQUIRE(client.connect())observesconnectREQUIRE(client.is_connected())observesis_connectedREQUIRE(tools.size() == 1)observeslist_toolsviatoolsREQUIRE(tools[0]["name"] == "mock.echo")observeslist_toolsviatoolsREQUIRE(r.find("hello") != std::string::npos)not attributedREQUIRE(j["directives"].empty())not attributedREQUIRE_FALSE(client.is_connected())observesis_connected
Where the product reaches it
No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.
Call flow
Stdio transport connect and execute→mock_server_path→REQUIRE→connect→is_connected→list_tools→execute→disconnectWhat it reaches
Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.
Also reaches 4 requirements
Its run touches their code; that is reach, not proof.
- REQ-MCP-002 inferred
- REQ-MCP-007 inferred
- REQ-MCP-025 inferred
- REQ-MCP-026 inferred