// Code generated by mockery v2.14.1. DO NOT EDIT.

package mocks

import (
	smartbft "github.com/hyperledger/fabric/orderer/consensus/smartbft"
	mock "github.com/stretchr/testify/mock"
)

// ReceiverGetter is an autogenerated mock type for the ReceiverGetter type
type ReceiverGetter struct {
	mock.Mock
}

// ReceiverByChain provides a mock function with given fields: channelID
func (_m *ReceiverGetter) ReceiverByChain(channelID string) smartbft.MessageReceiver {
	ret := _m.Called(channelID)

	var r0 smartbft.MessageReceiver
	if rf, ok := ret.Get(0).(func(string) smartbft.MessageReceiver); ok {
		r0 = rf(channelID)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(smartbft.MessageReceiver)
		}
	}

	return r0
}

type mockConstructorTestingTNewReceiverGetter interface {
	mock.TestingT
	Cleanup(func())
}

// NewReceiverGetter creates a new instance of ReceiverGetter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewReceiverGetter(t mockConstructorTestingTNewReceiverGetter) *ReceiverGetter {
	mock := &ReceiverGetter{}
	mock.Mock.Test(t)

	t.Cleanup(func() { mock.AssertExpectations(t) })

	return mock
}
