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

Method run

git/client_test.go:1593–1600  ·  view source on GitHub ↗
(t *testing.T, args ...string)

Source from the content-addressed store, hash-verified

1591}
1592
1593func (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
1602func (r *testRepo) commit(t *testing.T, message string) string {
1603 t.Helper()

Calls 2

JoinMethod · 0.80
HelperMethod · 0.65

Tested by

no test coverage detected