MCPcopy Create free account
hub / github.com/go-git/go-git / testExample

Function testExample

_examples/common_test.go:142–152  ·  view source on GitHub ↗
(t *testing.T, name, dir string)

Source from the content-addressed store, hash-verified

140}
141
142func testExample(t *testing.T, name, dir string) {
143 arguments := append([]string{"run", dir}, args[name]...)
144 cmd := exec.Command("go", arguments...)
145
146 cmd.Stdout = os.Stdout
147 cmd.Stderr = os.Stderr
148
149 if err := cmd.Run(); err != nil {
150 t.Errorf("error running cmd %q", err)
151 }
152}
153
154func deleteTempFolders() {
155 for _, folder := range tempFolders {

Callers 1

TestExamplesFunction · 0.85

Calls 1

CommandMethod · 0.65

Tested by

no test coverage detected