Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConsumer ¶
type MockConsumer struct {
// add a Mock object instance
mock.Mock
// other fields go here as normal
TotalCount int
DoneChannel chan bool
}
A mock consumer consumes all incoming messages and sends a "done" signal on its DoneChannel once the expected number of messages has been consumed
func (*MockConsumer) ConsumeMessage ¶
func (test *MockConsumer) ConsumeMessage(msg *message.DataMessage)
Click to show internal directories.
Click to hide internal directories.