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

Function test_diff_invalid

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

Source from the content-addressed store, hash-verified

207
208
209def test_diff_invalid(barerepo: Repository) -> None:
210 commit_a = barerepo[COMMIT_SHA1_1]
211 commit_b = barerepo[COMMIT_SHA1_2]
212 with pytest.raises(TypeError):
213 commit_a.tree.diff_to_tree(commit_b) # type: ignore
214 with pytest.raises(TypeError):
215 commit_a.tree.diff_to_index(commit_b) # type: ignore
216
217
218def test_diff_empty_index_bare(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…