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

Function mockPullRequestUpdateWithBody

pkg/cmd/pr/edit/edit_test.go:1862–1869  ·  view source on GitHub ↗
(t *testing.T, reg *httpmock.Registry, wantBody string)

Source from the content-addressed store, hash-verified

1860}
1861
1862func mockPullRequestUpdateWithBody(t *testing.T, reg *httpmock.Registry, wantBody string) {
1863 reg.Register(
1864 httpmock.GraphQL(`mutation PullRequestUpdate\b`),
1865 httpmock.GraphQLMutation(`{}`, func(inputs map[string]any) {
1866 assert.Equal(t, wantBody, inputs["body"])
1867 }),
1868 )
1869}
1870
1871// A dropped body is absent from the input, which is not the same as a body sent
1872// with its old value.

Callers 1

Test_editRunFunction · 0.85

Calls 4

GraphQLFunction · 0.92
GraphQLMutationFunction · 0.92
EqualMethod · 0.80
RegisterMethod · 0.45

Tested by

no test coverage detected