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

Function test_refs_resolve

test/test_refs.py:209–215  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

207
208
209def test_refs_resolve(testrepo: Repository) -> None:
210 reference = testrepo.references.get('HEAD')
211 assert reference is not None
212 assert reference.type == ReferenceType.SYMBOLIC
213 reference = reference.resolve()
214 assert reference.type == ReferenceType.DIRECT
215 assert reference.target == LAST_COMMIT
216
217
218def test_refs_resolve_identity(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…