(t *testing.T, reg *httpmock.Registry, wantBody string)
| 913 | } |
| 914 | |
| 915 | func mockCommentCreate(t *testing.T, reg *httpmock.Registry, wantBody string) { |
| 916 | reg.Register( |
| 917 | httpmock.GraphQL(`mutation CommentCreate\b`), |
| 918 | httpmock.GraphQLMutation(` |
| 919 | { "data": { "addComment": { "commentEdge": { "node": { |
| 920 | "url": "https://github.com/OWNER/REPO/pull/123#issuecomment-456" |
| 921 | } } } } }`, |
| 922 | func(inputs map[string]any) { |
| 923 | assert.Equal(t, wantBody, inputs["body"]) |
| 924 | }), |
| 925 | ) |
| 926 | } |
| 927 | |
| 928 | func mockCommentUpdate(t *testing.T, reg *httpmock.Registry, wantBody string) { |
| 929 | reg.Register( |
no test coverage detected