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

Method testNormal

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

Source from the content-addressed store, hash-verified

26class PoolTest(unittest.TestCase):
27
28 def testNormal(self):
29 results = set()
30 pool = DefaultExecutionPool()
31 pool.init(3)
32 for result in pool.imap_unordered(Run, [[x] for x in range(0, 10)]):
33 if result.heartbeat:
34 # Any result can be a heartbeat due to timings.
35 continue
36 results.add(result.value)
37 self.assertEqual(set(range(0, 10)), results)
38
39 def testException(self):
40 results = set()

Callers

nothing calls this directly

Calls 6

initMethod · 0.95
imap_unorderedMethod · 0.95
addMethod · 0.65
setFunction · 0.50
rangeFunction · 0.50

Tested by

no test coverage detected