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

Method _test_recursion

Lib/test/_test_multiprocessing.py:615–623  ·  view source on GitHub ↗
(cls, wconn, id)

Source from the content-addressed store, hash-verified

613
614 @classmethod
615 def _test_recursion(cls, wconn, id):
616 wconn.send(id)
617 if len(id) < 2:
618 for i in range(2):
619 p = cls.Process(
620 target=cls._test_recursion, args=(wconn, id+[i])
621 )
622 p.start()
623 p.join()
624
625 def test_recursion(self):
626 rconn, wconn = self.Pipe(duplex=False)

Callers 1

test_recursionMethod · 0.95

Calls 5

lenFunction · 0.85
sendMethod · 0.45
ProcessMethod · 0.45
startMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected