(left: ModelSelection, right: ModelSelection)
| 1099 | } |
| 1100 | |
| 1101 | function selectionOverlapScore(left: ModelSelection, right: ModelSelection) { |
| 1102 | const rightParams = new Set( |
| 1103 | (right.params ?? []).map((param) => `${param.id}=${param.value}`) |
| 1104 | ) |
| 1105 | |
| 1106 | return (left.params ?? []).filter((param) => |
| 1107 | rightParams.has(`${param.id}=${param.value}`) |
| 1108 | ).length |
| 1109 | } |
| 1110 | |
| 1111 | function selectionSearchText(selection: ModelSelection) { |
| 1112 | return [ |
no outgoing calls
no test coverage detected