(path: impl AsRef<Path>)
| 343 | "#; |
| 344 | |
| 345 | fn create_data_files(path: impl AsRef<Path>) -> TestResult { |
| 346 | let path = path.as_ref(); |
| 347 | // Create dummy directory structure |
| 348 | create_dir_all(path.join("usr/share/foo/bar/baz"))?; |
| 349 | // Create dummy text file |
| 350 | File::create(path.join("usr/share/foo/beh.txt"))?.write_all(b"test")?; |
| 351 | // Create relative symlink to actual text file |
| 352 | symlink("../../beh.txt", path.join("usr/share/foo/bar/baz/beh.txt"))?; |
| 353 | Ok(()) |
| 354 | } |
| 355 | |
| 356 | fn create_metadata_files(path: impl AsRef<Path>) -> TestResult { |
| 357 | let path = path.as_ref(); |
no test coverage detected