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

Function test_apply_diff_to_workdir

test/test_apply_diff.py:89–96  ·  view source on GitHub ↗
(
    testrepo: Repository, new_content: str, patch_diff: Diff
)

Source from the content-addressed store, hash-verified

87
88
89def test_apply_diff_to_workdir(
90 testrepo: Repository, new_content: str, patch_diff: Diff
91) -> None:
92 # Apply the patch and compare
93 testrepo.apply(patch_diff, ApplyLocation.WORKDIR)
94
95 assert read_content(testrepo) == new_content
96 assert testrepo.status_file('hello.txt') == FileStatus.WT_MODIFIED
97
98
99def test_apply_diff_to_index(

Callers

nothing calls this directly

Calls 1

read_contentFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…