A dropped body is absent from the input, which is not the same as a body sent with its old value.
(t *testing.T, reg *httpmock.Registry, wantTitle string)
| 1871 | // A dropped body is absent from the input, which is not the same as a body sent |
| 1872 | // with its old value. |
| 1873 | func mockPullRequestUpdateWithoutBody(t *testing.T, reg *httpmock.Registry, wantTitle string) { |
| 1874 | reg.Register( |
| 1875 | httpmock.GraphQL(`mutation PullRequestUpdate\b`), |
| 1876 | httpmock.GraphQLMutation(`{}`, func(inputs map[string]any) { |
| 1877 | assert.Equal(t, wantTitle, inputs["title"]) |
| 1878 | assert.NotContains(t, inputs, "body") |
| 1879 | }), |
| 1880 | ) |
| 1881 | } |
| 1882 | |
| 1883 | func mockPullRequestUpdateApiActors(reg *httpmock.Registry) { |
| 1884 | reg.Register( |
no test coverage detected