Commit 48eb24c
committed
test(review): cover extractReviewSummary suggestions-merge + sole-reviewer consensus (#6634)
extractReviewSummary folds each reviewer's free-form `suggestions` into the rendered `nits`
(unified-comment.ts:136) and treats a sole reviewer's blocker as a consensus blocker
(unified-comment.ts:140) — both already-shipped branches were unexercised: the shared test
helper only ever passed the default `suggestions: []`, and the closest single-reviewer-blocker
case never asserted `.consensusBlocker`.
Adds three cases through the sole entry point `buildUnifiedReviewInput`:
- a non-empty `suggestions` array surfaces in `nits`, deduped case-insensitively against explicit nits
- a sole reviewer's blocker → `consensusBlocker: true` (and derived status `blocked`)
- a sole reviewer with no blocker → `consensusBlocker: false`
No production code change — this closes a coverage gap on documented behavior.
Closes #66341 parent 2ef93c0 commit 48eb24c
1 file changed
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
727 | 727 | | |
728 | 728 | | |
729 | 729 | | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
730 | 762 | | |
731 | 763 | | |
732 | 764 | | |
| |||
0 commit comments