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

Function test_index_to_workdir

test/test_diff.py:203–206  ·  view source on GitHub ↗
(dirtyrepo: Repository)

Source from the content-addressed store, hash-verified

201
202
203def test_index_to_workdir(dirtyrepo: Repository) -> None:
204 diff = dirtyrepo.diff()
205 files = [patch.delta.new_file.path for patch in diff_safeiter(diff)]
206 assert DIFF_INDEX_TO_WORK_EXPECTED == files
207
208
209def test_diff_invalid(barerepo: Repository) -> None:

Callers

nothing calls this directly

Calls 2

diff_safeiterFunction · 0.85
diffMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…