(path: &Path)
| 436 | } |
| 437 | |
| 438 | async fn read_runner_result(path: &Path) -> Result<ArticleRequestRunnerResult> { |
| 439 | let raw = read_result_json(path).await?; |
| 440 | ArticleRequestRunnerResult::from_json(raw) |
| 441 | .with_context(|| format!("result schema is invalid: {}", path.display())) |
| 442 | } |
| 443 | |
| 444 | fn build_result_file_path(result_dir: &Path, request_id: &str) -> PathBuf { |
| 445 | let safe = sanitize_id_for_path(request_id); |
no test coverage detected