MCPcopy Create free account
hub / github.com/apache/cassandra-python-driver / recv_side_effect

Method recv_side_effect

tests/unit/io/utils.py:281–286  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

279 message_chunks = None
280
281 def recv_side_effect(*args):
282 response = message_chunks.pop(0)
283 if isinstance(response, error_class):
284 raise response
285 else:
286 return response
287
288 # setup
289 self.get_socket(c).recv.side_effect = recv_side_effect

Callers

nothing calls this directly

Calls 2

readMethod · 0.80
popMethod · 0.45

Tested by

no test coverage detected