(t *testing.T)
| 210 | } |
| 211 | |
| 212 | func TestMergeBasesMany(t *testing.T) { |
| 213 | t.Parallel() |
| 214 | repo := createTestRepo(t) |
| 215 | defer cleanupTestRepo(t, repo) |
| 216 | |
| 217 | commitAId, _ := seedTestRepo(t, repo) |
| 218 | commitBId, _ := appendCommit(t, repo) |
| 219 | |
| 220 | mergeBases, err := repo.MergeBasesMany([]*Oid{commitAId, commitBId}) |
| 221 | checkFatal(t, err) |
| 222 | |
| 223 | if len(mergeBases) != 1 { |
| 224 | t.Fatalf("expected merge bases len to be 1, got %v", len(mergeBases)) |
| 225 | } |
| 226 | |
| 227 | if mergeBases[0].Cmp(commitAId) != 0 { |
| 228 | t.Fatalf("unexpected merge base") |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | func TestMergeBaseOctopus(t *testing.T) { |
| 233 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…