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

Class FakeProc

python/tests/test_skills.py:39–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38
39class FakeProc:
40 def __init__(self) -> None:
41 self.stdout = asyncio.StreamReader()
42 self.stderr = asyncio.StreamReader()
43 self.stderr.feed_eof()
44 self._client_to_core = asyncio.StreamReader()
45 self.stdin = _CaptureWriter(self._client_to_core)
46 self.returncode = None
47
48 async def wait(self) -> int:
49 return 0
50
51 def kill(self) -> None:
52 self.returncode = -9
53
54
55class _FakeClient:

Callers 1

_make_transportFunction · 0.70

Calls

no outgoing calls

Tested by 1

_make_transportFunction · 0.56