(path: &str, project_root: &Path)
| 1778 | } |
| 1779 | |
| 1780 | fn relative_display_path(path: &str, project_root: &Path) -> String { |
| 1781 | let normalized_root = normalize_path(&path_to_string(project_root)); |
| 1782 | let normalized_path = normalize_path(path); |
| 1783 | normalized_path |
| 1784 | .strip_prefix(&format!("{normalized_root}/")) |
| 1785 | .unwrap_or(&normalized_path) |
| 1786 | .to_string() |
| 1787 | } |
| 1788 | |
| 1789 | fn is_under_dir(path: &str, dir: &str) -> bool { |
| 1790 | let normalized = normalize_path(path); |
no test coverage detected