// Code generated by MockGen. DO NOT EDIT.
// Source: consensus/tendermint/router/cache/cache.go
//
// Generated by this command:
//
//	mockgen -source=consensus/tendermint/router/cache/cache.go -package=mocks -destination=consensus/tendermint/router/mocks/cache_mock.go
//

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

import (
	reflect "reflect"

	common "github.com/autonity/autonity/common"
	cache "github.com/autonity/autonity/consensus/tendermint/router/cache"
	gomock "go.uber.org/mock/gomock"
)

// MockRecipients is a mock of Recipients interface.
type MockRecipients struct {
	ctrl     *gomock.Controller
	recorder *MockRecipientsMockRecorder
	isgomock struct{}
}

// MockRecipientsMockRecorder is the mock recorder for MockRecipients.
type MockRecipientsMockRecorder struct {
	mock *MockRecipients
}

// NewMockRecipients creates a new mock instance.
func NewMockRecipients(ctrl *gomock.Controller) *MockRecipients {
	mock := &MockRecipients{ctrl: ctrl}
	mock.recorder = &MockRecipientsMockRecorder{mock}
	return mock
}

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

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

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

// Get mocks base method.
func (m *MockRecipients) Get(key string) (cache.Entry, bool) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Get", key)
	ret0, _ := ret[0].(cache.Entry)
	ret1, _ := ret[1].(bool)
	return ret0, ret1
}

// Get indicates an expected call of Get.
func (mr *MockRecipientsMockRecorder) Get(key any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockRecipients)(nil).Get), key)
}

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

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

// Set mocks base method.
func (m *MockRecipients) Set(key string, recipients []common.Address) {
	m.ctrl.T.Helper()
	m.ctrl.Call(m, "Set", key, recipients)
}

// Set indicates an expected call of Set.
func (mr *MockRecipientsMockRecorder) Set(key, recipients any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Set", reflect.TypeOf((*MockRecipients)(nil).Set), key, recipients)
}

// UpdateLastUsed mocks base method.
func (m *MockRecipients) UpdateLastUsed(key string) {
	m.ctrl.T.Helper()
	m.ctrl.Call(m, "UpdateLastUsed", key)
}

// UpdateLastUsed indicates an expected call of UpdateLastUsed.
func (mr *MockRecipientsMockRecorder) UpdateLastUsed(key any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateLastUsed", reflect.TypeOf((*MockRecipients)(nil).UpdateLastUsed), key)
}
