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

Method test_map

Lib/test/test_concurrent_futures/executor.py:58–65  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

56 self.executor.submit(arg=1)
57
58 def test_map(self):
59 self.assertEqual(
60 list(self.executor.map(pow, range(10), range(10))),
61 list(map(pow, range(10), range(10))))
62
63 self.assertEqual(
64 list(self.executor.map(pow, range(10), range(10), chunksize=3)),
65 list(map(pow, range(10), range(10))))
66
67 def test_map_exception(self):
68 i = self.executor.map(divmod, [1, 1, 1, 1], [2, 3, 0, 5])

Callers

nothing calls this directly

Calls 3

listClass · 0.85
assertEqualMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected