Run does execute the command, and compare the output with the provided expectation. Passing nil for `Expected` will just run the command regardless of outcome. An empty `&Expected{}` is (of course) equivalent to &Expected{Exit: 0}, meaning the command is verified to be successful.
(expect *Expected)
| 129 | // An empty `&Expected{}` is (of course) equivalent to &Expected{Exit: 0}, meaning the command |
| 130 | // is verified to be successful. |
| 131 | Run(expect *Expected) |
| 132 | // Background allows starting a command in the background. |
| 133 | Background() |
| 134 | // Signal sends a signal to a backgrounded command. |
no outgoing calls