(t *testing.T)
| 158 | } |
| 159 | |
| 160 | func TestMergeBase(t *testing.T) { |
| 161 | t.Parallel() |
| 162 | repo := createTestRepo(t) |
| 163 | defer cleanupTestRepo(t, repo) |
| 164 | |
| 165 | commitAId, _ := seedTestRepo(t, repo) |
| 166 | commitBId, _ := appendCommit(t, repo) |
| 167 | |
| 168 | mergeBase, err := repo.MergeBase(commitAId, commitBId) |
| 169 | checkFatal(t, err) |
| 170 | |
| 171 | if mergeBase.Cmp(commitAId) != 0 { |
| 172 | t.Fatalf("unexpected merge base") |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | func TestMergeBases(t *testing.T) { |
| 177 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…