(t *testing.T)
| 6 | ) |
| 7 | |
| 8 | func TestAnnotatedCommitFromRevspec(t *testing.T) { |
| 9 | t.Parallel() |
| 10 | repo := createTestRepo(t) |
| 11 | defer cleanupTestRepo(t, repo) |
| 12 | |
| 13 | seedTestRepo(t, repo) |
| 14 | |
| 15 | mergeHead, err := repo.AnnotatedCommitFromRevspec("refs/heads/master") |
| 16 | checkFatal(t, err) |
| 17 | |
| 18 | expectedId := "473bf778b67b6d53e2ab289e0f1a2e8addef2fc2" |
| 19 | if mergeHead.Id().String() != expectedId { |
| 20 | t.Errorf("mergeHead.Id() = %v, want %v", mergeHead.Id(), expectedId) |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | func TestMergeWithSelf(t *testing.T) { |
| 25 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…