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

Function test_revparse_range_2

test/test_revparse.py:72–77  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

70
71
72def test_revparse_range_2(testrepo: Repository) -> None:
73 s = testrepo.revparse('HEAD...i18n')
74 assert str(s.from_object.id).startswith('2be5719')
75 assert str(s.to_object.id).startswith('5470a67')
76 assert s.flags == RevSpecFlag.RANGE | RevSpecFlag.MERGE_BASE
77 assert testrepo.merge_base(s.from_object.id, s.to_object.id) is not None
78
79
80def test_revparse_range_errors(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…