MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / __init__

Method __init__

test/utils.py:237–242  ·  view source on GitHub ↗
(self, address, options, is_sdam=False, client_id=None)

Source from the content-addressed store, hash-verified

235
236class MockPool:
237 def __init__(self, address, options, is_sdam=False, client_id=None):
238 self.gen = _PoolGeneration()
239 self._lock = _create_lock()
240 self.opts = options
241 self.operation_count = 0
242 self.conns = []
243
244 def stale_generation(self, gen, service_id):
245 return self.gen.stale(gen, service_id)

Callers

nothing calls this directly

Calls 2

_PoolGenerationClass · 0.90
_create_lockFunction · 0.90

Tested by

no test coverage detected