(t *testing.T, reg *httpmock.Registry)
| 701 | } |
| 702 | |
| 703 | func mockCommentCreate(t *testing.T, reg *httpmock.Registry) { |
| 704 | reg.Register( |
| 705 | httpmock.GraphQL(`mutation CommentCreate\b`), |
| 706 | httpmock.GraphQLMutation(` |
| 707 | { "data": { "addComment": { "commentEdge": { "node": { |
| 708 | "url": "https://github.com/OWNER/REPO/pull/123#issuecomment-456" |
| 709 | } } } } }`, |
| 710 | func(inputs map[string]interface{}) { |
| 711 | assert.Equal(t, "comment body", inputs["body"]) |
| 712 | }), |
| 713 | ) |
| 714 | } |
| 715 | |
| 716 | func mockCommentUpdate(t *testing.T, reg *httpmock.Registry) { |
| 717 | reg.Register( |
no test coverage detected