MCPcopy Create free account
hub / github.com/libgit2/pygit2 / test_iter

Function test_iter

test/test_index.py:161–168  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

159
160
161def test_iter(testrepo: Repository) -> None:
162 index = testrepo.index
163 n = len(index)
164 assert len(list(index)) == n
165
166 # Compare SHAs, not IndexEntry object identity
167 entries = [index[x].id for x in range(n)]
168 assert list(x.id for x in index) == entries
169
170
171def test_mode(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…