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

Function mockRequestReviewsByLogin

pkg/cmd/pr/edit/edit_test.go:1906–1913  ·  view source on GitHub ↗

mockRequestReviewsByLogin mocks the RequestReviewsByLogin GraphQL mutation used on github.com when ApiActorsSupported is enabled.

(reg *httpmock.Registry)

Source from the content-addressed store, hash-verified

1904// mockRequestReviewsByLogin mocks the RequestReviewsByLogin GraphQL mutation
1905// used on github.com when ApiActorsSupported is enabled.
1906func mockRequestReviewsByLogin(reg *httpmock.Registry) {
1907 reg.Register(
1908 httpmock.GraphQL(`mutation RequestReviewsByLogin\b`),
1909 httpmock.GraphQLMutation(`
1910 { "data": { "requestReviewsByLogin": { "clientMutationId": "" } } }`,
1911 func(inputs map[string]any) {}),
1912 )
1913}
1914
1915func mockPullRequestUpdateLabels(reg *httpmock.Registry) {
1916 reg.Register(

Callers 1

Test_editRunFunction · 0.85

Calls 3

GraphQLFunction · 0.92
GraphQLMutationFunction · 0.92
RegisterMethod · 0.45

Tested by

no test coverage detected