// Code generated by MockGen. DO NOT EDIT.
// Source: ../mq/mq.go
//
// Generated by this command:
//
//	mockgen -package mock_drivenadapters -source ../mq/mq.go -destination ../mock/mock_drivenadapters/mq_mock.go
//

// Package mock_drivenadapters is a generated GoMock package.
package mock_drivenadapters

import (
	reflect "reflect"

	gomock "go.uber.org/mock/gomock"
)

// MockMQClient is a mock of MQClient interface.
type MockMQClient struct {
	ctrl     *gomock.Controller
	recorder *MockMQClientMockRecorder
	isgomock struct{}
}

// MockMQClientMockRecorder is the mock recorder for MockMQClient.
type MockMQClientMockRecorder struct {
	mock *MockMQClient
}

// NewMockMQClient creates a new mock instance.
func NewMockMQClient(ctrl *gomock.Controller) *MockMQClient {
	mock := &MockMQClient{ctrl: ctrl}
	mock.recorder = &MockMQClientMockRecorder{mock}
	return mock
}

// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockMQClient) EXPECT() *MockMQClientMockRecorder {
	return m.recorder
}

// Close mocks base method.
func (m *MockMQClient) Close() {
	m.ctrl.T.Helper()
	m.ctrl.Call(m, "Close")
}

// Close indicates an expected call of Close.
func (mr *MockMQClientMockRecorder) Close() *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockMQClient)(nil).Close))
}

// Publish mocks base method.
func (m *MockMQClient) Publish(topic string, message []byte) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Publish", topic, message)
	ret0, _ := ret[0].(error)
	return ret0
}

// Publish indicates an expected call of Publish.
func (mr *MockMQClientMockRecorder) Publish(topic, message any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Publish", reflect.TypeOf((*MockMQClient)(nil).Publish), topic, message)
}

// Subscribe mocks base method.
func (m *MockMQClient) Subscribe(topic, channel string, handler func([]byte) error) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Subscribe", topic, channel, handler)
	ret0, _ := ret[0].(error)
	return ret0
}

// Subscribe indicates an expected call of Subscribe.
func (mr *MockMQClientMockRecorder) Subscribe(topic, channel, handler any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Subscribe", reflect.TypeOf((*MockMQClient)(nil).Subscribe), topic, channel, handler)
}
