/external/python/cpython3/Lib/unittest/test/testmock/ |
D | testcallable.py | 58 patcher = patch('%s.X' % __name__, spec=True) 59 mock = patcher.start() 60 self.addCleanup(patcher.stop) 70 patcher = patch('%s.X' % __name__, spec_set=True) 71 mock = patcher.start() 72 self.addCleanup(patcher.stop) 82 patcher = patch('%s.X' % __name__, spec=X()) 83 mock = patcher.start() 84 self.addCleanup(patcher.stop) 91 patcher = patch('%s.X' % __name__, spec_set=X()) [all …]
|
D | testpatch.py | 719 patcher = patch('%s.something' % __name__) 721 mock = patcher.start() 726 patcher.stop() 732 patcher = patch(foo_name, 'bar', 3) 733 self.assertIsNone(patcher.stop()) 738 patcher = patch(foo_name, 'bar', 3) 740 patcher.start() 741 patcher.stop() 742 self.assertIsNone(patcher.stop()) 747 patcher = patch.object(PTModule, 'something', 'foo') [all …]
|
D | testmock.py | 892 patcher = patch.object(mock, 'FILTER_DIR', False) 893 patcher.start() 901 patcher.stop()
|
/external/python/mock/mock/tests/ |
D | testcallable.py | 58 patcher = patch('%s.X' % __name__, spec=True) 59 mock = patcher.start() 60 self.addCleanup(patcher.stop) 70 patcher = patch('%s.X' % __name__, spec_set=True) 71 mock = patcher.start() 72 self.addCleanup(patcher.stop) 82 patcher = patch('%s.X' % __name__, spec=X()) 83 mock = patcher.start() 84 self.addCleanup(patcher.stop) 91 patcher = patch('%s.X' % __name__, spec_set=X()) [all …]
|
D | testpatch.py | 718 patcher = patch('%s.something' % __name__) 720 mock = patcher.start() 725 patcher.stop() 731 patcher = patch(foo_name, 'bar', 3) 732 self.assertIsNone(patcher.stop()) 737 patcher = patch(foo_name, 'bar', 3) 739 patcher.start() 740 patcher.stop() 741 self.assertIsNone(patcher.stop()) 746 patcher = patch.object(PTModule, 'something', 'foo') [all …]
|
D | testmock.py | 944 patcher = patch.object(mock, 'FILTER_DIR', False) 945 patcher.start() 953 patcher.stop()
|
/external/autotest/client/common_lib/cros/ |
D | retry_unittest.py | 34 patcher = mock.patch('time.sleep', autospec=True) 35 self._sleep_mock = patcher.start() 36 self.addCleanup(patcher.stop) 38 patcher = mock.patch('time.time', autospec=True) 39 self._time_mock = patcher.start() 40 self.addCleanup(patcher.stop)
|
/external/chromium-trace/catapult/common/py_utils/py_utils/ |
D | retry_util_unittest.py | 16 patcher = mock.patch('time.sleep') 17 self.time_sleep = patcher.start() 18 self.addCleanup(patcher.stop)
|
/external/v8/src/codegen/arm64/ |
D | instructions-arm64.cc | 248 PatchingAssembler patcher(options, reinterpret_cast<byte*>(this), in SetPCRelImmTarget() local 250 patcher.PatchAdrFar(target_offset); in SetPCRelImmTarget() 297 PatchingAssembler patcher(options, reinterpret_cast<byte*>(this), 2); in SetUnresolvedInternalReferenceImmTarget() local 298 patcher.brk(high16); in SetUnresolvedInternalReferenceImmTarget() 299 patcher.brk(low16); in SetUnresolvedInternalReferenceImmTarget()
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/ |
D | ContinuationSerializationTest.kt | 71 …private fun testSerization(serialize: KSuspendFunction0<Unit>, patcher: (Continuation<Unit>) -> Un… in <lambda>() 80 patcher(cont) in <lambda>()
|
/external/oss-fuzz/infra/base-images/base-builder/ |
D | bisect_clang_test.py | 35 patcher = mock.patch.dict(os.environ, env) 36 testcase_obj.addCleanup(patcher.stop) 37 patcher.start()
|
/external/python/cpython2/Lib/test/ |
D | _mock_backport.py | 1059 def _is_started(patcher): argument 1061 return hasattr(patcher, 'is_local') 1097 patcher = _patch( 1102 patcher.attribute_name = self.attribute_name 1103 patcher.additional_patchers = [ 1106 return patcher 1124 patcher = self.copy() 1125 setattr(klass, attr, patcher(attr_value)) 1335 for patcher in reversed(self.additional_patchers): 1336 if _is_started(patcher): [all …]
|
/external/pdfium/third_party/pymock/ |
D | mock.py | 1106 def _is_started(patcher): argument 1108 return hasattr(patcher, 'is_local') 1144 patcher = _patch( 1149 patcher.attribute_name = self.attribute_name 1150 patcher.additional_patchers = [ 1153 return patcher 1171 patcher = self.copy() 1172 setattr(klass, attr, patcher(attr_value)) 1389 for patcher in reversed(self.additional_patchers): 1390 if _is_started(patcher): [all …]
|
/external/python/mock/mock/ |
D | mock.py | 1239 def _is_started(patcher): argument 1241 return hasattr(patcher, 'is_local') 1277 patcher = _patch( 1282 patcher.attribute_name = self.attribute_name 1283 patcher.additional_patchers = [ 1286 return patcher 1304 patcher = self.copy() 1305 setattr(klass, attr, patcher(attr_value)) 1518 for patcher in reversed(self.additional_patchers): 1519 if _is_started(patcher): [all …]
|
/external/python/cpython3/Lib/unittest/ |
D | mock.py | 1226 def _is_started(patcher): argument 1228 return hasattr(patcher, 'is_local') 1264 patcher = _patch( 1269 patcher.attribute_name = self.attribute_name 1270 patcher.additional_patchers = [ 1273 return patcher 1293 patcher = self.copy() 1294 setattr(klass, attr, patcher(attr_value)) 1538 for patcher in reversed(self.additional_patchers): 1539 if _is_started(patcher): [all …]
|
/external/rappor/ |
D | README.android | 5 Any Android specific modifications to upstream archive-patcher should be listed
|
/external/v8/src/codegen/ppc/ |
D | assembler-ppc.cc | 488 PatchingAssembler patcher( in target_at_put() local 490 patcher.bitwise_mov32(dst, offset); in target_at_put() 503 PatchingAssembler patcher( in target_at_put() local 506 patcher.bitwise_add32(dst, base, offset); in target_at_put() 507 if (opcode == kUnboundAddLabelLongOffsetOpcode) patcher.nop(); in target_at_put() 513 PatchingAssembler patcher(options(), in target_at_put() local 517 patcher.bitwise_mov(dst, target_pos); in target_at_put() 521 PatchingAssembler patcher(options(), in target_at_put() local 525 patcher.dp(target_pos); in target_at_put()
|
/external/python/cpython3/Doc/library/ |
D | unittest.mock-examples.rst | 691 ... self.patcher = patch('mymodule.foo') 692 ... self.mock_foo = self.patcher.start() 698 ... self.patcher.stop() 709 ... patcher = patch('mymodule.foo') 710 ... self.addCleanup(patcher.stop) 711 ... self.mock_foo = patcher.start() 945 ... patcher = patch(name) 946 ... thing = patcher.start() 947 ... self.addCleanup(patcher.stop) 1126 body is complete or ``patcher.stop()`` is called) then whatever was there
|
D | unittest.mock.rst | 1444 >>> patcher = patch('__main__.Class', spec=True) 1445 >>> MockClass = patcher.start() 1448 >>> patcher.stop() 1481 >>> patcher = patch('__main__.thing', first='one', second='two') 1482 >>> mock_thing = patcher.start() 1495 >>> patcher = patch('__main__.thing', **config) 1496 >>> mock_thing = patcher.start() 1751 normal and keep a reference to the returned ``patcher`` object. You can then 1755 the call to ``patcher.start``. :: 1757 >>> patcher = patch('package.module.ClassName') [all …]
|
/external/v8/src/codegen/arm/ |
D | assembler-arm.cc | 839 PatchingAssembler patcher( in target_at_put() local 841 patcher.mov(dst, Operand(target24)); in target_at_put() 848 PatchingAssembler patcher( in target_at_put() local 850 CpuFeatureScope scope(&patcher, ARMv7); in target_at_put() 851 patcher.movw(dst, target16_0); in target_at_put() 853 PatchingAssembler patcher( in target_at_put() local 855 CpuFeatureScope scope(&patcher, ARMv7); in target_at_put() 856 patcher.movw(dst, target16_0); in target_at_put() 857 patcher.movt(dst, target16_1); in target_at_put() 865 PatchingAssembler patcher( in target_at_put() local [all …]
|
/external/autotest/client/common_lib/ |
D | utils_unittest.py | 1239 self.patcher = pymock.patch( 1241 self.time_mock = self.patcher.start() 1242 self.addCleanup(self.patcher.stop)
|
/external/v8/ |
D | DEPS | 166 'package': 'chromium/third_party/android_sdk/public/patcher',
|
/external/libyuv/files/ |
D | DEPS | 163 'package': 'chromium/third_party/android_sdk/public/patcher',
|
/external/llvm/docs/ |
D | StackMaps.rst | 14 generator, object code consumer, and code patcher.
|
/external/swiftshader/third_party/llvm-7.0/llvm/docs/ |
D | StackMaps.rst | 14 generator, object code consumer, and code patcher.
|