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

Function test_diff_blob_to_buffer

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

Source from the content-addressed store, hash-verified

177
178
179def test_diff_blob_to_buffer(testrepo: Repository) -> None:
180 blob = testrepo[BLOB_SHA]
181 assert isinstance(blob, pygit2.Blob)
182 patch = blob.diff_to_buffer('hello world')
183 assert len(patch.hunks) == 1
184
185
186def test_diff_blob_to_buffer_patch_patch(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…