(t *testing.T, args ...string)
| 1591 | } |
| 1592 | |
| 1593 | func (r *testRepo) run(t *testing.T, args ...string) string { |
| 1594 | t.Helper() |
| 1595 | cmd := exec.CommandContext(t.Context(), "git", args...) |
| 1596 | cmd.Dir = r.dir |
| 1597 | output, err := cmd.CombinedOutput() |
| 1598 | require.NoErrorf(t, err, "git %s failed:\n%s", strings.Join(args, " "), output) |
| 1599 | return strings.TrimSpace(string(output)) |
| 1600 | } |
| 1601 | |
| 1602 | func (r *testRepo) commit(t *testing.T, message string) string { |
| 1603 | t.Helper() |
no test coverage detected