MCPcopy Index your code
hub / github.com/python/cpython / test_count

Method test_count

Lib/test/test_itertools.py:2043–2046  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2041 self.makecycle(compress('ABCDEF', [1,0,1,0,1,0]), a)
2042
2043 def test_count(self):
2044 a = []
2045 Int = type('Int', (int,), dict(x=a))
2046 self.makecycle(count(Int(0), Int(1)), a)
2047
2048 def test_cycle(self):
2049 a = []

Callers

nothing calls this directly

Calls 3

makecycleMethod · 0.95
countFunction · 0.85
IntClass · 0.70

Tested by

no test coverage detected