mockEmptyV2ProjectItems registers GraphQL queries to report an issue is not contained on any v2 projects.
(t *testing.T, r *httpmock.Registry)
| 599 | |
| 600 | // mockEmptyV2ProjectItems registers GraphQL queries to report an issue is not contained on any v2 projects. |
| 601 | func mockEmptyV2ProjectItems(t *testing.T, r *httpmock.Registry) { |
| 602 | r.Register(httpmock.GraphQL(`query IssueProjectItems\b`), httpmock.StringResponse(` |
| 603 | { "data": { "repository": { "issue": { |
| 604 | "projectItems": { |
| 605 | "totalCount": 0, |
| 606 | "nodes": [] |
| 607 | } } } } } |
| 608 | `)) |
| 609 | } |
| 610 | |
| 611 | // mockV2ProjectItems registers GraphQL queries to report an issue on multiple v2 projects in various states |
| 612 | // - `NO_STATUS_ITEM`: emulates this issue is on a project but is not given a status |
no test coverage detected