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

Function _side_effect

tests/cli/test_main_coverage.py:1595–1597  ·  view source on GitHub ↗
(coro)

Source from the content-addressed store, hash-verified

1593 """Return a side_effect that closes the coroutine then raises *exc*."""
1594
1595 def _side_effect(coro):
1596 coro.close()
1597 raise exc
1598
1599 return _side_effect
1600

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected