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

Function test_read_blob

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

Source from the content-addressed store, hash-verified

82
83
84def test_read_blob(testrepo: Repository) -> None:
85 blob = testrepo[BLOB_SHA]
86 assert blob.id == BLOB_SHA
87 assert blob.id == BLOB_SHA
88 assert isinstance(blob, pygit2.Blob)
89 assert not blob.is_binary
90 assert ObjectType.BLOB == blob.type
91 assert BLOB_CONTENT == blob.data
92 assert len(BLOB_CONTENT) == blob.size
93 assert BLOB_CONTENT == blob.read_raw()
94
95
96def test_create_blob(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…