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

Function test_refs_list_objects

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

Source from the content-addressed store, hash-verified

47
48
49def test_refs_list_objects(testrepo: Repository) -> None:
50 refs = [(ref.name, ref.target) for ref in testrepo.references.objects]
51 assert sorted(refs) == [
52 ('refs/heads/i18n', '5470a671a80ac3789f1a6a8cefbcf43ce7af0563'),
53 ('refs/heads/master', '2be5719152d4f82c7302b1c0932d8e5f0a4a0e98'),
54 ]
55
56
57def test_refs_list(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…