MCPcopy Index your code
hub / github.com/RustPython/RustPython / wrapper

Function wrapper

Lib/unittest/mock.py:291–292  ·  view source on GitHub ↗
(attr, /, *args, **kwargs)

Source from the content-addressed store, hash-verified

289 # to a function and then the corresponding mock helper function
290 # is called when the helper is accessed similar to _setup_func.
291 def wrapper(attr, /, *args, **kwargs):
292 return getattr(mock.mock, attr)(*args, **kwargs)
293
294 for attribute in ('assert_awaited',
295 'assert_awaited_once',

Callers 1

runsourceMethod · 0.50

Calls 1

getattrFunction · 0.85

Tested by

no test coverage detected