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

Function initRepo

git/client_test.go:1952–1966  ·  view source on GitHub ↗
(t *testing.T, dir string)

Source from the content-addressed store, hash-verified

1950}
1951
1952func initRepo(t *testing.T, dir string) {
1953 errBuf := &bytes.Buffer{}
1954 inBuf := &bytes.Buffer{}
1955 outBuf := &bytes.Buffer{}
1956 client := Client{
1957 RepoDir: dir,
1958 Stderr: errBuf,
1959 Stdin: inBuf,
1960 Stdout: outBuf,
1961 }
1962 cmd, err := client.Command(context.Background(), []string{"init", "--quiet"}...)
1963 assert.NoError(t, err)
1964 _, err = cmd.Output()
1965 assert.NoError(t, err)
1966}
1967
1968type args string
1969

Callers 2

TestClientRemotesFunction · 0.85

Calls 2

CommandMethod · 0.95
OutputMethod · 0.65

Tested by

no test coverage detected