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

Function test_blob_write_to_queue

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

Source from the content-addressed store, hash-verified

220
221
222def test_blob_write_to_queue(testrepo: Repository) -> None:
223 queue: Queue[bytes] = Queue()
224 ready = Event()
225 done = Event()
226 blob = testrepo[BLOB_SHA]
227 assert isinstance(blob, pygit2.Blob)
228 blob._write_to_queue(queue, ready, done)
229 assert ready.wait()
230 assert done.wait()
231 chunks = []
232 while not queue.empty():
233 chunks.append(queue.get())
234 assert BLOB_CONTENT == b''.join(chunks)
235
236
237def test_blob_write_to_queue_filtered(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…