(t *testing.T, reg *httpmock.Registry)
| 957 | } |
| 958 | |
| 959 | func mockCommentCreate(t *testing.T, reg *httpmock.Registry) { |
| 960 | reg.Register( |
| 961 | httpmock.GraphQL(`mutation CommentCreate\b`), |
| 962 | httpmock.GraphQLMutation(` |
| 963 | { "data": { "addComment": { "commentEdge": { "node": { |
| 964 | "url": "https://github.com/OWNER/REPO/issues/123#issuecomment-456" |
| 965 | } } } } }`, |
| 966 | func(inputs map[string]any) { |
| 967 | assert.Equal(t, "ISSUE-ID", inputs["subjectId"]) |
| 968 | assert.Equal(t, "comment body", inputs["body"]) |
| 969 | }), |
| 970 | ) |
| 971 | } |
| 972 | |
| 973 | func mockCommentUpdate(t *testing.T, reg *httpmock.Registry) { |
| 974 | reg.Register( |
no test coverage detected