MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / is_vault_path

Function is_vault_path

atomic-repository/src/analysis_scope.rs:8–12  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

6/// code inputs merely because an artifact happens to have a source extension.
7/// This accepts canonical repository-relative paths and native path components.
8pub 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)]
15mod tests {

Callers 7

buildFunction · 0.50
projectFunction · 0.50
sourcesFunction · 0.50
analyze_changeFunction · 0.50
analyze_snapshotFunction · 0.50
inspectFunction · 0.50
changed_pathsFunction · 0.50

Calls 1

componentsMethod · 0.80

Tested by

no test coverage detected