MCPcopy Create free account
hub / github.com/catboost/catboost / worker

Function worker

library/python/func/ut/test_func.py:205–210  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

203 return Counter(n)
204
205 def worker(n):
206 assert io_job(n).inc() == n + 1
207 assert io_job(n).inc() == n + 2
208 assert io_job(n*10).inc() == n*10 + 1
209 assert io_job(n*10).inc() == n*10 + 2
210 assert io_job(n).inc() == n + 3
211
212 threads = []
213 for i in range(5):

Callers

nothing calls this directly

Calls 3

io_jobFunction · 0.85
incMethod · 0.80
jobFunction · 0.70

Tested by

no test coverage detected