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

Function repo

test/test_odb_backend.py:150–160  ·  view source on GitHub ↗
(barerepo: Repository)

Source from the content-addressed store, hash-verified

148
149@pytest.fixture
150def repo(barerepo: Repository) -> Generator[Repository, None, None]:
151 odb = pygit2.Odb()
152
153 path = Path(barerepo.path) / 'objects'
154 backend_org = pygit2.OdbBackendPack(path)
155 backend = ProxyBackend(backend_org)
156 odb.add_backend(backend, 1)
157
158 repo = pygit2.Repository()
159 repo.set_odb(odb)
160 yield repo
161
162
163def test_repo_read(repo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

ProxyBackendClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…