Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
makecycle
Method · 0.95
count
Function · 0.85
Int
Class · 0.70
Tested by
no test coverage detected