1 // Code generated by mockery v1.0.0. DO NOT EDIT.
6 kafka "github.com/confluentinc/confluent-kafka-go/kafka"
8 mock "github.com/stretchr/testify/mock"
13 // KafkaConsumer is an autogenerated mock type for the KafkaConsumer type
14 type KafkaConsumer struct {
18 // Commit provides a mock function with given fields:
19 func (_m KafkaConsumer) Commit() ([]kafka.TopicPartition, error) {
22 var r0 []kafka.TopicPartition
23 if rf, ok := ret.Get(0).(func() []kafka.TopicPartition); ok {
26 if ret.Get(0) != nil {
27 r0 = ret.Get(0).([]kafka.TopicPartition)
32 if rf, ok := ret.Get(1).(func() error); ok {
41 // ReadMessage provides a mock function with given fields: timeout
42 func (_m KafkaConsumer) ReadMessage(timeout time.Duration) (*kafka.Message, error) {
43 ret := _m.Called(timeout)
46 if rf, ok := ret.Get(0).(func(time.Duration) *kafka.Message); ok {
49 if ret.Get(0) != nil {
50 r0 = ret.Get(0).(*kafka.Message)
55 if rf, ok := ret.Get(1).(func(time.Duration) error); ok {
64 // Subscribe provides a mock function with given fields: topic
65 func (_m KafkaConsumer) Subscribe(topic string) error {
66 ret := _m.Called(topic)
69 if rf, ok := ret.Get(0).(func(string) error); ok {