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

Class RecordingClientMiddlewareFactory

python/pyarrow/tests/test_flight.py:845–854  ·  view source on GitHub ↗

Record what methods were called.

Source from the content-addressed store, hash-verified

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

Callers 1

test_middleware_mappingFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_middleware_mappingFunction · 0.68