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

Function test_refs_list

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

Source from the content-addressed store, hash-verified

55
56
57def test_refs_list(testrepo: Repository) -> None:
58 # Without argument
59 assert sorted(testrepo.references) == ['refs/heads/i18n', 'refs/heads/master']
60
61 # We add a symbolic reference
62 testrepo.create_reference('refs/tags/version1', 'refs/heads/master')
63 assert sorted(testrepo.references) == [
64 'refs/heads/i18n',
65 'refs/heads/master',
66 'refs/tags/version1',
67 ]
68
69
70def test_head(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

create_referenceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…