(t *testing.T)
| 484 | } |
| 485 | |
| 486 | func TestCommitDiff(t *testing.T) { |
| 487 | t.Parallel() |
| 488 | repo := setupTestRepo(t) |
| 489 | addCommit(t, repo, "f.txt", "v1", "init") |
| 490 | addCommit(t, repo, "f.txt", "v2", "update") |
| 491 | |
| 492 | commits, _ := repo.Log(1) |
| 493 | diff, err := repo.CommitDiff(commits[0].Hash) |
| 494 | if err != nil { |
| 495 | t.Fatal(err) |
| 496 | } |
| 497 | if diff == "" { |
| 498 | t.Error("expected non-empty commit diff") |
| 499 | } |
| 500 | } |
| 501 | |
| 502 | func TestListBranches(t *testing.T) { |
| 503 | t.Parallel() |
nothing calls this directly
no test coverage detected