MCPcopy Create free account
hub / github.com/apache/arrow / RecordingClientMiddlewareFactory

Class RecordingClientMiddlewareFactory

python/pyarrow/tests/test_flight.py:847–856  ·  view source on GitHub ↗

Record what methods were called.

Source from the content-addressed store, hash-verified

845
846
847class RecordingClientMiddlewareFactory(ClientMiddlewareFactory):
848 """Record what methods were called."""
849
850 def __init__(self):
851 super().__init__()
852 self.methods = []
853
854 def start_call(self, info):
855 self.methods.append(info.method)
856 return None
857
858
859class MultiHeaderClientMiddlewareFactory(ClientMiddlewareFactory):

Callers 1

test_middleware_mappingFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_middleware_mappingFunction · 0.68