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

Function test_blob_from_repo

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

Source from the content-addressed store, hash-verified

208
209
210def test_blob_from_repo(testrepo: Repository) -> None:
211 blob = testrepo[BLOB_SHA]
212 assert isinstance(blob, pygit2.Blob)
213 patch_one = blob.diff_to_buffer(None)
214
215 blob = testrepo[BLOB_SHA]
216 assert isinstance(blob, pygit2.Blob)
217 patch_two = blob.diff_to_buffer(None)
218
219 assert patch_one.text == patch_two.text
220
221
222def test_blob_write_to_queue(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…