Cross-platform path append that handles test paths consistently
(base: impl AsRef<Path>, path: impl AsRef<Path>)
| 75 | |
| 76 | /// Cross-platform path append that handles test paths consistently |
| 77 | fn append(base: impl AsRef<Path>, path: impl AsRef<Path>) -> PathBuf { |
| 78 | #[cfg(test)] |
| 79 | { |
| 80 | // Normalize the path for tests, then use the platform-specific append |
| 81 | platform_append(normalize_test_path(base), normalize_test_path(path)) |
| 82 | } |
| 83 | |
| 84 | #[cfg(not(test))] |
| 85 | { |
| 86 | // In non-test code, just use the platform-specific append directly |
| 87 | platform_append(base, path) |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | #[derive(Debug, Clone)] |
| 92 | pub enum Fs { |
no test coverage detected