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

Function TestMergeBaseOctopus

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

Source from the content-addressed store, hash-verified

230}
231
232func TestMergeBaseOctopus(t *testing.T) {
233 t.Parallel()
234 repo := createTestRepo(t)
235 defer cleanupTestRepo(t, repo)
236
237 commitAId, _ := seedTestRepo(t, repo)
238 commitBId, _ := appendCommit(t, repo)
239
240 mergeBase, err := repo.MergeBaseOctopus([]*Oid{commitAId, commitBId})
241 checkFatal(t, err)
242
243 if mergeBase.Cmp(commitAId) != 0 {
244 t.Fatalf("unexpected merge base")
245 }
246}
247
248func compareBytes(t *testing.T, expected, actual []byte) {
249 for i, v := range expected {

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…