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

Function expectOutput

pkg/e2e/logs_test.go:124–131  ·  view source on GitHub ↗
(res *icmd.Result, expected string)

Source from the content-addressed store, hash-verified

122}
123
124func expectOutput(res *icmd.Result, expected string) func(t poll.LogT) poll.Result {
125 return func(t poll.LogT) poll.Result {
126 if strings.Contains(res.Stdout(), expected) {
127 return poll.Success()
128 }
129 return poll.Continue("condition not met")
130 }
131}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected