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

package mocks

import (
	deploymentv1beta3 "github.com/akash-network/akash-api/go/node/deployment/v1beta3"
	mock "github.com/stretchr/testify/mock"

	v1beta4 "github.com/akash-network/akash-api/go/node/market/v1beta4"
)

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

type Reservation_Expecter struct {
	mock *mock.Mock
}

func (_m *Reservation) EXPECT() *Reservation_Expecter {
	return &Reservation_Expecter{mock: &_m.Mock}
}

// Allocated provides a mock function with no fields
func (_m *Reservation) Allocated() bool {
	ret := _m.Called()

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

	var r0 bool
	if rf, ok := ret.Get(0).(func() bool); ok {
		r0 = rf()
	} else {
		r0 = ret.Get(0).(bool)
	}

	return r0
}

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

// Allocated is a helper method to define mock.On call
func (_e *Reservation_Expecter) Allocated() *Reservation_Allocated_Call {
	return &Reservation_Allocated_Call{Call: _e.mock.On("Allocated")}
}

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

func (_c *Reservation_Allocated_Call) Return(_a0 bool) *Reservation_Allocated_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *Reservation_Allocated_Call) RunAndReturn(run func() bool) *Reservation_Allocated_Call {
	_c.Call.Return(run)
	return _c
}

// ClusterParams provides a mock function with no fields
func (_m *Reservation) ClusterParams() interface{} {
	ret := _m.Called()

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

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

	return r0
}

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

// ClusterParams is a helper method to define mock.On call
func (_e *Reservation_Expecter) ClusterParams() *Reservation_ClusterParams_Call {
	return &Reservation_ClusterParams_Call{Call: _e.mock.On("ClusterParams")}
}

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

func (_c *Reservation_ClusterParams_Call) Return(_a0 interface{}) *Reservation_ClusterParams_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *Reservation_ClusterParams_Call) RunAndReturn(run func() interface{}) *Reservation_ClusterParams_Call {
	_c.Call.Return(run)
	return _c
}

// GetAllocatedResources provides a mock function with no fields
func (_m *Reservation) GetAllocatedResources() deploymentv1beta3.ResourceUnits {
	ret := _m.Called()

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

	var r0 deploymentv1beta3.ResourceUnits
	if rf, ok := ret.Get(0).(func() deploymentv1beta3.ResourceUnits); ok {
		r0 = rf()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(deploymentv1beta3.ResourceUnits)
		}
	}

	return r0
}

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

// GetAllocatedResources is a helper method to define mock.On call
func (_e *Reservation_Expecter) GetAllocatedResources() *Reservation_GetAllocatedResources_Call {
	return &Reservation_GetAllocatedResources_Call{Call: _e.mock.On("GetAllocatedResources")}
}

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

func (_c *Reservation_GetAllocatedResources_Call) Return(_a0 deploymentv1beta3.ResourceUnits) *Reservation_GetAllocatedResources_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *Reservation_GetAllocatedResources_Call) RunAndReturn(run func() deploymentv1beta3.ResourceUnits) *Reservation_GetAllocatedResources_Call {
	_c.Call.Return(run)
	return _c
}

// OrderID provides a mock function with no fields
func (_m *Reservation) OrderID() v1beta4.OrderID {
	ret := _m.Called()

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

	var r0 v1beta4.OrderID
	if rf, ok := ret.Get(0).(func() v1beta4.OrderID); ok {
		r0 = rf()
	} else {
		r0 = ret.Get(0).(v1beta4.OrderID)
	}

	return r0
}

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

// OrderID is a helper method to define mock.On call
func (_e *Reservation_Expecter) OrderID() *Reservation_OrderID_Call {
	return &Reservation_OrderID_Call{Call: _e.mock.On("OrderID")}
}

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

func (_c *Reservation_OrderID_Call) Return(_a0 v1beta4.OrderID) *Reservation_OrderID_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *Reservation_OrderID_Call) RunAndReturn(run func() v1beta4.OrderID) *Reservation_OrderID_Call {
	_c.Call.Return(run)
	return _c
}

// Resources provides a mock function with no fields
func (_m *Reservation) Resources() deploymentv1beta3.ResourceGroup {
	ret := _m.Called()

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

	var r0 deploymentv1beta3.ResourceGroup
	if rf, ok := ret.Get(0).(func() deploymentv1beta3.ResourceGroup); ok {
		r0 = rf()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(deploymentv1beta3.ResourceGroup)
		}
	}

	return r0
}

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

// Resources is a helper method to define mock.On call
func (_e *Reservation_Expecter) Resources() *Reservation_Resources_Call {
	return &Reservation_Resources_Call{Call: _e.mock.On("Resources")}
}

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

func (_c *Reservation_Resources_Call) Return(_a0 deploymentv1beta3.ResourceGroup) *Reservation_Resources_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *Reservation_Resources_Call) RunAndReturn(run func() deploymentv1beta3.ResourceGroup) *Reservation_Resources_Call {
	_c.Call.Return(run)
	return _c
}

// SetAllocatedResources provides a mock function with given fields: _a0
func (_m *Reservation) SetAllocatedResources(_a0 deploymentv1beta3.ResourceUnits) {
	_m.Called(_a0)
}

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

// SetAllocatedResources is a helper method to define mock.On call
//   - _a0 deploymentv1beta3.ResourceUnits
func (_e *Reservation_Expecter) SetAllocatedResources(_a0 interface{}) *Reservation_SetAllocatedResources_Call {
	return &Reservation_SetAllocatedResources_Call{Call: _e.mock.On("SetAllocatedResources", _a0)}
}

func (_c *Reservation_SetAllocatedResources_Call) Run(run func(_a0 deploymentv1beta3.ResourceUnits)) *Reservation_SetAllocatedResources_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(deploymentv1beta3.ResourceUnits))
	})
	return _c
}

func (_c *Reservation_SetAllocatedResources_Call) Return() *Reservation_SetAllocatedResources_Call {
	_c.Call.Return()
	return _c
}

func (_c *Reservation_SetAllocatedResources_Call) RunAndReturn(run func(deploymentv1beta3.ResourceUnits)) *Reservation_SetAllocatedResources_Call {
	_c.Run(run)
	return _c
}

// SetClusterParams provides a mock function with given fields: _a0
func (_m *Reservation) SetClusterParams(_a0 interface{}) {
	_m.Called(_a0)
}

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

// SetClusterParams is a helper method to define mock.On call
//   - _a0 interface{}
func (_e *Reservation_Expecter) SetClusterParams(_a0 interface{}) *Reservation_SetClusterParams_Call {
	return &Reservation_SetClusterParams_Call{Call: _e.mock.On("SetClusterParams", _a0)}
}

func (_c *Reservation_SetClusterParams_Call) Run(run func(_a0 interface{})) *Reservation_SetClusterParams_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(interface{}))
	})
	return _c
}

func (_c *Reservation_SetClusterParams_Call) Return() *Reservation_SetClusterParams_Call {
	_c.Call.Return()
	return _c
}

func (_c *Reservation_SetClusterParams_Call) RunAndReturn(run func(interface{})) *Reservation_SetClusterParams_Call {
	_c.Run(run)
	return _c
}

// NewReservation creates a new instance of Reservation. 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 NewReservation(t interface {
	mock.TestingT
	Cleanup(func())
}) *Reservation {
	mock := &Reservation{}
	mock.Mock.Test(t)

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

	return mock
}
