MCPcopy
hub / github.com/jhao104/proxy_pool / test

Method test

db/ssdbClient.py:141–153  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

139 self.name = name
140
141 def test(self):
142 log = LogHandler('ssdb_client')
143 try:
144 self.getCount()
145 except TimeoutError as e:
146 log.error('ssdb connection time out: %s' % str(e), exc_info=True)
147 return e
148 except ConnectionError as e:
149 log.error('ssdb connection error: %s' % str(e), exc_info=True)
150 return e
151 except ResponseError as e:
152 log.error('ssdb connection error: %s' % str(e), exc_info=True)
153 return e

Callers

nothing calls this directly

Calls 2

getCountMethod · 0.95
LogHandlerClass · 0.90

Tested by

no test coverage detected