MCPcopy Create free account
hub / github.com/cli/cli / createCommand

Function createCommand

git/client_test.go:1720–1732  ·  view source on GitHub ↗
(t *testing.T, exitStatus int, stdout, stderr string)

Source from the content-addressed store, hash-verified

1718}
1719
1720func 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
1734func recordCommandArgs(t *testing.T, gotArgs *[]string) CommandModifier {
1735 t.Helper()

Callers 4

recordCommandArgsFunction · 0.85

Calls 1

HelperMethod · 0.65

Tested by

no test coverage detected