expect is a helper function to create a partial mock that expects various request behaviors, such as path, query parameters, and request body.
(t *testing.T, e expectations)
| 210 | // expect is a helper function to create a partial mock that expects various |
| 211 | // request behaviors, such as path, query parameters, and request body. |
| 212 | func expect(t *testing.T, e expectations) *partialMock { |
| 213 | return &partialMock{ |
| 214 | t: t, |
| 215 | expectedPath: e.path, |
| 216 | expectedQueryParams: e.queryParams, |
| 217 | expectedRequestBody: e.requestBody, |
| 218 | } |
| 219 | } |
| 220 | |
| 221 | // expectPath is a helper function to create a partial mock that expects a |
| 222 | // request with the given path, with the ability to chain a response handler. |
no outgoing calls
no test coverage detected