(t *testing.T, reg *httpmock.Registry)
| 873 | } |
| 874 | |
| 875 | func mockCommentUpdate(t *testing.T, reg *httpmock.Registry) { |
| 876 | reg.Register( |
| 877 | httpmock.GraphQL(`mutation CommentUpdate\b`), |
| 878 | httpmock.GraphQLMutation(` |
| 879 | { "data": { "updateIssueComment": { "issueComment": { |
| 880 | "url": "https://github.com/OWNER/REPO/issues/123#issuecomment-111" |
| 881 | } } } }`, |
| 882 | func(inputs map[string]any) { |
| 883 | assert.Equal(t, "id1", inputs["id"]) |
| 884 | assert.Equal(t, "comment body", inputs["body"]) |
| 885 | }), |
| 886 | ) |
| 887 | } |
| 888 | |
| 889 | func mockCommentDelete(t *testing.T, reg *httpmock.Registry) { |
| 890 | reg.Register( |
no test coverage detected