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

Function test_bare_index

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

Source from the content-addressed store, hash-verified

179
180
181def test_bare_index(testrepo: Repository) -> None:
182 index = pygit2.Index(Path(testrepo.path) / 'index')
183 assert [x.id for x in index] == [x.id for x in testrepo.index]
184
185 with pytest.raises(pygit2.GitError):
186 index.add('bye.txt')
187
188
189def test_remove(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

addMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…