(content: &[u8])
| 796 | } |
| 797 | |
| 798 | fn split_graph_first_lines(content: &[u8]) -> Vec<&[u8]> { |
| 799 | if content.is_empty() { |
| 800 | Vec::new() |
| 801 | } else { |
| 802 | content.split_inclusive(|&b| b == b'\n').collect() |
| 803 | } |
| 804 | } |
| 805 | |
| 806 | fn import_shape_for_file(file: &ParsedFile, line_index: &ImportLineIndex) -> (usize, usize, usize) { |
| 807 | let indexed = line_index.files.get(&file.path).or_else(|| { |
no test coverage detected