MCPcopy Index your code
hub / github.com/python/cpython / add_call_counting

Function add_call_counting

Lib/idlelib/idle_test/test_tooltip.py:29–35  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

27
28
29def add_call_counting(func):
30 @wraps(func)
31 def wrapped_func(*args, **kwargs):
32 wrapped_func.call_args_list.append((args, kwargs))
33 return func(*args, **kwargs)
34 wrapped_func.call_args_list = []
35 return wrapped_func
36
37
38def _make_top_and_button(testobj):

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…