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

Function mockCommentUpdate

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

Source from the content-addressed store, hash-verified

858}
859
860func mockCommentUpdate(t *testing.T, reg *httpmock.Registry) {
861 reg.Register(
862 httpmock.GraphQL(`mutation CommentUpdate\b`),
863 httpmock.GraphQLMutation(`
864 { "data": { "updateIssueComment": { "issueComment": {
865 "url": "https://github.com/OWNER/REPO/issues/123#issuecomment-111"
866 } } } }`,
867 func(inputs map[string]any) {
868 assert.Equal(t, "id1", inputs["id"])
869 assert.Equal(t, "comment body", inputs["body"])
870 }),
871 )
872}
873
874func mockCommentDelete(t *testing.T, reg *httpmock.Registry) {
875 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