MCPcopy Create free account
hub / github.com/cli/cli / mockCommentUpdate

Function mockCommentUpdate

pkg/cmd/issue/comment/comment_test.go:973–985  ·  view source on GitHub ↗
(t *testing.T, reg *httpmock.Registry)

Source from the content-addressed store, hash-verified

971}
972
973func mockCommentUpdate(t *testing.T, reg *httpmock.Registry) {
974 reg.Register(
975 httpmock.GraphQL(`mutation CommentUpdate\b`),
976 httpmock.GraphQLMutation(`
977 { "data": { "updateIssueComment": { "issueComment": {
978 "url": "https://github.com/OWNER/REPO/issues/123#issuecomment-111"
979 } } } }`,
980 func(inputs map[string]any) {
981 assert.Equal(t, "id1", inputs["id"])
982 assert.Equal(t, "comment body", inputs["body"])
983 }),
984 )
985}
986
987func mockCommentDelete(t *testing.T, reg *httpmock.Registry) {
988 reg.Register(

Callers 1

Test_commentRunFunction · 0.70

Calls 4

GraphQLFunction · 0.92
GraphQLMutationFunction · 0.92
EqualMethod · 0.80
RegisterMethod · 0.45

Tested by

no test coverage detected