(synced: Set<string>, rebuilt: Set<string>)
| 100 | |
| 101 | /** Human-readable diff, so a failure names the edges instead of just a count. */ |
| 102 | const describeDiff = (synced: Set<string>, rebuilt: Set<string>): string => { |
| 103 | const missing = [...rebuilt].filter((e) => !synced.has(e)); |
| 104 | const stale = [...synced].filter((e) => !rebuilt.has(e)); |
| 105 | return `missing from synced: ${missing.length}, stale in synced: ${stale.length}`; |
| 106 | }; |
| 107 | |
| 108 | /** |
| 109 | * Rebuild the index from scratch over the CURRENT tree and return its edge |
no test coverage detected