(componentSlices: ComponentSlice[])
| 210 | }; |
| 211 | |
| 212 | const calculateLongestMatch = (componentSlices: ComponentSlice[]): number => { |
| 213 | return componentSlices.reduce( |
| 214 | (longestMatch, slice) => |
| 215 | slice.slice.isMatch |
| 216 | ? Math.max(longestMatch, slice.slice.slice.length) |
| 217 | : longestMatch, |
| 218 | 0 |
| 219 | ); |
| 220 | }; |
| 221 | |
| 222 | const addEllipsisToSlices = ( |
| 223 | slices: PathSlice[], |
no outgoing calls
no test coverage detected