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

package mock

import (
	context "context"

	bizerr "github.com/tidbcloud/pkgv2/bizerr"

	mock "github.com/stretchr/testify/mock"
)

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

// ClearAll provides a mock function with given fields: ctx
func (_m *ClearClusterHandler) ClearAll(ctx context.Context) bizerr.BizError {
	ret := _m.Called(ctx)

	var r0 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context) bizerr.BizError); ok {
		r0 = rf(ctx)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(bizerr.BizError)
		}
	}

	return r0
}

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

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

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

	return mock
}
