MCPcopy
hub / github.com/IBM/sarama / ExpectSendMessageAndSucceed

Method ExpectSendMessageAndSucceed

mocks/sync_producer.go:212–216  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

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.
212func (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

Implementers 2

syncProducersync_producer.go
SyncProducermocks/sync_producer.go