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

Function runExampleWant

go/examples/example_test.go:145–151  ·  view source on GitHub ↗
(t *testing.T, want string, prog string, args ...string)

Source from the content-addressed store, hash-verified

143}
144
145func runExampleWant(t *testing.T, want string, prog string, args ...string) error {
146 out, err := runExample(t, prog, args...)
147 if err != nil {
148 return fmt.Errorf("%s failed: %s: %s", prog, err, out)
149 }
150 return prefix(prog, checkEqual(want, out))
151}
152
153func exampleArgs(args ...string) []string {
154 for i := 0; i < *connections; i++ {

Callers 2

TestExampleSendReceiveFunction · 0.85
TestExampleReceiveSendFunction · 0.85

Calls 3

runExampleFunction · 0.85
prefixFunction · 0.85
checkEqualFunction · 0.85

Tested by

no test coverage detected