(t *testing.T, reg *httpmock.Registry, wantBody string)
| 926 | } |
| 927 | |
| 928 | func mockCommentUpdate(t *testing.T, reg *httpmock.Registry, wantBody string) { |
| 929 | reg.Register( |
| 930 | httpmock.GraphQL(`mutation CommentUpdate\b`), |
| 931 | httpmock.GraphQLMutation(` |
| 932 | { "data": { "updateIssueComment": { "issueComment": { |
| 933 | "url": "https://github.com/OWNER/REPO/pull/123#issuecomment-111" |
| 934 | } } } }`, |
| 935 | func(inputs map[string]any) { |
| 936 | assert.Equal(t, "id1", inputs["id"]) |
| 937 | assert.Equal(t, wantBody, inputs["body"]) |
| 938 | }), |
| 939 | ) |
| 940 | } |
| 941 | |
| 942 | func mockCommentDelete(t *testing.T, reg *httpmock.Registry) { |
| 943 | reg.Register( |
no test coverage detected