MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_starmap_async

Method test_starmap_async

Lib/test/_test_multiprocessing.py:2681–2684  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2679 list(itertools.starmap(mul, tuples)))
2680
2681 def test_starmap_async(self):
2682 tuples = list(zip(range(100), range(99,-1, -1)))
2683 self.assertEqual(self.pool.starmap_async(mul, tuples).get(),
2684 list(itertools.starmap(mul, tuples)))
2685
2686 def test_map_async(self):
2687 self.assertEqual(self.pool.map_async(sqr, list(range(10))).get(),

Callers

nothing calls this directly

Calls 5

listClass · 0.85
starmap_asyncMethod · 0.80
starmapMethod · 0.80
assertEqualMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected