(body: &str)
| 232 | } |
| 233 | |
| 234 | fn parse_body(body: &str) -> Result<(Vec<FixtureFile>, usize, u32, u32), String> { |
| 235 | // Check for multi-file format: lines starting with `=== path ===`. |
| 236 | if body.contains("\n=== ") || body.starts_with("=== ") { |
| 237 | parse_multi_file_body(body) |
| 238 | } else { |
| 239 | parse_single_file_body(body) |
| 240 | } |
| 241 | } |
| 242 | |
| 243 | fn parse_single_file_body(body: &str) -> Result<(Vec<FixtureFile>, usize, u32, u32), String> { |
| 244 | let (content, line, char) = strip_cursor(body)?; |
no test coverage detected