(path: &str, dir: &str)
| 1787 | } |
| 1788 | |
| 1789 | fn 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 | |
| 1796 | fn is_under_project_subpath(path: &str, project_root: &Path, subpath: &str) -> bool { |
| 1797 | let normalized_path = normalize_path(path); |
no test coverage detected