MCPcopy
hub / github.com/iron-io/functions / tryRun

Function tryRun

api/datastore/postgres/postgres_test.go:85–91  ·  view source on GitHub ↗
(logf func(string, ...interface{}), desc string, cmd *exec.Cmd)

Source from the content-addressed store, hash-verified

83}
84
85func tryRun(logf func(string, ...interface{}), desc string, cmd *exec.Cmd) {
86 var b bytes.Buffer
87 cmd.Stderr = &b
88 if err := cmd.Run(); err != nil {
89 logf("failed to %s: %s", desc, b.String())
90 }
91}
92
93func mustRun(fatalf func(string, ...interface{}), desc string, cmd *exec.Cmd) {
94 var b bytes.Buffer

Callers 1

preparePostgresTestFunction · 0.70

Calls 1

RunMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…