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

Function test_reference_resolve

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

Source from the content-addressed store, hash-verified

650
651
652def test_reference_resolve(testrepo: Repository) -> None:
653 reference = testrepo.lookup_reference('HEAD')
654 assert reference.type == ReferenceType.SYMBOLIC
655 reference = reference.resolve()
656 assert reference.type == ReferenceType.DIRECT
657 assert reference.target == LAST_COMMIT
658
659
660def test_reference_resolve_identity(testrepo: 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…