MCPcopy Index your code
hub / github.com/eksctl-io/eksctl / RunSuccessfullyWithOutputStringLines

Function RunSuccessfullyWithOutputStringLines

integration/runner/runner.go:191–197  ·  view source on GitHub ↗

RunSuccessfullyWithOutputStringLines matches successful execution of a command and passes the output string to another matcher split into lines (the string will include stdout and stderr)

(outputMatchers ...types.GomegaMatcher)

Source from the content-addressed store, hash-verified

189// RunSuccessfullyWithOutputStringLines matches successful execution of a command and passes the output string
190// to another matcher split into lines (the string will include stdout and stderr)
191func RunSuccessfullyWithOutputStringLines(outputMatchers ...types.GomegaMatcher) types.GomegaMatcher {
192 return &runCmdOutputMatcher{
193 outputMatchers: outputMatchers,
194 splitLines: true,
195 runCmdMatcher: &runCmdMatcher{},
196 }
197}
198
199func (m *runCmdOutputMatcher) Match(actual interface{}) (bool, error) {
200 cmd, ok := actual.(Cmd)

Calls

no outgoing calls

Tested by

no test coverage detected