(t *testing.T, dir string, args ...string)
| 1618 | } |
| 1619 | |
| 1620 | func runGitAt(t *testing.T, dir string, args ...string) string { |
| 1621 | t.Helper() |
| 1622 | cmd := exec.CommandContext(t.Context(), "git", append([]string{"-C", dir}, args...)...) |
| 1623 | output, err := cmd.CombinedOutput() |
| 1624 | require.NoErrorf(t, err, "git %s failed:\n%s", strings.Join(args, " "), output) |
| 1625 | return strings.TrimSpace(string(output)) |
| 1626 | } |
| 1627 | |
| 1628 | func TestGitCommandHelperProcess(t *testing.T) { |
| 1629 | if len(os.Args) != 7 || os.Args[3] != "git-command-helper" { |
no test coverage detected