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

Function _get

Lib/unittest/mock.py:357–361  ·  view source on GitHub ↗
(self, name=name, _the_name=_the_name)

Source from the content-addressed store, hash-verified

355 _allowed_names.add(name)
356 _the_name = '_mock_' + name
357 def _get(self, name=name, _the_name=_the_name):
358 sig = self._mock_delegate
359 if sig is None:
360 return getattr(self, _the_name)
361 return getattr(sig, name)
362 def _set(self, value, name=name, _the_name=_the_name):
363 sig = self._mock_delegate
364 if sig is None:

Callers 1

getMethod · 0.85

Calls 1

getattrFunction · 0.85

Tested by

no test coverage detected