MCPcopy Create free account
hub / github.com/FastLED/FastLED / is_under_dir

Function is_under_dir

ci/lint_cpp_rs/src/lib.rs:1789–1794  ·  view source on GitHub ↗
(path: &str, dir: &str)

Source from the content-addressed store, hash-verified

1787}
1788
1789fn is_under_dir(path: &str, dir: &str) -> bool {
1790 let normalized = normalize_path(path);
1791 normalized == dir
1792 || normalized.starts_with(&format!("{dir}/"))
1793 || normalized.contains(&format!("/{dir}/"))
1794}
1795
1796fn is_under_project_subpath(path: &str, project_root: &Path, subpath: &str) -> bool {
1797 let normalized_path = normalize_path(path);

Callers 1

should_process_fileMethod · 0.85

Calls 3

normalize_pathFunction · 0.70
starts_withMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected