Schedule any new job to run for the pass command.
(&mut self, passes: &[String], target: &str)
| 225 | |
| 226 | /// Schedule any new job to run for the pass command. |
| 227 | fn schedule_pass_job(&mut self, passes: &[String], target: &str) { |
| 228 | self.tests[0].state = State::Running; |
| 229 | let result: anyhow::Result<time::Duration>; |
| 230 | |
| 231 | let specified_target = match target { |
| 232 | "" => None, |
| 233 | targ => Some(targ), |
| 234 | }; |
| 235 | |
| 236 | result = runone::run(self.tests[0].path(), Some(passes), specified_target); |
| 237 | self.finish_job(0, result); |
| 238 | } |
| 239 | |
| 240 | /// Report the end of a job. |
| 241 | fn finish_job(&mut self, jobid: usize, result: anyhow::Result<time::Duration>) { |
no test coverage detected