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

Function test_list_all_reference_objects

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

Source from the content-addressed store, hash-verified

310
311
312def test_list_all_reference_objects(testrepo: Repository) -> None:
313 repo = testrepo
314 refs = [(ref.name, ref.target) for ref in repo.listall_reference_objects()]
315
316 assert sorted(refs) == [
317 ('refs/heads/i18n', '5470a671a80ac3789f1a6a8cefbcf43ce7af0563'),
318 ('refs/heads/master', '2be5719152d4f82c7302b1c0932d8e5f0a4a0e98'),
319 ]
320
321
322def test_list_all_references(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…