MCPcopy
hub / github.com/cli/cli / initRepo

Function initRepo

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

Source from the content-addressed store, hash-verified

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

Callers 2

TestClientRemotesFunction · 0.85

Calls 2

CommandMethod · 0.95
OutputMethod · 0.65

Tested by

no test coverage detected