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

Function test_patch_multi_blob

test/test_patch.py:273–287  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

271
272
273def test_patch_multi_blob(testrepo: Repository) -> None:
274 blob = testrepo[BLOB_OLD_SHA]
275 assert isinstance(blob, Blob)
276 patch = pygit2.Patch.create_from(blob, None)
277 patch_text = patch.text
278
279 blob = testrepo[BLOB_OLD_SHA]
280 assert isinstance(blob, Blob)
281 patch2 = pygit2.Patch.create_from(blob, None)
282 patch_text2 = patch.text
283
284 assert patch_text == patch_text2
285 assert patch_text == patch.text
286 assert patch_text2 == patch2.text
287 assert patch.text == patch2.text

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…