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

Function test_revparse_ext

test/test_revparse.py:44–55  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

42
43
44def test_revparse_ext(testrepo: Repository) -> None:
45 o, r = testrepo.revparse_ext('master')
46 assert o.id == HEAD_SHA
47 assert r == testrepo.references['refs/heads/master']
48
49 o, r = testrepo.revparse_ext('HEAD^')
50 assert o.id == PARENT_SHA
51 assert r is None
52
53 o, r = testrepo.revparse_ext('i18n')
54 assert str(o.id).startswith('5470a67')
55 assert r == testrepo.references['refs/heads/i18n']
56
57
58def test_revparse_1(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…