(
command: &mut Command,
command_name: &'static str,
)
| 42 | } |
| 43 | |
| 44 | fn command_output( |
| 45 | command: &mut Command, |
| 46 | command_name: &'static str, |
| 47 | ) -> Result<std::process::Output, Error> { |
| 48 | command.output().map_err(|source| Error::CommandIo { |
| 49 | command: command_name, |
| 50 | source, |
| 51 | }) |
| 52 | } |
| 53 | |
| 54 | fn command_status(command: &mut Command, command_name: &'static str) -> Result<(), Error> { |
| 55 | let output = command_output(command, command_name)?; |
no outgoing calls
no test coverage detected