(&self, extension: &str)
| 259 | } |
| 260 | |
| 261 | fn report_file_path(&self, extension: &str) -> Result<std::path::PathBuf, Box<EngineError>> { |
| 262 | let dir = workspace_directory(&self.workspace_root_dir, self.request.id.as_str(), "cluster-analysis").map_err( |
| 263 | |error| { |
| 264 | Box::new(EngineError::new_cannot_get_workspace_directory( |
| 265 | self.get_event_details(ClusterAnalysisStep::Error), |
| 266 | CommandError::new( |
| 267 | "Cannot create cluster analysis workspace directory".to_string(), |
| 268 | Some(error.to_string()), |
| 269 | None, |
| 270 | ), |
| 271 | )) |
| 272 | }, |
| 273 | )?; |
| 274 | |
| 275 | Ok(dir.join(format!("report.{extension}"))) |
| 276 | } |
| 277 | |
| 278 | fn report_success(&self, report: String) { |
| 279 | for line in report.lines() { |
no test coverage detected