(t *testing.T, reg *httpmock.Registry)
| 682 | } |
| 683 | |
| 684 | func mockCommentCreate(t *testing.T, reg *httpmock.Registry) { |
| 685 | reg.Register( |
| 686 | httpmock.GraphQL(`mutation CommentCreate\b`), |
| 687 | httpmock.GraphQLMutation(` |
| 688 | { "data": { "addComment": { "commentEdge": { "node": { |
| 689 | "url": "https://github.com/OWNER/REPO/issues/123#issuecomment-456" |
| 690 | } } } } }`, |
| 691 | func(inputs map[string]interface{}) { |
| 692 | assert.Equal(t, "ISSUE-ID", inputs["subjectId"]) |
| 693 | assert.Equal(t, "comment body", inputs["body"]) |
| 694 | }), |
| 695 | ) |
| 696 | } |
| 697 | |
| 698 | func mockCommentUpdate(t *testing.T, reg *httpmock.Registry) { |
| 699 | reg.Register( |
no test coverage detected