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

Function test_commit_refcount

test/test_commit.py:44–50  ·  view source on GitHub ↗
(barerepo: Repository)

Source from the content-addressed store, hash-verified

42
43@utils.requires_refcount
44def test_commit_refcount(barerepo: Repository) -> None:
45 commit = barerepo[COMMIT_SHA]
46 start = sys.getrefcount(commit)
47 tree = commit.tree
48 del tree
49 end = sys.getrefcount(commit)
50 assert start == end
51
52
53def test_read_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…