Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/catboost/catboost
/ th_inc
Function
th_inc
library/python/func/ut/test_func.py:178–182 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
176
return
Counter(start)
177
178
def
th_inc():
179
assert get_counter(0).inc() == 1
180
assert get_counter(0).inc() == 2
181
assert get_counter(10).inc() == 11
182
assert get_counter(10).inc() == 12
183
184
th_inc()
185
Callers
1
test_memoize_thread_local
Function · 0.85
Calls
2
get_counter
Function · 0.85
inc
Method · 0.80
Tested by
no test coverage detected