(title)
| 52 | const branch = fork.comparison.branches.find((entry) => entry.branch_id === branchId); |
| 53 | return Boolean(branch && branch.comparable); |
| 54 | } |
| 55 | |
| 56 | function forkComparisonLabel(comparison) { |
| 57 | if (!comparison || comparison.outcome === 'insufficient-evidence') return 'Insufficient evidence'; |
| 58 | if (comparison.outcome === 'tie') return 'Verified tie'; |
| 59 | if (comparison.outcome === 'recommended') return `Recommendation: ${comparison.recommendation}`; |
| 60 | return 'Comparison unknown'; |
| 61 | } |
no test coverage detected