(content: &[u8])
| 683 | } |
| 684 | |
| 685 | fn split_graph_first_lines(content: &[u8]) -> Vec<&[u8]> { |
| 686 | if content.is_empty() { |
| 687 | Vec::new() |
| 688 | } else { |
| 689 | content.split_inclusive(|&b| b == b'\n').collect() |
| 690 | } |
| 691 | } |
| 692 | |
| 693 | fn import_shape_for_file(file: &ParsedFile, line_index: &ImportLineIndex) -> (usize, usize, usize) { |
| 694 | let indexed = line_index.files.get(&file.path).or_else(|| { |
no test coverage detected