MCPcopy
hub / github.com/docker/compose / StdoutContains

Function StdoutContains

pkg/e2e/framework.go:405–409  ·  view source on GitHub ↗

StdoutContains returns a predicate on command result expecting a string in stdout

(expected string)

Source from the content-addressed store, hash-verified

403
404// StdoutContains returns a predicate on command result expecting a string in stdout
405func StdoutContains(expected string) func(*icmd.Result) bool {
406 return func(res *icmd.Result) bool {
407 return strings.Contains(res.Stdout(), expected)
408 }
409}
410
411func IsHealthy(service string) func(res *icmd.Result) bool {
412 return func(res *icmd.Result) bool {

Callers 1

TestRestartFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestRestartFunction · 0.68