(path: &Path)
| 438 | } |
| 439 | |
| 440 | fn github_actions_host_work_path(path: &Path) -> Option<PathBuf> { |
| 441 | if std::env::var("GITHUB_ACTIONS").ok().as_deref() != Some("true") { |
| 442 | return None; |
| 443 | } |
| 444 | |
| 445 | let relative = path.strip_prefix("/__w").ok()?; |
| 446 | let mapped = Path::new("/home/runner/_work").join(relative); |
| 447 | mapped.exists().then_some(mapped) |
| 448 | } |
no test coverage detected