ExpectSendMessageAndSucceed sets an expectation on the mock producer that SendMessage will be called. The mock producer will handle the message as if it produced successfully, i.e. by returning a valid partition, and offset, and a nil error.
()
| 210 | // called. The mock producer will handle the message as if it produced successfully, i.e. by |
| 211 | // returning a valid partition, and offset, and a nil error. |
| 212 | func (sp *SyncProducer) ExpectSendMessageAndSucceed() *SyncProducer { |
| 213 | sp.ExpectSendMessageWithMessageCheckerFunctionAndSucceed(nil) |
| 214 | |
| 215 | return sp |
| 216 | } |
| 217 | |
| 218 | // ExpectSendMessageAndFail sets an expectation on the mock producer that SendMessage will be |
| 219 | // called. The mock producer will handle the message as if it failed to produce |