(t *testing.T)
| 194 | } |
| 195 | |
| 196 | func 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 | |
| 212 | func TestMergeBasesMany(t *testing.T) { |
| 213 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…