(t *testing.T, reg *httpmock.Registry, wantBody string)
| 1860 | } |
| 1861 | |
| 1862 | func 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. |
no test coverage detected