MCPcopy Create free account
hub / github.com/couchbase/couchbase-python-client / _write_command

Method _write_command

tests/mock_server.py:384–389  ·  view source on GitHub ↗
(self, cmd)

Source from the content-addressed store, hash-verified

382 return json.loads(result)
383
384 def _write_command(self, cmd):
385 cmd_str = json.dumps(cmd)
386 cmd_array = bytearray(cmd_str, 'utf-8')
387 # append null byte
388 cmd_array += b'\x00'
389 self._caves_sock.send(bytes(cmd_array))
390
391 def _round_trip_command(self, cmd):
392 self._write_command(cmd)

Callers 1

_round_trip_commandMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected