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

Function test_diff_blob_create

test/test_blob.py:200–207  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

198
199
200def test_diff_blob_create(testrepo: Repository) -> None:
201 old = testrepo[testrepo.create_blob(BLOB_CONTENT)]
202 new = testrepo[testrepo.create_blob(BLOB_NEW_CONTENT)]
203 assert isinstance(old, pygit2.Blob)
204 assert isinstance(new, pygit2.Blob)
205
206 patch = old.diff(new)
207 assert patch.text == BLOB_PATCH_2
208
209
210def test_blob_from_repo(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

diffMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…