MockResponse is a response builder interface it defines one method that allows generating a response based on a request body. MockResponses are used to program behavior of MockBroker in tests.
| 20 | // allows generating a response based on a request body. MockResponses are used |
| 21 | // to program behavior of MockBroker in tests. |
| 22 | type MockResponse interface { |
| 23 | For(reqBody versionedDecoder) (res encoderWithHeader) |
| 24 | } |
| 25 | |
| 26 | // MockWrapper is a mock response builder that returns a particular concrete |
| 27 | // response regardless of the actual request passed to the `For` method. |
no outgoing calls
no test coverage detected