MCPcopy Index your code
hub / github.com/github/copilot-sdk / MockProcess

Class MockProcess

python/test_jsonrpc.py:19–28  ·  view source on GitHub ↗

Mock subprocess.Popen for testing JSON-RPC client

Source from the content-addressed store, hash-verified

17
18
19class MockProcess:
20 """Mock subprocess.Popen for testing JSON-RPC client"""
21
22 def __init__(self):
23 self.stdin = io.BytesIO()
24 self.stdout = None # Will be set per test
25 self.returncode = None
26
27 def poll(self):
28 return self.returncode
29
30
31class ShortReadStream:

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…