Zero-based fixture index of a generated `files/file_NNNN.txt` path.
(path: &str)
| 33 | |
| 34 | /// Zero-based fixture index of a generated `files/file_NNNN.txt` path. |
| 35 | fn fixture_file_index(path: &str) -> Option<usize> { |
| 36 | path.strip_prefix("files/file_")?.get(..4)?.parse().ok() |
| 37 | } |
| 38 | |
| 39 | #[derive(Clone, Debug, Serialize, Deserialize)] |
| 40 | struct Config { |