MCPcopy Index your code
hub / github.com/commandoperator/cmdop-sdk / _make_transport

Function _make_transport

python/tests/test_transport.py:73–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71
72
73def _make_transport() -> tuple[Transport, FakeProc]:
74 cfg = ClientConfig.resolve(token="t", base_url="https://x")
75 t = Transport(cfg, "/nonexistent/cmdop-core")
76 proc = FakeProc()
77 # Wire the fake proc in without spawning.
78 t._proc = proc # type: ignore[assignment]
79 t._reader_task = asyncio.get_running_loop().create_task(t._read_loop())
80 return t, proc
81
82
83def _feed(proc: FakeProc, env: pb.Envelope) -> None:

Calls 4

_read_loopMethod · 0.95
TransportClass · 0.90
resolveMethod · 0.80
FakeProcClass · 0.70

Tested by

no test coverage detected