(sourceRoot, report)
| 65 | } |
| 66 | |
| 67 | function collectRepositoryNearPairRows(sourceRoot, report) { |
| 68 | return COLOR_DOMAIN_KEYS.flatMap((domain) => { |
| 69 | const pairs = report.colorDomainNearPairs?.[domain]; |
| 70 | if (!pairs) { |
| 71 | return []; |
| 72 | } |
| 73 | return [ |
| 74 | ...(pairs.indistinguishable ?? []), |
| 75 | ...(pairs.near ?? []), |
| 76 | ].map(pair => ({ |
| 77 | root: sourceRoot, |
| 78 | domain, |
| 79 | key: pair.key, |
| 80 | })); |
| 81 | }).sort((left, right) => ( |
| 82 | left.root.localeCompare(right.root) |
| 83 | || left.domain.localeCompare(right.domain) |
| 84 | || left.key.localeCompare(right.key) |
| 85 | )); |
| 86 | } |
| 87 | |
| 88 | function formatNearPairDecisionKey(row) { |
| 89 | return `${row.root}:${row.domain}:${row.key}`; |
no outgoing calls
no test coverage detected