(content: &[u8])
| 2646 | } |
| 2647 | |
| 2648 | fn split_graph_first_lines(content: &[u8]) -> Vec<&[u8]> { |
| 2649 | if content.is_empty() { |
| 2650 | Vec::new() |
| 2651 | } else { |
| 2652 | content.split_inclusive(|&b| b == b'\n').collect() |
| 2653 | } |
| 2654 | } |
| 2655 | |
| 2656 | fn import_shape_for_file(file: &ParsedFile, line_index: &ImportLineIndex) -> (usize, usize, usize) { |
| 2657 | let indexed = line_index.files.get(&file.path).or_else(|| { |
no test coverage detected