Vault artifacts remain repository/review evidence, but are never application code inputs merely because an artifact happens to have a source extension. This accepts canonical repository-relative paths and native path components.
(path: &str)
| 6 | /// code inputs merely because an artifact happens to have a source extension. |
| 7 | /// This accepts canonical repository-relative paths and native path components. |
| 8 | pub fn is_vault_path(path: &str) -> bool { |
| 9 | Path::new(path) |
| 10 | .components() |
| 11 | .any(|component| matches!(component, Component::Normal(name) if name == ".vault")) |
| 12 | } |
| 13 | |
| 14 | #[cfg(test)] |
| 15 | mod tests { |
no test coverage detected