(id: &str, control: Option<&ControlMetadata>)
| 1258 | } |
| 1259 | |
| 1260 | fn discover_dependencies(id: &str, control: Option<&ControlMetadata>) -> Vec<String> { |
| 1261 | let mut dependencies = BTreeSet::new(); |
| 1262 | if let Some(control) = control { |
| 1263 | dependencies.extend(control.requires.iter().cloned()); |
| 1264 | } |
| 1265 | if id == "earthdistance" { |
| 1266 | dependencies.insert("cube".to_owned()); |
| 1267 | } |
| 1268 | dependencies.into_iter().collect() |
| 1269 | } |
| 1270 | |
| 1271 | fn discover_native_module_file( |
| 1272 | id: &str, |
no test coverage detected