(runtime_root: &Path, command: &str)
| 148 | } |
| 149 | |
| 150 | pub fn runtime_executable_path(runtime_root: &Path, command: &str) -> PathBuf { |
| 151 | let bin_dir = runtime_root.join("bin"); |
| 152 | for candidate in runtime_executable_candidates(command) { |
| 153 | let candidate_path = bin_dir.join(&candidate); |
| 154 | if candidate_path.exists() { |
| 155 | return candidate_path; |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | bin_dir.join(runtime_primary_executable_name(command)) |
| 160 | } |
| 161 | |
| 162 | pub fn runtime_executable_candidate_paths(runtime_root: &Path, command: &str) -> Vec<PathBuf> { |
| 163 | let bin_dir = runtime_root.join("bin"); |
no test coverage detected