MCPcopy Create free account
hub / github.com/IBM/mcp-cli / _run_and_close

Method _run_and_close

tests/adapters/test_cli_adapter_coverage.py:320–322  ·  view source on GitHub ↗
(coro)

Source from the content-addressed store, hash-verified

318 mock_exec.return_value = CommandResult(success=True, output="server list")
319
320 def _run_and_close(coro):
321 coro.close()
322 return CommandResult(success=True, output="server list")
323
324 with patch(
325 "asyncio.run",

Callers

nothing calls this directly

Calls 2

CommandResultClass · 0.90
closeMethod · 0.45

Tested by

no test coverage detected