()
| 152 | |
| 153 | #[test] |
| 154 | fn test_absolute_path_already_absolute() { |
| 155 | let path = if cfg!(windows) { |
| 156 | Path::new("C:\\tmp\\test") |
| 157 | } else { |
| 158 | Path::new("/tmp/test") |
| 159 | }; |
| 160 | let result = absolute_path(path).unwrap(); |
| 161 | assert!(result.is_absolute()); |
| 162 | assert_eq!(result, path); |
| 163 | } |
| 164 | |
| 165 | #[test] |
| 166 | fn test_absolute_path_relative() { |
nothing calls this directly
no test coverage detected