Lines Matching full:mock

9 import mock
58 @mock.patch("check_init_priorities.ZephyrInitLevels.__init__", return_value=None)
60 mock_elf = mock.Mock()
62 sts = mock.Mock(spec=SymbolTableSection)
63 rel = mock.Mock(spec=Section)
66 s0 = mock.Mock()
73 s1 = mock.Mock()
76 s2 = mock.Mock()
91 @mock.patch("check_init_priorities.ZephyrInitLevels.__init__", return_value=None)
93 mock_elf = mock.Mock()
95 sts = mock.Mock(spec=SymbolTableSection)
96 rel = mock.Mock(spec=Section)
99 s0 = mock.Mock()
103 s1 = mock.Mock()
107 s2 = mock.Mock()
111 s3 = mock.Mock()
115 s4 = mock.Mock()
119 s5 = mock.Mock()
123 s6 = mock.Mock()
143 @mock.patch("check_init_priorities.ZephyrInitLevels.__init__", return_value=None)
151 @mock.patch("check_init_priorities.ZephyrInitLevels.__init__", return_value=None)
160 @mock.patch("check_init_priorities.ZephyrInitLevels.__init__", return_value=None)
163 obj._elf = mock.Mock()
165 mock_section = mock.Mock()
177 @mock.patch("check_init_priorities.ZephyrInitLevels.__init__", return_value=None)
180 obj._elf = mock.Mock()
182 mock_section = mock.Mock()
194 @mock.patch("check_init_priorities.ZephyrInitLevels._object_name")
195 @mock.patch("check_init_priorities.ZephyrInitLevels._initlevel_pointer")
196 @mock.patch("check_init_priorities.ZephyrInitLevels.__init__", return_value=None)
246 @mock.patch("check_init_priorities.ZephyrInitLevels")
247 @mock.patch("pickle.load")
249 mock_log = mock.Mock()
250 mock_prio = mock.Mock()
251 mock_obj = mock.Mock()
255 with mock.patch("builtins.open", mock.mock_open()) as mock_open:
262 @mock.patch("check_init_priorities.Validator.__init__", return_value=None)
265 validator.log = mock.Mock()
273 @mock.patch("check_init_priorities.Validator.__init__", return_value=None)
276 validator.log = mock.Mock()
277 validator._obj = mock.Mock()
279 validator._ord2node = {1: mock.Mock(), 2: mock.Mock()}
293 @mock.patch("check_init_priorities.Validator.__init__", return_value=None)
296 validator.log = mock.Mock()
297 validator._obj = mock.Mock()
300 validator._ord2node = {1: mock.Mock(), 2: mock.Mock()}
313 mock.call("/1 <i1> is initialized before its dependency /2 <i2> (10 < 20)")
317 @mock.patch("check_init_priorities.Validator.__init__", return_value=None)
320 validator.log = mock.Mock()
321 validator._obj = mock.Mock()
324 validator._ord2node = {1: mock.Mock(), 2: mock.Mock()}
335 @mock.patch("check_init_priorities.Validator.__init__", return_value=None)
338 validator.log = mock.Mock()
339 validator._obj = mock.Mock()
346 validator._ord2node = {1: mock.Mock(), 3: mock.Mock()}
357 mock.call("Ignoring priority: compat-3"),
363 @mock.patch("check_init_priorities.Validator._check_dep")
364 @mock.patch("check_init_priorities.Validator.__init__", return_value=None)
366 d0 = mock.Mock()
368 d1 = mock.Mock()
370 d2 = mock.Mock()
373 dev0 = mock.Mock()
375 dev1 = mock.Mock()
377 dev2 = mock.Mock()
382 validator._obj = mock.Mock()
388 mock.call(1, 1),
389 mock.call(2, 2),
390 mock.call(3, 3),