/external/chromium-trace/catapult/devil/devil/utils/ |
mock_calls.py | 29 def side_effect(*args, **kwargs): function in function:TestCase._AssertCalls.__init__.do_check 45 return side_effect 52 self._patched = [test_case.patch_call(call, side_effect=do_check(call))
|
/external/compiler-rt/test/asan/TestCases/ |
speculative_load.cc | 40 inline void side_effect(const void *arg) { function 46 side_effect(&s); // optimizer is too smart otherwise 48 side_effect(ptr); // force use ptr
|
/external/autotest/site_utils/ |
run_suite_unittest.py | 123 def side_effect(*args, **kwargs): function in function:ResultCollectorUnittest._mock_tko_get_detailed_test_views 128 self.tko.run = mock.MagicMock(side_effect=side_effect) 152 def side_effect(*args, **kwargs): function in function:ResultCollectorUnittest._mock_afe_get_jobs 158 self.afe.get_jobs = mock.MagicMock(side_effect=side_effect)
|
/external/python/cpython3/Lib/tkinter/test/test_tkinter/ |
test_variables.py | 10 side_effect = False variable in class:Var 13 self.side_effect = True 86 self.assertFalse(v.side_effect) 88 self.assertTrue(v.side_effect)
|
/external/python/cpython3/Lib/test/ |
test_finalization.py | 78 self.side_effect() 82 def side_effect(self): member in class:NonGCSimpleBase 103 def side_effect(self): member in class:NonGCResurrector 227 def side_effect(self): member in class:SuicidalSelfCycle 324 def side_effect(self): member in class:SuicidalChained 414 # Do not invoke side_effect here, since we are now exercising 430 self.side_effect() 441 def side_effect(self): member in class:LegacyResurrector
|
/external/clang/test/SemaCXX/ |
warn-unused-private-field.cpp | 86 int side_effect() { function 94 initialized_with_side_effect_(side_effect()) { 109 int in_class_initializer_with_side_effect_ = side_effect();
|
/external/pdfium/third_party/pymock/ |
mock.py | 324 funcopy.side_effect = mock.side_effect 385 'return_value', '_mock_return_value', 'side_effect', 599 return sig.side_effect 607 sig.side_effect = value 609 side_effect = property(__get_side_effect, __set_side_effect) variable in class:NonCallableMock 638 >>> attrs = {'method.return_value': 3, 'other.side_effect': KeyError} 933 def __init__(self, spec=None, side_effect=None, return_value=DEFAULT, 943 self.side_effect = side_effect [all...] |
/external/python/cpython2/Lib/test/ |
_mock_backport.py | 229 funcopy.side_effect = mock.side_effect 281 'return_value', '_mock_return_value', 'side_effect', 511 sf = delegated.side_effect 514 delegated.side_effect = sf 523 delegated.side_effect = value 525 side_effect = property(__get_side_effect, __set_side_effect) variable in class:NonCallableMock 554 >>> attrs = {'method.return_value': 3, 'other.side_effect': KeyError} 888 def __init__(self, spec=None, side_effect=None, return_value=DEFAULT, 898 self.side_effect = side_effec [all...] |
/external/python/cpython3/Lib/unittest/ |
mock.py | 216 funcopy.side_effect = mock.side_effect 277 'return_value', '_mock_return_value', 'side_effect', 515 sf = delegated.side_effect 519 delegated.side_effect = sf 528 delegated.side_effect = value 530 side_effect = property(__get_side_effect, __set_side_effect) variable in class:NonCallableMock 533 def reset_mock(self, visited=None,*, return_value=False, side_effect=False): 550 if side_effect: 570 >>> attrs = {'method.return_value': 3, 'other.side_effect': KeyError [all...] |
/external/python/cpython3/Lib/unittest/test/testmock/ |
testmock.py | 137 mock.side_effect = effect 144 mock.side_effect = effect 149 mock = Mock(side_effect=sentinel.SideEffect) 150 self.assertEqual(mock.side_effect, sentinel.SideEffect, 153 def side_effect(): function in function:MockTest.test_side_effect 155 mock = Mock(side_effect=side_effect, return_value=sentinel.RETURN) 167 mock.side_effect = [1, 2, 3] 173 mock.side_effect = effect 183 mock.side_effect = ValueError('Bazinga!' 633 def side_effect(): function in function:MockTest.test_customize_wrapped_object_with_side_effect_function [all...] |
/external/python/mock/mock/tests/ |
testmock.py | 161 mock.side_effect = effect 168 mock.side_effect = effect 173 mock = Mock(side_effect=sentinel.SideEffect) 174 self.assertEqual(mock.side_effect, sentinel.SideEffect, 177 def side_effect(): function in function:MockTest.test_side_effect 179 mock = Mock(side_effect=side_effect, return_value=sentinel.RETURN) 191 mock.side_effect = [1, 2, 3] 197 mock.side_effect = effect 207 mock.side_effect = ValueError('Bazinga!' [all...] |
/external/python/mock/mock/ |
mock.py | 339 funcopy.side_effect = mock.side_effect 399 'return_value', '_mock_return_value', 'side_effect', 628 sf = delegated.side_effect 632 delegated.side_effect = sf 641 delegated.side_effect = value 643 side_effect = property(__get_side_effect, __set_side_effect) variable in class:NonCallableMock 678 >>> attrs = {'method.return_value': 3, 'other.side_effect': KeyError} [all...] |