(driver: &str, path: &Path)
| 430 | } |
| 431 | |
| 432 | fn bind_mount_source_path(driver: &str, path: &Path) -> PathBuf { |
| 433 | if driver == "docker" { |
| 434 | github_actions_host_work_path(path).unwrap_or_else(|| path.to_path_buf()) |
| 435 | } else { |
| 436 | path.to_path_buf() |
| 437 | } |
| 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") { |
no test coverage detected