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

Function test_diff_patchid

test/test_diff.py:358–363  ·  view source on GitHub ↗
(barerepo: Repository)

Source from the content-addressed store, hash-verified

356
357
358def test_diff_patchid(barerepo: Repository) -> None:
359 commit_a = barerepo[COMMIT_SHA1_1]
360 commit_b = barerepo[COMMIT_SHA1_2]
361 diff = commit_a.tree.diff_to_tree(commit_b.tree)
362 assert diff.patch == PATCH
363 assert diff.patchid == PATCHID
364
365
366def test_hunk_content(barerepo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

diff_to_treeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…