// Code generated by mockery; DO NOT EDIT.
// github.com/vektra/mockery
// template: testify

package indexersmock

import (
	"github.com/hashicorp/consul/proto-public/pbresource"
	mock "github.com/stretchr/testify/mock"
	"google.golang.org/protobuf/reflect/protoreflect"
)

// NewBoundReferences creates a new instance of BoundReferences. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewBoundReferences(t interface {
	mock.TestingT
	Cleanup(func())
}) *BoundReferences {
	mock := &BoundReferences{}
	mock.Mock.Test(t)

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

	return mock
}

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

type BoundReferences_Expecter struct {
	mock *mock.Mock
}

func (_m *BoundReferences) EXPECT() *BoundReferences_Expecter {
	return &BoundReferences_Expecter{mock: &_m.Mock}
}

// GetBoundReferences provides a mock function for the type BoundReferences
func (_mock *BoundReferences) GetBoundReferences() []*pbresource.Reference {
	ret := _mock.Called()

	if len(ret) == 0 {
		panic("no return value specified for GetBoundReferences")
	}

	var r0 []*pbresource.Reference
	if returnFunc, ok := ret.Get(0).(func() []*pbresource.Reference); ok {
		r0 = returnFunc()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]*pbresource.Reference)
		}
	}
	return r0
}

// BoundReferences_GetBoundReferences_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBoundReferences'
type BoundReferences_GetBoundReferences_Call struct {
	*mock.Call
}

// GetBoundReferences is a helper method to define mock.On call
func (_e *BoundReferences_Expecter) GetBoundReferences() *BoundReferences_GetBoundReferences_Call {
	return &BoundReferences_GetBoundReferences_Call{Call: _e.mock.On("GetBoundReferences")}
}

func (_c *BoundReferences_GetBoundReferences_Call) Run(run func()) *BoundReferences_GetBoundReferences_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run()
	})
	return _c
}

func (_c *BoundReferences_GetBoundReferences_Call) Return(references []*pbresource.Reference) *BoundReferences_GetBoundReferences_Call {
	_c.Call.Return(references)
	return _c
}

func (_c *BoundReferences_GetBoundReferences_Call) RunAndReturn(run func() []*pbresource.Reference) *BoundReferences_GetBoundReferences_Call {
	_c.Call.Return(run)
	return _c
}

// ProtoReflect provides a mock function for the type BoundReferences
func (_mock *BoundReferences) ProtoReflect() protoreflect.Message {
	ret := _mock.Called()

	if len(ret) == 0 {
		panic("no return value specified for ProtoReflect")
	}

	var r0 protoreflect.Message
	if returnFunc, ok := ret.Get(0).(func() protoreflect.Message); ok {
		r0 = returnFunc()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(protoreflect.Message)
		}
	}
	return r0
}

// BoundReferences_ProtoReflect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProtoReflect'
type BoundReferences_ProtoReflect_Call struct {
	*mock.Call
}

// ProtoReflect is a helper method to define mock.On call
func (_e *BoundReferences_Expecter) ProtoReflect() *BoundReferences_ProtoReflect_Call {
	return &BoundReferences_ProtoReflect_Call{Call: _e.mock.On("ProtoReflect")}
}

func (_c *BoundReferences_ProtoReflect_Call) Run(run func()) *BoundReferences_ProtoReflect_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run()
	})
	return _c
}

func (_c *BoundReferences_ProtoReflect_Call) Return(message protoreflect.Message) *BoundReferences_ProtoReflect_Call {
	_c.Call.Return(message)
	return _c
}

func (_c *BoundReferences_ProtoReflect_Call) RunAndReturn(run func() protoreflect.Message) *BoundReferences_ProtoReflect_Call {
	_c.Call.Return(run)
	return _c
}
