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

Function initRepo

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

Source from the content-addressed store, hash-verified

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

Callers 2

TestClientRemotesFunction · 0.85

Calls 2

CommandMethod · 0.95
OutputMethod · 0.65

Tested by

no test coverage detected