(install_dir: &Path)
| 406 | } |
| 407 | |
| 408 | fn cursor_plugin_dir_has_only_managed_files(install_dir: &Path) -> bool { |
| 409 | let Ok(entries) = super::collect_regular_files(install_dir) else { |
| 410 | return false; |
| 411 | }; |
| 412 | let managed = cursor_plugin_managed_paths(install_dir); |
| 413 | entries.iter().all(|entry| managed.contains(entry)) |
| 414 | } |
| 415 | |
| 416 | fn cursor_plugin_managed_paths(install_dir: &Path) -> Vec<PathBuf> { |
| 417 | let mut paths: Vec<PathBuf> = embedded_plugin_files() |
no test coverage detected