MCPcopy
hub / github.com/go-git/go-git / testExample

Function testExample

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

Source from the content-addressed store, hash-verified

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

Callers 1

TestExamplesFunction · 0.85

Calls 1

CommandMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…