(
otherTableRowCellHashes: CellHashes,
)
| 584 | }; |
| 585 | |
| 586 | const getMergeableCellDiff = ( |
| 587 | otherTableRowCellHashes: CellHashes, |
| 588 | ): TablesStamp => { |
| 589 | const [[tableStampMaps, tablesHlc]] = contentStampMap; |
| 590 | const tablesObj: TablesStamp[0] = {}; |
| 591 | objForEach(otherTableRowCellHashes, (otherRowCellHashes, tableId) => |
| 592 | objForEach(otherRowCellHashes, (otherCellHashes, rowId) => |
| 593 | ifNotUndefined( |
| 594 | mapGet(tableStampMaps, tableId), |
| 595 | ([rowStampMaps, tableHlc]) => |
| 596 | ifNotUndefined( |
| 597 | mapGet(rowStampMaps, rowId), |
| 598 | ([cellStampMaps, rowHlc]) => |
| 599 | mapForEach(cellStampMaps, (cellId, [cell, cellHlc, hash]) => |
| 600 | hash !== otherCellHashes[cellId] |
| 601 | ? (objEnsure( |
| 602 | objEnsure(tablesObj, tableId, () => |
| 603 | stampNewObj(tableHlc), |
| 604 | )[0], |
| 605 | rowId, |
| 606 | () => stampNewObj(rowHlc), |
| 607 | )[0][cellId] = [cell, cellHlc]) |
| 608 | : 0, |
| 609 | ), |
| 610 | ), |
| 611 | ), |
| 612 | ), |
| 613 | ); |
| 614 | return stampNew(tablesObj, tablesHlc); |
| 615 | }; |
| 616 | |
| 617 | const getMergeableValueHashes = (): ValueHashes => |
| 618 | mapToObj(contentStampMap[1][0], getStampHash); |
nothing calls this directly
no test coverage detected
searching dependent graphs…