MCPcopy Create free account
hub / github.com/libgit2/git2go / TestMergeBaseMany

Function TestMergeBaseMany

merge_test.go:196–210  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

194}
195
196func TestMergeBaseMany(t *testing.T) {
197 t.Parallel()
198 repo := createTestRepo(t)
199 defer cleanupTestRepo(t, repo)
200
201 commitAId, _ := seedTestRepo(t, repo)
202 commitBId, _ := appendCommit(t, repo)
203
204 mergeBase, err := repo.MergeBaseMany([]*Oid{commitAId, commitBId})
205 checkFatal(t, err)
206
207 if mergeBase.Cmp(commitAId) != 0 {
208 t.Fatalf("unexpected merge base")
209 }
210}
211
212func TestMergeBasesMany(t *testing.T) {
213 t.Parallel()

Callers

nothing calls this directly

Calls 7

createTestRepoFunction · 0.85
cleanupTestRepoFunction · 0.85
seedTestRepoFunction · 0.85
appendCommitFunction · 0.85
checkFatalFunction · 0.85
MergeBaseManyMethod · 0.80
CmpMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…