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

Function test_merge_no_fastforward_no_conflicts

test/test_merge.py:83–91  ·  view source on GitHub ↗
(mergerepo: Repository)

Source from the content-addressed store, hash-verified

81
82
83def test_merge_no_fastforward_no_conflicts(mergerepo: Repository) -> None:
84 branch_head_hex = '03490f16b15a09913edb3a067a3dc67fbb8d41f1'
85 branch_id = mergerepo[branch_head_hex].id
86 analysis, preference = mergerepo.merge_analysis(branch_id)
87 assert not analysis & MergeAnalysis.UP_TO_DATE
88 assert not analysis & MergeAnalysis.FASTFORWARD
89 # Asking twice to assure the reference counting is correct
90 assert {} == mergerepo.status()
91 assert {} == mergerepo.status()
92
93
94def test_merge_invalid_hex(mergerepo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

statusMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…