(t *testing.T, exitStatus int, stdout, stderr string)
| 1718 | } |
| 1719 | |
| 1720 | func createCommand(t *testing.T, exitStatus int, stdout, stderr string) *exec.Cmd { |
| 1721 | t.Helper() |
| 1722 | return exec.CommandContext( |
| 1723 | context.Background(), |
| 1724 | os.Args[0], |
| 1725 | "-test.run=^TestGitCommandHelperProcess$", |
| 1726 | "--", |
| 1727 | "git-command-helper", |
| 1728 | strconv.Itoa(exitStatus), |
| 1729 | stdout, |
| 1730 | stderr, |
| 1731 | ) |
| 1732 | } |
| 1733 | |
| 1734 | func recordCommandArgs(t *testing.T, gotArgs *[]string) CommandModifier { |
| 1735 | t.Helper() |
no test coverage detected