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

Function test_head

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

Source from the content-addressed store, hash-verified

68
69
70def test_head(testrepo: Repository) -> None:
71 head = testrepo.head
72 assert LAST_COMMIT == testrepo[head.target].id
73 assert not isinstance(head.raw_target, bytes)
74 assert LAST_COMMIT == testrepo[head.raw_target].id
75
76
77def test_refs_getitem(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…