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

Function mockCommentDelete

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

Source from the content-addressed store, hash-verified

940}
941
942func mockCommentDelete(t *testing.T, reg *httpmock.Registry) {
943 reg.Register(
944 httpmock.GraphQL(`mutation CommentDelete\b`),
945 httpmock.GraphQLMutation(`
946 { "data": { "deleteIssueComment": {} } }`,
947 func(inputs map[string]any) {
948 assert.Equal(t, "id1", inputs["id"])
949 },
950 ),
951 )
952}

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