(&mut self)
| 168 | } |
| 169 | |
| 170 | fn run_get_output(&mut self) -> Result<Box<dyn std::io::BufRead>> { |
| 171 | let mut stdout = tempfile::tempfile()?; |
| 172 | self.stdout(stdout.try_clone()?); |
| 173 | self.run_capture_stderr()?; |
| 174 | stdout.seek(std::io::SeekFrom::Start(0)).context("seek")?; |
| 175 | Ok(Box::new(std::io::BufReader::new(stdout))) |
| 176 | } |
| 177 | |
| 178 | fn run_get_string(&mut self) -> Result<String> { |
| 179 | let mut s = String::new(); |
no test coverage detected