MCPcopy Create free account
hub / github.com/commandoperator/cmdop-sdk / _feed

Function _feed

python/tests/test_transport.py:83–87  ·  view source on GitHub ↗

Feed one length-delimited Envelope into the core->client stream.

(proc: FakeProc, env: pb.Envelope)

Source from the content-addressed store, hash-verified

81
82
83def _feed(proc: FakeProc, env: pb.Envelope) -> None:
84 """Feed one length-delimited Envelope into the core->client stream."""
85 data = env.SerializeToString()
86 proc.stdout.feed_data(_VarintBytes(len(data)))
87 proc.stdout.feed_data(data)
88
89
90async def _read_request(proc: FakeProc) -> pb.Envelope:

Callers 1

coreFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected