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

Function test_refs_get_target

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

Source from the content-addressed store, hash-verified

118
119
120def test_refs_get_target(testrepo: Repository) -> None:
121 reference = testrepo.references.get('HEAD')
122 assert reference is not None
123 assert reference.target == 'refs/heads/master'
124 assert reference.raw_target == b'refs/heads/master'
125
126
127def test_refs_set_target(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…