(rowKey: string | number, hashedQueryKey: string)
| 689 | |
| 690 | // Helper function to add a row to the internal state |
| 691 | const addRow = (rowKey: string | number, hashedQueryKey: string) => { |
| 692 | const rowToQueriesSet = rowToQueries.get(rowKey) || new Set() |
| 693 | rowToQueriesSet.add(hashedQueryKey) |
| 694 | rowToQueries.set(rowKey, rowToQueriesSet) |
| 695 | |
| 696 | const queryToRowsSet = queryToRows.get(hashedQueryKey) || new Set() |
| 697 | queryToRowsSet.add(rowKey) |
| 698 | queryToRows.set(hashedQueryKey, queryToRowsSet) |
| 699 | } |
| 700 | |
| 701 | // Helper function to remove a row from the internal state |
| 702 | const removeRow = (rowKey: string | number, hashedQuerKey: string) => { |
no test coverage detected