MCPcopy
hub / github.com/cli/cli / mockCommentDelete

Function mockCommentDelete

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

Source from the content-addressed store, hash-verified

710}
711
712func mockCommentDelete(t *testing.T, reg *httpmock.Registry) {
713 reg.Register(
714 httpmock.GraphQL(`mutation CommentDelete\b`),
715 httpmock.GraphQLMutation(`
716 { "data": { "deleteIssueComment": {} } }`,
717 func(inputs map[string]interface{}) {
718 assert.Equal(t, "id1", inputs["id"])
719 },
720 ),
721 )
722}

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