mockReviewerResponseForRepo generates a GraphQL response for SuggestedReviewerActorsForRepo tests. It creates collaborators (c1, c2...) and teams (team1, team2...).
(collabs, teams, totalCollabs, totalTeams int)
| 378 | // mockReviewerResponseForRepo generates a GraphQL response for SuggestedReviewerActorsForRepo tests. |
| 379 | // It creates collaborators (c1, c2...) and teams (team1, team2...). |
| 380 | func mockReviewerResponseForRepo(collabs, teams, totalCollabs, totalTeams int) string { |
| 381 | return mockReviewerResponseForRepoWithCopilot(collabs, teams, totalCollabs, totalTeams, false) |
| 382 | } |
| 383 | |
| 384 | // mockReviewerResponseForRepoWithCopilot generates a GraphQL response for SuggestedReviewerActorsForRepo tests. |
| 385 | // If copilotAvailable is true, includes Copilot in the first open PR's suggested reviewers. |
no test coverage detected