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

Function test_refs_get_sha

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

Source from the content-addressed store, hash-verified

90
91
92def test_refs_get_sha(testrepo: Repository) -> None:
93 reference = testrepo.references['refs/heads/master']
94 assert reference is not None
95 assert reference.target == LAST_COMMIT
96
97
98def test_refs_set_sha(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…