expectRequestBody is a helper function to create a partial mock that expects a request with the given body, with the ability to chain a response handler.
(t *testing.T, expectedRequestBody any)
| 239 | // expectRequestBody is a helper function to create a partial mock that expects a |
| 240 | // request with the given body, with the ability to chain a response handler. |
| 241 | func expectRequestBody(t *testing.T, expectedRequestBody any) *partialMock { |
| 242 | return &partialMock{ |
| 243 | t: t, |
| 244 | expectedRequestBody: expectedRequestBody, |
| 245 | } |
| 246 | } |
| 247 | |
| 248 | type partialMock struct { |
| 249 | t *testing.T |
no outgoing calls
no test coverage detected