(t *testing.T, reg *httpmock.Registry)
| 859 | } |
| 860 | |
| 861 | func mockCommentCreate(t *testing.T, reg *httpmock.Registry) { |
| 862 | reg.Register( |
| 863 | httpmock.GraphQL(`mutation CommentCreate\b`), |
| 864 | httpmock.GraphQLMutation(` |
| 865 | { "data": { "addComment": { "commentEdge": { "node": { |
| 866 | "url": "https://github.com/OWNER/REPO/issues/123#issuecomment-456" |
| 867 | } } } } }`, |
| 868 | func(inputs map[string]any) { |
| 869 | assert.Equal(t, "ISSUE-ID", inputs["subjectId"]) |
| 870 | assert.Equal(t, "comment body", inputs["body"]) |
| 871 | }), |
| 872 | ) |
| 873 | } |
| 874 | |
| 875 | func mockCommentUpdate(t *testing.T, reg *httpmock.Registry) { |
| 876 | reg.Register( |
no test coverage detected