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

Function test_lookup_blob_prefix

test/test_repository_bare.py:127–131  ·  view source on GitHub ↗
(barerepo: Repository)

Source from the content-addressed store, hash-verified

125
126
127def test_lookup_blob_prefix(barerepo: Repository) -> None:
128 a = barerepo[BLOB_HEX[:5]]
129 assert b'a contents\n' == a.read_raw()
130 assert BLOB_HEX == a.id
131 assert int(ObjectType.BLOB) == a.type
132
133
134def test_lookup_commit(barerepo: 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…