(t *testing.T, reg *httpmock.Registry)
| 844 | } |
| 845 | |
| 846 | func mockCommentCreate(t *testing.T, reg *httpmock.Registry) { |
| 847 | reg.Register( |
| 848 | httpmock.GraphQL(`mutation CommentCreate\b`), |
| 849 | httpmock.GraphQLMutation(` |
| 850 | { "data": { "addComment": { "commentEdge": { "node": { |
| 851 | "url": "https://github.com/OWNER/REPO/issues/123#issuecomment-456" |
| 852 | } } } } }`, |
| 853 | func(inputs map[string]any) { |
| 854 | assert.Equal(t, "ISSUE-ID", inputs["subjectId"]) |
| 855 | assert.Equal(t, "comment body", inputs["body"]) |
| 856 | }), |
| 857 | ) |
| 858 | } |
| 859 | |
| 860 | func mockCommentUpdate(t *testing.T, reg *httpmock.Registry) { |
| 861 | reg.Register( |
no test coverage detected