(t *testing.T)
| 230 | } |
| 231 | |
| 232 | func 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 | |
| 248 | func compareBytes(t *testing.T, expected, actual []byte) { |
| 249 | for i, v := range expected { |
nothing calls this directly
no test coverage detected
searching dependent graphs…