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

Function test_references

test/test_repository_custom.py:54–59  ·  view source on GitHub ↗
(repo: Repository)

Source from the content-addressed store, hash-verified

52
53
54def test_references(repo: Repository) -> None:
55 refs = [(ref.name, ref.target) for ref in repo.references.objects]
56 assert sorted(refs) == [
57 ('refs/heads/i18n', '5470a671a80ac3789f1a6a8cefbcf43ce7af0563'),
58 ('refs/heads/master', '2be5719152d4f82c7302b1c0932d8e5f0a4a0e98'),
59 ]
60
61
62def test_objects(repo: 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…