Coverage for fingerprint_pro_server_api_sdk/dummy_pool.py: 0%
15 statements
« prev ^ index » next coverage.py v7.6.9, created at 2024-12-09 17:50 +0000
« prev ^ index » next coverage.py v7.6.9, created at 2024-12-09 17:50 +0000
1class DummyAsyncResult:
2 def __init__(self, value):
3 self.value = value
5 def get(self):
6 return self.value
9class DummyPool:
10 def apply_async(self, func, args=(), kwds={}, callback=None):
11 result = func(*args, **kwds)
12 if callback is not None:
13 callback(result)
14 return DummyAsyncResult(result)
16 def close(self):
17 pass
19 def join(self):
20 pass