MCPcopy Index your code
hub / github.com/nodejs/node / testDrainQueueAsync

Method testDrainQueueAsync

deps/v8/tools/testrunner/local/pool_test.py:70–78  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

68
69class QueueTest(unittest.TestCase):
70 def testDrainQueueAsync(self):
71 queue = Queue(1)
72 queue.put('foo')
73 with self.assertRaises(Full):
74 queue.put('bar', timeout=0.01)
75 with drain_queue_async(queue):
76 queue.put('bar')
77 with self.assertRaises(Empty):
78 queue.get(False)
79
80
81if __name__ == '__main__':

Callers

nothing calls this directly

Calls 3

drain_queue_asyncFunction · 0.90
putMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected