(testrepo: Repository)
| 251 | |
| 252 | |
| 253 | def test_blobio(testrepo: Repository) -> None: |
| 254 | blob_oid = testrepo.create_blob_fromworkdir('bye.txt') |
| 255 | blob = testrepo[blob_oid] |
| 256 | assert isinstance(blob, pygit2.Blob) |
| 257 | with pygit2.BlobIO(blob) as reader: |
| 258 | assert b'bye world\n' == reader.read() |
| 259 | assert not reader.raw._thread.is_alive() # type: ignore[attr-defined] |
| 260 | |
| 261 | |
| 262 | def test_blobio_filtered(testrepo: Repository) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…