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

Function test_lookup_commit_refcount

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

Source from the content-addressed store, hash-verified

166
167@utils.requires_refcount
168def test_lookup_commit_refcount(barerepo: Repository) -> None:
169 start = sys.getrefcount(barerepo)
170 commit_sha = '5fe808e8953c12735680c257f56600cb0de44b10'
171 commit = barerepo[commit_sha]
172 del commit
173 end = sys.getrefcount(barerepo)
174 assert start == end
175
176
177def test_get_path(barerepo_path: tuple[Repository, Path]) -> 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…