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

Function test_read_prefix

test/test_odb_backend.py:125–128  ·  view source on GitHub ↗
(proxy: ProxyBackend)

Source from the content-addressed store, hash-verified

123
124
125def test_read_prefix(proxy: ProxyBackend) -> None:
126 a_hex_prefix = BLOB_HEX[:4]
127 a3 = proxy.read_prefix(a_hex_prefix)
128 assert (ObjectType.BLOB, b'a contents\n', BLOB_OID) == a3
129
130
131def test_exists(proxy: ProxyBackend) -> 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…