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

Function test_diff_blob_to_buffer_patch_patch

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

Source from the content-addressed store, hash-verified

184
185
186def test_diff_blob_to_buffer_patch_patch(testrepo: Repository) -> None:
187 blob = testrepo[BLOB_SHA]
188 assert isinstance(blob, pygit2.Blob)
189 patch = blob.diff_to_buffer('hello world')
190 assert patch.text == BLOB_PATCH
191
192
193def test_diff_blob_to_buffer_delete(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…