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

Function test_refs_equality

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

Source from the content-addressed store, hash-verified

281
282
283def test_refs_equality(testrepo: Repository) -> None:
284 ref1 = testrepo.references.get('refs/heads/master')
285 ref2 = testrepo.references.get('refs/heads/master')
286 ref3 = testrepo.references.get('refs/heads/i18n')
287
288 assert ref1 is not ref2
289 assert ref1 == ref2
290 assert not ref1 != ref2
291
292 assert ref1 != ref3
293 assert not ref1 == ref3
294
295
296def test_refs_compress(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…