(path: &Path)
| 377 | } |
| 378 | |
| 379 | fn infer_scale_factor_from_path(path: &Path) -> Option<f64> { |
| 380 | path.iter().find_map(|component| { |
| 381 | component |
| 382 | .to_str()? |
| 383 | .strip_prefix("tpch_sf")? |
| 384 | .parse::<f64>() |
| 385 | .ok() |
| 386 | }) |
| 387 | } |
| 388 | |
| 389 | #[cfg(test)] |
| 390 | mod scale_factor_tests { |
no test coverage detected
searching dependent graphs…