// Code generated by mockery v2.20.0. DO NOT EDIT. package mocks import ( "context" mock "github.com/stretchr/testify/mock" ) // StreamProducer is an autogenerated mock type for the StreamProducer type type StreamProducer struct { mock.Mock } // Send provides a mock function with given fields: ctx, topic, payload func (m *StreamProducer) Send(ctx context.Context, topic string, payload map[string]interface{}) (string, error) { ret := m.Called(ctx, topic, payload) var r0 string if rf, ok := ret.Get(0).(func(context.Context, string, map[string]interface{}) string); ok { r0 = rf(ctx, topic, payload) } else { r0 = ret.Get(0).(string) } var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, map[string]interface{}) error); ok { r1 = rf(ctx, topic, payload) } else { r1 = ret.Error(1) } return r0, r1 } // Close provides a mock function with given fields: func (m *StreamProducer) Close() error { ret := m.Called() var r0 error if rf, ok := ret.Get(0).(func() error); ok { r0 = rf() } else { r0 = ret.Error(0) } return r0 }