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

package mocks

import (
	mock "github.com/stretchr/testify/mock"

	resource "github.com/pingcap/test-infra/common/model/resource"
)

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

// Reserve provides a mock function with given fields: handle, action
func (_m *ReserverInterface) Reserve(handle resource.ResourceHandle, action resource.GcReserveEnvAction) error {
	ret := _m.Called(handle, action)

	var r0 error
	if rf, ok := ret.Get(0).(func(resource.ResourceHandle, resource.GcReserveEnvAction) error); ok {
		r0 = rf(handle, action)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

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

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

	return mock
}
