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

Function test_diff_blob_to_buffer_delete

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

Source from the content-addressed store, hash-verified

191
192
193def test_diff_blob_to_buffer_delete(testrepo: Repository) -> None:
194 blob = testrepo[BLOB_SHA]
195 assert isinstance(blob, pygit2.Blob)
196 patch = blob.diff_to_buffer(None)
197 assert patch.text == BLOB_PATCH_DELETED
198
199
200def test_diff_blob_create(testrepo: Repository) -> None:

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…