(t *testing.T, reg *httpmock.Registry)
| 858 | } |
| 859 | |
| 860 | func mockCommentUpdate(t *testing.T, reg *httpmock.Registry) { |
| 861 | reg.Register( |
| 862 | httpmock.GraphQL(`mutation CommentUpdate\b`), |
| 863 | httpmock.GraphQLMutation(` |
| 864 | { "data": { "updateIssueComment": { "issueComment": { |
| 865 | "url": "https://github.com/OWNER/REPO/issues/123#issuecomment-111" |
| 866 | } } } }`, |
| 867 | func(inputs map[string]any) { |
| 868 | assert.Equal(t, "id1", inputs["id"]) |
| 869 | assert.Equal(t, "comment body", inputs["body"]) |
| 870 | }), |
| 871 | ) |
| 872 | } |
| 873 | |
| 874 | func mockCommentDelete(t *testing.T, reg *httpmock.Registry) { |
| 875 | reg.Register( |
no test coverage detected