MCPcopy Create free account
hub / github.com/RustPython/RustPython / makecycle

Method makecycle

Lib/test/test_itertools.py:1962–1965  ·  view source on GitHub ↗
(self, iterator, container)

Source from the content-addressed store, hash-verified

1960class TestGC(unittest.TestCase):
1961
1962 def makecycle(self, iterator, container):
1963 container.append(iterator)
1964 next(iterator)
1965 del container, iterator
1966
1967 def test_accumulate(self):
1968 a = []

Callers 15

test_accumulateMethod · 0.95
test_batchedMethod · 0.95
test_chainMethod · 0.95
test_combinationsMethod · 0.95
test_compressMethod · 0.95
test_countMethod · 0.95
test_cycleMethod · 0.95
test_dropwhileMethod · 0.95
test_groupbyMethod · 0.95
test_filterMethod · 0.95

Calls 2

nextFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected