(
otherTableHashes: TableHashes,
)
| 498 | mapToObj(contentStampMap[0][0], getStampHash); |
| 499 | |
| 500 | const getMergeableTableDiff = ( |
| 501 | otherTableHashes: TableHashes, |
| 502 | ): [newTables: TablesStamp, differingTableHashes: TableHashes] => { |
| 503 | const newTables: TablesStamp = stampNewObj(contentStampMap[0][1]); |
| 504 | const differingTableHashes: TableHashes = {}; |
| 505 | mapForEach( |
| 506 | contentStampMap[0][0], |
| 507 | (tableId, [tableStampMap, tableHlc, hash]) => |
| 508 | objHas(otherTableHashes, tableId) |
| 509 | ? hash != otherTableHashes[tableId] |
| 510 | ? (differingTableHashes[tableId] = hash) |
| 511 | : 0 |
| 512 | : (newTables[0][tableId] = stampMapToObjWithoutHash( |
| 513 | [tableStampMap, tableHlc], |
| 514 | (rowStampMap) => stampMapToObjWithoutHash(rowStampMap), |
| 515 | )), |
| 516 | ); |
| 517 | return [newTables, differingTableHashes]; |
| 518 | }; |
| 519 | |
| 520 | const getMergeableRowHashes = (otherTableHashes: TableHashes): RowHashes => { |
| 521 | const rowHashes: RowHashes = {}; |
nothing calls this directly
no test coverage detected
searching dependent graphs…