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

Function test_revparse_single

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

Source from the content-addressed store, hash-verified

35
36
37def test_revparse_single(testrepo: Repository) -> None:
38 assert testrepo.revparse_single('HEAD').id == HEAD_SHA
39 assert testrepo.revparse_single('HEAD^').id == PARENT_SHA
40 o = testrepo.revparse_single('@{-1}')
41 assert o.id == '5470a671a80ac3789f1a6a8cefbcf43ce7af0563'
42
43
44def test_revparse_ext(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…