(&self, name: &str)
| 80 | } |
| 81 | |
| 82 | pub(crate) fn is_function_available(&self, name: &str) -> Result<(), HashSet<String>> { |
| 83 | if self.initial_functions.contains(name) { |
| 84 | return Ok(()); |
| 85 | } |
| 86 | |
| 87 | match binary_targets(&self.manifest_path, false) { |
| 88 | Err(err) => { |
| 89 | tracing::error!(?err, "failed to load the project's binaries"); |
| 90 | Err(self.initial_functions.clone()) |
| 91 | } |
| 92 | Ok(binaries) if binaries.contains(name) => Ok(()), |
| 93 | Ok(binaries) => Err(binaries), |
| 94 | } |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | #[derive(Clone, Debug)] |
no test coverage detected