/third_party/python/Lib/unittest/test/testmock/ |
D | testsentinel.py | 4 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)
|
D | testwith.py | 5 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 …]
|
D | testpatch.py | 15 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 …]
|
D | testmock.py | 11 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/node/deps/openssl/openssl/crypto/bn/asm/ |
D | sparct4-mont.pl | 122 my ($rp,$ap,$bp,$np,$sentinel)=map("%g$_",(1..5)); 129 mov 0,$sentinel 137 mov -1,$sentinel 140 mov -1,$sentinel 143 sllx $sentinel,32,$sentinel 160 or $sentinel,%fp,%fp 161 or %g4,$sentinel,$sentinel 175 save %sp,-128,%sp; or $sentinel,%fp,%fp 196 save %sp,-128,%sp; or $sentinel,%fp,%fp 208 save %sp,-128,%sp; or $sentinel,%fp,%fp [all …]
|
/third_party/openssl/crypto/bn/asm/ |
D | sparct4-mont.pl | 122 my ($rp,$ap,$bp,$np,$sentinel)=map("%g$_",(1..5)); 129 mov 0,$sentinel 137 mov -1,$sentinel 140 mov -1,$sentinel 143 sllx $sentinel,32,$sentinel 160 or $sentinel,%fp,%fp 161 or %g4,$sentinel,$sentinel 175 save %sp,-128,%sp; or $sentinel,%fp,%fp 196 save %sp,-128,%sp; or $sentinel,%fp,%fp 208 save %sp,-128,%sp; or $sentinel,%fp,%fp [all …]
|
/third_party/python/Lib/multiprocessing/ |
D | popen_forkserver.py | 51 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)
|
D | popen_spawn_win32.py | 85 self.sentinel = int(hp) 87 (self.sentinel, int(rhandle))) 99 return reduction.duplicate(handle, self.sentinel)
|
/third_party/mesa3d/src/util/ |
D | sparse_array.c | 220 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()
|
D | sparse_array.h | 109 uint32_t sentinel; member 121 uint32_t sentinel,
|
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/ |
D | RubyRepeatedField.java | 352 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/protobuf/js/compatibility_tests/v3.1.0/binary/ |
D | reader_test.js | 652 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.0.0/binary/ |
D | reader_test.js | 652 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/mesa3d/.gitlab-ci/bare-metal/ |
D | serial_buffer.py | 54 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/ |
D | test_named_expressions.py | 550 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 …]
|
D | test_queue.py | 423 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/ |
D | reader_test.js | 682 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/node/test/fixtures/uncaught-exceptions/ |
D | callbackify2.js | 9 const sentinel = new Error(__filename); constant 11 assert.notStrictEqual(err, sentinel); 17 return Promise.reject(sentinel);
|
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_mutex_lock/ |
D | s-c2.c | 228 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/ltp/testcases/open_posix_testsuite/stress/threads/fork/ |
D | s-c1.c | 115 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/Doc/c-api/ |
D | iterator.rst | 10 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/python/Modules/ |
D | getaddrinfo.c | 239 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) {
|
/third_party/skia/third_party/externals/sfntly/cpp/src/test/tinyxml/ |
D | tinyxml.cpp | 1502 sentinel.next = &sentinel; in TiXmlAttributeSet() 1503 sentinel.prev = &sentinel; in TiXmlAttributeSet() 1509 assert( sentinel.next == &sentinel ); in ~TiXmlAttributeSet() 1510 assert( sentinel.prev == &sentinel ); in ~TiXmlAttributeSet() 1522 addMe->next = &sentinel; in Add() 1523 addMe->prev = sentinel.prev; in Add() 1525 sentinel.prev->next = addMe; in Add() 1526 sentinel.prev = addMe; in Add() 1533 for( node = sentinel.next; node != &sentinel; node = node->next ) in Remove() 1551 for( TiXmlAttribute* node = sentinel.next; node != &sentinel; node = node->next ) in Find() [all …]
|
/third_party/python/Lib/ |
D | heapq.py | 470 sentinel = object() 471 result = min(it, default=sentinel, key=key) 472 return [] if result is sentinel else [result] 530 sentinel = object() 531 result = max(it, default=sentinel, key=key) 532 return [] if result is sentinel else [result]
|
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_create/ |
D | s-c1.c | 151 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()
|