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

Function test_expand_id

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

Source from the content-addressed store, hash-verified

159
160
161def test_expand_id(barerepo: Repository) -> None:
162 commit_sha = '5fe808e8953c12735680c257f56600cb0de44b10'
163 expanded = barerepo.expand_id(commit_sha[:7])
164 assert commit_sha == expanded
165
166
167@utils.requires_refcount

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…