(t *testing.T, reg *httpmock.Registry)
| 971 | } |
| 972 | |
| 973 | func mockCommentUpdate(t *testing.T, reg *httpmock.Registry) { |
| 974 | reg.Register( |
| 975 | httpmock.GraphQL(`mutation CommentUpdate\b`), |
| 976 | httpmock.GraphQLMutation(` |
| 977 | { "data": { "updateIssueComment": { "issueComment": { |
| 978 | "url": "https://github.com/OWNER/REPO/issues/123#issuecomment-111" |
| 979 | } } } }`, |
| 980 | func(inputs map[string]any) { |
| 981 | assert.Equal(t, "id1", inputs["id"]) |
| 982 | assert.Equal(t, "comment body", inputs["body"]) |
| 983 | }), |
| 984 | ) |
| 985 | } |
| 986 | |
| 987 | func mockCommentDelete(t *testing.T, reg *httpmock.Registry) { |
| 988 | reg.Register( |
no test coverage detected