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)
| 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) |
| 191 | func RunSuccessfullyWithOutputStringLines(outputMatchers ...types.GomegaMatcher) types.GomegaMatcher { |
| 192 | return &runCmdOutputMatcher{ |
| 193 | outputMatchers: outputMatchers, |
| 194 | splitLines: true, |
| 195 | runCmdMatcher: &runCmdMatcher{}, |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | func (m *runCmdOutputMatcher) Match(actual interface{}) (bool, error) { |
| 200 | cmd, ok := actual.(Cmd) |
no outgoing calls
no test coverage detected