(content: &[u8])
| 744 | } |
| 745 | |
| 746 | fn split_graph_first_lines(content: &[u8]) -> Vec<&[u8]> { |
| 747 | if content.is_empty() { |
| 748 | Vec::new() |
| 749 | } else { |
| 750 | content.split_inclusive(|&b| b == b'\n').collect() |
| 751 | } |
| 752 | } |
| 753 | |
| 754 | fn import_shape_for_file(file: &ParsedFile, line_index: &ImportLineIndex) -> (usize, usize, usize) { |
| 755 | let indexed = line_index.files.get(&file.path).or_else(|| { |
no test coverage detected