Home
last modified time | relevance | path

Searched refs:sentinel (Results 1 – 25 of 170) sorted by relevance

1234567

/third_party/python/Lib/unittest/test/testmock/
Dtestsentinel.py4 from unittest.mock import sentinel, DEFAULT
10 self.assertEqual(sentinel.whatever, sentinel.whatever,
12 self.assertNotEqual(sentinel.whatever, sentinel.whateverelse,
17 self.assertEqual(str(sentinel.whatever), 'sentinel.whatever',
22 self.assertIs(DEFAULT, sentinel.DEFAULT)
26 self.assertRaises(AttributeError, lambda: sentinel.__bases__)
31 pickled = pickle.dumps(sentinel.whatever, proto)
33 self.assertIs(unpickled, sentinel.whatever)
36 self.assertIs(copy.copy(sentinel.whatever), sentinel.whatever)
37 self.assertIs(copy.deepcopy(sentinel.whatever), sentinel.whatever)
Dtestwith.py5 from unittest.mock import MagicMock, Mock, patch, sentinel, mock_open, call
9 something = sentinel.Something
10 something_else = sentinel.SomethingElse
19 with patch('%s.something' % __name__, sentinel.Something2):
20 self.assertEqual(something, sentinel.Something2, "unpatched")
21 self.assertEqual(something, sentinel.Something)
26 with patch('%s.something' % __name__, sentinel.Something2):
27 self.assertEqual(something, sentinel.Something2, "unpatched")
29 self.assertEqual(something, sentinel.Something)
37 self.assertEqual(something, sentinel.Something)
[all …]
Dtestpatch.py15 NonCallableMock, CallableMixin, sentinel,
42 something = sentinel.Something
43 something_else = sentinel.SomethingElse
99 attribute = sentinel.Original
101 @patch.object(Something, 'attribute', sentinel.Patched)
103 self.assertEqual(Something.attribute, sentinel.Patched, "unpatched")
106 self.assertEqual(Something.attribute, sentinel.Original,
116 attribute = sentinel.Original
123 self.assertEqual(Something.attribute, sentinel.Original,
129 attribute = sentinel.Original
[all …]
Dtestmock.py11 call, DEFAULT, patch, sentinel,
172 mock = Mock(side_effect=sentinel.SideEffect)
173 self.assertEqual(mock.side_effect, sentinel.SideEffect,
178 mock = Mock(side_effect=side_effect, return_value=sentinel.RETURN)
179 self.assertEqual(mock(), sentinel.RETURN)
234 mock(sentinel.Something, something=sentinel.SomethingElse)
237 mock.side_effect = sentinel.SideEffect
259 self.assertEqual(mock.side_effect, sentinel.SideEffect,
292 ret_val = mock(sentinel.Arg)
295 self.assertEqual(mock.call_args, ((sentinel.Arg,), {}),
[all …]
/third_party/libxml2/
Dlist.c40 xmlLinkPtr sentinel; member
104 … for(lk = l->sentinel->next;lk != l->sentinel && l->linkCompare(lk->data, data) <0 ;lk = lk->next); in xmlListLowerSearch()
124 … for(lk = l->sentinel->prev;lk != l->sentinel && l->linkCompare(lk->data, data) >0 ;lk = lk->prev); in xmlListHigherSearch()
144 if (lk == l->sentinel) in xmlListLinkSearch()
169 if (lk == l->sentinel) in xmlListLinkReverseSearch()
200 if (NULL ==(l->sentinel = (xmlLinkPtr )xmlMalloc(sizeof(xmlLink)))) { in xmlListCreate()
206 l->sentinel->next = l->sentinel; in xmlListCreate()
207 l->sentinel->prev = l->sentinel; in xmlListCreate()
208 l->sentinel->data = NULL; in xmlListCreate()
339 xmlFree(l->sentinel); in xmlListDelete()
[all …]
/third_party/gettext/gnulib-local/lib/libxml/
Dlist.c51 xmlLinkPtr sentinel; member
115 … for(lk = l->sentinel->next;lk != l->sentinel && l->linkCompare(lk->data, data) <0 ;lk = lk->next); in xmlListLowerSearch()
135 … for(lk = l->sentinel->prev;lk != l->sentinel && l->linkCompare(lk->data, data) >0 ;lk = lk->prev); in xmlListHigherSearch()
155 if (lk == l->sentinel) in xmlListLinkSearch()
180 if (lk == l->sentinel) in xmlListLinkReverseSearch()
211 if (NULL ==(l->sentinel = (xmlLinkPtr )xmlMalloc(sizeof(xmlLink)))) { in xmlListCreate()
217 l->sentinel->next = l->sentinel; in xmlListCreate()
218 l->sentinel->prev = l->sentinel; in xmlListCreate()
219 l->sentinel->data = NULL; in xmlListCreate()
350 xmlFree(l->sentinel); in xmlListDelete()
[all …]
/third_party/openssl/crypto/bn/asm/
Dsparct4-mont.pl120 my ($rp,$ap,$bp,$np,$sentinel)=map("%g$_",(1..5));
127 mov 0,$sentinel
135 mov -1,$sentinel
138 mov -1,$sentinel
141 sllx $sentinel,32,$sentinel
158 or $sentinel,%fp,%fp
159 or %g4,$sentinel,$sentinel
173 save %sp,-128,%sp; or $sentinel,%fp,%fp
194 save %sp,-128,%sp; or $sentinel,%fp,%fp
206 save %sp,-128,%sp; or $sentinel,%fp,%fp
[all …]
/third_party/mesa3d/.gitlab-ci/bare-metal/
Dserial_buffer.py47 self.sentinel = object()
73 self.byte_queue.put(self.sentinel)
77 self.byte_queue.put(self.sentinel)
101 if bytes == self.sentinel:
103 self.line_queue.put(self.sentinel)
126 if line == self.sentinel:
131 return iter(self.get_line, self.sentinel)
Dcros_servo_run.py37 self.sentinel = object()
58 self.serial_queue.put(sentinel)
64 if line == self.sentinel:
73 return iter(self.get_serial_queue_line, self.sentinel)
/third_party/python/Lib/multiprocessing/
Dpopen_forkserver.py51 self.sentinel, w = forkserver.connect_to_new_process(self._fds)
56 (_parent_w, self.sentinel))
59 self.pid = forkserver.read_signed(self.sentinel)
65 if not wait([self.sentinel], timeout):
68 self.returncode = forkserver.read_signed(self.sentinel)
/third_party/mesa3d/src/util/
Dsparse_array.c220 uint32_t sentinel, in util_sparse_array_free_list_init() argument
223 fl->head = sentinel; in util_sparse_array_free_list_init()
225 fl->sentinel = sentinel; in util_sparse_array_free_list_init()
240 assert(items[0] != fl->sentinel); in util_sparse_array_free_list_push()
245 assert(items[i] != fl->sentinel); in util_sparse_array_free_list_push()
267 if ((uint32_t)current_head == fl->sentinel) in util_sparse_array_free_list_pop_idx()
268 return fl->sentinel; in util_sparse_array_free_list_pop_idx()
288 if ((uint32_t)current_head == fl->sentinel) in util_sparse_array_free_list_pop_elem()
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyRepeatedField.java352 SentinelOuterClass.Sentinel sentinel = SentinelOuterClass.Sentinel.getDefaultInstance(); in defaultValue() local
356 value = sentinel.getDefaultInt32(); in defaultValue()
359 value = sentinel.getDefaultInt64(); in defaultValue()
362 value = sentinel.getDefaultUnit32(); in defaultValue()
365 value = sentinel.getDefaultUint64(); in defaultValue()
368 value = sentinel.getDefaultFloat(); in defaultValue()
371 value = sentinel.getDefaultDouble(); in defaultValue()
374 value = sentinel.getDefaultBool(); in defaultValue()
377 value = sentinel.getDefaultBytes(); in defaultValue()
380 value = sentinel.getDefaultString(); in defaultValue()
/third_party/node/test/fixtures/uncaught-exceptions/
Dcallbackify2.js9 const sentinel = new Error(__filename); constant
11 assert.notStrictEqual(err, sentinel);
17 return Promise.reject(sentinel);
/third_party/protobuf/js/compatibility_tests/v3.0.0/binary/
Dreader_test.js652 var sentinel = 123456789;
655 writer.writeInt32(1, sentinel);
662 writer.writeInt32(2, sentinel);
668 writer.writeInt32(3, sentinel);
674 writer.writeInt32(4, sentinel);
679 writer.writeInt32(5, sentinel);
689 writer.writeInt32(6, sentinel);
703 assertEquals(sentinel, reader.readInt32());
708 assertEquals(sentinel, reader.readInt32());
713 assertEquals(sentinel, reader.readInt32());
[all …]
/third_party/protobuf/js/compatibility_tests/v3.1.0/binary/
Dreader_test.js652 var sentinel = 123456789;
655 writer.writeInt32(1, sentinel);
662 writer.writeInt32(2, sentinel);
668 writer.writeInt32(3, sentinel);
674 writer.writeInt32(4, sentinel);
679 writer.writeInt32(5, sentinel);
689 writer.writeInt32(6, sentinel);
703 assertEquals(sentinel, reader.readInt32());
708 assertEquals(sentinel, reader.readInt32());
713 assertEquals(sentinel, reader.readInt32());
[all …]
/third_party/python/Lib/test/
Dtest_named_expressions.py550 sentinel = object()
554 [GLOBAL_VAR := sentinel for _ in range(1)]
555 self.assertEqual(GLOBAL_VAR, sentinel)
558 self.assertEqual(GLOBAL_VAR, sentinel)
563 sentinel = object()
566 [GLOBAL_VAR := sentinel for _ in range(1)]
567 self.assertEqual(GLOBAL_VAR, sentinel)
572 sentinel = object()
577 [nonlocal_var := sentinel for _ in range(1)]
579 self.assertEqual(nonlocal_var, sentinel)
[all …]
Dtest_queue.py423 def feed(self, q, seq, rnd, sentinel): argument
428 q.put(sentinel)
434 def consume(self, q, results, sentinel): argument
437 if val == sentinel:
441 def consume_nonblock(self, q, results, sentinel): argument
450 if val == sentinel:
454 def consume_timeout(self, q, results, sentinel): argument
463 if val == sentinel:
469 sentinel = None
484 args=(q, seq, rnd, sentinel))
[all …]
/third_party/protobuf/js/binary/
Dreader_test.js682 var sentinel = 123456789;
685 writer.writeInt32(1, sentinel);
692 writer.writeInt32(2, sentinel);
698 writer.writeInt32(3, sentinel);
704 writer.writeInt32(4, sentinel);
709 writer.writeInt32(5, sentinel);
734 writer.writeInt32(6, sentinel);
748 assertEquals(sentinel, reader.readInt32());
753 assertEquals(sentinel, reader.readInt32());
758 assertEquals(sentinel, reader.readInt32());
[all …]
/third_party/boost/boost/stl_interfaces/
Dfwd.hpp61 struct sentinel;
63 struct sentinel< struct
70 using sentinel_t = typename sentinel<Range>::type;
/third_party/boost/boost/poly_collection/detail/
Diterator_impl.hpp73 if(mapit!=mapend&&segpos==sentinel()){
102 if(++segpos==sentinel()){ in increment()
112 if(segpos!=sentinel())return; in next_segment_position()
121 const_segment_base_sentinel sentinel()const noexcept in sentinel() function in boost::poly_collection::detail::iterator_impl
122 {return segment().sentinel();} in sentinel()
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_mutex_lock/
Ds-c2.c228 testdata_t sentinel; in main() local
240 sentinel.next = NULL; in main()
241 sentinel.id = 0; in main()
242 cur = &sentinel; in main()
362 cur = &sentinel; in main()
/third_party/python/Doc/c-api/
Diterator.rst10 method. The second works with a callable object and a sentinel value, calling
12 sentinel value is returned.
47 .. c:function:: PyObject* PyCallIter_New(PyObject *callable, PyObject *sentinel)
52 *sentinel*, the iteration will be terminated.
/third_party/libsoup/libsoup/
DSoup-2.4.metadata66 xmlrpc_extract_method_call sentinel="G_TYPE_INVALID"
67 xmlrpc_extract_method_response sentinel="G_TYPE_INVALID"
68 xmlrpc_request_new sentinel="G_TYPE_INVALID"
70 xmlrpc_set_response sentinel="G_TYPE_INVALID"
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/fork/
Ds-c1.c115 mes_t sentinel; in main() local
122 m_cur = &sentinel; in main()
164 m_cur = &sentinel; in main()
345 ret = parse_measure(&sentinel); in main()
355 while (sentinel.next != NULL) { in main()
356 m_cur = sentinel.next; in main()
362 sentinel.next = m_cur->next; in main()
/third_party/python/Modules/
Dgetaddrinfo.c239 struct addrinfo sentinel; in getaddrinfo() local
263 sentinel.ai_next = NULL; in getaddrinfo()
264 cur = &sentinel; in getaddrinfo()
406 top = sentinel.ai_next; in getaddrinfo()
538 struct addrinfo sentinel; local
546 sentinel.ai_next = NULL;
547 cur = &sentinel;
617 if (cur == &sentinel) {

1234567