MCPcopy Create free account
hub / github.com/apache/qpid-proton / runExample

Function runExample

go/examples/example_test.go:132–136  ·  view source on GitHub ↗

Run an example Go program, return the combined output as a string.

(t *testing.T, prog string, arg ...string)

Source from the content-addressed store, hash-verified

130
131// Run an example Go program, return the combined output as a string.
132func runExample(t *testing.T, prog string, arg ...string) (string, error) {
133 cmd := exampleCommand(t, prog, arg...)
134 out, err := cmd.Output()
135 return string(out), err
136}
137
138func prefix(prefix string, err error) error {
139 if err != nil {

Callers 1

runExampleWantFunction · 0.85

Calls 2

exampleCommandFunction · 0.85
OutputMethod · 0.80

Tested by

no test coverage detected