(config: &Config)
| 199 | |
| 200 | #[cfg(unix)] |
| 201 | fn build_golden(config: &Config) -> Vec<Golden> { |
| 202 | let mut golden = Vec::new(); |
| 203 | for (tree, count) in [("east", config.files_east), ("west", config.files_west)] { |
| 204 | for file in 0..count { |
| 205 | golden.push(Golden { |
| 206 | path: format!("files/{tree}/file_{file:04}.txt"), |
| 207 | content: (0..config.lines) |
| 208 | .map(|line| generated_line(tree, file, line)) |
| 209 | .collect::<String>() |
| 210 | .into_bytes(), |
| 211 | }); |
| 212 | } |
| 213 | } |
| 214 | golden.push(Golden { |
| 215 | path: "empty.txt".into(), |
| 216 | content: Vec::new(), |
| 217 | }); |
| 218 | golden |
| 219 | } |
| 220 | |
| 221 | #[cfg(unix)] |
| 222 | fn east_paths(config: &Config) -> Vec<String> { |
no test coverage detected