Home
last modified time | relevance | path

Searched refs:sentinel (Results 1 - 25 of 82) sorted by relevance

1234

/third_party/python/Lib/unittest/test/testmock/
H A Dtestsentinel.py4 from unittest.mock import sentinel, DEFAULT namespace
10 self.assertEqual(sentinel.whatever, sentinel.whatever,
11 'sentinel not stored')
12 self.assertNotEqual(sentinel.whatever, sentinel.whateverelse,
13 'sentinel should be unique')
17 self.assertEqual(str(sentinel.whatever), 'sentinel.whatever',
18 'sentinel nam
[all...]
H A Dtestwith.py5 from unittest.mock import MagicMock, Mock, patch, sentinel, mock_open, call namespace
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
[all...]
H A 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
[all...]
H A 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)
242 mock(sentinel.Something, something=sentinel.SomethingElse)
245 mock.side_effect = sentinel.SideEffect
267 self.assertEqual(mock.side_effect, sentinel.SideEffect,
300 ret_val = mock(sentinel
[all...]
/third_party/node/deps/openssl/openssl/crypto/bn/asm/
H A Dsparct4-mont.pl123 my ($rp,$ap,$bp,$np,$sentinel)=map("%g$_",(1..5));
130 mov 0,$sentinel
138 mov -1,$sentinel
141 mov -1,$sentinel
144 sllx $sentinel,32,$sentinel
161 or $sentinel,%fp,%fp
162 or %g4,$sentinel,$sentinel
177 save %sp,-128,%sp; or $sentinel,
[all...]
/third_party/openssl/crypto/bn/asm/
H A Dsparct4-mont.pl123 my ($rp,$ap,$bp,$np,$sentinel)=map("%g$_",(1..5));
130 mov 0,$sentinel
138 mov -1,$sentinel
141 mov -1,$sentinel
144 sllx $sentinel,32,$sentinel
161 or $sentinel,%fp,%fp
162 or %g4,$sentinel,$sentinel
177 save %sp,-128,%sp; or $sentinel,
[all...]
/third_party/skia/third_party/externals/sfntly/cpp/src/test/tinyxml/
H A Dtinyxml.cpp1172 // We are using knowledge of the sentinel. The sentinel
1182 // We are using knowledge of the sentinel. The sentinel
1192 // We are using knowledge of the sentinel. The sentinel
1202 // We are using knowledge of the sentinel. The sentinel
1502 sentinel.next = &sentinel;
[all...]
/third_party/python/Lib/multiprocessing/
H A Dpopen_forkserver.py51 self.sentinel, w = forkserver.connect_to_new_process(self._fds)
52 # Keep a duplicate of the data pipe's write end as a sentinel of the
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)
H A Dpopen_spawn_win32.py86 self.sentinel = int(hp)
88 (self.sentinel, int(rhandle)))
100 return reduction.duplicate(handle, self.sentinel)
/third_party/lame/ACM/tinyxml/
H A Dtinyxml.cpp716 // We are using knowledge of the sentinel. The sentinel in Next()
726 // We are using knowledge of the sentinel. The sentinel in Previous()
954 sentinel.next = &sentinel; in TiXmlAttributeSet()
955 sentinel.prev = &sentinel; in TiXmlAttributeSet()
961 assert( sentinel.next == &sentinel ); in ~TiXmlAttributeSet()
[all...]
H A Dtinyxml.h509 TiXmlAttribute* First() const { return ( sentinel.next == &sentinel ) ? 0 : sentinel.next; } in First()
510 TiXmlAttribute* Last() const { return ( sentinel.prev == &sentinel ) ? 0 : sentinel.prev; } in Last()
515 TiXmlAttribute sentinel; member in TiXmlAttributeSet
/third_party/mesa3d/src/util/
H A Dsparse_array.c220 uint32_t sentinel, in util_sparse_array_free_list_init()
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()
218 util_sparse_array_free_list_init(struct util_sparse_array_free_list *fl, struct util_sparse_array *arr, uint32_t sentinel, uint32_t next_offset) util_sparse_array_free_list_init() argument
H A Dsparse_array.h95 * or the sentinel value if the list is empty.
109 uint32_t sentinel; member
121 uint32_t sentinel,
/third_party/mesa3d/.gitlab-ci/bare-metal/
H A Dserial_buffer.py54 self.sentinel = object()
93 self.byte_queue.put(self.sentinel)
107 self.byte_queue.put(self.sentinel)
117 if bytes == self.sentinel:
119 self.line_queue.put(self.sentinel)
158 if line == self.sentinel:
/third_party/python/Lib/test/
H A 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...]
H A Dtest_queue.py426 def feed(self, q, seq, rnd, sentinel):
431 q.put(sentinel)
437 def consume(self, q, results, sentinel):
440 if val == sentinel:
444 def consume_nonblock(self, q, results, sentinel):
453 if val == sentinel:
457 def consume_timeout(self, q, results, sentinel):
466 if val == sentinel:
472 sentinel = None
487 args=(q, seq, rnd, sentinel))
[all...]
/third_party/node/test/fixtures/uncaught-exceptions/
H A Dcallbackify2.js9 const sentinel = new Error(__filename);
11 assert.notStrictEqual(err, sentinel);
17 return Promise.reject(sentinel);
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
H A DRubyRepeatedField.java352 SentinelOuterClass.Sentinel sentinel = SentinelOuterClass.Sentinel.getDefaultInstance(); in defaultValue()
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 in defaultValue()
[all...]
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/fork/
H A 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/ltp/testcases/open_posix_testsuite/stress/threads/pthread_mutex_lock/
H A 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/Lib/
H A Dheapq.py472 sentinel = object()
473 result = min(it, default=sentinel, key=key)
474 return [] if result is sentinel else [result]
532 sentinel = object()
533 result = max(it, default=sentinel, key=key)
534 return [] if result is sentinel else [result]
/third_party/python/Modules/
H A Dgetaddrinfo.c242 struct addrinfo sentinel; in getaddrinfo() local
266 sentinel.ai_next = NULL; in getaddrinfo()
267 cur = &sentinel; in getaddrinfo()
409 top = sentinel.ai_next; in getaddrinfo()
541 struct addrinfo sentinel; local
549 sentinel.ai_next = NULL;
550 cur = &sentinel;
620 if (cur == &sentinel) {
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_create/
H A Ds-c1.c151 mes_t sentinel; in main() local
158 m_cur = &sentinel; in main()
198 m_cur = &sentinel; in main()
396 ret = parse_measure(&sentinel); in main()
407 while (sentinel.next != NULL) { in main()
408 m_cur = sentinel.next; in main()
416 sentinel.next = m_cur->next; in main()
/third_party/ltp/testcases/kernel/syscalls/madvise/
H A Dmadvise11.c80 * Allocate a page and write a sentinel value into it.
82 static void *allocate_write(int sentinel) in allocate_write() argument
90 *s = sentinel; in allocate_write()
97 static int verif_unmap(void *page, int sentinel) in verif_unmap() argument
101 if (*s != sentinel) { in verif_unmap()
102 tst_res(TFAIL, "pid[%d]: fail: bad sentinel value seen: %d expected: %d\n", getpid(), *s, sentinel); in verif_unmap()
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/sem_init/
H A Ds-c1.c121 mes_t sentinel; in main() local
131 m_cur = &sentinel; in main()
328 ret = parse_measure(&sentinel); in main()
339 while (sentinel.next != NULL) { in main()
340 m_cur = sentinel.next; in main()
349 sentinel.next = m_cur->next; in main()

Completed in 19 milliseconds

1234