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

Function mockCommentDelete

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

Source from the content-addressed store, hash-verified

986}
987
988func mockCommentDelete(t *testing.T, reg *httpmock.Registry) {
989 reg.Register(
990 httpmock.GraphQL(`mutation CommentDelete\b`),
991 httpmock.GraphQLMutation(`
992 { "data": { "deleteIssueComment": {} } }`,
993 func(inputs map[string]any) {
994 assert.Equal(t, "id1", inputs["id"])
995 },
996 ),
997 )
998}

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