(t *testing.T)
| 80 | } |
| 81 | |
| 82 | func TestHandleGitLog(t *testing.T) { |
| 83 | dir := newGitRepo(t) |
| 84 | e, out := newGitTestEngine() |
| 85 | if err := e.Execute(context.Background(), "git-log", []string{"--dir", dir, "--limit", "5"}); err != nil { |
| 86 | t.Fatalf("git-log: %v", err) |
| 87 | } |
| 88 | if !strings.Contains(out.String(), "initial commit") { |
| 89 | t.Errorf("log output = %q", out.String()) |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | func TestHandleGitDiff(t *testing.T) { |
| 94 | dir := newGitRepo(t) |
nothing calls this directly
no test coverage detected